• Notepad++ GLua Highlighter
    30 replies, posted
A new thread so the link is in the OP. Download: [url]https://raw.githubusercontent.com/robotboy655/robotboy655.github.io/master/GmodLua.xml[/url] Installation: 1) Download Notepad++ 2) Go to Plugins > Plugin Manager > Show Plugin Manager 3) Scroll down and find "GMod Lua Lexer", check the box and hit install. 4) When prompted, select Yes and restart Notepad++ 5) Navigate to APPDATA/ROAMING ( Start > Run ( Or Windows Key + R ) > %AppData% ) 6) Open the Notepad++ Folder 7) Open Plugins 8) Open Config 9) Locate the 'GModLua.xml' file inside 10) Place the downloaded file inside and OVERWRITE the old one 11) Restart Notepad++ Latest update: 23 February 2016
OOOOMMMMGGGG NIIIICEEEE THANKS BABE!! :rock: [sp] No seriously, I want to fuck you [/sp]
Glorious net highlighting. You wouldn't believe the trouble I have spelling Receive. I thought this was done before though (an update from the G10 one). Regardless, thanks a lot. p.s. NP++ >> Sublime
Thank you so much <3
I love you <3
Oh yiss :v: Wonderfulll
I love you, have my babies!
Looks good Rubat
Thank you very much, it's much appreciated!
Thanks mate, needed an updated one!
Rubat, you are my hero. Thanks!
Is there an easy way to change the [URL="http://puu.sh/i9SyK.png"]highlighting based on theme[/URL]?
[QUOTE=code_gs;47862030]Is there an easy way to change the [URL="http://puu.sh/i9SyK.png"]highlighting based on theme[/URL]?[/QUOTE] one of the few giant downsides to np++, someone on the old thread had a zenburn looking one up but i think it's outdated compared to this
Needed this!! Epic! :D
[code] <LexerType name="Gmod Lua" desc="Gmod Lua" excluded="no" ext=""> <WordsStyle name="DEFAULT" styleID="0" fgColor="E0E2E4" bgColor="293134" fontName="" fontStyle="0" fontSize="" /> <WordsStyle name="LUA COMMENT BLOCKS" styleID="1" fgColor="6C788C" bgColor="293134" fontName="" fontStyle="0" fontSize="" /> <WordsStyle name="CPP COMMENT BLOCKS" styleID="2" fgColor="6C788C" bgColor="293134" fontName="" fontStyle="0" fontSize="" /> <WordsStyle name="LUA COMMENT LINES" styleID="3" fgColor="66747B" bgColor="293134" fontName="" fontStyle="0" fontSize="" /> <WordsStyle name="CPP COMMENT LINES" styleID="4" fgColor="66747B" bgColor="293134" fontName="" fontStyle="0" fontSize="" /> <WordsStyle name="NUMBERS" styleID="5" fgColor="FFCD22" bgColor="293134" fontName="" fontStyle="0" fontSize="" /> <WordsStyle name="OPERATORS" styleID="6" fgColor="E8E2B7" bgColor="293134" fontName="" fontStyle="0" fontSize="" /> <WordsStyle name="STRINGS" styleID="8" fgColor="EC7600" bgColor="293134" fontName="" fontStyle="0" fontSize="" /> <WordsStyle name="CHARACTERS" styleID="9" fgColor="FF8409" bgColor="293134" fontName="" fontStyle="0" fontSize="" /> <WordsStyle name="LITERAL STRINGS" styleID="11" fgColor="C29F56" bgColor="293134" fontName="" fontStyle="0" fontSize="" /> <WordsStyle name="INSTRUCTION WORDS" styleID="20" fgColor="93C763" bgColor="293134" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> <WordsStyle name="GLOBAL CONSTANTS" styleID="21" fgColor="808000" bgColor="293134" fontName="" fontStyle="0" fontSize="" keywordClass="1" /> <WordsStyle name="GLOBAL FUNCTIONS" styleID="22" fgColor="0080C0" bgColor="293134" fontName="" fontStyle="0" fontSize="" keywordClass="2" /> <WordsStyle name="SCRIPTED VARIABLES" styleID="23" fgColor="400080" bgColor="293134" fontName="" fontStyle="2" fontSize="" keywordClass="3" /> <WordsStyle name="SCRIPTED FUNCTIONS" styleID="24" fgColor="0000A0" bgColor="293134" fontName="" fontStyle="0" fontSize="" keywordClass="4" /> <WordsStyle name="LIBRARIES" styleID="25" fgColor="678CB1" bgColor="293134" fontName="" fontStyle="0" fontSize="" keywordClass="instre2" /> <WordsStyle name="LIBRARY CALLS" styleID="26" fgColor="678CB1" bgColor="293134" fontName="" fontStyle="0" fontSize="" keywordClass="instre2" /> <WordsStyle name="OBJECT FUNCTIONS" styleID="27" fgColor="804040" bgColor="293134" fontName="" fontStyle="1" fontSize="" keywordClass="7" /> <WordsStyle name="RED FLAGS" styleID="28" fgColor="FF0000" bgColor="293134" fontName="" fontStyle="0" fontSize="" keywordClass="8" /> </LexerType> [/code] Here's the obsidian style you can overwrite the plugin's style with this. This is just to get you started. I had to make some changes and ended up with a style I'm comfortable with.
Updated according to latest update. Download link is above.
Updated with latest vehicle/weapon functions and added the string methods. ( ("test"):len() )
[QUOTE=Noi;48721639]Ehh, can we have gmod wiki json dumps or something with all that syntax stuff?[/QUOTE] You already can via the MediaWiki API.
Just when I got used to sublime.
[QUOTE=Smt;47862288]one of the few giant downsides to np++, someone on the old thread had a zenburn looking one up but i think it's outdated compared to this[/QUOTE] Hello, I was the one that created the Zenburn scheme on the old thread. I have not been actively using Gmod Lua lately but I noticed that there has been some demand for an alternative to the default colors. So, today I took it upon myself to adapt the current lexer to make use of the Solarized color scheme. I hope that you enjoy! P.S. Let me know your thoughts about the color assignments; I may end up tweaking them a bit. [code] <LexerType name="Gmod Lua" desc="Gmod Lua" excluded="no" ext=""> <WordsStyle name="DEFAULT" styleID="0" fgColor="839496" bgColor="002B36" fontName="" fontStyle="0" fontSize="" /> <WordsStyle name="LUA COMMENT BLOCKS" styleID="1" fgColor="586E75" bgColor="002B36" fontName="" fontStyle="0" fontSize="" /> <WordsStyle name="CPP COMMENT BLOCKS" styleID="2" fgColor="586E75" bgColor="002B36" fontName="" fontStyle="0" fontSize="" /> <WordsStyle name="LUA COMMENT LINES" styleID="3" fgColor="586E75" bgColor="002B36" fontName="" fontStyle="0" fontSize="" /> <WordsStyle name="CPP COMMENT LINES" styleID="4" fgColor="586E75" bgColor="002B36" fontName="" fontStyle="0" fontSize="" /> <WordsStyle name="NUMBERS" styleID="5" fgColor="2AA198" bgColor="002B36" fontName="" fontStyle="0" fontSize="" /> <WordsStyle name="OPERATORS" styleID="6" fgColor="93A1A1" bgColor="002B36" fontName="" fontStyle="1" fontSize="" /> <WordsStyle name="STRINGS" styleID="8" fgColor="2AA198" bgColor="002B36" fontName="" fontStyle="0" fontSize="" /> <WordsStyle name="CHARACTERS" styleID="9" fgColor="2AA198" bgColor="002B36" fontName="" fontStyle="0" fontSize="" /> <WordsStyle name="LITERAL STRINGS" styleID="11" fgColor="2AA198" bgColor="002B36" fontName="" fontStyle="0" fontSize="" /> <!-- name is what shows up in the styler config for that style. --> <!-- styleID must be 20 through 29 and must be 20 plus the value of the keywordClass. --> <!-- keywordClass can be a number between 0 and 8 and corresponds with the group of Keywords above. --> <WordsStyle name="INSTRUCTION WORDS" styleID="20" fgColor="859900" bgColor="002B36" fontName="" fontStyle="1" fontSize="" keywordClass="0" /> <WordsStyle name="GLOBAL CONSTANTS" styleID="21" fgColor="268BD2" bgColor="002B36" fontName="" fontStyle="0" fontSize="" keywordClass="1" /> <WordsStyle name="GLOBAL FUNCTIONS" styleID="22" fgColor="CB4B16" bgColor="002B36" fontName="" fontStyle="0" fontSize="" keywordClass="2" /> <WordsStyle name="SCRIPTED VARIABLES" styleID="23" fgColor="D33682" bgColor="002B36" fontName="" fontStyle="2" fontSize="" keywordClass="3" /> <WordsStyle name="SCRIPTED FUNCTIONS" styleID="24" fgColor="6C71C4" bgColor="002B36" fontName="" fontStyle="0" fontSize="" keywordClass="4" /> <WordsStyle name="LIBRARIES" styleID="25" fgColor="859900" bgColor="002B36" fontName="" fontStyle="0" fontSize="" keywordClass="5" /> <WordsStyle name="LIBRARY CALLS" styleID="26" fgColor="859900" bgColor="002B36" fontName="" fontStyle="0" fontSize="" keywordClass="6" /> <WordsStyle name="OBJECT FUNCTIONS" styleID="27" fgColor="B58900" bgColor="002B36" fontName="" fontStyle="1" fontSize="" keywordClass="7" /> <WordsStyle name="RED FLAGS" styleID="28" fgColor="DC322F" bgColor="002B36" fontName="" fontStyle="0" fontSize="" keywordClass="8" /> </LexerType> [/code] Edit: To install, navigate to where your copy of GmodLua.xml is stored and edit the file. You may wish to create a backup copy before you continue. Scroll down until you find the section marked "<LexerStyles>" and replace the text underneath with the text that I provided above. If anyone finds these instructions too difficult, let me know and I will upload the entire file somewhere so that you can just replace GmodLua.xml with my custom version.
Updated for the latest Garry's Mod update as of 23 Feb 2016.
[QUOTE=Robotboy655;49798299]Updated for the latest Garry's Mod update as of 23 Feb 2016.[/QUOTE] I love you
Moved the file to GitHub: [url]https://raw.githubusercontent.com/robotboy655/robotboy655.github.io/master/GmodLua.xml[/url] This version should contain all the latest stuff from DevBranch (and last couple of update).
[QUOTE=Robotboy655;50993802]Moved the file to GitHub: [url]https://raw.githubusercontent.com/robotboy655/robotboy655.github.io/master/GmodLua.xml[/url] This version should contain all the latest stuff from DevBranch (and last couple of update).[/QUOTE] Instead of sticking stuff in a dedicated "random" repository like that, you could create GitHub gists, which are actually git repos you can push and pull to and are nice for random files, such as [url]https://gist.github.com/bmwalters/6d4cc5499378711de0f46028e565cc8d[/url]
[QUOTE=Robotboy655;50993802]Moved the file to GitHub: [url]https://raw.githubusercontent.com/robotboy655/robotboy655.github.io/master/GmodLua.xml[/url] This version should contain all the latest stuff from DevBranch (and last couple of update).[/QUOTE] Man, you are my hero ! Edit: What's with the black style background... Blue text looks awful :D
File was updated today: [url]https://raw.githubusercontent.com/robotboy655/robotboy655.github.io/master/GmodLua.xml[/url] I also slightly modified thegrb93's Obsidian theme to make scriped variables/functions more readable: [code] <LexerStyles> <!-- ext is the "user defined" one that you set within Notepad++. --> <LexerType name="Gmod Lua" desc="Gmod Lua" excluded="no" ext=""> <WordsStyle name="DEFAULT" styleID="0" fgColor="E0E2E4" bgColor="293134" fontName="" fontStyle="0" fontSize="" /> <WordsStyle name="LUA COMMENT BLOCKS" styleID="1" fgColor="6C788C" bgColor="293134" fontName="" fontStyle="0" fontSize="" /> <WordsStyle name="CPP COMMENT BLOCKS" styleID="2" fgColor="6C788C" bgColor="293134" fontName="" fontStyle="0" fontSize="" /> <WordsStyle name="LUA COMMENT LINES" styleID="3" fgColor="66747B" bgColor="293134" fontName="" fontStyle="0" fontSize="" /> <WordsStyle name="CPP COMMENT LINES" styleID="4" fgColor="66747B" bgColor="293134" fontName="" fontStyle="0" fontSize="" /> <WordsStyle name="NUMBERS" styleID="5" fgColor="FFCD22" bgColor="293134" fontName="" fontStyle="0" fontSize="" /> <WordsStyle name="OPERATORS" styleID="6" fgColor="E8E2B7" bgColor="293134" fontName="" fontStyle="0" fontSize="" /> <WordsStyle name="STRINGS" styleID="8" fgColor="EC7600" bgColor="293134" fontName="" fontStyle="0" fontSize="" /> <WordsStyle name="CHARACTERS" styleID="9" fgColor="FF8409" bgColor="293134" fontName="" fontStyle="0" fontSize="" /> <WordsStyle name="LITERAL STRINGS" styleID="11" fgColor="C29F56" bgColor="293134" fontName="" fontStyle="0" fontSize="" /> <WordsStyle name="INSTRUCTION WORDS" styleID="20" fgColor="93C763" bgColor="293134" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> <WordsStyle name="GLOBAL CONSTANTS" styleID="21" fgColor="808000" bgColor="293134" fontName="" fontStyle="0" fontSize="" keywordClass="1" /> <WordsStyle name="GLOBAL FUNCTIONS" styleID="22" fgColor="0080C0" bgColor="293134" fontName="" fontStyle="0" fontSize="" keywordClass="2" /> <WordsStyle name="SCRIPTED VARIABLES" styleID="23" fgColor="7f33cc" bgColor="293134" fontName="" fontStyle="0" fontSize="" keywordClass="3" /> <WordsStyle name="SCRIPTED FUNCTIONS" styleID="24" fgColor="2679ff" bgColor="293134" fontName="" fontStyle="0" fontSize="" keywordClass="4" /> <WordsStyle name="LIBRARIES" styleID="25" fgColor="678CB1" bgColor="293134" fontName="" fontStyle="0" fontSize="" keywordClass="instre2" /> <WordsStyle name="LIBRARY CALLS" styleID="26" fgColor="678CB1" bgColor="293134" fontName="" fontStyle="0" fontSize="" keywordClass="instre2" /> <WordsStyle name="OBJECT FUNCTIONS" styleID="27" fgColor="804040" bgColor="293134" fontName="" fontStyle="1" fontSize="" keywordClass="7" /> <WordsStyle name="RED FLAGS" styleID="28" fgColor="FF0000" bgColor="293134" fontName="" fontStyle="0" fontSize="" keywordClass="8" /> </LexerType> </LexerStyles>[/code]
Hey @Rubat , do you have your updated version of the Keywords Generator script laying around anywhere? I'm working on getting the Lexer Plugin completely up to date and working with 64-bit and stuff.
No, i sort of stopped updating the xml and i only used the script once, the plugin seems to have stopped working for me after one of the latest updates and I will be most likely switching to VSCode in the near future.
Damn, alright. You probably switched to the 64-bit version or something with the updates.
I was using NP++ as a first editor, then VSCode. Don't know, I was using VSCode and it felt terrible. So I switched to sublime and it feels ok with Glua highlighter
Sorry, you need to Log In to post a reply to this thread.