Sign in to follow this  
  • entries
    56
  • comments
    80
  • views
    41672

Project RiL Script Editor

Sign in to follow this  
bladerunner627

208 views

Wow, damn? Time flys by so fast now. I haven't really noticed it, but now it's getting to me. It seemed like yesterday that I was a freshman in high school, now I'm a senior :\.

I started work on an editor for RiL, and it's going relatively well, been having some fun with RegEx. I'm starting to get the hang of it; I've dabbled with it before, but I've never done anything with Negative lookbehind, Negative lookahead, etc.

So far I've got a nice tab system going as well as some basic syntax highlighting(keywords, single line comments, strings). I've still got loads of work to do though, gotta do some .NET Reflection for the auto-complete. I also need a project manager, which will have a tree-view to the left. It's getting there, but I'd say I'm ~30% done.

Here's a screenie.

RiL Editor

Believe it or not, depending on the file size, it takes the editor a while to parse each file for highlighting. After the file is loaded it does the highlighting per line after the user types. I think I'm gonna end up threading the highlighter, so the user doesn't have to wait when they open a script for editing.

Comments?
Sign in to follow this  


3 Comments


Recommended Comments

Why not, instead of 'hard coding' keywords and colors, create a file, that allows the user to define keywords, strings, et cetera. In fact, they could even give you the regex code -- which would mean your system could parse C, C++, Java, Ruby, Lisp, O'Caml, etc flexibly.

Share this comment


Link to comment
Quote:
Original post by visage
Why not, instead of 'hard coding' keywords and colors, create a file, that allows the user to define keywords, strings, et cetera. In fact, they could even give you the regex code -- which would mean your system could parse C, C++, Java, Ruby, Lisp, O'Caml, etc flexibly.


Because this is a tool for RiL which is C# and the scripts will most likely only be C#.

Share this comment


Link to comment
RiL isnt entirely in C#, parts are in C++ where the speed benefit is higher than the cost of interop. The scripts themselves can be any .NET language, it's just that since the most well known .NET language is C#, we've chosen to make the script editor do C#.

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now