// ----------------------------------------------------------------------------
// markItUp!
// ----------------------------------------------------------------------------
// Copyright (C) 2008 Jay Salvat
// http://markitup.jaysalvat.com/
// ----------------------------------------------------------------------------
// BBCode tags example
// http://en.wikipedia.org/wiki/Bbcode
// ----------------------------------------------------------------------------
// Feel free to add more tags
// ----------------------------------------------------------------------------
mySettings = {
	previewParserPath:	'', // path to your BBCode parser
	markupSet: [
		{name:'Bold', key:'B', openWith:'[B]', closeWith:'[/B]'},
		{name:'Italic', key:'I', openWith:'[I]', closeWith:'[/I]'},
		{name:'Underline', key:'U', openWith:'[U]', closeWith:'[/U]'},
		{separator:'---------------' },
		{name:'Picture', key:'P', replaceWith:'[IMG][![Url]!][/IMG]'},
		{name:'Link', key:'L', openWith:'[URL=[![Url]!]]', closeWith:'[/URL]', placeHolder:'Your text to link here...'},
		{separator:'---------------' },
		{name:'Bulleted list', openWith:'[LIST]\n', closeWith:'\n[/LIST]'},
		{name:'Numeric list', openWith:'[LIST type=decimal]\n', closeWith:'\n[/LIST]'},
		{name:'List item', openWith:'[*] '},
		{separator:'---------------' },
		{name:'Quotes', openWith:'[QUOTE]', closeWith:'[/QUOTE]'},
		{name:'Code', openWith:'[CODE]', closeWith:'[/CODE]'}, 
		{separator:'---------------' },
		{name:'Clean', className:"clean", replaceWith:function(markitup) { return markitup.selection.replace(/\[(.*?)\]/g, "") } },
                {	name:'Colors', 
			className:'colors', 
			openWith:'[color=[![Color]!]]', 
			closeWith:'[/color]', 
				dropMenu: [
					{name:'Yellow',	openWith:'[color=yellow]', 	closeWith:'[/color]', className:"col1-1" },
					{name:'Orange',	openWith:'[color=orange]', 	closeWith:'[/color]', className:"col1-2" },
					{name:'Red', 	openWith:'[color=red]', 	closeWith:'[/color]', className:"col1-3" },
					
					{name:'Blue', 	openWith:'[color=blue]', 	closeWith:'[/color]', className:"col2-1" },
					{name:'Purple', openWith:'[color=purple]', 	closeWith:'[/color]', className:"col2-2" },
					{name:'Green', 	openWith:'[color=green]', 	closeWith:'[/color]', className:"col2-3" },
					
					{name:'White', 	openWith:'[color=white]', 	closeWith:'[/color]', className:"col3-1" },
					{name:'Gray', 	openWith:'[color=gray]', 	closeWith:'[/color]', className:"col3-2" },
					{name:'Black',	openWith:'[color=black]', 	closeWith:'[/color]', className:"col3-3" }
				]
		},
		{separator:'---------------' },
		{name:'Align_left', openWith:'[LEFT]', closeWith:'[/LEFT]'}, 
		{name:'Align_center', openWith:'[CENTER]', closeWith:'[/CENTER]'}, 
		{name:'Align_right', openWith:'[RIGHT]', closeWith:'[/RIGHT]'}, 
		{name:'Cut', openWith:'[CUT]', closeWith:'[/CUT]'}, 
		{separator:'---------------' },		
		{name:'Youtube', key:'Y', openWith:'[YOUTUBE]', closeWith:'[/YOUTUBE]'}, 				
	]
}

