Manual type highlighting in a code block #193
Labels
bug
Something isn't working
difficulty: medium
A typical task that maybe a bit time consuming or just requires to use a bit advanced algorithm.
enhancement
New feature or request
est. time: < 1 week
A loose time estimation of less than one week of work.
Milestone
Default code highlighting is limited. Where possible we should add custom type hints to properly color a token.
Status
// prism-push-types:Type1,Type2,Type3
MagicComments should be applied after Prism tokenization to properly track line numbers facebook/docusaurus#8550
The problem
Example:

Enemy
token should be manually marked as a class name for better previewHow it should be done:
Result preview:
The text was updated successfully, but these errors were encountered: