- Notifications
You must be signed in to change notification settings - Fork1
Files to add to highlightjs/highlight.js (in respective locations) to build a highlighter for Python logs
License
highlightjs/highlightjs-pythonlogging
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
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 againsthighlight.js. Also you may want to reviewissue #4.
This is a simple addition to th Syntax highligherhighlight.jsto allow for highlighting of Python Logging output. Since we can't choose colors to match with the levels, it's up to the userto select a theme to his or her preference. There is no "official" documentationfor how to add a custom language, but generally you can clone highlight.js:
git clone https://www.github.com/highlightjs/highlight.jscd 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 withouta 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
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.