some more improvements to syntax highlighter
This commit is contained in:
parent
30ebbee085
commit
bec9222cf2
2 changed files with 46 additions and 39 deletions
|
|
@ -19,16 +19,18 @@ Ox.load('UI', {
|
|||
.append(
|
||||
Ox.FormElementGroup({
|
||||
elements: [
|
||||
'showLineNumbers', 'showLinebreaks', 'showTabs', 'showWhitespace', 'stripComments'
|
||||
'showLineNumbers', 'showPage', 'showReturns', 'showSpaces', 'showTabs', 'stripComments'
|
||||
].map(function(v, i) {
|
||||
return Ox.Checkbox({
|
||||
overlap: 'right',
|
||||
title: Ox.toDashes(v).split('-').map(function(v) {
|
||||
return Ox.toTitleCase(v);
|
||||
}).join(' '),
|
||||
width: 160
|
||||
width: 144
|
||||
}).bindEvent({
|
||||
change: function(event) {
|
||||
v == 'showPage' ?
|
||||
$syntaxHighlighter.options({lineLength: event.checked ? 80 : 0}) :
|
||||
$syntaxHighlighter.options(v, event.checked);
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue