Squirrel
The programming language
Welcome to Squirrel
Sign in
|
Join
|
Help
in
Stuff (forum)
Forum (group)
(Entire Site)
Search
Home
Forums
Squirrel
»
Forum
»
Stuff
»
Re: Highlighting
Highlighting
Last post 10-06-2009, 11:39 PM by
Juppi
. 8 replies.
Sort Posts:
Oldest to newest
Newest to oldest
Previous
Next
11-30-2008, 6:09 AM
2899
gaynorg
Joined on 09-10-2008
Posts 2
Highlighting
Reply
Quote
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.
Report abuse
12-01-2008, 12:00 AM
2901
in reply to
2899
Kamaitati
Joined on 01-13-2006
Posts 62
Re: Highlighting
Reply
Quote
In nodepad++ you can use Java or JavaScript highlighting for Squirrel
Report abuse
12-01-2008, 11:02 AM
2907
in reply to
2899
atai
Joined on 08-16-2005
Posts 125
Re: Highlighting
Reply
Quote
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.
Report abuse
02-13-2009, 12:18 AM
3032
in reply to
2899
exhu
Joined on 02-13-2009
Posts 5
Re: Highlighting
Reply
Quote
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
Report abuse
02-13-2009, 12:20 AM
3033
in reply to
3032
exhu
Joined on 02-13-2009
Posts 5
Re: Highlighting
Reply
Quote
can't paste xml here it gets screwed up. Please specify where to send/upload my xml highlighting file here.
Report abuse
02-13-2009, 2:00 AM
3036
in reply to
3033
exhu
Joined on 02-13-2009
Posts 5
Re: Highlighting
Reply
Quote
Another try (put this into userDefineLang.xml in your "C:\Documents and Settings\USER_NAME\Application Data\Notepad++\"):
<NotepadPlus>
<UserLang name="squirrel" ext="nut">
<Settings>
<Global caseIgnored="no" />
<TreatAsSymbol comment="yes" commentLine="yes" />
<Prefix words1="no" words2="no" words3="no" words4="no" />
</Settings>
<KeywordLists>
<Keywords name="Delimiters">&quot;&apos;0&quot;&apos;0</Keywords>
<Keywords name="Folder+">{ </Keywords>
<Keywords name="Folder-">} </Keywords>
<Keywords name="Operators">- ! &quot; % &amp; ( ) , . : ; ? @ [ ] ^ | ~ + &lt; = &gt;</Keywords>
<Keywords name="Comment"> 1/* 2*/ 0//</Keywords>
<Keywords name="Words1">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</Keywords>
<Keywords name="Words2"></Keywords>
<Keywords name="Words3"></Keywords>
<Keywords name="Words4"></Keywords>
</KeywordLists>
<Styles>
<WordsStyle name="DEFAULT" styleID="11" fgColor="000000" bgColor="FFFFFF" fontName="Courier New" fontStyle="0" />
<WordsStyle name="FOLDEROPEN" styleID="12" fgColor="000000" bgColor="FFFFFF" fontName="Courier New" fontStyle="1" fontSize="8" />
<WordsStyle name="FOLDERCLOSE" styleID="13" fgColor="000000" bgColor="FFFFFF" fontName="Courier New" fontStyle="1" />
<WordsStyle name="KEYWORD1" styleID="5" fgColor="0000FF" bgColor="FFFFFF" fontName="Courier New" fontStyle="1" />
<WordsStyle name="KEYWORD2" styleID="6" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="KEYWORD3" styleID="7" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="KEYWORD4" styleID="8" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="COMMENT" styleID="1" fgColor="008000" bgColor="FFFFFF" fontName="Courier New" fontStyle="2" />
<WordsStyle name="COMMENT LINE" styleID="2" fgColor="008000" bgColor="FFFFFF" fontName="Courier New" fontStyle="2" />
<WordsStyle name="NUMBER" styleID="4" fgColor="0080C0" bgColor="FFFFFF" fontName="Courier New" fontStyle="0" />
<WordsStyle name="OPERATOR" styleID="10" fgColor="000000" bgColor="FFFFFF" fontName="Courier New" fontStyle="1" />
<WordsStyle name="DELIMINER1" styleID="14" fgColor="0080FF" bgColor="FFFFFF" fontName="Courier New" fontStyle="0" />
<WordsStyle name="DELIMINER2" styleID="15" fgColor="0080C0" bgColor="FFFFFF" fontName="Courier New" fontStyle="0" />
<WordsStyle name="DELIMINER3" styleID="16" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
</Styles>
</UserLang>
</NotepadPlus>
Report abuse
06-07-2009, 4:07 PM
3298
in reply to
3036
Exponent
Joined on 09-14-2005
Posts 23
Re: Highlighting
Reply
Quote
Sorry to bump this old thread, but I've uploaded my version of the squirrel language defs here:
http://pastebin.com/f599acf1e
Report abuse
09-28-2009, 2:17 PM
3533
in reply to
2899
JasonP
Joined on 05-21-2006
Euclid, OH
Posts 25
Re: Highlighting
Reply
Quote
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
Report abuse
10-06-2009, 11:39 PM
3546
in reply to
3533
Juppi
Joined on 04-01-2009
Posts 1
Re: Highlighting
Reply
Quote
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?
Report abuse
Alberto Demichelis 2003-2008