Sha256: 07da8dd2eccff7053a9958509d8004ade8f7762f0eae77034b819c65e5177ad6
Contents?: true
Size: 993 Bytes
Versions: 2
Compression:
Stored size: 993 Bytes
Contents
/* Language: HTTP Description: HTTP request and response headers with automatic body highlighting Author: Ivan Sagalaev <maniac@softwaremaniacs.org> */ hljs.LANGUAGES['http'] = function(hljs) { return { illegal: '\\S', contains: [ { className: 'status', begin: '^HTTP/[0-9\\.]+', end: '$', contains: [{className: 'number', begin: '\\b\\d{3}\\b'}] }, { className: 'request', begin: '^[A-Z]+ (.*?) HTTP/[0-9\\.]+$', returnBegin: true, end: '$', contains: [ { className: 'string', begin: ' ', end: ' ', excludeBegin: true, excludeEnd: true } ] }, { className: 'attribute', begin: '^\\w', end: ': ', excludeEnd: true, illegal: '\\n|\\s|=', starts: {className: 'string', end: '$'} }, { begin: '\\n\\n', starts: {subLanguage: '', endsWithParent: true} } ] }; }(hljs);
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
highlight_js-rails4-7.4.0.4 | vendor/assets/javascripts/highlight_js/languages/http.js |
highlight_js-rails4-7.4.0.3 | vendor/assets/javascripts/highlight_js/languages/http.js |