-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
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
JAVA code is not highlighted #4720
Comments
Agree something is weird, as Java is normally supported out of the box We even have a Java snipped in ur website: Is this a new bug after upgrading to alpha 75? Was it working before? |
@slorber I was using alpha-68 and it worked! |
yes, sounds working on the official doc, but not in code sandbox (and in my project).. :( |
Can you try alpha 74? Alpha 75 is a big upgrade (Webpack 5) so it is more likely to have a few issues |
Nothing is changed. Furthercode, in sandbox, the Docusaurus version is alpha.73 |
I have created new sample project, by Same error, JAVA code is not highlighted. |
There's the same issue here #4535
|
@Josh-Cena GREAT!!! Thank you! I don't know why I was convinced to see the code highlighting in version alpha.68... |
Yeah, don't know when they stopped supporting Java—probably when they started using Prism? I also remember using Java back in ~alpha.68 |
This is still weird for me: the Docusaurus site itself does not add any additional config and is able to highlight that Java code block here: https://docusaurus.io/docs/next/markdown-features/code-blocks#multi-language-support-code-blocks But nevermind, indeed Java should be added to the list of additional languages as it's not in the default enabled languages of react-prism-renderer |
I agree, it's very weird... |
🐛 Bug Report
The JAVA code is highlighted.
Have you read the Contributing Guidelines on issues?
YES
To Reproduce
https://codesandbox.io/s/blissful-colden-z454y?file=/docs/intro.md
Expected behavior
The JAVA code should be highlighted.
Actual Behavior
The JAVA code should be highlighted.
Source code:
Result:
Your Environment
The text was updated successfully, but these errors were encountered: