highlighting

This commit is contained in:
Alexander 2025-06-14 11:16:36 -04:00
parent 4c775286ef
commit 7e898e720b
7 changed files with 44 additions and 12 deletions

View file

@ -136,8 +136,7 @@ selector = "blink"
# but you can set this option to false to delete just the first one
delete_all = true
# [widgets.syntax]
# widget = "preprocess_element"
# selector = 'pre code'
# # command = "echo \"<code>$(awk -F \\- '{print $NF}' <<< $ATTR_CLASS)</code>\""
# command = 'highlight -O html -f --inline-css --syntax=ocaml --style=zellner'
[widgets.syntax]
widget = "preprocess_element"
selector = 'pre code'
command = "pygmentize -l \"$(awk -F \\- '{print $NF}' <<< $ATTR_CLASS)\" -f html | head -c -13 | awk -F '<pre>' '{print $NF}'"