You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Highlight bug in language-detection for C++ codes #21
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
Activity
azu commentedon May 8, 2016
Intesting.
https://github.com/blakeembrey/language-map/blob/b72edb8c2cb1b05d098782aa85dd2f573ed96ba3/languages.json#L431-L455 defined that the
aceModeof.cppfile isc_cpp.gitbook-plugin-include-codeblock/src/language-detection.js
Lines 26 to 45 in e1efa58
aceMode.Which is correct value
aliasesorsearchTerm?I don't know correct way...
gdolle commentedon May 8, 2016
It should be
cppso one or another seems ok :)gdolle commentedon May 8, 2016
Hum actually, I maybe replied too fast.
I'm not sure that
aliasesorsearchTermare better thanaceModeif 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 ?
azu commentedon May 8, 2016
via Creating and highlighting code blocks - User Documentation
Maybe, correct algorithm is defined in github/linguist.
azu commentedon May 8, 2016
I want to avoid special case, but it is simple solution.
I agree with @gdolle's suggestion that does
/c_cpp/cpp/g.gdolle commentedon May 8, 2016
I agree with you @azu that it is just a workaround, it would be better to check github/linguist.
It seems that currently,
highlight.jsis used with gitbookUpdate issue azu#21
Fix issue #33, update #21 (#37)
azu commentedon Jan 6, 2017
This is resolved by 2.2.0 and close it