Technical Support Forums » Araneae
PHP syntax highlighter...? (3 posts)
-
Hi All,
Just wondering if anyone still has these files: http://www.ornj.net/forums/viewtopic.php?t=488&highlight=php+syntax
Also, how does one go about 'installing' new syntax highlighters? -
I have added two new files to extensions folder:
ASP.document
ASP.highlighterIt can recognize when i open an ASP file as "ASP Script" but it doesn't highlight.
ASP.document:
<araneaedocumenttype version="1.0">
<name>ASP Script</name>
<highlighterid>ASP</highlighterid>
<extensions>
<ext>.ASP</ext>
<ext>.ASA</ext>
</extensions>
<template>
<line><%</line>
<line></line>
<line>%></line>
</template>
</araneaedocumenttype>ASP.highlighter
<araneaedocumenthighlighter version="5.0">
<name>ASP</name>
<delimiters>.,:'"{}[]()?!@#$%^&*-+=|\/</delimiters>
<stylevariables>
<stylevariable color="33023">comments</stylevariable>
<stylevariable color="220">strings</stylevariable>
<stylevariable color="clNavy" bold="yes">keywords</stylevariable>
<stylevariable color="clNavy">asp</stylevariable>
<stylevariable color="clolive">numbers</stylevariable>
<stylevariable color="clNavy">symbols</stylevariable>
<stylevariable color="clNavy">identifiers</stylevariable>
<stylevariable color="clgray" italic="yes">htmlcomments</stylevariable>
<stylevariable bold="yes">htmlentities</stylevariable>
<stylevariable color="clblue">htmltags</stylevariable>
<stylevariable color="clred">htmllinks</stylevariable>
<stylevariable color="clteal">htmlimages</stylevariable>
<stylevariable color="clmaroon">htmlstrings</stylevariable>
<stylevariable color="clgreen" italic="yes">htmlmetadata</stylevariable>
</stylevariables>
<states>
<state style="asp">ASP</state>
<state levels="3" style="comments">Comments</state>
<state levels="3" style="strings">String</state>
<state style="htmlcomments">htmlComments</state>
<state style="htmlentities">htmlEntities</state>
<state style="htmltags">htmlHTMLTags</state>
<state style="htmllinks">htmlLinkTags</state>
<state style="htmlimages">htmlImageTags</state>
<state style="htmlstrings">htmlStrings</state>
<state style="htmlmetadata">htmlMeta</state>
<state style="htmlmetadata">htmlCData</state>
</states>
<rules><!-- asp -->
<rule from="Normal" to="asp" style="asp"><%</rule>
<rule from="ASP" to="Normal" style="asp">%></rule><!-- Comments -->
<rule from="ASP" to="Comments1" style="comments">'</rule>
<rule from="ASP" to="Comments1" style="comments">REM </rule><!-- Strings -->
<rule from="ASP" to="String1" style="strings">""</rule><!-- Identifiers -->
<rule from="asp" to="asp" style="identifiers">[a-z_A-Z][a-z_A-Z0-9]*</rule><!-- Keywords -->
<rule from="asp" to="asp" style="keywords">'Response'</rule>
<rule from="asp" to="asp" style="keywords">'Request'</rule>
<rule from="asp" to="asp" style="keywords">'Server'</rule>
<rule from="asp" to="asp" style="keywords">'Session'</rule>
<rule from="asp" to="asp" style="keywords">'Application'</rule>
<rule from="asp" to="asp" style="keywords">'Class'</rule>
<rule from="asp" to="asp" style="keywords">'For'</rule>
<rule from="asp" to="asp" style="keywords">'Each'</rule>
<rule from="asp" to="asp" style="keywords">'Step'</rule>
<rule from="asp" to="asp" style="keywords">'Next'</rule>
<rule from="asp" to="asp" style="keywords">'If'</rule>
<rule from="asp" to="asp" style="keywords">'Then'</rule>
<rule from="asp" to="asp" style="keywords">'Else'</rule>
<rule from="asp" to="asp" style="keywords">'ElseIf'</rule>
<rule from="asp" to="asp" style="keywords">'Select'</rule>
<rule from="asp" to="asp" style="keywords">'Case'</rule>
<rule from="asp" to="asp" style="keywords">'Do'</rule>
<rule from="asp" to="asp" style="keywords">'While'</rule>
<rule from="asp" to="asp" style="keywords">'Loop'</rule>
<rule from="asp" to="asp" style="keywords">'Private'</rule>
<rule from="asp" to="asp" style="keywords">'Public'</rule>
<rule from="asp" to="asp" style="keywords">'Sub'</rule>
<rule from="asp" to="asp" style="keywords">'Function'</rule>
<rule from="asp" to="asp" style="keywords">'Option'</rule>
<rule from="asp" to="asp" style="keywords">'Explicit'</rule>
<rule from="asp" to="asp" style="keywords">'String'</rule><!-- Symbols -->
<rule from="asp" to="asp" style="symbols">()^*-+=/&^%\</rule><!-- Numbers -->
<rule from="asp" to="asp" style="numbers">[0-9][0-9]*</rule>
<rule from="asp" to="asp" style="numbers">0x[0-9A-F]+</rule>
<rule from="asp" to="asp" style="numbers">[1-9][0-9]*\.[0-9]*</rule>
<rule from="asp" to="asp" style="numbers">[1-9][0-9]*{\.[0-9]+}|e{[\+\-]}|[0-9]+</rule><!-- HTML Tags -->
<rule from="Normal" to="htmlHTMLTags" style="htmltags"><</rule>
<rule from="htmlHTMLTags" to="Normal" style="htmltags">></rule>
<rule from="Normal" to="asp" style="asp"><%</rule>
<rule from="asp" to="Normal" style="asp">%></rule><!-- Link Tags -->
<rule from="Normal" to="htmlLinkTags" style="htmllinks"><a#32</rule>
<rule from="htmlLinkTags" to="Normal" style="htmllinks">></rule>
<rule from="Normal" to="Normal" style="htmllinks"></rule><!-- Image Tags -->
<rule from="Normal" to="htmlImageTags" style="htmlimages"><img#32</rule>
<rule from="htmlImageTags" to="Normal" style="htmlimages">></rule><!-- Strings -->
<rule from="htmlHTMLTags" to="htmlStrings" style="htmlstrings">\"</rule>
<rule from="htmlStrings" to="htmlHTMLTags" style="htmlstrings">\"</rule><!-- Entities -->
<rule from="Normal" to="htmlEntities" style="htmlentities">&</rule>
<rule from="htmlEntities" to="Normal" style="none">#32</rule><!-- Meta Tags -->
<rule from="Normal" to="htmlMeta" style="htmlmetadata"><\!</rule>
<rule from="htmlMeta" to="Normal" style="htmlmetadata">></rule><!-- CDATA -->
<rule from="Normal" to="htmlCData" style="htmlmetadata"><\!\[</rule>
<rule from="htmlCData" to="Normal" style="htmlmetadata">\]></rule><!-- Comments -->
<rule from="Normal" to="htmlComments" style="htmlcomments"><\!--</rule>
<rule from="htmlComments" to="Normal" style="htmlcomments">--></rule></rules>
</araneaedocumenthighlighter>