Hi folks,
I’ve 2 small questions, basically I’m wondering if these are possible.
1.)
I have a NewText:
local nameText = display.newText("Hi, I'm Matthew it's nice to meet you.", 400, 200, native.systemFontBold, 24);
So I know I can use setTextColor() to colour the text a certain Colour but I was wondering if it’s possible to Colour or Bold only one word in a string?
You see I’d like to ‘highlight’ certain words, be it bold or colour change?
Something like: “Hi, I’m Matthew it’s nice to meet you.” (without the spaces in the [B] of course.)
2.)
The second question is whether it’s possible to add in a string after an integer.
What I’m trying to do is tell you how many seconds you have, something like:
‘20s’
So if my variable tells me it’s 20, I need to add an ‘s’ at the end.
local timeText = display.newText(Data[1].timeCost, 200, 200, native.systemFontBold, 22)
My string pulls out an integer from a table… 20.
I can’t find a way I can somehow add ‘s’ to the end of whatever it pulls out.
Something like:
…newText(Data[1].timeCost,_ “s” _, 200…)
Thankyou in advance 
Matt. x