<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Thanks much Adam!<div class=""><br class=""></div><div class="">I’ll use your file and if I spot things, I’ll let you know.</div><div class=""><br class=""></div><div class="">Caspar</div><div class=""><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class=""><font face="Helvetica" style="color: rgb(0, 0, 0);" class="">Caspar Ammann</font><br class=""><font face="Helvetica" color="#656fb7" class=""><span style="font-size: 11px;" class=""><b class=""><i class="">National Center for Atmospheric Research<br class="">RAL - Climate Science and Applications Program</i></b></span></font><br class=""></div><div class=""><font face="Helvetica" color="#656fb7" class=""><span style="font-size: 11px;" class=""><b class=""><br class=""></b></span></font></div></div></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Sep 25, 2017, at 2:37 PM, Adam Phillips <<a href="mailto:asphilli@ucar.edu" class="">asphilli@ucar.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi Caspar,<div class="">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 class=""><a href="http://www.ncl.ucar.edu/Applications/editor.shtml" class="">http://www.ncl.ucar.edu/Applications/editor.shtml</a><br class=""></div><div class=""><a href="http://www.ncl.ucar.edu/Applications/Files/gen_editor_utils.ncl" class="">http://www.ncl.ucar.edu/Applications/Files/gen_editor_utils.ncl</a><br class=""></div><div class=""><br class=""></div><div class="">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 class="">Adam</div><div class=""><br class=""></div><div class=""> </div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Sat, Sep 23, 2017 at 4:09 PM, Caspar Ammann <span dir="ltr" class=""><<a href="mailto:ammann@ucar.edu" target="_blank" class="">ammann@ucar.edu</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">Hey Rick,<div class=""><br class=""></div><div class="">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 class=""><br class=""></div><div class="">FIX: replace old line ~45 in ncl.lang with a shortened one:</div><div class=""><br class=""></div><div class=""><div class=""><!— turn off old line     <context id="double-quoted-string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-<wbr class="">check">  --></div><div class=""><br class=""></div><div class=""><!— insert new line —></div><div class=""><context id="double-quoted-string" style-ref="string" end-at-line-end="true"></div><div class=""><br class="m_-8094363592224063568webkit-block-placeholder"></div><div class="">
<div style="text-align:start;text-indent:0px;word-wrap:break-word" class=""><div style="text-align:start;text-indent:0px;word-wrap:break-word" class=""><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" class=""><div class="">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" class="">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 class=""><span style="text-align:-webkit-auto" class=""><br class=""></span></div><div class=""><span style="text-align:-webkit-auto" class="">Thanks for asking the right question … </span></div><div class=""><span style="text-align:-webkit-auto" class="">Caspar</span></div><div style="font-variant-caps: normal; letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px;" class=""><br class=""><font face="Helvetica" style="" class="">Caspar Ammann</font><br class=""><font face="Helvetica" color="#656fb7" class=""><span style="font-size:11px" class=""><b class=""><i class="">National Center for Atmospheric Research<br class="">RAL - Climate Science and Applications Program</i></b></span></font><br class=""></div><div style="font-variant-caps: normal; letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px;" class=""><font face="Helvetica" color="#656fb7" class=""><span style="font-size:11px" class=""><b class=""><br class=""></b></span></font></div></div></div></div><br class="m_-8094363592224063568Apple-interchange-newline"><br class="m_-8094363592224063568Apple-interchange-newline">
</div>
<br class=""><div class=""><blockquote type="cite" class=""><div class="">On Sep 23, 2017, at 10:21 AM, Caspar Ammann <<a href="mailto:ammann@ucar.edu" target="_blank" class="">ammann@ucar.edu</a>> wrote:</div><br class="m_-8094363592224063568Apple-interchange-newline"><div class=""><div style="word-wrap:break-word" class="">Thanks Rick,<div class="">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 class="">Caspar</div><div class=""><br class=""></div><div class=""><div class="">
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word" class=""><div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word" class=""><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" class=""><div class=""><br class=""><font face="Helvetica" class="">Caspar Ammann</font><br class=""><font face="Helvetica" color="#656fb7" class=""><span style="font-size:11px" class=""><b class=""><i class="">National Center for Atmospheric Research<br class="">RAL - Climate Science and Applications Program</i></b></span></font><br class=""></div><div class=""><font face="Helvetica" color="#656fb7" class=""><span style="font-size:11px" class=""><b class=""><br class=""></b></span></font></div></div></div></div><br class="m_-8094363592224063568Apple-interchange-newline"><br class="m_-8094363592224063568Apple-interchange-newline">
</div>
<br class=""><div class=""><blockquote type="cite" class=""><div class="">On Sep 22, 2017, at 8:24 PM, Rick Brownrigg <<a href="mailto:brownrig@ucar.edu" target="_blank" class="">brownrig@ucar.edu</a>> wrote:</div><br class="m_-8094363592224063568Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class=""><div class=""><div class="">Hi Caspar,<br class=""><br class=""></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 class=""><br class=""></div>Anybody else out there with ideas in the meantime?<br class=""><br class=""></div>Rick<br class=""></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Fri, Sep 22, 2017 at 4:06 PM, Caspar Ammann <span dir="ltr" class=""><<a href="mailto:ammann@ucar.edu" target="_blank" class="">ammann@ucar.edu</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">Hi,<div class=""><br class=""></div><div class="">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 class=""><br class=""></div><div class="">Thanks!</div><div class="">Caspar <span class="m_-8094363592224063568HOEnZb"><font color="#888888" class=""><br class=""><div class="">
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word" class=""><div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word" class=""><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" class=""><div class=""><br class=""><font face="Helvetica" class="">Caspar Ammann</font><br class=""><font color="#656fb7" face="Helvetica" class=""><span style="font-size:11px" class=""><b class=""><i class="">National Center for Atmospheric Research<br class="">RAL - Climate Science and Applications Program</i></b></span></font><br class=""></div><div class=""><font color="#656fb7" face="Helvetica" class=""><span style="font-size:11px" class=""><b class=""><br class=""></b></span></font></div></div></div></div><br class="m_-8094363592224063568m_2807067967735769996Apple-interchange-newline"><br class="m_-8094363592224063568m_2807067967735769996Apple-interchange-newline">
</div>
<br class=""></font></span></div></div><br class="">______________________________<wbr class="">_________________<br class="">
ncl-talk mailing list<br class="">
<a href="mailto:ncl-talk@ucar.edu" target="_blank" class="">ncl-talk@ucar.edu</a><br class="">
List instructions, subscriber options, unsubscribe:<br class="">
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank" class="">http://mailman.ucar.edu/mailma<wbr class="">n/listinfo/ncl-talk</a><br class="">
<br class=""></blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></div></div></div></blockquote></div><br class=""></div></div><br class="">______________________________<wbr class="">_________________<br class="">
ncl-talk mailing list<br class="">
<a href="mailto:ncl-talk@ucar.edu" class="">ncl-talk@ucar.edu</a><br class="">
List instructions, subscriber options, unsubscribe:<br class="">
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank" class="">http://mailman.ucar.edu/<wbr class="">mailman/listinfo/ncl-talk</a><br class="">
<br class=""></blockquote></div><br class=""><br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div class=""><div class=""><span class=""><font color="#888888" class="">Adam Phillips <br class=""></font></span></div><span class=""><font color="#888888" class="">Associate Scientist,  </font></span><span class=""><font color="#888888" class="">Climate and Global Dynamics Laboratory, NCAR<br class=""></font></span></div></div><div class=""><span class=""><font color="#888888" class=""><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank" class="">www.cgd.ucar.edu/staff/asphilli/</a>   </font></span><span class=""><font color="#888888" class="">303-497-1726 </font></span></div><span class=""><font color="#888888" class=""></font></span><div class=""><div class=""><span class=""><font color="#888888" class=""><br class=""></font></span><div class=""><span class=""><font color="#888888" class=""><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank" class=""></a></font></span></div></div></div></div></div></div></div></div></div></div></div>
</div>
<span id="cid:19742F81-6984-4417-9378-7C461A685D4F@rap.ucar.edu"><ncl.lang></span></div></blockquote></div><br class=""></div></body></html>