Squirrel

The programming language
Welcome to Squirrel Sign in | Join | Help
in Search

Highlighting

Last post 10-06-2009, 11:39 PM by Juppi. 8 replies.
Sort Posts: Previous Next
  •  11-30-2008, 6:09 AM 2899

    Highlighting

    Will someone please fix the really 5hit highlighting and no collapsing in eclipse it has been driving me insane.

    Or write something for notepad++ so i can have squirrel files displayed properly

    Crappy development experience is making me hate this new language and people liking it. is more important for its growth than anything.
  •  12-01-2008, 12:00 AM 2901 in reply to 2899

    Re: Highlighting

    In nodepad++ you can use Java or JavaScript highlighting for Squirrel
  •  12-01-2008, 11:02 AM 2907 in reply to 2899

    Re: Highlighting

    What does highlighting have to do with the language itself?

    You do know that different people write the editors, right?

    You really should learn how to highlight languages yourself.
  •  02-13-2009, 12:18 AM 3032 in reply to 2899

    Re: Highlighting

    This is my userDefineLang.xml in notepad++ 5.2: "'0"'0 { } - ! " % & ( ) , . : ; ? @ [ ] ^ | ~ + < = > 1/* 2*/ 0// break const extends null try vargc case default for resume typeof vargv catch delegate function return while instanceof class delete if switch parent true clone else in this yield false continue enum local throw constructor static foreach
  •  02-13-2009, 12:20 AM 3033 in reply to 3032

    Re: Highlighting

    can't paste xml here it gets screwed up. Please specify where to send/upload my xml highlighting file here.
  •  02-13-2009, 2:00 AM 3036 in reply to 3033

    Re: Highlighting

    Another try (put this into userDefineLang.xml in your "C:\Documents and Settings\USER_NAME\Application Data\Notepad++\"):

    &lt;NotepadPlus&gt;
    &lt;UserLang name=&quot;squirrel&quot; ext=&quot;nut&quot;&gt;
    &lt;Settings&gt;
    &lt;Global caseIgnored=&quot;no&quot; /&gt;
    &lt;TreatAsSymbol comment=&quot;yes&quot; commentLine=&quot;yes&quot; /&gt;
    &lt;Prefix words1=&quot;no&quot; words2=&quot;no&quot; words3=&quot;no&quot; words4=&quot;no&quot; /&gt;
    &lt;/Settings&gt;
    &lt;KeywordLists&gt;
    &lt;Keywords name=&quot;Delimiters&quot;&gt;&amp;quot;&amp;apos;0&amp;quot;&amp;apos;0&lt;/Keywords&gt;
    &lt;Keywords name=&quot;Folder+&quot;&gt;{ &lt;/Keywords&gt;
    &lt;Keywords name=&quot;Folder-&quot;&gt;} &lt;/Keywords&gt;
    &lt;Keywords name=&quot;Operators&quot;&gt;- ! &amp;quot; % &amp;amp; ( ) , . : ; ? @ [ ] ^ | ~ + &amp;lt; = &amp;gt;&lt;/Keywords&gt;
    &lt;Keywords name=&quot;Comment&quot;&gt; 1/* 2*/ 0//&lt;/Keywords&gt;
    &lt;Keywords name=&quot;Words1&quot;&gt;break const extends null try vargc case default for resume typeof vargv catch delegate function return while instanceof class delete if switch parent true clone else in this yield false continue enum local throw constructor static foreach&lt;/Keywords&gt;
    &lt;Keywords name=&quot;Words2&quot;&gt;&lt;/Keywords&gt;
    &lt;Keywords name=&quot;Words3&quot;&gt;&lt;/Keywords&gt;
    &lt;Keywords name=&quot;Words4&quot;&gt;&lt;/Keywords&gt;
    &lt;/KeywordLists&gt;
    &lt;Styles&gt;
    &lt;WordsStyle name=&quot;DEFAULT&quot; styleID=&quot;11&quot; fgColor=&quot;000000&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;Courier New&quot; fontStyle=&quot;0&quot; /&gt;
    &lt;WordsStyle name=&quot;FOLDEROPEN&quot; styleID=&quot;12&quot; fgColor=&quot;000000&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;Courier New&quot; fontStyle=&quot;1&quot; fontSize=&quot;8&quot; /&gt;
    &lt;WordsStyle name=&quot;FOLDERCLOSE&quot; styleID=&quot;13&quot; fgColor=&quot;000000&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;Courier New&quot; fontStyle=&quot;1&quot; /&gt;
    &lt;WordsStyle name=&quot;KEYWORD1&quot; styleID=&quot;5&quot; fgColor=&quot;0000FF&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;Courier New&quot; fontStyle=&quot;1&quot; /&gt;
    &lt;WordsStyle name=&quot;KEYWORD2&quot; styleID=&quot;6&quot; fgColor=&quot;000000&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;&quot; fontStyle=&quot;0&quot; /&gt;
    &lt;WordsStyle name=&quot;KEYWORD3&quot; styleID=&quot;7&quot; fgColor=&quot;000000&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;&quot; fontStyle=&quot;0&quot; /&gt;
    &lt;WordsStyle name=&quot;KEYWORD4&quot; styleID=&quot;8&quot; fgColor=&quot;000000&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;&quot; fontStyle=&quot;0&quot; /&gt;
    &lt;WordsStyle name=&quot;COMMENT&quot; styleID=&quot;1&quot; fgColor=&quot;008000&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;Courier New&quot; fontStyle=&quot;2&quot; /&gt;
    &lt;WordsStyle name=&quot;COMMENT LINE&quot; styleID=&quot;2&quot; fgColor=&quot;008000&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;Courier New&quot; fontStyle=&quot;2&quot; /&gt;
    &lt;WordsStyle name=&quot;NUMBER&quot; styleID=&quot;4&quot; fgColor=&quot;0080C0&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;Courier New&quot; fontStyle=&quot;0&quot; /&gt;
    &lt;WordsStyle name=&quot;OPERATOR&quot; styleID=&quot;10&quot; fgColor=&quot;000000&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;Courier New&quot; fontStyle=&quot;1&quot; /&gt;
    &lt;WordsStyle name=&quot;DELIMINER1&quot; styleID=&quot;14&quot; fgColor=&quot;0080FF&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;Courier New&quot; fontStyle=&quot;0&quot; /&gt;
    &lt;WordsStyle name=&quot;DELIMINER2&quot; styleID=&quot;15&quot; fgColor=&quot;0080C0&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;Courier New&quot; fontStyle=&quot;0&quot; /&gt;
    &lt;WordsStyle name=&quot;DELIMINER3&quot; styleID=&quot;16&quot; fgColor=&quot;000000&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;&quot; fontStyle=&quot;0&quot; /&gt;
    &lt;/Styles&gt;
    &lt;/UserLang&gt;
    &lt;/NotepadPlus&gt;
  •  06-07-2009, 4:07 PM 3298 in reply to 3036

    Re: Highlighting

    Sorry to bump this old thread, but I've uploaded my version of the squirrel language defs here:
    http://pastebin.com/f599acf1e
  •  09-28-2009, 2:17 PM 3533 in reply to 2899

    Re: Highlighting

    I use SciTE, so I finally wrote a .properties file for squirrel highlighting. It could probably be nicer, but it handles all the documented keywords readily enough and otherwise falls back on the cpp lexer. Here is a link to the file: sqc.properties
  •  10-06-2009, 11:39 PM 3546 in reply to 3533

    Re: Highlighting

    Related to SQDev, is there ANY way to change the syntax highlighting colours? I've been trying to change the colouring for squirrel keywords, string colours etc. but havent found the right option from eclipse preferences yet. Is changing these settings even possible or am i just failing to see an obvious switch somewhere?
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems