[ncl-talk] gedit syntax highlighting on yellowstone / cheyenne

Caspar Ammann ammann at ucar.edu
Sat Sep 23 16:09:10 MDT 2017


Hey Rick,

your question got me digging a bit more -- rather than giving up on a xml-like thing I didn’t know -- and I now found a way to get it to do what it's supposed to … : I had to remove a few elements in one line: class and class-disabled: why they trigger the failure I don’t know.

FIX: replace old line ~45 in ncl.lang with a shortened one:

<!— turn off old line     <context id="double-quoted-string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">  -->

<!— insert new line —>
<context id="double-quoted-string" style-ref="string" end-at-line-end="true">

The known / expected error (gtSourceView-WARNING) is rather massive with a dump of the full file, but then it actually works. Highlighting is neat. Of course ncl.lang contains a rather old list of function names etc. from 2011. It could quite easily be updated if there are alphabetical lists of functions and the like.

Thanks for asking the right question … 
Caspar

Caspar Ammann
National Center for Atmospheric Research
RAL - Climate Science and Applications Program




> On Sep 23, 2017, at 10:21 AM, Caspar Ammann <ammann at ucar.edu> wrote:
> 
> Thanks Rick,
> no, what in the file was wrong was not clear to me and beyond the testing by CISL-helpdesk. So I was wondering if somebody maybe has a newer file… or a recollection of how to make it work.
> Caspar
> 
> 
> Caspar Ammann
> National Center for Atmospheric Research
> RAL - Climate Science and Applications Program
> 
> 
> 
> 
>> On Sep 22, 2017, at 8:24 PM, Rick Brownrigg <brownrig at ucar.edu <mailto:brownrig at ucar.edu>> wrote:
>> 
>> Hi Caspar,
>> 
>> I don't suppose you were told what was wrong with that file -- I looked at it, and it seemed to be an innocuous XML file, with no path or host dependencies, etc. I don't have ways and means to try it out in action at the moment, but I will look into it when I'm in the office.    
>> 
>> Anybody else out there with ideas in the meantime?
>> 
>> Rick
>> 
>> On Fri, Sep 22, 2017 at 4:06 PM, Caspar Ammann <ammann at ucar.edu <mailto:ammann at ucar.edu>> wrote:
>> Hi,
>> 
>> I was trying to get Chad Herman’s gedit syntax highlighting (NCL Talk April 17, 2011) going on yellowstone / cheyenne. It did not work for me, and CISL indicated that there is a problem with the ncl.lang file. Has anybody been more successful with a newer set of files or remembers the tricks they used to get it going?
>> 
>> Thanks!
>> Caspar 
>> 
>> Caspar Ammann
>> National Center for Atmospheric Research
>> RAL - Climate Science and Applications Program
>> 
>> 
>> 
>> 
>> 
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu <mailto:ncl-talk at ucar.edu>
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk <http://mailman.ucar.edu/mailman/listinfo/ncl-talk>
>> 
>> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170923/ed382f8a/attachment.html>


More information about the ncl-talk mailing list