// ----------------------------------------------------------------------------
// markItUp!
// ----------------------------------------------------------------------------
// Copyright (C) 2008 Jay Salvat
// http://markitup.jaysalvat.com/
// ----------------------------------------------------------------------------
// Html tags
// http://en.wikipedia.org/wiki/html
// ----------------------------------------------------------------------------
// Basic set. Feel free to add more tags
// ----------------------------------------------------------------------------
my_html = {
nameSpace: "my_html", // Used to prevent multi-instances CSS conflict
onShiftEnter: {keepDefault:false, replaceWith:'
\n'},
onCtrlEnter: {keepDefault:false, openWith:'\n
', closeWith:'
\n'}, onTab: {keepDefault:false, openWith:' '}, markupSet: [ {name:'Paragraph', openWith:'', closeWith:'
' }, {separator:'---------------' }, {name:'Bold', key:'B', openWith:'(!(|!|)!)', closeWith:'(!(|!|)!)' }, {name:'Italic', key:'I', openWith:'(!(|!|)!)', closeWith:'(!(|!|)!)' }, {name:'Stroke through', key:'S', openWith:'\n', closeWith:'\n' }, {name:'Code block', openWith:'
\n', closeWith:'
\n' },
{separator:'---------------' },
{name:'Clean', replaceWith:function(h) { return h.selection.replace(/<(.*?)>/g, "") } }
]
}