highlightjs /
highlight.js
JavaScript syntax highlighter with language auto-detection and zero dependencies.
97/100 healthLoading repository data…
thlorenz / repository
Syntax highlights JavaScript code with ANSI colors to be printed to the terminal.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
car·di·nal (kärdn-l, kärdnl) - crested thick-billed North American finch having bright red plumage in the male.

cdl).cardinalrc config to customize settingsTable of Contents generated with DocToc
npm install cardinal
[sudo] npm install -g cardinal
Note:
When installed globally, cardinal exposes itself as the cdl command.
cdl <file.js> [options]
options:
--nonum: turns off line number printing (relevant if it is turned on inside ~/.cardinalrccat file.js | grep console | cdl
Note:
Not all code lines may be parsable JavaScript. In these cases the line is printed to the terminal without highlighting it.
The default theme will be used for highlighting.
To use a different theme, include a .cardinalrc file in your HOME directory.
This is a JSON file of the following form:
{
"theme": "hide-semicolons",
"linenos": true|false
}
theme can be the name of any of the built-in themes or the
full path to a custom theme anywhere on your computer.callback ({Function}) has the following signature: function (err, highlighted) { .. }opts is an {Object} with the following properties:
theme {Object} is used to optionally override the theme used to highlightlinenos {Boolean} if true line numbers are included in the highlighted codefirstline {Integer} sets line number of the first line when line numbers are printedjsx {Boolean} if true JSX syntax is supported, otherwise cardinal will raise an error
when encountering JSX (default: false)Note The json option is obsoleted and not necessary anymore as cardinal properly understands both JSON and JavaScript.
Selected from shared topics, language and repository description—not editorial ratings.
highlightjs /
JavaScript syntax highlighter with language auto-detection and zero dependencies.
97/100 healthsyntaxhighlighter /
SyntaxHighlighter is a fully functional self-contained code syntax highlighter developed in JavaScript.
84/100 healthccampbell /
Simple syntax highlighting library written in javascript
EnlighterJS /
:high_brightness: an open source syntax highlighter written in pure javascript
87/100 healthstyled-components /
Syntax highlighting for styled-components
32/100 healthandreruffert /
👓 Syntax Highlighting using the CSS Custom Highlight API
87/100 health