Closed gdolle closed 7 years ago
Intesting.
https://github.com/blakeembrey/language-map/blob/b72edb8c2cb1b05d098782aa85dd2f573ed96ba3/languages.json#L431-L455 defined that the aceMode
of .cpp
file is c_cpp
.
aceMode
.Which is correct value aliases
or searchTerm
?
I don't know correct way...
It should be cpp
so one or another seems ok :)
Hum actually, I maybe replied too fast.
I'm not sure that aliases
or searchTerm
are better than aceMode
if we look at the map for other languages.
Maybe we could just add a specific test for c++, and parse (remove) the lang like /c_cpp/cpp/g
.
What do you think ?
We use Linguist to perform language detection and syntax highlighting. You can find out which keywords are valid in the languages YAML file.
via Creating and highlighting code blocks - User Documentation
Maybe, correct algorithm is defined in github/linguist.
Maybe we could just add a specific test for c++, and parse (remove) the lang like /c_cpp/cpp/g.
I want to avoid special case, but it is simple solution.
I agree with @gdolle's suggestion that does /c_cpp/cpp/g
.
I agree with you @azu that it is just a workaround, it would be better to check github/linguist.
It seems that currently, highlight.js
is used with gitbook
It seems that code highlighting does not work with C++ files.
It seems the parse put
c_cpp
for lang instead ofcpp
.