Skip to content
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

explicit language for code blocks #317

Open
progrium opened this issue Nov 25, 2024 · 0 comments
Open

explicit language for code blocks #317

progrium opened this issue Nov 25, 2024 · 0 comments

Comments

@progrium
Copy link
Contributor

The syntax highlighter currently used for highlighting and language detection is not accurate enough to get in the way of running code, which needs accurate language detection. We should in the short term support explicit user selected language for code block components.

Since we have limited user input mechanisms for component data, the easiest to implement and most familiar way to specify a language would be code fencing syntax. If you type in a node three backticks followed by a language name, hitting return should add the code block component and set the language. It should then not autodetect/change the language.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant