PennController for IBEX › Forums › Support › Applying styles to select variables in a string › Reply To: Applying styles to select variables in a string
September 29, 2020 at 10:29 am
#6172
![](https://www.pcibex.net/wp-content/uploads/2018/10/IMG_8365-e1540835663655-150x150.jpg)
Keymaster
Hi,
You can use the <strong> HTML tag to surround the part that you want to print in bold. Here’s what it would look like with the code you give (updated to use PennController’s more modern syntax)
Template( "my_table.csv" , variable => newTrial( "my_trials", newText("example_sentence", variable.subject+" "+variable.verb+" "+variable.adjective+" <strong>"+variable.object+"</strong>") .css("font-size", "25px") .center() .print()
Let me know if you have questions
Jeremy