example/public/ueditor/third-party/SyntaxHighlighter/shCore.js
function insertSpaces(line, pos, count)
        {
            return line.substr(0, pos)
                + spaces.substr(0, count)
                + line.substr(pos + 1, line.length) // pos + 1 will get rid of the tab
                ;
        }
function insertSpaces(line, pos, count)
        {
            return line.substr(0, pos)
                + spaces.substr(0, count)
                + line.substr(pos + 1, line.length) // pos + 1 will get rid of the tab
                ;
        }
function insertSpaces ( line , pos , count ) { return line . substr ( 0 , pos ) + spaces . substr ( 0 , count ) + line . substr ( pos + 1 , line . length ) // pos + 1 will get rid of the tab ; }
This function inserts specified amount of spaces in the string where a tab is while removing that given tab.
This function inserts specified amount of spaces in the string where a tab is while removing that given tab .