Posts Tagged ‘Ruby’

Ruby File Renamer

Wednesday, July 16th, 2008

I had to rename a lot of files today, recursively.... Read More

wxRuby Editor - Bug fixes and new features

Thursday, July 10th, 2008

This is embarrassing, I noticed that after getting a new browser to the left - for instance when searching the whole project - and going back to the projects browser to open a new file there, the editor would crash because it could not find references to various locations. The initialize function in treectrl.rb looks like this now:... Read More

WxRuby Editor Source

Wednesday, June 18th, 2008

I’ve been working quite a bit with the editor lately and it feels stable enough to release, I’ll probably implement a few more features in the future, enough for now though.... Read More

Custom folding in wxRuby’s Scintilla

Friday, May 23rd, 2008

Folding is of course a part of the lexer and when I made my own styling (described in the prior tutorial) it follows that I have to implement my own folding logic too. Well it’s as easily done as said, we just use the folding in lexLisp.cxx, here is our Ruby version of Alexey Yutkin’s C++ version in lexer.rb:... Read More

Styling in WxRuby’s Scintilla

Thursday, May 22nd, 2008

In the prior tutorial I hinted that I was working on compiling wxRuby with my own Pico Lisp lexer, I gave up on that after spending a few hours editing h-files and makefiles, only to discover that the Scintilla component would not work, possibly because of my changes, probably because of something else. ... Read More

Project browser in WxRuby

Sunday, May 18th, 2008

This article might bore you, in that case you might want to skip to the end where a pretty useful “trick” for custom sorting the tree items is described. You might also want to check out the image related stuff, it is more complex than in the sample treectrl.rb... Read More

AUI in WxRuby

Sunday, May 18th, 2008

A lot has happened since the last part. As far as I’m concerned the framework is basically finished, what remains now is to create a few more lexers, for CSS, HTML and Javascript primarily. I’ve also tried to create my own integrated lexer (Pico instead of Common Lisp) in the Scintilla component, more on that as it develops…... Read More

Autocomplete in WxRuby’s Scintilla

Saturday, May 10th, 2008

These are the requirements for the autocompletion feature:... Read More

More Scintilla in WxRuby

Wednesday, May 7th, 2008

Getting the Lispy indentation to work was easier said than done but I believe I have prevailed. I haven’t done any massive testing yet but so far I’m getting the behavior I want. A lot has changed in pico.rb, not so much in main.rb though, let’s walk through the new stuff, in main.rb:... Read More

Scintilla basics in WxRuby

Tuesday, May 6th, 2008

As you might know I’ve recently started dabbling in web development with Pico Lisp and currently I’m using Cusp as an editor. It’s an annoying situation because Cusp is made for Common Lisp so today I started looking into the possibility of creating an editor with WxRuby using the Scintilla component. If you have looked at my old WxRuby project you might have noticed that I used WxSugar, apparently most of the functionality of WxSugar is already built into WxRuby nowadays so I’m gonna try without it this time.... Read More