aa_macro syntax 
 aa_macro source 
 HTML source 
 HTML render 
Key

§ 4.183 - [s] Built-In

Mnemonic aid: s for Style

See also:  [ghost] ,  [glos] ,  [gstyle] ,  [listg] ,  [locs] ,  [spage]  and  [style] 

Also, there is more information on styles beginning here.

This built-in invokes a style.  [s styleName]  is functionally the same syntax as using  {styleName} .

There are three differences beyond  [s styleName]  being slightly more wordy than  {stylename} .

  1. You can create two levels of processing; a level where only { and } are accepted but not [ or ], and therefore no new macros can be defined, nor can any of the powerful lower level built-ins be invoked. That creates an environment where you can define the macros, but users can only use them.
  2. When using  {styleName} , the style names are fixed, they can't be defined by your code. But when using  [s styleName] , the styleName is a parameter, so you can fill it in programmatically if you like, for instance, from a variable. This can provide additional flexibility. Also, since one style can call another, you can bury a use of  [s styleName]  under a use of  {styleName} 
  3. When using the form  {styleName content} , you can separate the styleName from the content by either a space or a newline. It is strictly a cosmetic difference.

[s (help=styleHelp,)(help2=styleHelp2,)stylename (styleContent)]

[style help=content,help2=makes the content bold,boldenx <b>[b]</b>]
[style help=content,help2=italicizes the content,italex <i>[b]</i>]
[style dstyle [ls]<abbr title="[helps2 [b]]">[b] [helps [b]]</abbr>[rs]]
[s boldenx foo]
{italex bar}
[local mystyle boldenx]
[s [v mystyle] pretty bold, eh?]
In the lines below, hover mouse over stylename at left:
{dstyle boldenx}
{dstyle italex}

<b>foo</b>
<i>bar</i>
<b>pretty bold, eh?</b>
In the lines below, hover mouse over stylename at left:
&#123;<abbr title="makes the content bold">boldenx content</abbr>&#125;
&#123;<abbr title="italicizes the content">italex content</abbr>&#125;
foo bar pretty bold, eh? In the lines below, hover mouse over stylename at left: {boldenx content} {italex content}

Other built-ins used here:  [b] ,  [helps] ,  [helps2] ,  [local] ,  [style]  and  [v] 

Keyboard Navigation
, Previous Page . Next Page t TOC i Index

Valid HTML 4.01 Loose
 

This manual was generated with wtfm
wtfm uses aa_macro and SqLite
aa_macro uses Python 2.7