Format all files in src
:
prettier --config .prettierrc --write "src/**/*.js"
Or, more generally:
prettier --config --write "/**/*.js"
// This gist provides an example of doing highlighting for | |
// Alveo annotations within a document displayed in a <pre> tag. | |
// It can be used at display time in the browser (with the right API calls). | |
// Although jQuery is used, it's not required except for the page update at the end | |
// Insert method for strings | |
String.prototype.insert = function (index, string) { | |
if (index > 0) { | |
if (index > this.length) { |