Saturday, March 17, 2012

Syntax highlighter for SL programming language

A few days ago  Eliseo Ocampos posted on Google plus a hello world example that shows a bit of his project named gSL which is a very interesting project that still in early states.

gSL is a GNU interpreter for SL, a language which is used in the academic field to teach Introductory courses to programming. The SL language interpreter is distributed freely but the code is proprietary, that's why the gSL project started.

Since there is no open source IDE or text editor that supports SL language, I decided to do a syntax highlighter for GtkSourceView-based editors, such as gedit, named

sl-highlight which simple declares a language spec that GtkSourceView uses.


The project source code can be found at sl-highlight 
Feel free to download and use it.

Sunday, March 11, 2012

Stateful Checkbox Selection for Ext JS 4 grid

Hello everybody.


It is time to blog something. Like I said in my first post, I am focusing in web development and related technologies. The web technologies I am currently working with are Ext JS 4, PHP, CSS, HTML 5.

Ext JS 4 is a pure JavaScript application framework that works everywhere and is base on web standards. It allows developers to write very cool web apps.

Since Ext JS allows you to build custom components, in this post I am going to show you a small grid plugin called Ext.ux.grid.plugin.StatefulCheckboxColumn that I developed since I needed for a personal project that I'd had.

The Project consist in a grid plugin that injects a checkbox column into the grid and handle the selection of the items through checkbox selection. It also adds an event to the grid, that is fired after items checked has changed.

This plugin uses a Ext.state.Provider to mantain the currently selected items after page loads or paging.

The project source code can be found at StatefulCheckboxColumn
Feel free to download and use it.