MichaelTamoush
4 years agoQrew Captain
Rich Text Syntax
This is something simple, but I still feel like I'm not doing this in the cleanest way. Below is an example of some basic red text in italics.
"<span style='font-size:12px;color:#e61515'><i>words are going here</i></span>"
I simply want to be able to make the style a var text, so that in complicated fields I can clean up my coding. I found something that works, but I'm not convinced it is the cleanest method. Still feels like too many single and double quotes. Anyone use a nicer/cleaner syntax?
var text Style = font-size:12px;color:#e61515;
"<span style='" & $Style & "'><i>words are going here</b></span>"
For example, anyone have clean syntax for changing the color of text in the middle of a sentence and then changing it back? I can make it work, but I feel like my version is too clunky and long.
------------------------------
Michael Tamoush
------------------------------
"<span style='font-size:12px;color:#e61515'><i>words are going here</i></span>"
I simply want to be able to make the style a var text, so that in complicated fields I can clean up my coding. I found something that works, but I'm not convinced it is the cleanest method. Still feels like too many single and double quotes. Anyone use a nicer/cleaner syntax?
var text Style = font-size:12px;color:#e61515;
"<span style='" & $Style & "'><i>words are going here</b></span>"
For example, anyone have clean syntax for changing the color of text in the middle of a sentence and then changing it back? I can make it work, but I feel like my version is too clunky and long.
------------------------------
Michael Tamoush
------------------------------