Permalink
Browse files

Allow multiple settings objects to be used within a single page

  • Loading branch information...
1 parent 779b986 commit 88d223f8e44733221e184c1b6b6f1e2229218064 @tgjones tgjones committed Feb 25, 2013
@@ -9,7 +9,7 @@
// ----------------------------------------------------------------------------
// Feel free to add more tags
// ----------------------------------------------------------------------------
-mySettings = {
+mySettings = bbcodeSettings = {
previewParserPath: "/markitup/preview", // path to your BBCode parser
markupSet: [
{name:'Bold', key:'B', openWith:'[b]', closeWith:'[/b]'},
@@ -11,7 +11,7 @@
// ----------------------------------------------------------------------------
// Basic CSS set. Feel free to add more tags
// ----------------------------------------------------------------------------
-mySettings = {
+mySettings = cssSettings = {
onEnter: {},
onShiftEnter: {keepDefault:false, placeHolder:'Your comment here', openWith:'\n\/* ', closeWith:' *\/'},
onCtrlEnter: {keepDefault:false, placeHolder:"classname", openWith:'\n.', closeWith:' { \n'},
@@ -8,7 +8,7 @@
// -------------------------------------------------------------------
// Feel free to add more tags
// -------------------------------------------------------------------
-mySettings = {
+mySettings = dotclearSettings = {
previewParserPath: "/markitup/preview", // path to your DotClear parser
onShiftEnter: {keepDefault:false, replaceWith:'%%%\n'},
onCtrlEnter: {keepDefault:false, replaceWith:'\n\n'},
@@ -9,7 +9,7 @@
// ----------------------------------------------------------------------------
// Basic set. Feel free to add more tags
// ----------------------------------------------------------------------------
-mySettings = {
+mySettings = htmlSettings = {
onShiftEnter: {keepDefault:false, replaceWith:'<br />\n'},
onCtrlEnter: {keepDefault:false, openWith:'\n<p>', closeWith:'</p>\n'},
onTab: {keepDefault:false, openWith:' '},
@@ -10,7 +10,7 @@
// -------------------------------------------------------------------
// Feel free to add more tags
// -------------------------------------------------------------------
-mySettings = {
+mySettings = markdownSettings = {
previewParserPath: "/markitup/preview",
onShiftEnter: {keepDefault:false, openWith:'\n\n'},
markupSet: [
@@ -11,7 +11,7 @@
// -------------------------------------------------------------------
// Feel free to add more tags
// -------------------------------------------------------------------
-mySettings = {
+mySettings = markminSettings = {
previewParserPath: "/markitup/preview",
onShiftEnter: {keepDefault:false, openWith:'\n\n'},
markupSet: [
@@ -12,7 +12,7 @@
// -------------------------------------------------------------------
// Feel free to add more tags
// -------------------------------------------------------------------
-mySettings = {
+mySettings = restSettings = {
previewParserPath: "/markitup/preview",
onShiftEnter: {keepDefault:false, replaceWith:'\n\n'},
markupSet: [
@@ -10,7 +10,7 @@
// -------------------------------------------------------------------
// Feel free to add more tags
// -------------------------------------------------------------------
-mySettings = {
+mySettings = textileSettings = {
previewParserPath: "/markitup/preview",
onShiftEnter: {keepDefault:false, replaceWith:'\n\n'},
markupSet: [
@@ -11,7 +11,7 @@
// http://texy.info
// Feel free to do anything with this.
// -------------------------------------------------------------------
-mySettings = {
+mySettings = texySettings = {
previewParserPath: "/markitup/preview",
onShiftEnter: {keepDefault:false, replaceWith:'\n\n'},
markupSet: [
@@ -11,7 +11,7 @@
// -------------------------------------------------------------------
// Feel free to add more tags
// -------------------------------------------------------------------
-mySettings = {
+mySettings = txt2tagsSettings = {
previewParserPath: "/markitup/preview", // path to your Txt2tags parser
onShiftEnter: {keepDefault:false, replaceWith:'\n\n'},
markupSet: [
@@ -8,7 +8,7 @@
// -------------------------------------------------------------------
// Feel free to add more tags
// -------------------------------------------------------------------
-mySettings = {
+mySettings = wikiSettings = {
previewParserPath: "/markitup/preview", // path to your Wiki parser
onShiftEnter: {keepDefault:false, replaceWith:'\n\n'},
markupSet: [
@@ -4,7 +4,7 @@
// Copyright (C) 2008 Jay Salvat
// http://markitup.jaysalvat.com/
// ----------------------------------------------------------------------------
-mySettings = {
+mySettings = xbbcodeSettings = {
nameSpace: "xbbcode", // Useful to prevent multi-instances CSS conflict
previewParserPath: "/markitup/preview", // path to your XBBCode parser
onShiftEnter: {keepDefault:false, replaceWith:'[br /]\n'},

0 comments on commit 88d223f

Please sign in to comment.