swh.web.utils.highlightjs module#
- swh.web.utils.highlightjs.get_hljs_language_from_filename(filename)[source]#
Function that tries to associate a language supported by highlight.js from a filename.
- Parameters:
filename – input filename
- Returns:
highlight.js language id or None if no correspondence has been found