forked from 0x2620/oxjs
make SyntaxHighlighter and SourceViewer more useful by allowing replacements; remove index.json and source/Ox/png; plus some other small and/or cosmetic changes
This commit is contained in:
parent
24eb4bdc64
commit
03f4f77ce6
16 changed files with 213 additions and 230 deletions
|
|
@ -8,7 +8,8 @@ Ox.ExamplePanel = function(options, self) {
|
|||
examples: [],
|
||||
keywords: null,
|
||||
path: '',
|
||||
replace: [],
|
||||
replaceCode: [],
|
||||
replaceComment: [],
|
||||
size: 256
|
||||
})
|
||||
.options(options || {})
|
||||
|
|
@ -97,7 +98,8 @@ Ox.ExamplePanel = function(options, self) {
|
|||
html: item.html,
|
||||
js: item.js,
|
||||
keywords: item.keywords,
|
||||
replace: self.options.replace,
|
||||
replaceCode: self.options.replaceCode,
|
||||
replaceComment: self.options.replaceComment,
|
||||
title: item.title,
|
||||
width: window.innerWidth - self.options.size
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue