1
0
Fork 0
forked from 0x2620/oxjs

some more improvements to syntax highlighter

This commit is contained in:
rolux 2011-05-08 23:06:48 +02:00
commit bec9222cf2
2 changed files with 46 additions and 39 deletions

View file

@ -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);
}
})