-
-
Notifications
You must be signed in to change notification settings - Fork 281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for more languages in syntax highlighting #1589
Comments
See cinny/src/app/plugins/react-prism/ReactPrism.tsx Lines 5 to 16 in 3a95d0d
You can add more with their supported name |
Is there a reason why we cannot do something akin to the following? const loadLanguages = require('prismjs/components/');
loadLanguages(); Since Cinny will technically be applicable to use all of the created languages, as its user data in a messager app, and we cannot know what languages users would want to use? For example, i would love to have |
sounds like a good idea.
|
Is According to the prism docs there seems to be that the only way to load all languages is to use the Just FYI the initial discussion for the language-loader was in PrismJS/prism#972. Not sure how development of v2 has changed anything in this regard. |
Describe the problem
In short, the recently added syntax highlighting of codeblocks in Cinny is rather limited. Missing languages such as Elixir and Nix from some quick testing.
Describe the solution you'd like
A more exhaustive list of supported languages.
Alternatives considered
Not having syntax highlighting for some languages, which seems like an odd choice when others do.
Additional context
Related: #324
The text was updated successfully, but these errors were encountered: