// ----------------------------------------------------------------------------
// 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
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
myBbcodeSettings = {
  nameSpace:          "bbcode", // Useful to prevent multi-instances CSS conflict
  previewParserPath:  "~/markitupparser.php",
  //previewParserPath: "",
  previewPosition: 'before',
  markupSet: [
      {name:'Afbeelding', key:'P', replaceWith:'[img][![Url]!][/img]'}, 
      {name:'Link', key:'L', openWith:'[url=[![Url]!]]', closeWith:'[/url]', placeHolder:'Tekst voor link hier...'},
      {separator:'---------------' },
	  {name:'Vet', key:'B', openWith:'[b]', closeWith:'[/b]'}, 
      {name:'Schuin', key:'I', openWith:'[i]', closeWith:'[/i]'}, 
      {name:'Onderstrepen', key:'U', openWith:'[u]', closeWith:'[/u]'},
	  {name:'Doorstrepen', key:'S', openWith:'[s]', closeWith:'[/s]'}, 
      {name:'Tekstkleur', openWith:'[color=[![Tekstkleur]!]]', 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" }
      ]},
      {name:'Tekstgrootte', key:'S', openWith:'[size=[![Tekstgrootte]!]]', closeWith:'[/size]', dropMenu :[
          {name:'8', openWith:'[size=8]', closeWith:'[/size]', className:'fontsize8' },
          {name:'10', openWith:'[size=10]', closeWith:'[/size]', className:'fontsize10' },
          {name:'15', openWith:'[size=15]', closeWith:'[/size]', className:'fontsize15' },
		  {name:'20', openWith:'[size=20]', closeWith:'[/size]', className:'fontsize20' },
		  {name:'25', openWith:'[size=25]', closeWith:'[/size]', className:'fontsize25' },
		  {name:'30', openWith:'[size=30]', closeWith:'[/size]', className:'fontsize30' }
      ]},
	  {name:'Lettertypes', openWith:'[font=[![Lettertype]!]]', closeWith:'[/font]', dropMenu: [
		{name:'Arial',  openWith:'[font=Arial]', closeWith:'[/font]', className:'arial' },
		{name:'Arial Black',  openWith:'[font=Arial Black]', closeWith:'[/font]', className:'arialblack' },
		{name:'Arial Narrow',  openWith:'[font=Arial Narrow]', closeWith:'[/font]', className:'arialnarrow' },
		{name:'Book Antiqua',  openWith:'[font=Book Antiqua]', closeWith:'[/font]', className:'bookantiqua' },
		{name:'Century Gothic',  openWith:'[font=Century Gothic]', closeWith:'[/font]', className:'centurygothic' },
		{name:'Comic Sans MS',  openWith:'[font=Comic Sans MS]', closeWith:'[/font]', className:'comicsansms' },
		{name:'Courier New',  openWith:'[font=Courier New]', closeWith:'[/font]', className:'couriernew' },
		{name:'Fixedsys',  openWith:'[font=Fixedsys]', closeWith:'[/font]', className:'fixedsys' },
		{name:'Franklin Gothic Medium',  openWith:'[font=Franklin Gothic Medium]', closeWith:'[/font]', className:'franklingothicmedium' },
		{name:'Garamond',  openWith:'[font=Garamond]', closeWith:'[/font]', className:'garamond' },
		{name:'Georgia',  openWith:'[font=Georgia]', closeWith:'[/font]', className:'georgia' },
		{name:'Impact',  openWith:'[font=Impact]', closeWith:'[/font]', className:'impact' },
		{name:'Lucida Console',  openWith:'[font=Lucida Console]', closeWith:'[/font]', className:'lucidaconsole' },
		{name:'Lucida Sans Unicode',  openWith:'[font=Lucida Sans Unicode]', closeWith:'[/font]', className:'lucidasansunicode' },
		{name:'Microsoft Sans Serif',  openWith:'[font=Microsoft Sans Serif]', closeWith:'[/font]', className:'microsoftsansserif' },
		{name:'Palatino Linotype',  openWith:'[font=Palatino Linotype]', closeWith:'[/font]', className:'palatinolinotype' },
		{name:'System',  openWith:'[font=System]', closeWith:'[/font]', className:'system' },
		{name:'Tahoma',  openWith:'[font=Tahoma]', closeWith:'[/font]', className:'tahoma' },
		{name:'Times New Roman',  openWith:'[font=Times New Roman]', closeWith:'[/font]', className:'timesnewroman' },
		{name:'Trebuchet MS',  openWith:'[font=Trebuchet MS]', closeWith:'[/font]', className:'trebuchetms' },
		{name:'Verdana', openWith:'[font=Verdana]', closeWith:'[/font]', className:'verdena' }
      ]},
      {separator:'---------------' },
      {name:'Ongeordende lijst', openWith:'[list]\n', closeWith:'\n[/list]'}, 
      {name:'Genummerde lijst', openWith:'[list=[![Nummer om te starten]!]]\n', closeWith:'\n[/list]'}, 
      {name:'Lijstitem', openWith:'[*] '}, 
      {separator:'---------------' },
      {name:'Citaat', openWith:'[quote]', closeWith:'[/quote]'}, 
      {separator:'---------------' },
      {name:'Verwijder tags', className:"clean", replaceWith:function(h) { return h.selection.replace(/\[(.*?)\]/g, "") } },
	  {name:'Voorbeeld', className:"preview", call:'preview' }
   ]
}
