Open EmilyGraceSeville7cf opened 1 year ago
Is there any example for highlighting? thank you!
Yeah, our official Python client supports highlighting, but in a much simplified manner: just placeholder content is emphasized (without respect of the kind of it).
I think that a proper parser can be written to process placeholders. We already have tldr-lint
, check it out how pages are analyzed for smells, maybe you find smth useful. But for the beginning regex based highlighting can be used. This is how tldr client for Emacs works AFAIK.
https://syntax-highlighting.tldr-inbrowser-app.pages.dev/
To achieve better synatx highlighting, we need to parse the markdown by ourself as well. marked.parse
only returns raw html which doesn't quite compatiable with vue. As a result, some functionalities such as copy to clipboard cannot be implemented.
I am glad to see syntax highlighting enabled. 😄
Add a customizable syntax highlighting for generic placeholders:
-infinity
andinfinity
keywords in blue..
in light cyan...
is highlighted as gray...
color is supported, all other settings are being set for concrete placeholder types