AWResponse response = response();
BufferedReader reader = new BufferedReader(new StringReader(text));
if (selectedLine > 0) {
response.appendContent(OpenPre);
more = emitLines(reader, response, selectedLine-1);
response.appendContent(ClosePre);
}
if (selectedLine >=0 && more) {
response.appendContent(OpenPreSelected);
more = emitLines(reader, response, 1);
response.appendContent(ClosePre);