The following should work to get gedit to use the j.lang on Ubuntu:
Copy the file from '~addons/gui/gtk/config/j.lang' to
/usr/share/gtksourceview-2.0/language-specs/j.lang
When you next open gedit, "J" should be available from the menu
View|Highlight mode|Sources|J

If you want to use the same styles as in the J editor then in gedit
use Edit|Preferences, choose the Font & Colors Tab and click the
Add... button. Now point to '~addons/gui/gtk/config/edit.xml' and
click the Add Scheme button.

Note the latest copy of the j.lang file can be downloaded from the
Gnome Bugzilla. It should be available in gui/gtk addon for J soon.
https://bugzilla.gnome.org/show_bug.cgi?id=642272

On Mon, May 16, 2011 at 8:35 AM, Ric Sherlock <[email protected]> wrote:
> Charles is correct that the the J GtkIde and gedit both use
> gtksourceview and therefore the J lang file that ships with J should
> work fine. I remember getting this to work sometime ago but
> unfortunately can't remember the details.
>
> In addition the J syntax definition has been submitted to the
> gtksourceview developers and should therefore eventually be supported
> out-of-the-box by gedit and other editors that use gtksourceview.
> Ric
>
> On Mon, May 16, 2011 at 7:53 AM, Charles Turner <[email protected]> 
> wrote:
>> On May 15, 2011, at 1:37 PM, John Baker wrote:
>>
>>> Of course J is not in the list of languages supported by default. Has
>>> anyone worked up a J specific *.lang file for this editor?
>>
>> I'm sure others will have better information, but in the meantime:
>>
>> Gedit uses libgtk and friends, same as the new J IDE, so you can move the J 
>> syntax file from the J IDE to the system (or Gedit config) and get colored 
>> code.
>>
>> I'm not running any of this, so I can't tell you how to do it precisely, 
>> sorry!
>>
>> HTH , Charles
>>
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
>>
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to