Actually it should already work if you copy the file j.lang from your j
installation such as at ~system/config to the folder (if you have the right) 
/usr/share/gtksourceview-2.0/language-specs/

however, gedit knows nothing about the color scheme that j-gtkide uses, so
that the style-id must map to default style by amending the j.lang, eg.

<style id="adverb"    _name="Adverb"            map-to="def:operator"/>
<style id="comment"   _name="Comment"           map-to="def:comment"/>
<style id="conjunction" _name="Conjunction"     map-to="def:statement"/>
<style id="control"   _name="Control"           map-to="def:keyword"/>
<style id="error"     _name="Error"             map-to="def:error"/>
<style id="exparg"    _name="Explicit Argument" map-to="def:special-constant"/>
<style id="global"    _name="Global"            map-to="def:type"/>
<style id="labtext"   _name="Lab Text"          map-to="def:builtin"/>
<style id="local"     _name="Local"             map-to="def:special-char"/>
<style id="noun"      _name="Noun"              />
<style id="noundef"   _name="Explicit Noun Def" map-to="def:preprocessor"/>
<style id="number"    _name="Number"            map-to="def:decimal"/>
<style id="parens"    _name="Parens"            map-to="def:boolean"/>
<style id="primitive" _name="Primitive"         map-to="def:reserved"/>
<style id="string"    _name="String"            map-to="def:string"/>
<style id="verb"      _name="Verb"              map-to="def:function"/>

Вск, 15 Май 2011, John Baker писал(а):
> Lately I've been working on an Ubuntu 11.0x system porting JOD to Linux.
> 
> The default text editor for this OS is something called GEDIT.   GEDIT
> appears quite capable and does pretty much everything you expect of a text
> editor.  It supports syntax coloring using *GtkSourceView* and  provides a
> slew of (xml) *.lang coloring files in:
> 
>  */usr/share/gtksourceview-2.0/language-specs/*
> *
> *
>  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 realize there
> are other supported editors mentioned in the J WiKi but frankly I am
> suffering from text editor fatigue and would rather not learn emacs or vim
> just to get J syntax coloring.
> 
> -- 
> John D. Baker
> [email protected]
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to