|
 |

March 3rd, 2010, 01:09 PM
|
 |
kekekeke
|
|
Join Date: Nov 2007
Location: Denmark
Posts: 2,624
|
|
|
Galaxy Syntax Highlighter
Here you have it, the Galaxy syntax highlighter. Nothing special, just syntax highlighting and some other minor features. Just a placeholder while you guys wait for Moonlite to come out
Anyways, the only thing it requires is the .Net framework 3.5.
How to use: - Download the .zip;
- Extract it;
- Run "gxsh.exe";
- Done!
Enjoy
EDIT: Language file developer is now Lyerae!
Last edited by Vestras; March 5th, 2010 at 06:07 AM.
|

March 4th, 2010, 02:34 PM
|
|
Junior Member (Am I really helping anyone?)
|
|
Join Date: Aug 2009
Location: Bulgaria
Posts: 202
|
|
|
may i don't have framework 3.5 because don't work
|

March 4th, 2010, 03:25 PM
|
 |
Lorem Ipsum Dolor Sit.
|
|
Join Date: Aug 2007
Location: England (GMT +0)
Posts: 3,818
|
|
Quote:
Originally Posted by themean
may i don't have framework 3.5 because don't work
|
It works for me, so you may not have it. What OS version are you running?
|

March 4th, 2010, 03:42 PM
|
|
Hai.
|
|
Join Date: May 2009
Posts: 1,882
|
|
|
How much does this highlight?
|

March 5th, 2010, 01:39 AM
|
 |
kekekeke
|
|
Join Date: Nov 2007
Location: Denmark
Posts: 2,624
|
|
Quote:
Originally Posted by Lyerae
How much does this highlight?
|
Not types/natives/anything where there is much of it. Only keywords. So I guess yours is better.
|

March 5th, 2010, 02:19 AM
|
|
Hai.
|
|
Join Date: May 2009
Posts: 1,882
|
|
Eh, not really. It's stopped highlighting keywords I've put in it.
If you make this take the language definition from an .xml (or other format), I'll just work on that instead.
|

March 5th, 2010, 05:51 AM
|
 |
kekekeke
|
|
Join Date: Nov 2007
Location: Denmark
Posts: 2,624
|
|
Quote:
Originally Posted by Lyerae
Eh, not really. It's stopped highlighting keywords I've put in it.
If you make this take the language definition from an .xml (or other format), I'll just work on that instead. 
|
It already does  It's just an embedded resource inside the .dll.
I can make it a file instead of a resource, so you can edit it.
Uploaded new version for you, Lyerae. If you want examples of how *.lang files are built, download my Storm framework and look in the Storm.TextEditor project. There are multiple languages in the Languages folder. (You'll need Visual C# or Visual Studio) Happy language developing
Last edited by Vestras; March 5th, 2010 at 06:08 AM.
|

March 5th, 2010, 01:44 PM
|
|
Hai.
|
|
Join Date: May 2009
Posts: 1,882
|
|
Cool. I'll get to that as soon as my wireless starts working on my laptop.
Edit: AH these .lang files are weird. Not unmanageable though. 
You should try making some sort of "Editor" to create and edit these files.
Last edited by Lyerae; March 5th, 2010 at 03:29 PM.
|

March 5th, 2010, 03:50 PM
|
|
Hai.
|
|
Join Date: May 2009
Posts: 1,882
|
|
|
This should have everything I have so far.
I have a few questions though:
1. Is it possible to create new "Pattern (Group)", without it crashing? I had tried to, to separate the keywords to make the highlighting better, but when I tried it, it crashed. :/
2. Can the "ForeColor" element hold colorcodes?
Last edited by Lyerae; June 13th, 2010 at 12:28 PM.
|

March 6th, 2010, 12:14 AM
|
 |
kekekeke
|
|
Join Date: Nov 2007
Location: Denmark
Posts: 2,624
|
|
1. It is very possible to create more PatternGroups, how did you do it?
2. Yeah, it can, but the format is very strict: "R, G, B", must have spaces, MUST have 3 values.
Also, you can always add more styles  You don't have to make it look like it does now.
Also, although the current list does work, it is recommended that each keyword is on its own line.
|

March 6th, 2010, 12:31 AM
|
|
Hai.
|
|
Join Date: May 2009
Posts: 1,882
|
|
Quote:
Originally Posted by Vestras
1. It is very possible to create more PatternGroups, how did you do it?
2. Yeah, it can, but the format is very strict: "R, G, B", must have spaces, MUST have 3 values.
Also, you can always add more styles  You don't have to make it look like it does now.
Also, although the current list does work, it is recommended that each keyword is on its own line.
|
1. I just copied one, and renamed it.
2. So, like #00 00 00?
And I'll add them all to a single line soon as I've got some spare time.
Edit: Also, does your XML parser ignore comments (<!-- comment -->)? (just makin' sure)
Last edited by Lyerae; March 6th, 2010 at 12:43 AM.
|

March 6th, 2010, 08:02 AM
|
 |
kekekeke
|
|
Join Date: Nov 2007
Location: Denmark
Posts: 2,624
|
|
1. Yeah, but where to?
2. No, like "0, 0, 0"
Yes, it ignores comments.
|

March 6th, 2010, 12:38 PM
|
|
Hai.
|
|
Join Date: May 2009
Posts: 1,882
|
|
|
1. Right below the "Keywords".
2. 'Kay.
Alright.
|

March 8th, 2010, 01:57 AM
|
 |
kekekeke
|
|
Join Date: Nov 2007
Location: Denmark
Posts: 2,624
|
|
1. Show me your Xml
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|