preaction / Statocles

Static website CMS
http://preaction.me/statocles
Other
84 stars 33 forks source link

Feature request: support more syntax types for highlighting #556

Open neilhwatson opened 6 years ago

neilhwatson commented 6 years ago

The syntax highlighter is missing common types HCL (HashiCorp) and YAML (aren't we all YAML users today ;))

preaction commented 6 years ago

The built-in highlighter uses https://metacpan.org/pod/Syntax::Highlight::Engine::Kate, which has apparently been deprecated in favor of https://metacpan.org/pod/Syntax::Kamelon. Kamelon supports YAML, but not HCL. You could either add support the Syntax::Highlight::Engine::Kate, move the Statocles::Plugin::Highlight to Kamelon (and add HCL support there), or switch to a JavaScript-based highlighter (HighlightJS comes to mind, but it also does not support HCL).