Help With VimWiki
Vimwiki Code Block Syntax Highlighting in HTML Not Working Properly
Issue:
I'm trying to enable syntax highlighting for code blocks in Vimwiki's HTML export. In Vim, both Python and Go code blocks have syntax highlighting, but in the exported HTML:
- Inside vim both blocks have syntax highlight so not a syntax issue I think?
- The Python block is missing entirely.
- The Go block appears, but without syntax highlighting.
My Vimwiki Configuration:
letg:vimwiki_listing_hl = 1 let g:vimwiki_listing_hl_command = 'pygmentize -f html' let g:vimwiki_fenced_languages = ['python', 'go', 'cpp', 'sh'] I confirmed that Pygments is installed:
pygmentize -V # Output: Pygments version 2.18.0 Code Blocks in vimwiki
{{{type=python import qiskit as q import numpy as n for i in range(2): print(32) }}} {{{type=go import main }}} How can i enable syntax highlight for exported html.
System Info
Fedora 41 KDE
:echo has('unix')? It seems that theg:vimwiki_listing_hlis only supported onunixsystems.