Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Question on highlighting text in chat window from a macro

Hello all, If I have a macro that sends the message "@{selected|token_name} may conjure a ALLOSAURUS w/3th slot, 2 w/5th, or 3 w/7th level, or 4 w/9th level slot!" to the chat window, how can I bold it, or change the color of the font, or something like this? Thank you!
1466476369
Andrew R.
Pro
Sheet Author
I'd try using the PowerCards API script. 
1466477572
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
You can Italicize, bold, and bold-italicize by bracketing text in 1, 2, or 3 *'s. Also, if you made a table with a single entry for each of the things you wanted highlighted, you could use an inline roll on that table (with a guaranteed result of whatever you wanted) to get a black highlight and white text of whatever the text is for the value of the table.
Check out the wiki for basic formatting   here . Also not noted is the use of the backtick ` to highlight things. That's on the ~ key.   ``test`` comes out as 
Thanks Scott! Works great. Thanks Andrew also.  I havn't used PowerCards before so but I'll look into that option as well.
1466479669

Edited 1466479683
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Ed S. said: Check out the wiki for basic formatting   here . Also not noted is the use of the backtick ` to highlight things. That's on the ~ key.   ``test`` comes out as  Huh, had no idea about that. Way better than my convoluted table suggestion. Learn something new every day.
Scott C. said: Ed S. said: Check out the wiki for basic formatting   here . Also not noted is the use of the backtick ` to highlight things. That's on the ~ key.   ``test`` comes out as  Huh, had no idea about that. Way better than my convoluted table suggestion. Learn something new every day. You can call a table inside the backticks and get both:   &{template:5eDefault} {{title=Critical Hit}} {{subheader=@{selected|token_name}}} {{save=1}} {{subheader2=on @{target|token_name}}} {{freetext=``[[1t[Crit]]]``}} Comes out looking like this :
1466524220

Edited 1466524483
Ed S. said: Scott C. said: Ed S. said: Check out the wiki for basic formatting   here . Also not noted is the use of the backtick ` to highlight things. That's on the ~ key.   ``test`` comes out as  Huh, had no idea about that. Way better than my convoluted table suggestion. Learn something new every day. You can call a table inside the backticks and get both:   &{template:5eDefault} {{title=Critical Hit}} {{subheader=@{selected|token_name}}} {{save=1}} {{subheader2=on @{target|token_name}}} {{freetext=``[[1t[Crit]]]``}} Comes out looking like this : 1) I wonder why this isn't documented 2) Looks like it doesn't use the asterisk formatting with red text Edit: 3) I just tried this in Firefox, requires 3 preceding and 2 following the text.  Also works with asterisk formatting in normal chat.  Could be the use of the table text in template, within [[ ]].  I had that problem using some tables before.
1466526575

Edited 1466526602
Dorgrim said: 1) I wonder why this isn't documented Good question! I just added some documentation on the ``code`` markdown to Basic Formatting . Dorgrim said: 2) Looks like it doesn't use the asterisk formatting with red text By design, Rollable Table outputs do not parse Basic Formatting . Dorgrim said: requires 3 preceding and 2 following the text. You're finding the need to include an extra backtick due to an inadvertent use of the  Escape Text Chat Command (which was introduced by the Update of Holding ). I just added that documentation to the Wiki, as well; thanks!
Yes, my Rollable Table has the asterisks in the text, I wish it would parse, but even though it doesn't they do *draw attention* to the title.
1466532630
Gold
Forum Champion
Silvyre said: Dorgrim said: 1) I wonder why this isn't documented Good question! I just added some documentation on the ``code`` markdown to Basic Formatting . Thanks for the information on the backtick. Ed called it highlighting (true) but Silvyre specified that it is the 'code' format. What are the characteristics of the rendered text in default chat (not powercards, not roll template)?  It would make red text color, and yellow background highlight color? Is it changing the font to a monospace font like the Code setting when posting in forum? Is it differently sized, perhaps smaller, than regular chat text? Is it changing the font to a monospace font like the Code setting when posting in forum?
1466534661
Lithl
Pro
Sheet Author
API Scripter
The text formatting in chat is based on Markdown, and Markdown uses backticks for inline code formatting, so calling it code format would be more correct than calling it a highlight.