Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A simple and easy jQuery plugin for highlighting .NET stack traces

License

Notifications You must be signed in to change notification settings

elmahio/netStack.js

Repository files navigation

netStack.js

npm license Tests

A simple and easy JavaScript library for highlighting .NET stack traces

Stacktrace - Language support

English Danish German Spanish Russian Chinese

Demo

netStack.js - demo

Stack Trace Formatter - Online pretty print of .NET stack traces

Initialization

Using a string that represents a CSS selector:

const stack = new netStack('.stacktrace');

Passing an HTMLElement object:

const stackElement = document.querySelector('.stacktrace');
const stack = new netStack(stackElement);

Default values for classes

const stack = new netStack('.stacktrace', {
 frame: 'st-frame',
 type: 'st-type',
 method: 'st-method',
 paramsList: 'st-frame-params',
 paramType: 'st-param-type',
 paramName: 'st-param-name',
 file: 'st-file',
 line: 'st-line'
});

Options

prettyprint: boolean

Default: false. Pretty prints your stacktrace.

const stack = new netStack('.stacktrace', {
 prettyprint: true
});

Ready to go CSS

pre, code {background-color:#333; color: #ffffff;}
.st-type {color: #0a8472; font-weight: bolder;}
.st-method {color: #70c9ba; font-weight: bolder;}
.st-frame-params {color: #ffffff; font-weight: normal;}
.st-param-type {color: #0a8472;}
.st-param-name {color: #ffffff;}
.st-file {color:#f8b068;}
.st-line {color:#ff4f68;}

Acknowledgments

Sponsor this project

Contributors 3

AltStyle によって変換されたページ (->オリジナル) /