Replies: 1 comment
-
I have added two example syntaxes (SystemVerilog, VHDL) to the theme. Thank you for your work! See the change log. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A suggestion on how to add custom syntaxes to code highlighting and have that become part of the default template.
In general, code highlighting works quite well with Zolarwind. However, there are additional languages that one may want to use in the future that are not currently supported. In my case, this was SystemVerilog. So how to do this exactly ?
The documentation page on getzola.org lists all the languages that are supported here:
https://www.getzola.org/documentation/content/syntax-highlighting/
This page is helpful, however, it doesn't quite give the exact details of how to do this in the config.toml file. Here is how I modified Zolarwind structure to get custom syntax code highlighting:
It is important to have the extra_syntaxes_themes under the Markdown section otherwise it will not work.
Finally, it should be noted that the modification described above works with other Zola templates too, so modifying the
config.toml file under the Markdown section is the main detail along with adding the custom Name.sublime-syntax file.
An example config.toml modification:
Beta Was this translation helpful? Give feedback.
All reactions