<div dir="ltr">Hi Caspar,<div>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:</div><div><a href="http://www.ncl.ucar.edu/Applications/editor.shtml">http://www.ncl.ucar.edu/Applications/editor.shtml</a><br></div><div><a href="http://www.ncl.ucar.edu/Applications/Files/gen_editor_utils.ncl">http://www.ncl.ucar.edu/Applications/Files/gen_editor_utils.ncl</a><br></div><div><br></div><div>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.</div><div>Adam</div><div><br></div><div> </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Sep 23, 2017 at 4:09 PM, Caspar Ammann <span dir="ltr"><<a href="mailto:ammann@ucar.edu" target="_blank">ammann@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hey Rick,<div><br></div><div>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.</div><div><br></div><div>FIX: replace old line ~45 in ncl.lang with a shortened one:</div><div><br></div><div><div><!— turn off old line     <context id="double-quoted-string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-<wbr>check">  --></div><div><br></div><div><!— insert new line —></div><div><context id="double-quoted-string" style-ref="string" end-at-line-end="true"></div><div><br class="m_-8094363592224063568webkit-block-placeholder"></div><div>
<div style="text-align:start;text-indent:0px;word-wrap:break-word"><div style="text-align:start;text-indent:0px;word-wrap:break-word"><div style="font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;word-wrap:break-word"><div>The known / expected error (gtSourceView-WARNING) is rather massive with a dump of the full file, but then it actually works. <span style="text-align:-webkit-auto">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.</span></div><div><span style="text-align:-webkit-auto"><br></span></div><div><span style="text-align:-webkit-auto">Thanks for asking the right question … </span></div><div><span style="text-align:-webkit-auto">Caspar</span></div><div style="color:rgb(0,0,0);font-variant-caps:normal;letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px"><br><font face="Helvetica" style="color:rgb(0,0,0)">Caspar Ammann</font><br><font face="Helvetica" color="#656fb7"><span style="font-size:11px"><b><i>National Center for Atmospheric Research<br>RAL - Climate Science and Applications Program</i></b></span></font><br></div><div style="color:rgb(0,0,0);font-variant-caps:normal;letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px"><font face="Helvetica" color="#656fb7"><span style="font-size:11px"><b><br></b></span></font></div></div></div></div><br class="m_-8094363592224063568Apple-interchange-newline"><br class="m_-8094363592224063568Apple-interchange-newline">
</div>
<br><div><blockquote type="cite"><div>On Sep 23, 2017, at 10:21 AM, Caspar Ammann <<a href="mailto:ammann@ucar.edu" target="_blank">ammann@ucar.edu</a>> wrote:</div><br class="m_-8094363592224063568Apple-interchange-newline"><div><div style="word-wrap:break-word">Thanks Rick,<div>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.</div><div>Caspar</div><div><br></div><div><div>
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div><br><font face="Helvetica">Caspar Ammann</font><br><font face="Helvetica" color="#656fb7"><span style="font-size:11px"><b><i>National Center for Atmospheric Research<br>RAL - Climate Science and Applications Program</i></b></span></font><br></div><div><font face="Helvetica" color="#656fb7"><span style="font-size:11px"><b><br></b></span></font></div></div></div></div><br class="m_-8094363592224063568Apple-interchange-newline"><br class="m_-8094363592224063568Apple-interchange-newline">
</div>
<br><div><blockquote type="cite"><div>On Sep 22, 2017, at 8:24 PM, Rick Brownrigg <<a href="mailto:brownrig@ucar.edu" target="_blank">brownrig@ucar.edu</a>> wrote:</div><br class="m_-8094363592224063568Apple-interchange-newline"><div><div dir="ltr"><div><div><div>Hi Caspar,<br><br></div>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.    <br><br></div>Anybody else out there with ideas in the meantime?<br><br></div>Rick<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 22, 2017 at 4:06 PM, Caspar Ammann <span dir="ltr"><<a href="mailto:ammann@ucar.edu" target="_blank">ammann@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi,<div><br></div><div>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?</div><div><br></div><div>Thanks!</div><div>Caspar <span class="m_-8094363592224063568HOEnZb"><font color="#888888"><br><div>
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div><br><font face="Helvetica">Caspar Ammann</font><br><font color="#656fb7" face="Helvetica"><span style="font-size:11px"><b><i>National Center for Atmospheric Research<br>RAL - Climate Science and Applications Program</i></b></span></font><br></div><div><font color="#656fb7" face="Helvetica"><span style="font-size:11px"><b><br></b></span></font></div></div></div></div><br class="m_-8094363592224063568m_2807067967735769996Apple-interchange-newline"><br class="m_-8094363592224063568m_2807067967735769996Apple-interchange-newline">
</div>
<br></font></span></div></div><br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>
</div></blockquote></div><br></div></div></div></blockquote></div><br></div></div><br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist,  </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a>   </font></span><span><font color="#888888">303-497-1726 </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>
</div>