• Full Notepad++ Syntax Listing
    23 replies, posted
This is a combination of huntskikbut's syntax list and iBs-DKNiGHTX's C style commenting for Notepad++. They get the credit for this, i just combined them. Download [u][url=http://deltadev.gmservers.net/files/userDefineLang.xml]this[/url][/u] and replace C:\Documents and Settings\[username]\Application Data\Notepad++\userDefineLang.xml. This will give you full syntax highlighting and C style commenting. Both types of comments work, both // and --.
Awesome! Thanks!
Link?
[QUOTE=DeltaOps101]This is a combination of huntskikbut's syntax list and iBs-DKNiGHTX's C style commenting for Notepad++. They get the credit for this, i just combined them. Download [b][url=http://deltadev.gmservers.net/files/userDefineLang.xml]this[/url][/b] and replace C:\Documents and Settings\[username]\Application Data\Notepad++\userDefineLang.xml. This will give you full syntax highlighting and C style commenting. Both types of comments work, just put a space after // or --.[/QUOTE] It's there :rolleyes:
He has the "this" hyperlinked.
Nevermind. I got it working.
[QUOTE=Schmoe222]The link is the word "this." Also, if you've download Notepad++ 2.0, there is no userDefineLang.xml file in that place. In fact, there's not even a notepad++ spot in the application data folder at all.[/QUOTE] The current version is 3.9. You might want to get that. :v:
[QUOTE=DeltaOps101]The current version is 3.9. You might want to get that. :v:[/QUOTE] I feel dumb... :downs:
// comments still don't work for me :(
Did you put a space after the //?
Try putting a space after the comment, termy, like this: [LUA]math.random(1,6) // THAR IS A SPACE R1T3 4FT3R THE //!!! LAWL[/LUA]
Yes, I did. Also if it did work I'm pretty sure you can change [code]<Keywords name="Comment">1/* 1--[[ 2*/ 2]] 0// 0--</Keywords>[/code] to [code]<Keywords name="Comment">1/* 1--[[ 2*/ 2]] 0//0--</Keywords>[/code] But I'm not sure either way it doesn't work for me.
How do I know what version of Notepad++ I have? Because I've had this for like a year, and never updated :D
Well if you have had it that long I think you might want to just go and download the newest one.
Well, they released 2.0 like 8 months ago, and they're already up to 3.9, so you should update.
if you go to this line in the file and change it from: <TreatAsSymbol comment="yes" commentLine="no"/> to <TreatAsSymbol comment="yes" commentLine="yes"/> then spaces after the comments aren't required.
I think that screws up some other thing though. But I'm not sure.
[QUOTE=aschmack]if you go to this line in the file and change it from: <TreatAsSymbol comment="yes" commentLine="no"/> to <TreatAsSymbol comment="yes" commentLine="yes"/> then spaces after the comments aren't required.[/QUOTE] Thanks, download updated.
Found a bug: beginning quotes are only recognized if they have a space in front of them [lua] // Send tooltip command to client pl:SendLua( "GAMEMODE:OnCleanup( '"..args[1].."' )" ) [/lua] (found in "includes/modules/cleanup.lua" lines 121 and 122) shows gray code for a few lines until the next quote is found
I recompiled the Scintilla's Lexer Syntax Highlighting thing so that you can select "Lua" and not have to use a user defined language because they have some annoying downfalls that this fixes: [url=http://www.garrysmod.org/downloads/?a=view&id=5732][img]http://www.garrysmod.org/img/?t=dll&id=5732[/img][/url] NOTE: you must remove or comment out your GMod Lua user-defined one for it to use this Lua as default Put that in "C:\Program Files\Notepad++\" and if you want you can edit "C:\Program Files\Notepad++\langs.xml" to support our custom library calls and such. I also created a syntax generator that lets you clump different calls into the 3 categories (FUNC1, FUNC2, FUNC3) and you can change the colors to whatever you want: [url]http://gmod.foszor.com/luabin/?snip=498[/url] Key Differences: * Escape Character '\' So you can escape the end of a line properly and escape quotes properly * --Whatever and --[[ ]] register properly (so you don't have to have a space after '--') * Supports /**, /*!, ///, //! Qt/Doxygen documentation style * Folding! (the + and - on the left side that lets you collapse functions and other such similar things) * Single-line strings when unclosed at the end of a line don't try and parse the rest of the document as a string * Probably some more P.S: If anyone wants the source for it let me know (I'll even tell you how to compile it heh)
[QUOTE=Garthex]P.S: If anyone wants the source for it let me know (I'll even tell you how to compile it heh)[/QUOTE] Release the source!
OK to compile you will need: npp src: [url]http://sourceforge.net/project/showfiles.php?group_id=95717&package_id=102166[/url] MinGW: [url]http://sourceforge.net/project/showfiles.php?group_id=2435[/url] MSYS: [url]http://prdownloads.sf.net/mingw/MSYS-1.0.10.exe?download[/url] When installing MSYS it asks for the location of MinGW, tell it "c:\\mingw" without the quotes. I'm assuming that's where you installed it. Then you have to fix the makefile for scintilla: [url]http://pastebin.ca/309508[/url] save that in a file called "dir_to_nppsrc\scintilla\win32\makefile" Then you download my edited Lua syntax file: [url]http://pastebin.ca/309511[/url] save that in a file called "dir_to_nppsrc\scintilla\src\LexLua.cxx" Then run msys. Navigate to "dir_to_nppsrc\scintilla\win32\" and type "mingw32-make" Most of the compiling done here only has to be done once, as make figures out which files have changed when compiling. Once that is done, take the file "dir_to_nppsrc\scintilla\bin\SciLexer.dll" and place in "C:\Notepad++\" and you are all set! (Probably be a good idea to backup SciLexer.dll first hehe.)
Thank you a lot !!!!!!!! =D
Echmm sorry but [url]http://code.google.com/p/npp-gmod-lua/[/url]
Sorry, you need to Log In to post a reply to this thread.