<div dir="ltr"><div dir="ltr">On Thu, Apr 11, 2019 at 12:04 AM Benson Muite &lt;<a href="mailto:benson_muite@emailplus.org">benson_muite@emailplus.org</a>&gt; wrote:<br></div><div class="gmail_quote"><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>Possible solutions:</p>
    <p>a) View the code through another site that will add syntax
      highlighting, for example using highlight.js
      (<a class="gmail-m_-2467879761490098719moz-txt-link-freetext" href="https://highlightjs.org" target="_blank">https://highlightjs.org</a>)<br></p></div></blockquote><div>I want the diff view in gerrit to have highlighting; if I have to do something extra, I might as well just switch back to the old site layout and pick the language manually.<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>
    </p>
    <p>b) Add a plugin to Gerrit:</p>
    <p><a class="gmail-m_-2467879761490098719moz-txt-link-freetext" href="https://gerrit.googlesource.com/gerrit/+/master/SUBMITTING_PATCHES" target="_blank">https://gerrit.googlesource.com/gerrit/+/master/SUBMITTING_PATCHES</a></p></div></blockquote><div><br></div><div>I don&#39;t see which plugin are you suggesting to add.</div><div><br></div><div><div><div dir="ltr" class="gmail_signature">--<br>Szilárd</div></div> </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><br>
    </p>
    <div class="gmail-m_-2467879761490098719moz-cite-prefix">On 4/10/19 11:46 PM, Szilárd Páll
      wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">
        <div>Sure, most editors and IDE&#39;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-m_-2467879761490098719gmail_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 &lt;<a href="mailto:benson_muite@emailplus.org" target="_blank">benson_muite@emailplus.org</a>&gt;
          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_-2467879761490098719gmail-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_-2467879761490098719gmail-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_-2467879761490098719gmail-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_-2467879761490098719gmail-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_-2467879761490098719gmail-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_-2467879761490098719gmail-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&#39;ve always had to
                  manually visit the diff preferences every time I
                  opened one of these files and set C++ or C in the
                  &quot;Language&quot; 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&#39;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_-2467879761490098719gmail-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&#39;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>
      <br>
      <fieldset class="gmail-m_-2467879761490098719mimeAttachmentHeader"></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&#39;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></div>