User Tools

Site Tools


elderscript_advanced_operators

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
elderscript_advanced_operators [2019/07/17 11:00]
dicenomiwiki [String Formatting]
elderscript_advanced_operators [2019/07/17 16:47] (current)
dicenomiwiki
Line 11: Line 11:
 ^ **Escape Code** ^ **Purpose** ^ **Example** ^ **Result** ^ ^ **Escape Code** ^ **Purpose** ^ **Example** ^ **Result** ^
 | **\n** | Inserts return | “First Line\nSecond Line” | First Line\\ Second Line | | **\n** | Inserts return | “First Line\nSecond Line” | First Line\\ Second Line |
-| **\p** | Resets formatting | “Regular, \eBold, \RBold Red, \pPlain” | Regular, **Bold**, **Bold Red**, Plain |+| **\p** | Resets formatting | “Regular, \eBold, \RBold Red, \pPlain” | Regular, **Bold**, ​<color red>**Bold Red**</​color>​, Plain |
 | **\e** | Emphasized (bold) | “Regular, \eBold” | Regular, **Bold** ​ | | **\e** | Emphasized (bold) | “Regular, \eBold” | Regular, **Bold** ​ |
 | **\i** | Italic | “Regular, \iItalic” | Regular, //Italic// | | **\i** | Italic | “Regular, \iItalic” | Regular, //Italic// |
 | **\_** | Underline | “Regular, \_Underline” | Regular, __Underline__ | | **\_** | Underline | “Regular, \_Underline” | Regular, __Underline__ |
-| **\r, \g, \b, \c, \m, \y, \k, \w** | Set the color to red, green, blue, cyan, magenta, yellow, black, or white | “\rRed, \gGreen, \bBlue, \cCyan, \mMagenta, \yYellow, \kBlack, \wWhite” | Red, Green, Blue, Cyan, Magenta, Yellow, Black, White |+| **\r, \g, \b, \c, \m, \y, \k, \w** | Set the color to red, green, blue, cyan, magenta, yellow, black, or white | “\rRed, \gGreen, \bBlue, \cCyan, \mMagenta, \yYellow, \kBlack, \wWhite” | <color red>Red</​color>​<color green>Green</​color>​<color blue>Blue</​color>​<color cyan>Cyan</​color>​<color magenta>Magenta</​color>​<color yellow>Yellow</​color>​, Black, ​<color white>White</​color> ​|
 | **\+, \-** | Increase/​Decrease font size | “Medium, \+Larger, \-Medium, \-Smaller” | Medium, Larger, Medium, Smaller | | **\+, \-** | Increase/​Decrease font size | “Medium, \+Larger, \-Medium, \-Smaller” | Medium, Larger, Medium, Smaller |
 | **\=size=** | Changefont size | “Medium, \=18=Larger,​ \=10=Smaller” | Medium, Larger, Smaller | | **\=size=** | Changefont size | “Medium, \=18=Larger,​ \=10=Smaller” | Medium, Larger, Smaller |
 | **\!name!** | Change the font name (assuming a font of the given font family name exists - these include AmericanTypewriter,​ AppleGothic,​ ArialMT, Courier, Georgia, Helvetica, MarkerFelt-Thin,​ TimesNewRomanPSMT,​ TrebuchetMS,​ Verdana, Zapfino) | “Regular, \!Georgia!Georgia,​ \!Zapfino!Zapfino” | Regular, Georgia, Zapfino | | **\!name!** | Change the font name (assuming a font of the given font family name exists - these include AmericanTypewriter,​ AppleGothic,​ ArialMT, Courier, Georgia, Helvetica, MarkerFelt-Thin,​ TimesNewRomanPSMT,​ TrebuchetMS,​ Verdana, Zapfino) | “Regular, \!Georgia!Georgia,​ \!Zapfino!Zapfino” | Regular, Georgia, Zapfino |
-| **\#hex#** | Change to HTML style color | “Default, \#​800000#​Brown,​ \#​888#​Gray” | Default, Brown, Gray |+| **\#hex#** | Change to HTML style color | “Default, \#​800000#​Brown,​ \#​888#​Gray” | Default, ​<color #800>Brown</​color>​<color #888>Gray</​color> ​|
 | **\$name$** | Plays the name of a given sound the first time it is “printed” as a result. ​ This is not applicable for things like the name of a favorite roll (where the string isn’t a result) | “Missed!$Whoosh$” | Missed  //​(The sound %%'​%%Whoosh%%'​%% would be played’)//​ | | **\$name$** | Plays the name of a given sound the first time it is “printed” as a result. ​ This is not applicable for things like the name of a favorite roll (where the string isn’t a result) | “Missed!$Whoosh$” | Missed  //​(The sound %%'​%%Whoosh%%'​%% would be played’)//​ |
 | **\uXXXX** | A special 5 character escape code, used to specify unicode characters (where XXXX is for hex characters). | “Black Pawn: \u265f Black Star: \u2605” | Black Pawn: ''​♟''​ Black Star: ★ | | **\uXXXX** | A special 5 character escape code, used to specify unicode characters (where XXXX is for hex characters). | “Black Pawn: \u265f Black Star: \u2605” | Black Pawn: ''​♟''​ Black Star: ★ |
elderscript_advanced_operators.txt · Last modified: 2019/07/17 16:47 by dicenomiwiki