<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" 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="moz-txt-link-freetext" href="https://github.com/podgib/atom-opencl">https://github.com/podgib/atom-opencl</a><br>
</p>
<p><a class="moz-txt-link-freetext" href="https://streamhpc.com/blog/2011-02-01/gedit-opencl-syntax-highlighting/">https://streamhpc.com/blog/2011-02-01/gedit-opencl-syntax-highlighting/</a><br>
</p>
<p><a class="moz-txt-link-freetext" href="https://github.com/bfrg/vim-cuda-syntax">https://github.com/bfrg/vim-cuda-syntax</a></p>
<p><a class="moz-txt-link-freetext" href="http://ftp.vim.org/vim/runtime/syntax/cuda.vim">http://ftp.vim.org/vim/runtime/syntax/cuda.vim</a></p>
<p><a class="moz-txt-link-freetext" href="https://github.com/petRUShka/vim-opencl">https://github.com/petRUShka/vim-opencl</a><br>
</p>
Regards,<br>
Benson<br>
<div class="moz-cite-prefix">On 4/10/19 3:45 PM, Szilárd Páll wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CANnYEw5WdpgRHMqYk=Oxn4_bx=_dtrNyYMP_P=CJ4nrakoaq2A@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<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="mimeAttachmentHeader"></fieldset>
</blockquote>
</body>
</html>