// ----------------------------------------------------------------------------
// markItUp!
// ----------------------------------------------------------------------------
// Copyright (C) 2008 Jay Salvat
// http://markitup.jaysalvat.com/
// ----------------------------------------------------------------------------
myHtmlSettings = {
nameSpace: "html", // Useful to prevent multi-instances CSS conflict
onShiftEnter: { keepDefault:false, replaceWith:'
\n' },
onCtrlEnter: { keepDefault:false, openWith:'\n
', closeWith:'
\n' }, onTab: { keepDefault:false, openWith:' ' }, markupSet: [ {name:'| HEADING 2 | Select portion of text first. Click on this button to create heading.', key:'2', openWith:'\n', closeWith:'\n' }, {separator:'---------------' }, {name:'| CODE BLOCK | Select portion of code first. Click on this button to create preformated code block.', openWith:'
\n', closeWith:'\n' },
{name:'| ENCODE HTML SPECIAL CHARS | If pasted code contains special characters (<, >) it must be encoded first to enable save! Select portion of code first and click to Encode.',
className:"encodechars",
replaceWith:function( markItUp ) {
c = document.createElement( 'div' );
c.appendChild( document.createTextNode( markItUp.selection ) );
return c.innerHTML;
}
},
{separator:'---------------' },
{name:'| CLEAN | Select portion of HTML formatted text first. Click on this button to clean up HTML code.', replaceWith:function(h) { return h.selection.replace(/<(.*?)>/g, "") } },
{separator:'---------------' },
{name:'| PREVIEW | Click on this button to preview your entry!', call:'preview', className:'preview' }
]
}