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

Caspar Ammann ammann at ucar.edu
Mon Sep 25 12:54:41 MDT 2017


Thanks much Adam!

I’ll use your file and if I spot things, I’ll let you know.

Caspar


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




> On Sep 25, 2017, at 2:37 PM, Adam Phillips <asphilli at ucar.edu> wrote:
> 
> Hi Caspar,
> I too previously had trouble getting NCL's gedit syntax highlighting to work on yellowstone, so thanks for sending along the solution. Using Mary's gen_editors_utils.ncl script that is available at the top of the syntax highlighting page:
> http://www.ncl.ucar.edu/Applications/editor.shtml <http://www.ncl.ucar.edu/Applications/editor.shtml>
> http://www.ncl.ucar.edu/Applications/Files/gen_editor_utils.ncl <http://www.ncl.ucar.edu/Applications/Files/gen_editor_utils.ncl>
> 
> I was able to update the ncl.lang file to include the newest functions, resources and the like. I have attached it here. I had to do a slew of minor editing though as Mary's function identified all the links on NCL's functions/procedures pages as functions, and thus, I'd rather send this (beta-) version of ncl.lang to the list and will update the website once people have thoroughly tested it out. If anyone spots anything amiss send me an email.
> Adam
> 
>  
> 
> On Sat, Sep 23, 2017 at 4:09 PM, Caspar Ammann <ammann at ucar.edu <mailto:ammann at ucar.edu>> wrote:
> 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 <mailto: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>
>>> 
>>> 
>> 
> 
> 
> _______________________________________________
> 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>
> 
> 
> 
> 
> -- 
> Adam Phillips 
> Associate Scientist,  Climate and Global Dynamics Laboratory, NCAR
> www.cgd.ucar.edu/staff/asphilli/ <http://www.cgd.ucar.edu/staff/asphilli/>   303-497-1726
> 
>  <http://www.cgd.ucar.edu/staff/asphilli><ncl.lang>

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


More information about the ncl-talk mailing list