use new-style (textual, not tokenized) source
This commit is contained in:
parent
ba4588f3fa
commit
e081f5b0ee
1 changed files with 2 additions and 4 deletions
|
@ -184,14 +184,12 @@ Ox.DocPage = function(options, self) {
|
||||||
+ '</b>:' + self.options.item.line + '</code>'
|
+ '</b>:' + self.options.item.line + '</code>'
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
Ox.print('IS::', item.source);
|
||||||
$elements.push(
|
$elements.push(
|
||||||
Ox.SyntaxHighlighter({
|
Ox.SyntaxHighlighter({
|
||||||
replace: self.options.replace,
|
replace: self.options.replace,
|
||||||
showLineNumbers: true,
|
showLineNumbers: true,
|
||||||
// fixme: silly
|
source: item.source,
|
||||||
source: item.source.map(function(token) {
|
|
||||||
return token.source;
|
|
||||||
}).join(''),
|
|
||||||
offset: self.options.item.line
|
offset: self.options.item.line
|
||||||
})
|
})
|
||||||
.addClass(className)
|
.addClass(className)
|
||||||
|
|
Loading…
Reference in a new issue