Hspeak Notepad ++ Language?
Moderators: Bob the Hamster, marionline, SDHawk
- Taco Bot
- Meat, Cheese, and Silicon
- Posts: 484
- Joined: Fri Jul 18, 2014 12:15 am
- Location: Santa Cruz
- Contact:
Hspeak Notepad ++ Language?
Okay, so some of you probably know that in Notepad ++ you can define your own languages. I was just wondering if anyone has already ported HSpeak to it, and if so, if they could lend me the .XML file for it.
Sent from my iPhone
- Meowskivich
- Blubber Bloat
- Posts: 2199
- Joined: Tue Mar 06, 2012 12:38 am
- Location: Earth
- Contact:
not a bad idea.
I just use notepad no pluses for my Hspeak, though.
I just use notepad no pluses for my Hspeak, though.
dOn'T MiNd mE! i'M jUsT CoNtAgIoUs!!!
Play Orbs CCG: http://orbsccg.com/r/4r6x
Play Orbs CCG: http://orbsccg.com/r/4r6x
I tried looking into it but just could find absolutely no documentation online on notepad++'s language definition format, only that it's called UDL2. The website is full of broken links to a wiki on sourceforge which has been deleted.
We have a XML language definition file for HamsterSpeak for gtksourceview, which is used in the HamsterWhisper script editor, which is work in other programs using gtksourceview, but Notepad++ isn't one of them
We have a XML language definition file for HamsterSpeak for gtksourceview, which is used in the HamsterWhisper script editor, which is work in other programs using gtksourceview, but Notepad++ isn't one of them
- foreverblue2
- Red Slime
- Posts: 30
- Joined: Thu Feb 28, 2013 6:33 pm
- Location: seattle
This is a small picture of what I have. I took the contents of the dictionary and copied it into the language editor thingy for notepad++. I had to remove the space between the words to make it work right. So "key is pressed" I write as "keyIsPressed" so it highlights correctly. I didn't know what I was doing so I can't really explain it better. It took me about 2 hours. If you want, tell me how to find the file that makes it work and I'll email it to you. I honestly wouldn't do with out it so I would love to help you out. I just don't know what I'm looking for. Everything highlights to appropriate colors except for true and false which highlight to different colors, green and red, respectively.
- Attachments
-
- Untitled.png (133.92 KiB) Viewed 3321 times
- foreverblue2
- Red Slime
- Posts: 30
- Joined: Thu Feb 28, 2013 6:33 pm
- Location: seattle
- BMR
- Metal King Slime
- Posts: 3310
- Joined: Mon Feb 27, 2012 2:46 pm
- Location: The Philippines
- Contact:
From what I recall of N++, there's a GUI option to just plug in commands and stuff and then set the highlight or color or whatever for said commands. It'd be tedious, but certainly not difficult, to just manually go through the plotscript dictionary and add them one by one if you really want to.
As for me, I use Gedit to get my syntax highlighting and stuff.
As for me, I use Gedit to get my syntax highlighting and stuff.
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
Using Editor version wip 20170527 gfx_sdl+fb music_sdl
Cool! Highlighting different groups of commands different colours is a rather neat idea. It would be nice if those definition files were put on the wiki, but I'm not a Notepad++ user and don't know how it works.
I use emacs. I wrote a custom indentation mode which handles all of HS, FreeBasic and Euphoria (the language HSpeak is written in) since by no coincidence there's a lot of overlap between them. But it doesn't do highlighting and I hope to add that at some point.
I use emacs. I wrote a custom indentation mode which handles all of HS, FreeBasic and Euphoria (the language HSpeak is written in) since by no coincidence there's a lot of overlap between them. But it doesn't do highlighting and I hope to add that at some point.
- Taco Bot
- Meat, Cheese, and Silicon
- Posts: 484
- Joined: Fri Jul 18, 2014 12:15 am
- Location: Santa Cruz
- Contact:
Yeah, I know I could do that, but I was hoping to use that weird, funky, XML method to save some time. Not really asking if someone could make one, just if someone already had one handy.BMR wrote:From what I recall of N++, there's a GUI option to just plug in commands and stuff and then set the highlight or color or whatever for said commands. It'd be tedious, but certainly not difficult, to just manually go through the plotscript dictionary and add them one by one if you really want to.
As for me, I use Gedit to get my syntax highlighting and stuff.
Sent from my iPhone