# this contains only html stuff, no javascript nor css # thus it can be used for inclusions in contexts such as javadoc # to avoid possible recursion problems # e.g., html uses javascript which uses doxygen which uses html... vardef SPECIAL= '(([sS][tT][yY][lL][eE])|(([nN][oO])?[sS][cC][rR][iI][pP][tT])|'+ '([xX][mM][pP])|([iI][fF][rR][aA][mM][eE])|'+ '([nN][oO][eE][mM][bB][eE][dD])|([nN][oO][fF][rR][aA][mM][eE][sS]))' vardef SPECIAL2= '(([tT][iI][tT][lL][eE])|([tT][eE][xX][tT][aA][rR][eE][aA]))' # we need to treat these differently because these elements # can't contain elements and entities # however, they can have attributes so we need to use # nested states # example state keyword = '<'+$special begin include "key_string.lang" state keyword = '>' begin keyword = '' exit 2 normal = '[^<[:blank:]]+' end end # title and textarea are similar, but entities are allowed state keyword delim '<'+$special2+'>' '' multiline begin preproc = '&([[:alnum:]]+);' normal = '[^<[:blank:]]+' end # if we encounter everything else (up to the end of file) # will be highlighted as normal state keyword = '<[pp][ll][aa][ii][nn][tt][ee][xx][tt]>' begin normal = '.+' end include "xml.lang" keyword = '<(/)?[[:alpha:]][[:alnum:]]*(/)?>' state keyword delim '<(/)?[[:alpha:]][[:alnum:]]*' '(/)?>' multiline begin include "key_string.lang" end </div><div class="naked_ctrl"> <form action="/index.cgi/contrast" method="get" name="gate"> <p><a href="http://altstyle.alfasado.net">AltStyle</a> によって変換されたページ <a href="https://cgit.git.savannah.gnu.org/cgit/src-highlite.git/plain/src/html_simple.lang">(-&gt;オリジナル)</a> / <label>アドレス: <input type="text" name="naked_post_url" value="https://cgit.git.savannah.gnu.org/cgit/src-highlite.git/plain/src/html_simple.lang" size="22" /></label> <label>モード: <select name="naked_post_mode"> <option value="default">デフォルト</option> <option value="speech">音声ブラウザ</option> <option value="ruby">ルビ付き</option> <option value="contrast" selected="selected">配色反転</option> <option value="larger-text">文字拡大</option> <option value="mobile">モバイル</option> </select> <input type="submit" value="表示" /> </p> </form> </div>