Diffstat (limited to 'htdocs/quickref/metasyntax.chtml') (more/less context) (ignore whitespace changes)
-rw-r--r-- | htdocs/quickref/metasyntax.chtml | 193 |
1 files changed, 110 insertions, 83 deletions
diff --git a/htdocs/quickref/metasyntax.chtml b/htdocs/quickref/metasyntax.chtml index a63f596..4efc37c 100644 --- a/htdocs/quickref/metasyntax.chtml +++ b/htdocs/quickref/metasyntax.chtml @@ -44,10 +44,12 @@ </p> <blockquote class="qr_sample"> - <body><br/> - <em><a href="#qr__line" title="% description">%</a> for(int t=0;t<10;t++) {<br/></em> - Here is the way we count.<br/><br/> - Just saying out loud: <a href="#qr__inline" title="<% ... %> description"><%</a> t <a href="#qr__inline" title="<% ... %> description">%></a><br/><br/> - <em><a href="#qr__line" title="% description">%</a> }<br/></em> - </body> + <div> + <body><br/> + Here is the way we count.<br/><br/> + <em><a href="#qr__line" title="% description">%</a> for(int t=0;t<10;t++) {<br/></em> + Just saying out loud: <a href="#qr__inline" title="<% ... %> description"><%</a> t <a href="#qr__inline" title="<% ... %> description">%></a><br/><br/> + <em><a href="#qr__line" title="% description">%</a> }<br/></em> + </body> + </div> </blockquote> </dd> @@ -64,8 +66,10 @@ </p> <blockquote class="qr_sample"> - <a href="#qr__line" title="% description">%</a> for(int t=0;t<10;t++) {<br/> - Here is the way we count.<br/><br/> - <em> Just saying out loud: <a href="#qr__inline" title="<% ... %> description"><%</a> t <a href="#qr__inline" title="<% ... %> description">%></a><br/><br/></em> - <a href="#qr__line" title="% description">%</a> } + <div> + Here is the way we count.<br/><br/> + <a href="#qr__line" title="% description">%</a> for(int t=0;t<10;t++) {<br/> + <em> Just saying out loud: <a href="#qr__inline" title="<% ... %> description"><%</a> t <a href="#qr__inline" title="<% ... %> description">%></a><br/><br/></em> + <a href="#qr__line" title="% description">%</a> } + </div> </blockquote> </dd> @@ -80,16 +84,19 @@ </dt> <dd> - Escape from the output mode to code mode. Opposite to <code><a href="#qr__output" title="<%output> description"><%output></a></code>. Roughly the same as <code><a href="#qr__output" title="<%output> description"></%output></a> <kbd>...</kbd> <a href="#qr__output" title="<%output> description"><%output></a></code> (note the reverse order), but more self-explanatory and applies to more cases. + <p> + Escape from the output mode to code mode. Opposite to <code><a href="#qr__output" title="<%output> description"><%output></a></code>. Roughly the same as <code><a href="#qr__output" title="<%output> description"></%output></a> <kbd>...</kbd> <a href="#qr__output" title="<%output> description"><%output></a></code> (note the reverse order), but more self-explanatory and applies to more cases. </p> <blockquote class="qr_sample"> - <body><br/> - <em> <a href="#qr__code" title="<%code> descrption"><%code></a><br/></em> - for(int t=0;t<10;t++) {<br/> - <a href="#qr__output" title="<%output> descrption"><%output></a><br/> - Here is the way we count.<br/><br/> - Just saying out loud: <a href="#qr__inline" title="<% ... %> description"><%</a> t <a href="#qr__inline" title="<% ... %> description">%></a><br/><br/> - <a href="#qr__output" title="<%output> descrption"></%output></a><br/> - <em> <a href="#qr__code" title="<%code> descrption"></%code></a><br/></em> - </body> + <div> + <body><br/> + <em> <a href="#qr__code" title="<%code> descrption"><%code></a><br/></em> + for(int t=0;t<10;t++) {<br/> + <a href="#qr__output" title="<%output> descrption"><%output></a><br/> + Here is the way we count.<br/><br/> + Just saying out loud: <a href="#qr__inline" title="<% ... %> description"><%</a> t <a href="#qr__inline" title="<% ... %> description">%></a><br/><br/> + <a href="#qr__output" title="<%output> descrption"></%output></a><br/> + <em> <a href="#qr__code" title="<%code> descrption"></%code></a><br/></em> + </body> + </div> </blockquote> </dd> @@ -110,8 +117,10 @@ </p> <blockquote class="qr_sample"> - <em><a href="#qr__codemethod" title="<%codemethod ... %> description"><%codemethod</a> std::string ua() <a href="#qr__codemethod" title="<%codemethod ... %> description">%></a><br/> - return __CGI->get_meta("USER_AGENT");<br/> - <a href="#qr__codemethod" title="<%codemethod ... %> description"></%codemethod></a><br/></em> - The user agent is: <a href="#qr__inline" title="<% ... %> description"><%</a> ua() <a href="#qr__inline" title="<% ... %> description">%></a><br/> + <div> + <em><a href="#qr__codemethod" title="<%codemethod ... %> description"><%codemethod</a> std::string ua() <a href="#qr__codemethod" title="<%codemethod ... %> description">%></a><br/> + return __CGI->get_meta("USER_AGENT");<br/> + <a href="#qr__codemethod" title="<%codemethod ... %> description"></%codemethod></a><br/></em> + The user agent is: <a href="#qr__inline" title="<% ... %> description"><%</a> ua() <a href="#qr__inline" title="<% ... %> description">%></a><br/> + </div> </blockquote> </dd> @@ -132,8 +141,10 @@ </p> <blockquote class="qr_sample"> - <a href="#qr___var" title="%%var description">%%var</a> bool is_msie;<br/> - <em><a href="#qr__constructor" title="<%constructor> description"><%constructor></a><br/> - is_msie = (__CGI->get_meta("USER_AGENT").find("MSIE")!=string::npos);<br/> - <a href="#qr__constructor" title="<%constructor> description"></%constructor></a><br/></em> + <div> + <a href="#qr___var" title="%%var description">%%var</a> bool is_msie;<br/> + <em><a href="#qr__constructor" title="<%constructor> description"><%constructor></a><br/> + is_msie = (__CGI->get_meta("USER_AGENT").find("MSIE")!=string::npos);<br/> + <a href="#qr__constructor" title="<%constructor> description"></%constructor></a><br/></em> + </div> </blockquote> </dd> @@ -160,12 +171,14 @@ </p> <blockquote class="qr_sample"> - <em><a href="#qr___decl" title="%%decl description">%%decl</a> #include <string><br/></em> - <a href="#qr___var" title="%%var description">%%var</a> std::string str = "default"<br/> - <em><a href="#qr__decl" title="<%decl> description"><%decl></a><br/> - typedef int integer_t;<br/> - <a href="#qr__decl" title="<%decl> description"></%decl></a><br/></em> - <a href="#qr__method" title="<%method ... %> description"><%method</a> void do_nothing(integer_t input) <a href="#qr__method" title="<%method ... %> description">%></a><br/> - nothing is done<br/> - <a href="#qr__method" title="<%method ... %> description"></%method></a> + <div> + <em><a href="#qr___decl" title="%%decl description">%%decl</a> #include <string><br/></em> + <a href="#qr___var" title="%%var description">%%var</a> std::string str = "default"<br/> + <em><a href="#qr__decl" title="<%decl> description"><%decl></a><br/> + typedef int integer_t;<br/> + <a href="#qr__decl" title="<%decl> description"></%decl></a><br/></em> + <a href="#qr__method" title="<%method ... %> description"><%method</a> void do_nothing(integer_t input) <a href="#qr__method" title="<%method ... %> description">%></a><br/> + nothing is done<br/> + <a href="#qr__method" title="<%method ... %> description"></%method></a> + </div> </blockquote> </dd> @@ -182,6 +195,8 @@ </p> <blockquote class="qr_sample"> - <em><a href="#qr___derive" title="%%derive description">%%derive</a> pagelayout = "/ancestry/page_layout.chtml";<br/></em> - <a href="#qr__line" title="% description">%</a> pagelayout::member_function(); + <div> + <em><a href="#qr___derive" title="%%derive description">%%derive</a> pagelayout = "/ancestry/page_layout.chtml";<br/></em> + <a href="#qr__line" title="% description">%</a> pagelayout::member_function(); + </div> </blockquote> </dd> @@ -202,11 +217,13 @@ </p> <blockquote class="qr_sample"> - <a href="#qr___var" title="%%var description">%%var</a> type_t *tmp = 0;<br/> - <a href="#qr__constructor" title="<%constructor> description"><%constructor></a><br/> - tmp = new type_t(type_t::option_1);<br/> - <a href="#qr__constructor" title="<%constructor> description"></%constructor></a><br/> - <em><a href="#qr__destructor" title="<%destructor> description"><%destructor></a><br/> - delete tmp;<br/> - <a href="#qr__destructor" title="<%destructor> description"></%destructor></a><br/></em> + <div> + <a href="#qr___var" title="%%var description">%%var</a> type_t *tmp = 0;<br/> + <a href="#qr__constructor" title="<%constructor> description"><%constructor></a><br/> + tmp = new type_t(type_t::option_1);<br/> + <a href="#qr__constructor" title="<%constructor> description"></%constructor></a><br/> + <em><a href="#qr__destructor" title="<%destructor> description"><%destructor></a><br/> + delete tmp;<br/> + <a href="#qr__destructor" title="<%destructor> description"></%destructor></a><br/></em> + </div> </blockquote> </dd> @@ -233,23 +250,25 @@ </p> <blockquote class="qr_sample"> - <em><a href"#qr___impl" title="%%impl description">%%impl</a> #include <string.h><br/></em> - <a href="#qr__method" title="<%method ... %gt; description"><%method</a> void output_if_contains(const char *haystack,const char *needle) <a href="#qr__method" title="<%method ... %gt; description">%></a><br/> - <a href="#qr__line" title="% description">%</a> if(strstr(haystack,needle)) {<br/> - <a href="#qr__inline" title="<% ... %> description"><%</a> haystack <a href="#qr__inline" title="<% ... %> description">%></a><br/> - <a href="#qr__line" title="% description">%</a> }<br/> - <a href="#qr__method" title="<%method ... %> description"></%method></a><br/> - <em><a href="#qr__impl" title="<%impl> description"><%impl></a><br/> - #include <konforka/exception.h> - static const char *tokens[] = {<br/> - "token 1", "token 2", "token 3"<br/> - };<br/> - <a href="#qr__impl" title="<%impl> description"></%impl></a><br/></em> - <a href="#qr__method" title="<%method ... %gt; description"><%method</a> void output_token(int toknum) <a href="#qr__method" title="<%method ... %gt; description">%></a><br/> - <a href="#qr__code" title="<%code> description"><%code></a><br/> - if(toknum<0 || toknum>=(sizeof(tokens)/sizeof(*tokens)))<br/> - throw konforka::exception(CODEPOINT,"out of bounds");<br/> - <a href="#qr__code" title="<%code> description"></%code></a><br/> - <a href="#qr__inline" title="<% ... %> description"><%</a> tokens[toknum] <a href="#qr__inline" title="<% ... %> description">%></a><br/> - <a href="#qr__method" title="<%method ... %> description"></%method></a><br/> + <div> + <em><a href="#qr___impl" title="%%impl description">%%impl</a> #include <string.h><br/></em> + <a href="#qr__method" title="<%method ... %gt; description"><%method</a> void output_if_contains(const char *haystack,const char *needle) <a href="#qr__method" title="<%method ... %gt; description">%></a><br/> + <a href="#qr__line" title="% description">%</a> if(strstr(haystack,needle)) {<br/> + <a href="#qr__inline" title="<% ... %> description"><%</a> haystack <a href="#qr__inline" title="<% ... %> description">%></a><br/> + <a href="#qr__line" title="% description">%</a> }<br/> + <a href="#qr__method" title="<%method ... %> description"></%method></a><br/> + <em><a href="#qr__impl" title="<%impl> description"><%impl></a><br/> + #include <konforka/exception.h> + static const char *tokens[] = {<br/> + "token 1", "token 2", "token 3"<br/> + };<br/> + <a href="#qr__impl" title="<%impl> description"></%impl></a><br/></em> + <a href="#qr__method" title="<%method ... %gt; description"><%method</a> void output_token(int toknum) <a href="#qr__method" title="<%method ... %gt; description">%></a><br/> + <a href="#qr__code" title="<%code> description"><%code></a><br/> + if(toknum<0 || toknum>=(sizeof(tokens)/sizeof(*tokens)))<br/> + throw konforka::exception(CODEPOINT,"out of bounds");<br/> + <a href="#qr__code" title="<%code> description"></%code></a><br/> + <a href="#qr__inline" title="<% ... %> description"><%</a> tokens[toknum] <a href="#qr__inline" title="<% ... %> description">%></a><br/> + <a href="#qr__method" title="<%method ... %> description"></%method></a><br/> + </div> </blockquote> </dd> @@ -270,8 +289,10 @@ </p> <blockquote class="qr_sample"> - <em><a href="#qr__method" title="<%method ... %> description"><%method</a> void emphasized(const char *t) <a href="#qr__method" title="<%method ... %> description">%></a><br/> - <em><a href="#qr__inline" title="<% ... %> description"><%</a> t <a href="#qr__inline" title="<% ... %> description">%></a></em><br/> - <a href="#qr__codemethod" title="<%codemethod ... %> description"></%method></a><br/></em> - <a href="#qr__line" title="% description">%</a> emphasized("emphasized text"); + <div> + <em><a href="#qr__method" title="<%method ... %> description"><%method</a> void emphasized(const char *t) <a href="#qr__method" title="<%method ... %> description">%></a><br/> + <em><a href="#qr__inline" title="<% ... %> description"><%</a> t <a href="#qr__inline" title="<% ... %> description">%></a></em><br/> + <a href="#qr__codemethod" title="<%codemethod ... %> description"></%method></a><br/></em> + <a href="#qr__line" title="% description">%</a> emphasized("emphasized text"); + </div> </blockquote> </dd> @@ -290,12 +311,14 @@ </p> <blockquote class="qr_sample"> - <a href="#qr__codemethod" title="<%codemethod ... %> description"><%codemethod</a> void count() <a href="#qr__codemethod" title="<%codemethod ... > description">%></a><br/> - for(int t=0;t<10;t++) {<br/> - <em> <a href="#qr__output" title="<%output> descrption"><%output></a><br/> - Here is the way we count.<br/><br/> - Just saying out loud: <a href="#qr__inline" title="<% ... %> description"><%</a> t <a href="#qr__inline" title="<% ... %> description">%></a><br/><br/> - <a href="#qr__output" title="<%output> descrption"></%output></a><br/></em> - <a href="#qr__codemethod" title="</%codemethod ... %> description"></%codemethod></a><br/> - <a href="#qr__line" title="% description">%</a> count(); + <div> + <a href="#qr__codemethod" title="<%codemethod ... %> description"><%codemethod</a> void count() <a href="#qr__codemethod" title="<%codemethod ... > description">%></a><br/> + for(int t=0;t<10;t++) {<br/> + <em> <a href="#qr__output" title="<%output> descrption"><%output></a><br/> + Here is the way we count.<br/><br/> + Just saying out loud: <a href="#qr__inline" title="<% ... %> description"><%</a> t <a href="#qr__inline" title="<% ... %> description">%></a><br/><br/> + <a href="#qr__output" title="<%output> descrption"></%output></a><br/></em> + <a href="#qr__codemethod" title="</%codemethod ... %> description"></%codemethod></a><br/> + <a href="#qr__line" title="% description">%</a> count(); + </div> </blockquote> </dd> @@ -316,6 +339,8 @@ <code>main</code> member of the named base class.</p> <blockquote class="qr_sample"> - <a href="#qr___derive" title="%%derive description">%%derive</a> pagelayout = "/ancestry/page_layout.chtml";<br/> - <em><a href="#qr___pragma" title="%%pragma description">%%pragma</a> main=pagelayout</em> + <div> + <a href="#qr___derive" title="%%derive description">%%derive</a> pagelayout = "/ancestry/page_layout.chtml";<br/> + <em><a href="#qr___pragma" title="%%pragma description">%%pragma</a> main=pagelayout</em> + </div> </blockquote> </dd> @@ -324,6 +349,6 @@ <dt> <a id="qr___var" name="qr___var" title="member variable declaration"> - <code>%%var <kbd>type_t</kbd> <kbd>varname</kbd>;<br/> - <code>%%var <kbd>type_t</kbd> <kbd>varname</kbd> = <kbd>initalizer</kbd>;<br/> + <code>%%var <kbd>type_t</kbd> <kbd>varname</kbd>;</code><br/> + <code>%%var <kbd>type_t</kbd> <kbd>varname</kbd> = <kbd>initalizer</kbd>;</code><br/> </a> </dt> @@ -335,7 +360,9 @@ </p> <blockquote class="qr_sample"> - <em><a href="#qr___var" title="%%var description">%%var</a> std::string strval = "default value";<br/> - <a href="#qr___var" title="%%var description">%%var</a> int usecount = 0;<br/> - <a href="#qr___var" title="%%var description">%%var</a> int whatnot;</em> + <div> + <em><a href="#qr___var" title="%%var description">%%var</a> std::string strval = "default value";<br/> + <a href="#qr___var" title="%%var description">%%var</a> int usecount = 0;<br/> + <a href="#qr___var" title="%%var description">%%var</a> int whatnot;</em> + </div> </blockquote> </dd> |