[gmx-developers] gerrit syntax highlighting for CUDA/OpenCL sources

Benson Muite benson_muite at emailplus.org
Wed Apr 10 15:56:14 CEST 2019


Hi,

How do you typically get syntax highlighting when writing code locally? 
For example do you use any of the items below:

https://github.com/podgib/atom-opencl

https://streamhpc.com/blog/2011-02-01/gedit-opencl-syntax-highlighting/

https://github.com/bfrg/vim-cuda-syntax

http://ftp.vim.org/vim/runtime/syntax/cuda.vim

https://github.com/petRUShka/vim-opencl

Regards,
Benson
On 4/10/19 3:45 PM, Szilárd Páll wrote:
> Hi,
>
> 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.
>
> 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:
> - does anybody had a workaround?
> - 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?
>
> Cheers,
> --
> Szilárd
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://maillist.sys.kth.se/pipermail/gromacs.org_gmx-developers/attachments/20190410/776906b7/attachment.html>


More information about the gromacs.org_gmx-developers mailing list