PageRenderTime 36ms CodeModel.GetById 17ms app.highlight 14ms RepoModel.GetById 1ms app.codeStats 0ms

/extras/markitup/sets/txt2tags/set.js

http://txt2tags.googlecode.com/
JavaScript | 41 lines | 28 code | 0 blank | 13 comment | 0 complexity | dd65ee949d7ad9e668901639ce9a0385 MD5 | raw file
 1// -------------------------------------------------------------------
 2// markItUp!
 3// -------------------------------------------------------------------
 4// Copyright (C) 2009 Florent Gallaire <fgallaire@gmail.com>  
 5// License GNU GPLv3 or any later version.
 6// Copyright (C) 2008 Jay Salvat
 7// http://markitup.jaysalvat.com/
 8// -------------------------------------------------------------------
 9// Txt2tags tags example
10// http://txt2tags.org/markup.html
11// -------------------------------------------------------------------
12// Feel free to add more tags
13// -------------------------------------------------------------------
14mySettings = {
15	previewParserPath:	'', // path to your Txt2tags parser
16	onShiftEnter:		{keepDefault:false, replaceWith:'\n\n'},
17	markupSet: [
18		{name:'Heading 1', key:'1', openWith:'= ', closeWith:' =', placeHolder:'Your title here...' },
19		{name:'Heading 2', key:'2', openWith:'== ', closeWith:' ==', placeHolder:'Your title here...' },
20		{name:'Heading 3', key:'3', openWith:'=== ', closeWith:' ===', placeHolder:'Your title here...' },
21		{name:'Heading 4', key:'4', openWith:'==== ', closeWith:' ====', placeHolder:'Your title here...' },
22		{name:'Heading 5', key:'5', openWith:'===== ', closeWith:' =====', placeHolder:'Your title here...' },
23		{separator:'---------------' },		
24		{name:'Bold', key:'B', openWith:'**', closeWith:'**'}, 
25		{name:'Italic', key:'I', openWith:'//', closeWith:'//'}, 
26		{name:'Underline', key:'U', openWith:'__', closeWith:'__'}, 
27		{name:'Strike', key:'S', openWith:'--', closeWith:'--'}, 
28		{separator:'---------------' },
29		{name:'Bulleted list', openWith:'- '}, 
30		{name:'Numeric list', openWith:'+ '}, 
31		{separator:'---------------' },
32		{name:'Picture', key:'P', openWith:'[', closeWith:']', placeHolder:'Your picture here...'}, 
33		{name:'Link', key:'L', openWith:'[', closeWith:' [![Link:!:http://]!]]', placeHolder:'Your text to link here...'},
34		{separator:'---------------'},	
35		{name:'Quote', openWith:'\t'},
36		{name:'Code', openWith:'``', closeWith:'``'},
37		{name:'Raw', key:'R', openWith:'""', closeWith:'""', placeHolder:'No txt2tags in here!'},		
38		{separator:'---------------' },
39		{name:'Preview', call:'preview', className:'preview'}
40	]
41}