highlight.js
Version:
Syntax highlighting with language autodetection.
19 lines (16 loc) • 392 B
JavaScript
/*
Language: C++
Category: common, system
Website: https://isocpp.org
Requires: c-like.js
*/
/** @type LanguageFn */
function cpp(hljs) {
var lang = hljs.getLanguage('c-like').rawDefinition();
// return auto-detection back on
lang.disableAutodetect = false;
lang.name = 'C++';
lang.aliases = ['cc', 'c++', 'h++', 'hpp', 'hh', 'hxx', 'cxx'];
return lang;
}
module.exports = cpp;