Sha256: d67e36ff3f89c713b6f9d9b5cfb5bd711059a35956e5400e2022a8ac3a671c64

Contents?: true

Size: 902 Bytes

Versions: 6

Compression:

Stored size: 902 Bytes

Contents

Prism.languages.http={"request-line":{pattern:/^(POST|GET|PUT|DELETE|OPTIONS|PATCH|TRACE|CONNECT)\b\shttps?:\/\/\S+\sHTTP\/[0-9.]+/m,inside:{property:/^(POST|GET|PUT|DELETE|OPTIONS|PATCH|TRACE|CONNECT)\b/,"attr-name":/:\w+/}},"response-status":{pattern:/^HTTP\/1.[01] [0-9]+.*/m,inside:{property:{pattern:/(^HTTP\/1.[01] )[0-9]+.*/i,lookbehind:!0}}},"header-name":{pattern:/^[\w-]+:(?=.)/m,alias:"keyword"}};var httpLanguages={"application/json":Prism.languages.javascript,"application/xml":Prism.languages.markup,"text/xml":Prism.languages.markup,"text/html":Prism.languages.markup};for(var contentType in httpLanguages)if(httpLanguages[contentType]){var options={};options[contentType]={pattern:new RegExp("(content-type:\\s*"+contentType+"[\\w\\W]*?)(?:\\r?\\n|\\r){2}[\\w\\W]*","i"),lookbehind:!0,inside:{rest:httpLanguages[contentType]}},Prism.languages.insertBefore("http","header-name",options)}

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
highlighting-0.1.4 vendor/assets/javascripts/prism-http.min.js
prism-rails-1.5.0 vendor/assets/javascripts/prism-http.min.js
highlighting-0.1.3 vendor/assets/javascripts/prism-http.min.js
highlighting-0.1.2 vendor/assets/javascripts/prism-http.min.js
highlighting-0.1.1 vendor/assets/javascripts/prism-http.min.js
highlighting-0.1.0 vendor/assets/javascripts/prism-http.min.js