src/js/extensions/colorSyntax.js
function wrapTextAndGetRange(pre, text, post) {
  return {
    result: `${pre}${text}${post}`,
    from: pre.length,
    to: pre.length + text.length
  };
}
function wrapTextAndGetRange(pre, text, post) {
  return {
    result: `${pre}${text}${post}`,
    from: pre.length,
    to: pre.length + text.length
  };
}
function wrapTextAndGetRange ( pre , text , post ) { return { result : ` ${ pre } ${ text } ${ post } ` , from : pre . length , to : pre . length + text . length } ; }
wrap text with pre & post and return with text range
@param {string} pre - text pre
@param {string} text - text
@param {string} post - text post
@returns {object} - wrapped text and range(from, to)
@ignore
wrap text with pre & post and return with text range