elvirbrk / NoteHighlight2016

Source code syntax highlighting for OneNote 2016 and OneNote for O365 . NoteHighlight 2013 port for OneNote 2016 (32-bit and 64-bit)
GNU General Public License v2.0
3.79k stars 393 forks source link

Request to support systemverilog #186

Open wnim opened 1 year ago

wnim commented 1 year ago

Hi,

I wish to add support to systemverilog but I'm not sure how. I did a bit of experimenting to see if I can make a new ribbon button that would point to a new .lang file (sv.lang) but this failed.

As long as tag="java" this new button is able to provide syntax highlighting (according to java rules).

<button id="sv" label="sv" size="large" screentip="Enter svCode" onAction="AddInButtonClicked" tag="java" image="Other.png" visible="true"/>

The next step, which failed, was to copy "java.lang" to "sv.lang", and add this entry to the ribbon.xml:

<button id="sv" label="sv" size="large" screentip="Enter sv Code" onAction="AddInButtonClicked" tag="sv" image="Other.png" visible="true"/>

If this would have worked I could go on to editing sv.lang to match systemverilog syntax. An I missing something in the above step?

Edit: I also tried to edit the "java.lang" file and add "endclass" keyword (it's a systemverilog keyword) there to see if it gets highlighted, and it doesn't, so, I must be missing something huge 😅

Thanks,