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

Files to add to highlightjs/highlight.js (in respective locations) to build a highlighter for Python logs

License

Notifications You must be signed in to change notification settings

highlightjs/highlightjs-pythonlogging

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Files to add to highlightjs/highlight.js (in respective locations) to build a highlighter for Python logs

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published