# ---------------------------------------------------------------------------- # DISCUS HTML tag to formatting tag conversion # # This allows you to define those HTML patterns that you want to be converted # into formatting tags. Here is how this file is parsed: # # Lines starting with # are comments. # Blank lines are ignored. # Other lines are conversions to be performed, in the format: # Command [spaces] Discus Formatting Tag [spaces] HTML start [spaces] HTML stop # # The command is one of the following: # S = Regular smart matching # O = Define order of elements for a tag # # Your Discus Formatting Tag can have NO spaces within it. If you think about # it, you should not need any. Within your formatting tag, use representations # such as $1, $2, etc., to refer to the first, second, etc., matches from the # regular expression. And use $' for everything that comes after the match before # the closing tag. # # Adjustments are made for people using (or failing to use) quotes within tags. # Allowances are made for a different order of arguments from how you've defined # them here, provided that you use 'O' to define the order in which tag arguments # are defined in this file. # # This file is executed from top to bottom. Thus, your expressions at the top should # be the more complicated expressions, working down to the least complicated at the # bottom of the file. # # User HTML is parsed from the inside out. # # Pattern matching is case-insensitive. # ---------------------------------------------------------------------------- ##################################################### # Order of elements within particular HTML tags O N/A font face,color,size O N/A a href,target ##################################################### # Font with face, color, and size S \font{$1,\rgb{$2,\2{$'}}} S \font{$1,\rgb{$2,\1{$'}}} S \font{$1,\rgb{$2,\0{$'}}} S \font{$1,\rgb{$2,\-1{$'}}} S \font{$1,\rgb{$2,\-2{$'}}} S \font{$1,\rgb{$2,\-2{$'}}} S \font{$1,\rgb{$2,\-1{$'}}} S \font{$1,\rgb{$2,\0{$'}}} S \font{$1,\rgb{$2,\1{$'}}} S \font{$1,\rgb{$2,\2{$'}}} S \font{$1,\rgb{$'}} ##################################################### # Font with face and size S \font{$1,\2{$'}} S \font{$1,\1{$'}} S \font{$1,\0{$'}} S \font{$1,\-1{$'}} S \font{$1,\-2{$'}} S \font{$1,\-2{$'}} S \font{$1,\-1{$'}} S \font{$1,\0{$'}} S \font{$1,\1{$'}} S \font{$1,\2{$'}} S \font{$1,$'} ##################################################### # Font with color and size S \rgb{$1,\2{$'}} S \rgb{$1,\1{$'}} S \rgb{$1,\0{$'}} S \rgb{$1,\-1{$'}} S \rgb{$1,\-2{$'}} S \rgb{$1,\-2{$'}} S \rgb{$1,\-1{$'}} S \rgb{$1,\0{$'}} S \rgb{$1,\1{$'}} S \rgb{$1,\2{$'}} S \rgb{$1,\2{$'}} S \rgb{$1,$'} ##################################################### # Font with color and size S \font{$1,\rgb{$2}} ##################################################### # Font with size only S \2{$'} S \1{$'} S \0{$'} S \-1{$'} S \-2{$'} S \-2{$'} S \-1{$'} S \0{$'} S \1{$'} S \2{$'} S \0{$'} ##################################################### # Font with color or face only S \font{$1,$'} S \rgb{$1,$'} ##################################################### # Nearest equivalents of H1, H2, H3, H4, H5 S \ch{br}\2{\b{$'}}\ch{br}

S \ch{br}\1{\b{$'}}\ch{br}

S \ch{br}\0{\b{$'}}\ch{br}

S \ch{br}\-1{\b{$'}}\ch{br}

S \ch{br}\-2{\b{$'}}\ch{br} ##################################################### # Hyperlinks S \newurl{$1,$'} S \topurl{$1,$'} S \topurl{$1,$'} S \newurl{$1,$'} S \mail{$1,$'} S \link{$1,$'} ##################################################### # Other simple formatting S \b{$'} S \i{$'} S \c{$'} S \c{$'}
S \u{$'} S \strike{$'} S \blink{$'} S \+{$'} S \-{$'} S \pre{$'}
		
##################################################### # Add "UBB code" if you want, but remember the backslash # before the square brackets! #S \b{$'} \[b\] \[/b\] S \fixed{[\n]\*[\n]$'[\n]*\[\n]} \[code\] \[/code\]