Results 1 to 4 of 4
  1. #1
    ♪~ ᕕ(ᐛ)ᕗ's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Uterus
    Posts
    8,782
    Reputation
    769
    Thanks
    1,846
    My Mood
    Doh

    Quick Custom Highlight with the lastes GSC Compiler

    Well, in the newest version of GSC Compiler I used a special tool that allows you to make a custom highlight if you want...

    The highlight file is usually included into the .dll, which will allow easier updates. But today I'm gonna show you how to make your own Highlight.

    Well, there is the original code for the custom highlight:
    Code:
    <?xml version="1.0"?>
    <!-- Syntax Definition For GSC Script By Play&Win [eliopkas@hotmail.com] -->
    
    <SyntaxDefinition name = "GSC" extensions = ".gsc">
    	
    	<Environment>
    		<Custom name="TypeReference" bold="false" italic="false" color="#04ABAB" />
    		<Custom name="UnknownEntity" bold="false" italic="false" color="#AB0404" />
    	</Environment>
    	
    	<Properties>
        <Property name="LineComment" value="//"/>
        <Property name="BlockCommentBegin" value="/*"/>
        <Property name="BlockCommentEnd" value="*/"/>
      </Properties>
    	
    	<Digits name = "Digits" bold = "false" italic = "false" color = "DarkRed"/>
    	
    	<RuleSets>
    		<RuleSet ignorecase="false">
    			<Delimiters>&amp;&lt;&gt;~!%^*()-+=|\/{}[]:;"' ,	.?</Delimiters>
    			
    			<Span name = "DocLineComment" rule = "DocCommentSet" bold = "false" italic = "false" color = "Green" stopateol = "true" noescapesequences="true">
    				<Begin bold = "false" italic = "false" color = "Gray">///@!/@</Begin>
    			</Span>
    			
    			<Span name = "LineComment" rule = "CommentMarkerSet" bold = "false" italic = "false" color = "Green" stopateol = "true">
    				<Begin>//@!/@</Begin>
    			</Span>
    			<Span name = "LineComment2" rule = "CommentMarkerSet" bold = "false" italic = "false" color = "Green" stopateol = "true">
    				<Begin>////</Begin>
    			</Span>
    			
    			<Span name = "BlockComment" rule = "CommentMarkerSet" bold = "false" italic = "false" color = "Green" stopateol = "false">
    				<Begin>/*</Begin>
    				<End>*/</End>
    			</Span>
    			
    			<Span name = "String" bold = "false" italic = "false" color = "DarkRed" stopateol = "true" escapecharacter="\">
    				<Begin>"</Begin>
    				<End>"</End>
    			</Span>
    			
    			<Span name = "MultiLineString" bold = "false" italic = "false" color = "DarkRed" stopateol = "false" escapecharacter='"'>
    				<Begin>@@"</Begin>
    				<End>"</End>
    			</Span>
    			
    			<Span name = "Char" bold = "false" italic = "false" color = "DarkRed" stopateol = "true" escapecharacter="\">
    				<Begin>&apos;</Begin>
    				<End>&apos;</End>
    			</Span>
    			
          <!-- Functions
    			<MarkPrevious bold = "false" italic = "false" color = "DarkCyan">(</MarkPrevious>
          -->
    			
    			<KeyWords name = "Punctuation" bold = "false" italic = "false" color = "Black">
    				<Key word = "?" />
    				<Key word = "," />
    				<Key word = "." />
    				<Key word = ";" />
    				<Key word = "(" />
    				<Key word = ")" />
    				<Key word = "[" />
    				<Key word = "]" />
    				<Key word = "{" />
    				<Key word = "}" />
    				<Key word = "+" />
    				<Key word = "-" />
    				<Key word = "/" />
    				<Key word = "%" />
    				<Key word = "*" />
    				<Key word = "&lt;" />
    				<Key word = "&gt;" />
    				<Key word = "^" />
    				<Key word = "=" />
    				<Key word = "~" />
    				<Key word = "!" />
    				<Key word = "|" />
    				<Key word = "&amp;" />
    			</KeyWords>
    			
    			<KeyWords name = "AccessKeywords" bold="false" italic="false" color="Blue">
    				<Key word = "level" />
    				<Key word = "self" />
    			</KeyWords>
    			
    			<KeyWords name = "OperatorKeywords" bold="false" italic="false" color="Blue">
    				<Key word = "is" />
    			</KeyWords>
    			
    			
    			<KeyWords name = "SelectionStatements" bold="false" italic="false" color="Blue">
    				<Key word = "else" />
    				<Key word = "if" />
    				<Key word = "switch" />
    				<Key word = "case" />
    				<Key word = "default" />
    			</KeyWords>
    			
    			<KeyWords name = "IterationStatements" bold="false" italic="false" color="Blue">
    				<Key word = "do" />
    				<Key word = "for" />
    				<Key word = "foreach" />
    				<Key word = "in" />
    				<Key word = "while" />
    			</KeyWords>
    			
    			<KeyWords name = "JumpStatements" bold="false" italic="false" color="Blue">
    				<Key word = "break" />
    				<Key word = "continue" />
    				<Key word = "goto" />
    				<Key word = "return" />
    			</KeyWords>
    			
    			<KeyWords name = "ContextKeywords" bold="false" italic="false" color="Blue">
    				<Key word = "yield" />
    				<Key word = "partial" />
    				<Key word = "global" />
    				<Key word = "where" />
    				<Key word = "select" />
    				<Key word = "group" />
    				<Key word = "by" />
    				<Key word = "into" />
    				<Key word = "from" />
    				<Key word = "ascending" />
    				<Key word = "descending" />
    				<Key word = "orderby" />
    				<Key word = "let" />
    				<Key word = "join" />
    				<Key word = "on" />
    				<Key word = "equals" />
    				<Key word = "var" />
    			</KeyWords>
    			
    			<KeyWords name = "ExceptionHandlingStatements" bold="false" italic="false" color="Blue">
    				<Key word = "catch" />
    			</KeyWords>
    			
    			<KeyWords name = "CheckedUncheckedStatements" bold="false" italic="false" color="Blue">
    				<Key word = "checked" />
    				<Key word = "unchecked" />
    			</KeyWords>
    			
    			<KeyWords name = "NameSpaces" bold="false" italic="false" color="Blue">
    				<Key word = "#include" />
                                    <Key word = "self" />
    			</KeyWords>
    			
    			<KeyWords name = "Literals" bold="false" italic="false" color="Blue">
            <Key word = "true" />
            <Key word = "false" />
            <Key word = "null" />
            <Key word = "value" />
          </KeyWords>
    
          <KeyWords name = "PreprocessorDirectives" bold="false" italic="false" color="Blue">
            <Key word = "#if" />
            <Key word = "#else" />
            <Key word = "#elif" />
            <Key word = "#endif" />
          </KeyWords>
        </RuleSet>
    		
    		<RuleSet name = "CommentMarkerSet" ignorecase = "false">
    			<Delimiters>&lt;&gt;~!@%^*()-+=|\#/{}[]:;"' ,	.?</Delimiters>
    			<KeyWords name = "ErrorWords" bold="true" italic="false" color="Red">
    				<Key word = "TODO" />
    				<Key word = "FIXME" />
    			</KeyWords>
    			<KeyWords name = "WarningWords" bold="true" italic="false" color="#EEE0E000">
    				<Key word = "HACK" />
    				<Key word = "UNDONE" />
    			</KeyWords>
    		</RuleSet>
    		
    		<RuleSet name = "DocCommentSet" ignorecase = "false">
    			<Delimiters>&lt;&gt;~!@%^*()-+=|\#/{}[]:;"' ,	.?</Delimiters>
    			
    			<Span name = "XmlTag" rule = "XmlDocSet" bold = "false" italic = "false" color = "Gray" stopateol = "true">
    				<Begin>&lt;</Begin>
    				<End>&gt;</End>
    			</Span>
    			
    			<KeyWords name = "ErrorWords" bold="true" italic="false" color="Red">
    				<Key word = "TODO" />
    				<Key word = "FIXME" />
    			</KeyWords>
    			
    			<KeyWords name = "WarningWords" bold="true" italic="false" color="#EEE0E000">
    				<Key word = "HACK" />
    				<Key word = "UNDONE" />
    			</KeyWords>
    		</RuleSet>
    				
    		<RuleSet name = "XmlDocSet" ignorecase = "false">
    			<Delimiters>&lt;&gt;~!@%^*()-+=|\#/{}[]:;"' ,	.?</Delimiters>
    			
    			<Span name = "String" bold = "false" italic = "false" color = "Gray" stopateol = "true">
    				<Begin>"</Begin>
    				<End>"</End>
    			</Span>
    			
    			
    			<KeyWords name = "Punctuation" bold = "false" italic = "false" color = "Gray">
    				<Key word = "/" />
    				<Key word = "|" />
    				<Key word = "=" />
    			</KeyWords>
    			
            <Key word = "inheritdoc" />
    
            <Key word = "type" />
    				<Key word = "name" />
            <Key word = "overloads" />
    			</KeyWords>
    		</RuleSet>
    	</RuleSets>
    </SyntaxDefinition>
    This is just a little of what you can do... Actually you can set your own highlight color, custom keywords to highlight, and even more!

    Now go and release your own highlight.

    REMEMBER!!! IF YOU WANT THAT YOUR HIGHLIGHT, YOU SHOULD SEND ME THE FILE (yourname.xshd), WITH YOUR HIGHLIGHT CODE IN IT. THEN I'M GONNA SEND YOU THE .DLL FILE TO PLACE IN YOUR FOLDER.

    Thanks and enjoy =)


  2. The Following 2 Users Say Thank You to ♪~ ᕕ(ᐛ)ᕗ For This Useful Post:

    House (03-21-2011),JamesA1994 (03-22-2011)

  3. #2
    House's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Posts
    2,990
    Reputation
    223
    Thanks
    8,978
    My Mood
    Cynical
    nice man, thanks, might use it in mah tool

  4. #3
    NoLim1t's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    ďṉ τhε ṡќ˙ <3
    Posts
    84
    Reputation
    10
    Thanks
    26
    My Mood
    Cheerful
    thanks ...

  5. #4
    ♪~ ᕕ(ᐛ)ᕗ's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Uterus
    Posts
    8,782
    Reputation
    769
    Thanks
    1,846
    My Mood
    Doh
    No problem haha ^^