<div dir="ltr"><div>Sure, most editors and IDE's have syntax highlighting build in or easily enabled through plugins for both CUDA and OpenCL.</div><div><br></div><div>Cheers,<br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">--<br>Szilárd</div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Apr 10, 2019 at 3:57 PM Benson Muite <<a href="mailto:benson_muite@emailplus.org">benson_muite@emailplus.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF">
<p>Hi,</p>
<p>How do you typically get syntax highlighting when writing code
locally? For example do you use any of the items below:<br>
</p>
<p><a class="gmail-m_-4280200020168889409moz-txt-link-freetext" href="https://github.com/podgib/atom-opencl" target="_blank">https://github.com/podgib/atom-opencl</a><br>
</p>
<p><a class="gmail-m_-4280200020168889409moz-txt-link-freetext" href="https://streamhpc.com/blog/2011-02-01/gedit-opencl-syntax-highlighting/" target="_blank">https://streamhpc.com/blog/2011-02-01/gedit-opencl-syntax-highlighting/</a><br>
</p>
<p><a class="gmail-m_-4280200020168889409moz-txt-link-freetext" href="https://github.com/bfrg/vim-cuda-syntax" target="_blank">https://github.com/bfrg/vim-cuda-syntax</a></p>
<p><a class="gmail-m_-4280200020168889409moz-txt-link-freetext" href="http://ftp.vim.org/vim/runtime/syntax/cuda.vim" target="_blank">http://ftp.vim.org/vim/runtime/syntax/cuda.vim</a></p>
<p><a class="gmail-m_-4280200020168889409moz-txt-link-freetext" href="https://github.com/petRUShka/vim-opencl" target="_blank">https://github.com/petRUShka/vim-opencl</a><br>
</p>
Regards,<br>
Benson<br>
<div class="gmail-m_-4280200020168889409moz-cite-prefix">On 4/10/19 3:45 PM, Szilárd Páll wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi,<br>
<div><br>
</div>
<div>Traditionally, syntax highlighting of .cu/.cuh/.clh files
has been a bit of a pain and I've always had to manually visit
the diff preferences every time I opened one of these files
and set C++ or C in the "Language" drop-down.<br>
</div>
<div><br>
</div>
<div>While the new interface with the recent upgrade is a decent
improvement that almost made me switch, they removed the
ability to manually set the language in the diff view prefs.
Reviewing CUDA and OpenCL without syntax highlighting is too
much of a pain, so I thought I'd ask:</div>
<div>- does anybody had a workaround?</div>
<div>- does anyone know of a plugin or server-side config that
would allow implementing a workaround e.g. permanently mapping
these sources to have C++ syntax highlighting?<br>
</div>
<div><br>
</div>
<div>Cheers,<br>
</div>
--<br>
Szilárd</div>
<br>
<fieldset class="gmail-m_-4280200020168889409mimeAttachmentHeader"></fieldset>
</blockquote>
</div>
-- <br>
Gromacs Developers mailing list<br>
<br>
* Please search the archive at <a href="http://www.gromacs.org/Support/Mailing_Lists/GMX-developers_List" rel="noreferrer" target="_blank">http://www.gromacs.org/Support/Mailing_Lists/GMX-developers_List</a> before posting!<br>
<br>
* Can't post? Read <a href="http://www.gromacs.org/Support/Mailing_Lists" rel="noreferrer" target="_blank">http://www.gromacs.org/Support/Mailing_Lists</a><br>
<br>
* For (un)subscribe requests visit<br>
<a href="https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-developers" rel="noreferrer" target="_blank">https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-developers</a> or send a mail to <a href="mailto:gmx-developers-request@gromacs.org" target="_blank">gmx-developers-request@gromacs.org</a>.</blockquote></div>