Page 1 of 1
Code folding and regex?
Posted: Mon Jun 11, 2012 1:09 pm
by BMR
So, I'm currently using Gedit to write my scripts. Personally, I prefer Geany, but my skills are not quite good enough to figure out how to implement syntax highlighting, hehe. Anywho, I'm pretty satisfied with Gedit, as it has syntax highlighting, and provides a decent interface.
My question then, is there another editor out there where I can easily add HamsterSpeak, and also has code folding? I know Gedit should be capable of it, but I can't quite seem to figure it out. Also, another thing I'm looking for is regex find-replace. I don't use it very often, but the cases where I do need to use it, it's very handy.
So far, I think sticking with Gedit is the best solution, unless some of you master scripters out there have a better tool?
Thanks!
Posted: Mon Jun 11, 2012 1:29 pm
by TMC
A quick search shows that you can get a regex search plugin for gedit. (Personally I think the idea of a code editor with regex support out of the box is absurd!)
GtkSourceView is used by quite a few different editors, which hopefully all support the HS syntax definitions, but I'm not familar with any of them. do none of them have code folding?
I use emacs in fundamental text mode with a custom indentation function for both hamsterspeak and freebasic. No highlighting, code folding or other fancy stuff. Both languages have such erratic grammars that writing proper emacs modes for them is a bit daunting.
Posted: Mon Jun 11, 2012 2:27 pm
by Bob the Hamster
I bet it wouldn't be too hard to enable folding in the HamsterWhisper editor. That is just gtkSourceView so the feature is there, I just never bothered to do anything with it.
Posted: Mon Jun 11, 2012 5:43 pm
by Mogri
Notepad++ 4 lyfe
Posted: Wed Jun 13, 2012 6:36 am
by BMR
TMC wrote:GtkSourceView is used by quite a few different editors, which hopefully all support the HS syntax definitions, but I'm not familar with any of them. do none of them have code folding?
I think Gedit had it, I remember using it a few years back and I'm pretty sure I remember it did. Doesn't seem to work now though.
TMC wrote:I use emacs in fundamental text mode with a custom indentation function for both hamsterspeak and freebasic. No highlighting, code folding or other fancy stuff.
Wow, color me impressed. I never quite could get the hang of emacs, though I did give it a go a couple of years back.
Mogri wrote:Notepad++ 4 lyfe
I used to use Notepad++ back when I was still on Windows, but I've moved pretty much completely to Linux. I only keep Windows around for the occasional day when I feel like playing a game or the other that I can't get to work under Wine. Though I must agree that Notepad++ is a rather nifty program.