pythonstack.js
v1.0.2
Published
A simple and easy library for highlighting Python stack traces
Downloads
304
Readme
pythonStack.js
A simple and easy library for highlighting Python stack traces
Demo
Initialization
pythonStack('.stacktrace');
Default values for classes and prettyprint
pythonStack('.stacktrace', {
intro: 'st-intro'
exception: 'st-exception'
method: 'st-methodName',
file: 'st-fileName',
line: 'st-lineNumber',
prettyprint: true,
});
Ready to go css
pre {padding: 20px 10px;}
pre, code {background-color: #333;color: #ffffff;}
.st-methodName {color: #70c9ba;font-weight: bolder;}
.st-lineNumber {color: #ff4f68;}
.st-fileName {color: #85dbff;}
.st-intro {color: #0044dd;}
.st-exception {color: #e40000;}