Documentation Source Text

Check-in [4bae4cc5b7]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Trying for improvements in the appearance of the syntax in lang*.html.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 4bae4cc5b7a9fa24bb6645af56e4e6a213632c12
User & Date: drh 2008-09-24 18:52:11
Context
2008-09-25
18:51
Small amount of progress on fileio.html. check-in: 1344ab631b user: dan tags: trunk
2008-09-24
18:52
Trying for improvements in the appearance of the syntax in lang*.html. check-in: 4bae4cc5b7 user: drh tags: trunk
17:49
Fix a bug in the CREATE TRIGGER documentation. check-in: 2f8b2b9ead user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to pages/lang.in.

   595    595   statement.  </p>
   596    596   
   597    597   <tcl>
   598    598   ##############################################################################
   599    599   Section {CREATE TRIGGER} createtrigger {{CREATE TRIGGER}}
   600    600   
   601    601   Syntax {sql-statement} {
   602         -CREATE [TEMP | TEMPORARY] TRIGGER [IF NOT EXISTS] [<database-name> .] <trigger-name> 
          602  +CREATE [TEMP | TEMPORARY] TRIGGER [IF NOT EXISTS] [<database-name> .] <trigger-name>
   603    603   [ BEFORE | AFTER ] <database-event> ON <table-name>
   604    604   <trigger-action>
   605    605   }
   606    606   
   607    607   Syntax {sql-statement} {
   608         -CREATE [TEMP | TEMPORARY] TRIGGER [IF NOT EXISTS] [<database-name .] <trigger-name> 
          608  +CREATE [TEMP | TEMPORARY] TRIGGER [IF NOT EXISTS] [<database-name> .] <trigger-name>
   609    609   INSTEAD OF <database-event> ON <view-name>
   610    610   <trigger-action>
   611    611   }
   612    612   
   613    613   Syntax {database-event} {
   614    614   DELETE | 
   615    615   INSERT | 

Changes to wrap.tcl.

   378    378     }
   379    379   }
   380    380   
   381    381   # The following proc is used to ensure consistent formatting in the 
   382    382   # HTML generated by lang.tcl and pragma.tcl.
   383    383   #
   384    384   proc Syntax {args} {
   385         -  hd_puts {<table cellpadding="10">}
          385  +  hd_puts {<table cellpadding="10" width="100%">}
   386    386     foreach {rule body} $args {
   387    387       hd_puts "<tr><td align=\"right\" valign=\"top\">"
   388    388       hd_puts "<i><font color=\"#ff3434\">$rule</font></i>&nbsp;::=</td>"
   389    389       regsub -all < $body {%LT} body
   390    390       regsub -all > $body {%GT} body
   391    391       regsub -all %LT $body {</font></b><i><font color="#ff3434">} body
   392    392       regsub -all %GT $body {</font></i><b><font color="#2c2cf0">} body
................................................................................
   398    398       regsub -all {STAR} $body {<big>*</big>} body
   399    399       ## These metacharacters must be handled to undo being
   400    400       ## treated as SQL punctuation characters above.
   401    401       regsub -all {RPPLUS} $body {</font></b>)+<b><font color="#2c2cf0">} body
   402    402       regsub -all {LP} $body {</font></b>(<b><font color="#2c2cf0">} body
   403    403       regsub -all {RP} $body {</font></b>)<b><font color="#2c2cf0">} body
   404    404       ## Place the left-hand side of the rule in the 2nd table column.
   405         -    hd_puts "<td><b><font color=\"#2c2cf0\">$body</font></b></td></tr>"
          405  +    hd_puts "<td width=\"90%\">"
          406  +    hd_puts "<b><font color=\"#2c2cf0\">$body</font></b></td></tr>"
   406    407     }
   407    408     hd_puts {</table>}
   408    409   }
   409    410   
   410    411   # Record a requirement.  This procedure is active only for the first
   411    412   # pass.  This procedure becomes a no-op for the second pass.  During
   412    413   # the second pass, requirements listing report generators can use the