scttcper / ngx-codemirror

Codemirror Wrapper for Angular
https://ngx-codemirror.vercel.app
MIT License
282 stars 47 forks source link

Java mode #243

Closed Suranchiyev closed 4 years ago

Suranchiyev commented 4 years ago

I couldn't set up Java by using this library. Does it support Java?

mvarendorff commented 4 years ago

You should use the mode text/x-java for codemirror (see the list of out-of-the-box-supported modes), especially Java, which links to clike which then lists the defined mimetypes in the bottom with text/x-java listed for Java.

See https://github.com/codemirror/CodeMirror/issues/5285 for another reference of this.