Provide alias for language mode #4858
kuchaguangjie
started this conversation in
Ideas
Replies: 1 comment
-
Or, event better, provide a mechanism to let user to add/config the aliases. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Some language may have multiple common used names, e.g
Go
is actually the name, notGolang
. refer: https://go.dev/doc/faq#go_or_golangc_cpp
might be nice to have aliasc
,cpp
, or evenc++
.Ace load js file
mode-xxx.js
by the mode namexxx
, which means the ace user must use thexxx
directly, or they need to alias the names by themselves.So, I'm wondering, when call
editor.session.setMode("ace/mode/xxx")
, is it possible for ace to recognize thexxx
aliaes, so that each programmer don't have to do that.e.g both
editor.session.setMode("ace/mode/golang")
andeditor.session.setMode("ace/mode/go")
would loadmode-golang.js
.Beta Was this translation helpful? Give feedback.
All reactions