Skip to content
This repository was archived by the owner on Feb 26, 2022. It is now read-only.

Latest commit

 

History

History
33 lines (21 loc) · 1.33 KB

README.md

File metadata and controls

33 lines (21 loc) · 1.33 KB

This project is currently unsupported and needs a maintainer. If you'd be interested in maintaining this grammar, just open an issue here or against highlight.js. Also you may want to review issue #4.


highlightjs-pythonlogging

This is a simple addition to th Syntax highligher highlight.js to allow for highlighting of Python Logging output. Since we can't choose colors to match with the levels, it's up to the user to select a theme to his or her preference. There is no "official" documentation for how to add a custom language, but generally you can clone highlight.js:

git clone https://www.github.com/highlightjs/highlight.js
cd highlight.js

Copy the files here to that repository:

cp -R ../highlightjs-pythonlogging/test/detect/pythonlogging test/detect/
cp ../highlightjs-pythonlogging/src/pythonlogging.js src/languages/

And then follow instructions to build the library (either with or without a container) to generate the compiled library.