Post new topic    
Metal King Slime
Send private message
Code folding and regex? 
 PostMon Jun 11, 2012 1:09 pm
Send private message Reply with quote
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!
Being from the third world, I reserve the right to speak in the third person.

Using Editor version wip 20170527 gfx_sdl+fb music_sdl
Metal King Slime
Send private message
 
 PostMon Jun 11, 2012 1:29 pm
Send private message Reply with quote
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.
Liquid Metal King Slime
Send private message
 
 PostMon Jun 11, 2012 2:27 pm
Send private message Reply with quote
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.
Super Slime
Send private message
 
 PostMon Jun 11, 2012 5:43 pm
Send private message Reply with quote
Notepad++ 4 lyfe
Mega Tact v1.1
Super Penguin Chef
Wizard Blocks
Metal King Slime
Send private message
 
 PostWed Jun 13, 2012 6:36 am
Send private message Reply with quote
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.
Being from the third world, I reserve the right to speak in the third person.

Using Editor version wip 20170527 gfx_sdl+fb music_sdl
Display posts from previous: