• GMod Lua highlight syntax plugin for Sublime!
    110 replies, posted
  • Avatar of TGiFallen
  • This is awesome, a dream come true! One question though, is there any possibility of autocomplete? Bit that isn't the important question, is it possible to have like a search bar and you can search functions and get a description similar to the current wiki? I only ask this because I don't always have Internet access when coding.
  • Avatar of lexic
  • [QUOTE=FPtje;26819289] - && || { and } are now highlighted (I finally figured it out) :buddy:[/QUOTE] how about &,|,!=, //, /* */ and continue?
  • Avatar of yakahughes
  • [QUOTE=Lexic;26826094]how about &,|,!=, //, /* */ and continue?[/QUOTE] What is continue in lua?
  • Avatar of blown25
  • [QUOTE=FPtje;26755377][highlight]Version 4 is out![/highlight] Changelog: 1. Now highlights || && { and } 2. Snippets! The sublime thread has been around for ages now, but I decided to give it a try last time I saw the thread. It's absolutely great. The free version is just as great as the paid version, just every week or so a popup comes up and you press no. [b]I swear this shit is better than Notepad++[/b]. It just misses the find in files plugin... Thread on sublime: [url]http://www.facepunch.com/threads/1021628-Sublime-Text-Editor[/url] More info about sublime: [url]http://www.sublimetext.com/[/url] This evening I made a quick plugin for GMod syntax highlighting. It has the GMod Functions (as of 17-12-2010). The C style commenting and some other stuff. I didn't manage to get the && and || operators to work, but fuck those. Download V4 here: Solidfiles download: [url=http://solidfiles.com/d/bc88d/][img_thumb]http://solidfiles.com/info_imgs/sCPh.jpg[/img_thumb][/url] [url]http://dl.dropbox.com/u/6766710/Gmod%20Lua%20sublime%20plugin%20V4.zip[/url] [b]Thanks to:[/b] Sublime: Great shit man Kyle Fleming: Making the NPP syntax highlight script and putting it in the NPP highlight package. I used his script to get all the functions and enumerations on a vanilla gmod. Picture of sublime: [url=http://www.sublimetext.com/screenshots/javaHeroLarge.png][img_thumb]http://www.sublimetext.com/screenshots/javaHeroLarge.png[/img_thumb][/url] [b]Gmod Lua in sublime:[/b] [url=http://img704.imageshack.us/img704/5824/sublimeglua.png][img_thumb]http://img704.imageshack.us/img704/5824/sublimeglua.png[/img_thumb][/url] [b]How to install[/b] Extract the folder and place the "Gmod Lua" folder in %APPDATA%\Sublime Text\Packages Open a Lua script and select View > Apply Syntax Highlighting > Gmod Lua[/QUOTE] fucking damn, nice !
  • Avatar of Dave_Parker
  • [QUOTE=yakahughes;26826449]What is continue in lua?[/QUOTE] It's like break but it only stops the current iteration, not the entire loop.
  • Avatar of yakahughes
  • I thought we didn't have that and people were complaining, or was it a recent addition by garry?
  • Avatar of Lord Ned
  • cam.End3D() doesn't seem to have proper highlighting. [img]http://i54.tinypic.com/28histv.png[/img]
  • Avatar of Lord Ned
  • Versus reporting them for the next version so the actual product becomes better? Not to mention it's still in active development so it's highly likely to get fixed?
  • Avatar of Handsome Matt
  • Is there a detailed format of how functions are presented? (Want to dump the whole _G table and all its functions)
  • Avatar of FPtje
  • [QUOTE=Lexic;26826094]how about &,|,!=, //, /* */ and continue?[/QUOTE] /* */ // are comments. I didn't think of the other ones. I'll add them in V5 [editline]21st December 2010[/editline] [QUOTE=Lord Ned;26830265]cam.End3D() doesn't seem to have proper highlighting.[/QUOTE] Ok. Will work on it. I wonder why it isn't there. All the other cam functions seem to be there. [editline]21st December 2010[/editline] V5: [url=http://www.solidfiles.com/d/6a8e/][img]http://solidfiles.com/info_imgs/sCPh.jpg[/img][/url] - Added & | and continue (the other ones lexic mentioned were already in) - Fixed cam.End3D not being highlighted.
  • You should make comments a different color than the default text. I thought the highlighter wasn't working, then I realized I had commented all my code previously.
  • Avatar of Dave_Parker
  • [QUOTE=FPtje;26845071]/* */ // are comments. I didn't think of the other ones. I'll add them in V5 [editline]21st December 2010[/editline] Ok. Will work on it. I wonder why it isn't there. All the other cam functions seem to be there. [editline]21st December 2010[/editline] V5: [url=http://solidfiles.com/d/6a8e/][img_thumb]http://solidfiles.com/info_imgs/sCPh.jpg[/img_thumb][/url] - Added & | and continue (the other ones lexic mentioned were already in) - Fixed cam.End3D not being highlighted.[/QUOTE] Make an SVN already. This is shit.
  • Avatar of Handsome Matt
  • By the way your download buttons just redirect to the image.. [editline]fuck[/editline] Only in quotes for some reason...
  • Avatar of lexic
  • [QUOTE=FPtje;26845071]/* */ // are comments.[/QUOTE] Generally most syntax highlighters highlight comments.
  • Avatar of foxxeh
  • Found a 2 un-highlighted functions: -using not in and if statement doesn't highlight -when using draw.SimpleTextOutlined only draw.SimpleText is highlighted
  • Avatar of TGiFallen
  • There is an error with sublime thinking that both " and ' are multi-line strings when they aren't. [img]http://dl.dropbox.com/u/5853103/string%20error.png[/img]
  • Avatar of Shane
  • I really like this editor but one this is driving me insane, how can I disable the weird scrolling? By this I mean make it stop scrolling at the bottom instead of showing the last line at the top with a huge empty space at the bottom.
  • Avatar of Zephilinox
  • [QUOTE=iRzilla;26861502]@TGiFallen where did you get that cool gmod icon in your taskbar?[/QUOTE] Thats the default one..isn't it? unless your not talking about the rounded square with the white letter "g" on it.
  • Avatar of Handsome Matt
  • [QUOTE=Zephilinox;26861723]Thats the default one..isn't it?[/QUOTE] I just get the HL2 icon.. :(
  • Avatar of Zephilinox
  • [QUOTE=iRzilla;26862038]I just get the HL2 icon.. :([/QUOTE] Yeah, your right, I just didn't pay much attention to it, notice how he has the HL2 icon there, the gmod one must be something else.
  • Avatar of TGiFallen
  • [QUOTE=iRzilla;26861502]@TGiFallen where did you get that cool gmod icon in your taskbar?[/QUOTE] Yeah the actual Gmod icon is the icon for all steam programs, like chat and whatnot, and as to how i got it i have no idea, i think it just appeared there because i play Gmod a lot. [editline]edit[/editline] and the reason there is a green progress bar there is because of my steam downloads.
  • Avatar of Zephilinox
  • [QUOTE=Banana Lord.;26869966]From what I'm reading -- is not considered a comment. True? I'm trying it now, but yeah.[/QUOTE] -- is a comment, like //
  • Avatar of yakahughes
  • [QUOTE=Shane;26861615]I really like this editor but one this is driving me insane, how can I disable the weird scrolling? By this I mean make it stop scrolling at the bottom instead of showing the last line at the top with a huge empty space at the bottom.[/QUOTE] Preferences > Default File Preferences > Change the line that says "scrollPastEnd true" to "scrollPastEnd false"
  • Avatar of Shane
  • [QUOTE=yakahughes;26871203]Preferences > Default File Preferences > Change the line that says "scrollPastEnd true" to "scrollPastEnd false"[/QUOTE] Fantastic! Thanks a ton.