MCPcopy Index your code
hub / github.com/gto76/python-cheatsheet / changeCodeLanguages

Function changeCodeLanguages

parse.js:819–826  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

817}
818
819function changeCodeLanguages() {
820 setApaches(['<D>', '<T>', '<DT>', '<TD>', '<a>', '<n>']);
821 $('code').not('.python').not('.text').not('.bash').not('.apache').addClass('python');
822 $('code:contains(<el> = <2d>[row_index, col_index])').removeClass().addClass('bash');
823 $('code:contains(<1d_array> = <2d>[row_indices, col_indices])').removeClass().addClass('bash');
824 $('code:contains(<2d_bools> = <2d> > <el/1d/2d>)').removeClass().addClass('bash');
825 $('code.perl').removeClass().addClass('python');
826}
827
828function setApaches(elements) {
829 for (el of elements) {

Callers 1

highlightCodeFunction · 0.85

Calls 2

setApachesFunction · 0.85
$Function · 0.85

Tested by

no test coverage detected