Created
June 21, 2014 21:55
-
-
Save davidahouse/3eb5e9dd8bb08972b53a to your computer and use it in GitHub Desktop.
Proposed tag syntax for DHStyleString
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Basic replacement of a variable with no specified style attribute | |
// #{field} | |
// | |
// Replacement with variable and style | |
// #{field:style} | |
// | |
// Push a style on the stack | |
// #{+style} | |
// | |
// Pop a style from the stack | |
// #{-style} | |
// | |
// Example: | |
#{speaker:headline} | |
#{+indented} | |
#{+body}I'll call upon you straight: abide within.#{-body} | |
#{+italic}Exeunt Murderers#{-italic} | |
#{+body}It is concluded. Banquo, thy soul's flight, | |
If it find heaven, must find it out to-night.#{-body} | |
#{+italic}Exit#{-italic} | |
#{-indented} | |
#{source} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment