GithubHelp home page GithubHelp logo

isabella232 / highlightjs-pythonlogging Goto Github PK

View Code? Open in Web Editor NEW

This project forked from highlightjs/highlightjs-pythonlogging

0.0 0.0 0.0 6 KB

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

License: BSD 3-Clause "New" or "Revised" License

JavaScript 100.00%

highlightjs-pythonlogging's Introduction

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.

highlightjs-pythonlogging's People

Contributors

egor-rogov avatar joshgoebel avatar vsoch avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.