Highlight certain portion of text

Feature request in Corona SDK:

I am in need to do following:

I have a long text to display in my mobile application and I need to highlight a certain portion of text. I have researched in all the places but I could not find a way to do so.

Do you have any solution to this?

Thank you very much. Waiting for reply

Bivek.

Hi Bivek. Welcome to Corona! Feature requests are tracked through our feedback system. Please go to http://feedback.coronalabs.com and see if there is an existing request you can vote up or enter a new request if you can’t find what fills your need.

Rob

Can you explain highlight? Like what does the user do to get the text to highlight. Info like that will help us help you a lot faster. Thanks!

EDIT - Sorry @Rob. I didn’t reload the page before replying. I had the page open for over half an hour. So i didn’t see your reply. 

–SonicX278

Hi SonicX278, There is a big paragraph and one word in the paragraph needs to be highlighted or be in different color. I just want a paragraph with few words in different color. Thank you Bivek

Can’t you add a newRect and just add alpha to it? Or is the test scrolling?

–SonicX278

Ill see how rect works and get back to you

Thank you

I think you’re going to find this pretty futile.  You won’t know where the words are or their size to build rectangles for them. Search the forums or use Google and look for HTML text or rich text for Corona. A couple of community members have built libraries that will do what you’re looking for. They are of course unsupported. There might be one in the community code too.

https://code.coronalabs.com/

Rob

Hi Rob,

Yes you are right, I was scratching my head about rectangle stuffs :slight_smile:

I think “rich text for corona” will help me, I’ll google it now, thanks for the message Rob 

Thank you

Bivek

Ya sorry for the bad suggestion. Didn’t realize till when you replied that you were going to try it.

–SonicX278

No problem SonicX278,

At-least you replied.

Hi Bivek. Welcome to Corona! Feature requests are tracked through our feedback system. Please go to http://feedback.coronalabs.com and see if there is an existing request you can vote up or enter a new request if you can’t find what fills your need.

Rob

Can you explain highlight? Like what does the user do to get the text to highlight. Info like that will help us help you a lot faster. Thanks!

EDIT - Sorry @Rob. I didn’t reload the page before replying. I had the page open for over half an hour. So i didn’t see your reply. 

–SonicX278

Hi SonicX278, There is a big paragraph and one word in the paragraph needs to be highlighted or be in different color. I just want a paragraph with few words in different color. Thank you Bivek

Can’t you add a newRect and just add alpha to it? Or is the test scrolling?

–SonicX278

Ill see how rect works and get back to you

Thank you

I think you’re going to find this pretty futile.  You won’t know where the words are or their size to build rectangles for them. Search the forums or use Google and look for HTML text or rich text for Corona. A couple of community members have built libraries that will do what you’re looking for. They are of course unsupported. There might be one in the community code too.

https://code.coronalabs.com/

Rob

Hi Rob,

Yes you are right, I was scratching my head about rectangle stuffs :slight_smile:

I think “rich text for corona” will help me, I’ll google it now, thanks for the message Rob 

Thank you

Bivek

Ya sorry for the bad suggestion. Didn’t realize till when you replied that you were going to try it.

–SonicX278

No problem SonicX278,

At-least you replied.