Closed dbaynard closed 5 years ago
One approach would be to add a default.xml syntax description that basically does not highlighting, derive a syntax from it, and use this as the default.
This would require no other changes to the API, at the cost of being a bit slower I suppose.
dbaynard notifications@github.com writes:
skylighting
does two tasks:
- Formats code
- Highlights code
At the moment, skylighting does not highlight code without formatting; this causes problems e.g. jgm/pandoc#4688 as the skylighting formatting functionality must be duplicated.
The
skylighting
api should make it possible to format code without highlighting.-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/jgm/skylighting/issues/48
I've just pushed a commit adding 'default' syntax.
John MacFarlane jgm@berkeley.edu writes:
One approach would be to add a default.xml syntax description that basically does not highlighting, derive a syntax from it, and use this as the default.
This would require no other changes to the API, at the cost of being a bit slower I suppose.
dbaynard notifications@github.com writes:
skylighting
does two tasks:
- Formats code
- Highlights code
At the moment, skylighting does not highlight code without formatting; this causes problems e.g. jgm/pandoc#4688 as the skylighting formatting functionality must be duplicated.
The
skylighting
api should make it possible to format code without highlighting.-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/jgm/skylighting/issues/48
Is it worth adding something like the following:
extensions="*.txt" mimetype="text/plain"
here?
skylighting
does two tasks:At the moment, skylighting does not highlight code without formatting; this causes problems e.g. jgm/pandoc#4688 as the skylighting formatting functionality must be duplicated.
The
skylighting
api should make it possible to format code without highlighting.