private static String highlightToken ( String line , Token token ) { String newLine = insertChar ( line , getLastCharPositionInLine ( token ) , ' ' ) ; return insertChar ( newLine , token . getCharPositionInLine ( ) , ' ' ) ; }
Puts the specified token within square brackets .