1
0
Fork 0
forked from 0x2620/oxjs

some improvements to syntax highlighter

This commit is contained in:
rolux 2011-05-08 22:38:51 +02:00
commit 30ebbee085
5 changed files with 76 additions and 64 deletions

View file

@ -18,10 +18,14 @@ Ox.load('UI', {
$options = Ox.Element()
.append(
Ox.FormElementGroup({
elements: ['showLineNumbers', 'showLinebreaks', 'showTabs', 'showWhitespace'].map(function(v, i) {
elements: [
'showLineNumbers', 'showLinebreaks', 'showTabs', 'showWhitespace', 'stripComments'
].map(function(v, i) {
return Ox.Checkbox({
overlap: 'right',
title: Ox.toDashes(v).split('-').map(function(v) { return Ox.toTitleCase(v); }).join(' '),
title: Ox.toDashes(v).split('-').map(function(v) {
return Ox.toTitleCase(v);
}).join(' '),
width: 160
}).bindEvent({
change: function(event) {