use new-style (textual, not tokenized) source

This commit is contained in:
rolux 2012-05-26 12:56:23 +02:00
parent ba4588f3fa
commit e081f5b0ee

View file

@ -184,14 +184,12 @@ Ox.DocPage = function(options, self) {
+ '</b>:' + self.options.item.line + '</code>'
)
);
Ox.print('IS::', item.source);
$elements.push(
Ox.SyntaxHighlighter({
replace: self.options.replace,
showLineNumbers: true,
// fixme: silly
source: item.source.map(function(token) {
return token.source;
}).join(''),
source: item.source,
offset: self.options.item.line
})
.addClass(className)