That page should not be immutable. Did you gorget to login?
Чт, 22 май 2014, greg heil писал(а):
> >Likely when Igor Zhuralov wrote the ~Syntax_Coloring for the Kate text
> >editor code folding was not yet available. Well now it is and i made some
> >additions to make it possible to use Kate and fold J code (as well as do
> >~Syntax_Coloring).
>
> >The wiki page seems to be immutable so as of yet i have not been able to add
> >it there, but i should be able to explicate the additions to the xml file.
>
> 1) within the context for the attribute sentence one can add the four lines:
>
> <StringDetect attribute="Foldable" context="Fold_able" String=" : 0"
> beginRegion="Fold"/>
> <StringDetect attribute="Foldable" context="Fold_able" String="NB.("
> beginRegion="Fold"/>
>
> <StringDetect attribute="Foldable" context="Fold_able" String="NB.)"
> endRegion="Fold"/>
> <RegExpr attribute="Foldable" context="Fold_able" String="^\)$"
> endRegion="Fold"/>
>
> They begin a region either with an explicit script header or a "NB.(".
> Similarly they end it with a singleton ) or a "NB.)"
>
> 2) Next one creates a new "foldable" context:
>
> <context name="Fold_able" attribute="Foldable" lineEndContext="#pop" >
> <DetectIdentifier /> <DetectSpaces />
> </context>
>
> 3) And adds this line to the "itemDatas" section"
>
> <itemData name="Foldable" defStyleNum="dsRegionMarker" spellChecking="false"/>
>
> 4) To get foldability on indented lines one adds this to the "general"
> section:
>
> <folding indentationsensitive="true" />
>
> i do believe that foldability should add greatly to the terseness
> advantage that J already has. Making it much easier to read and work
> to large files.
>
> Possibly Bill is the appropriate person to add this revised file to the wiki?
>
> ---~
> http://www.jsoftware.com/jwiki/action/login/Guides/Syntax%20Coloring
>
> greg
> ~krsnadas.org
> ----------------------------------------------------------------------
> 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
gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm