Changeset 376400
- Timestamp:
- 04/23/2011 09:26:53 PM (15 years ago)
- Location:
- syntaxhighlighter-evolved-applescript
- Files:
-
- 11 added
- 5 edited
-
tags/1.4.0 (added)
-
tags/1.4.0/readme.txt (added)
-
tags/1.4.0/screenshot-1.png (added)
-
tags/1.4.0/screenshot-2.png (added)
-
tags/1.4.0/scripts (added)
-
tags/1.4.0/scripts/shBrushAppleScript.js (added)
-
tags/1.4.0/styles (added)
-
tags/1.4.0/styles/bg.png (added)
-
tags/1.4.0/styles/shThemeAppleScript.css (added)
-
tags/1.4.0/syntaxhighlighter-applescript.php (added)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/screenshot-1.png (modified) (previous)
-
trunk/screenshot-2.png (added)
-
trunk/scripts/shBrushAppleScript.js (modified) (1 diff)
-
trunk/styles/shThemeAppleScript.css (modified) (1 diff)
-
trunk/syntaxhighlighter-applescript.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
syntaxhighlighter-evolved-applescript/trunk/readme.txt
r376312 r376400 5 5 Requires at least: 2.7 6 6 Tested up to: 3.1.1 7 Stable tag: 1. 3.07 Stable tag: 1.4.0 8 8 9 9 Adds support for the AppleScript language to the SyntaxHighlighter Evolved plugin using [applescript] and [as] tags. … … 43 43 1. This is a sample image of the plugin in action as applied to AppleScript code. 44 44 45 2. Longer sample showing additional syntax. 46 45 47 == Changelog == 48 49 = 1.4.0 = 50 * Updated AppleScript brush stylesheet and script to version 3.0.83, as provided by [David Chambers](http://davidchambersdesign.com). 46 51 47 52 = 1.3.0 = -
syntaxhighlighter-evolved-applescript/trunk/scripts/shBrushAppleScript.js
r375998 r376400 1 /* 2 * AppleScript brush for SyntaxHighlighter 1 /** 2 * SyntaxHighlighter 3 * http://alexgorbatchev.com/SyntaxHighlighter 3 4 * 4 * SyntaxHighlighter by Alex Gorbatchev5 * http://alexgorbatchev.com/ 5 * SyntaxHighlighter is donationware. If you are using it, please donate. 6 * http://alexgorbatchev.com/SyntaxHighlighter/donate.html 6 7 * 7 * AppleScript brush by David Chambers 8 * http://davidchambersdesign.com/ 9 * { last updated: 10 August 2009 } 8 * @version 9 * 3.0.83 (July 02 2010) 10 * 11 * @copyright 12 * Copyright (C) 2004-2010 Alex Gorbatchev. 13 * 14 * @license 15 * Dual licensed under the MIT and GPL licenses. 10 16 */ 17 ;(function() 18 { 19 // CommonJS 20 typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; 11 21 12 SyntaxHighlighter.brushes.AppleScript = function () 13 { 14 var keywords, ordinals, specials; 15 keywords = 'after before beginning continue copy each end every from return get global in local named of set some that the then times to where whose with without'; 16 ordinals = 'first second third fourth fifth sixth seventh eighth ninth tenth last front back middle'; 17 specials = 'activate add alias AppleScript ask attachment boolean class constant delete duplicate empty exists false id integer list make message modal modified new no paragraph pi properties quit real record remove rest result reveal reverse run running save string true word yes'; 22 function Brush() 23 { 24 // AppleScript brush by David Chambers 25 // http://davidchambersdesign.com/ 26 var keywords = 'after before beginning continue copy each end every from return get global in local named of set some that the then times to where whose with without'; 27 var ordinals = 'first second third fourth fifth sixth seventh eighth ninth tenth last front back middle'; 28 var specials = 'activate add alias AppleScript ask attachment boolean class constant delete duplicate empty exists false id integer list make message modal modified new no paragraph pi properties quit real record remove rest result reveal reverse run running save string true word yes'; 18 29 19 this.regexList = [30 this.regexList = [ 20 31 21 { regex: /(--|#).*$/gm,22 css: 'comments' },32 { regex: /(--|#).*$/gm, 33 css: 'comments' }, 23 34 24 { regex: /\(\*(?:[\s\S]*?\(\*[\s\S]*?\*\))*[\s\S]*?\*\)/gm, // support nested comments25 css: 'comments' },35 { regex: /\(\*(?:[\s\S]*?\(\*[\s\S]*?\*\))*[\s\S]*?\*\)/gm, // support nested comments 36 css: 'comments' }, 26 37 27 { regex: /"[\s\S]*?"/gm,28 css: 'string' },38 { regex: /"[\s\S]*?"/gm, 39 css: 'string' }, 29 40 30 { regex: /(?:,|:|¬|'s\b|\(|\)|\{|\}|«|\b\w*»)/g,31 css: 'standard' },41 { regex: /(?:,|:|¬|'s\b|\(|\)|\{|\}|«|\b\w*»)/g, 42 css: 'color1' }, 32 43 33 { regex: /(-)?(\d)+(\.(\d)?)?(E\+(\d)+)?/g, // numbers34 css: 'standard' },44 { regex: /(-)?(\d)+(\.(\d)?)?(E\+(\d)+)?/g, // numbers 45 css: 'color1' }, 35 46 36 { regex: /(?:&(amp;|gt;|lt;)?|=|≠|>|<|≥|>=|≤|<=|\*|\+|-|\/|÷|\^)/g,37 css: 'operator' },47 { regex: /(?:&(amp;|gt;|lt;)?|=|� |>|<|≥|>=|≤|<=|\*|\+|-|\/|÷|\^)/g, 48 css: 'color2' }, 38 49 39 { regex: /\b(?:and|as|div|mod|not|or|return(?!\s&)(ing)?|equals|(is(n't| not)? )?equal( to)?|does(n't| not) equal|(is(n't| not)? )?(greater|less) than( or equal( to)?)?|(comes|does(n't| not) come) (after|before)|is(n't| not)?( in)? (back|front) of|is(n't| not)? behind|is(n't| not)?( (in|contained by))?|does(n't| not) contain|contain(s)?|(start|begin|end)(s)? with|((but|end) )?(consider|ignor)ing|prop(erty)?|(a )?ref(erence)?( to)?|repeat (until|while|with)|((end|exit) )?repeat|((else|end) )?if|else|(end )?(script|tell|try)|(on )?error|(put )?into|(of )?(it|me)|its|my|with (timeout( of)?|transaction)|end (timeout|transaction))\b/g,40 css: 'keyword' },50 { regex: /\b(?:and|as|div|mod|not|or|return(?!\s&)(ing)?|equals|(is(n't| not)? )?equal( to)?|does(n't| not) equal|(is(n't| not)? )?(greater|less) than( or equal( to)?)?|(comes|does(n't| not) come) (after|before)|is(n't| not)?( in)? (back|front) of|is(n't| not)? behind|is(n't| not)?( (in|contained by))?|does(n't| not) contain|contain(s)?|(start|begin|end)(s)? with|((but|end) )?(consider|ignor)ing|prop(erty)?|(a )?ref(erence)?( to)?|repeat (until|while|with)|((end|exit) )?repeat|((else|end) )?if|else|(end )?(script|tell|try)|(on )?error|(put )?into|(of )?(it|me)|its|my|with (timeout( of)?|transaction)|end (timeout|transaction))\b/g, 51 css: 'keyword' }, 41 52 42 { regex: /\b\d+(st|nd|rd|th)\b/g, // ordinals43 css: 'keyword' },53 { regex: /\b\d+(st|nd|rd|th)\b/g, // ordinals 54 css: 'keyword' }, 44 55 45 { regex: /\b(?:about|above|against|around|at|below|beneath|beside|between|by|(apart|aside) from|(instead|out) of|into|on(to)?|over|since|thr(ough|u)|under)\b/g,46 css: 'special' },56 { regex: /\b(?:about|above|against|around|at|below|beneath|beside|between|by|(apart|aside) from|(instead|out) of|into|on(to)?|over|since|thr(ough|u)|under)\b/g, 57 css: 'color3' }, 47 58 48 { regex: /\b(?:adding folder items to|after receiving|choose( ((remote )?application|color|folder|from list|URL))?|clipboard info|set the clipboard to|(the )?clipboard|entire contents|display(ing| (alert|dialog|mode))?|document( (edited|file|nib name))?|file( (name|type))?|(info )?for|giving up after|(name )?extension|quoted form|return(ed)?|second(?! item)(s)?|list (disks|folder)|text item(s| delimiters)?|(Unicode )?text|(disk )?item(s)?|((current|list) )?view|((container|key) )?window|with (data|icon( (caution|note|stop))?|parameter(s)?|prompt|properties|seed|title)|case|diacriticals|hyphens|numeric strings|punctuation|white space|folder creation|application(s( folder)?| (processes|scripts position|support))?|((desktop )?(pictures )?|(documents|downloads|favorites|home|keychain|library|movies|music|public|scripts|sites|system|users|utilities|workflows) )folder|desktop|Folder Action scripts|font(s| panel)?|help|internet plugins|modem scripts|(system )?preferences|printer descriptions|scripting (additions|components)|shared (documents|libraries)|startup (disk|items)|temporary items|trash|on server|in AppleTalk zone|((as|long|short) )?user name|user (ID|locale)|(with )?password|in (bundle( with identifier)?|directory)|(close|open for) access|read|write( permission)?|(g|s)et eof|using( delimiters)?|starting at|default (answer|button|color|country code|entr(y|ies)|identifiers|items|name|location|script editor)|hidden( answer)?|open(ed| (location|untitled))?|error (handling|reporting)|(do( shell)?|load|run|store) script|administrator privileges|altering line endings|get volume settings|(alert|boot|input|mount|output|set) volume|output muted|(fax|random )?number|round(ing)?|up|down|toward zero|to nearest|as taught in school|system (attribute|info)|((AppleScript( Studio)?|system) )?version|(home )?directory|(IPv4|primary Ethernet) address|CPU (type|speed)|physical memory|time (stamp|to GMT)|replacing|ASCII (character|number)|localized string|from table|offset|summarize|beep|delay|say|(empty|multiple) selections allowed|(of|preferred) type|invisibles|showing( package contents)?|editable URL|(File|FTP|News|Media|Web) [Ss]ervers|Telnet hosts|Directory services|Remote applications|waiting until completion|saving( (in|to))?|path (for|to( (((current|frontmost) )?application|resource))?)|POSIX (file|path)|(background|RGB) color|(OK|cancel) button name|cancel button|button(s)?|cubic ((centi)?met(re|er)s|yards|feet|inches)|square ((kilo)?met(re|er)s|miles|yards|feet)|(centi|kilo)?met(re|er)s|miles|yards|feet|inches|lit(re|er)s|gallons|quarts|(kilo)?grams|ounces|pounds|degrees (Celsius|Fahrenheit|Kelvin)|print( (dialog|settings))?|clos(e(able)?|ing)|(de)?miniaturized|miniaturizable|zoom(ed|able)|attribute run|action (method|property|title)|phone|email|((start|end)ing|home) page|((birth|creation|current|custom|modification) )?date|((((phonetic )?(first|last|middle))|computer|host|maiden|related) |nick)?name|aim|icq|jabber|msn|yahoo|address(es)?|save addressbook|should enable action|city|country( code)?|formatte(r|d address)|(palette )?label|state|street|zip|AIM [Hh]andle(s)?|my card|select(ion| all)?|unsaved|(alpha )?value|entr(y|ies)|group|(ICQ|Jabber|MSN) handle|person|people|company|department|icon image|job title|note|organization|suffix|vcard|url|copies|collating|pages (across|down)|request print time|target( printer)?|((GUI Scripting|Script menu) )?enabled|show Computer scripts|(de)?activated|awake from nib|became (key|main)|call method|of (class|object)|center|clicked toolbar item|closed|for document|exposed|(can )?hide|idle|keyboard (down|up)|event( (number|type))?|launch(ed)?|load (image|movie|nib|sound)|owner|log|mouse (down|dragged|entered|exited|moved|up)|move|column|localization|resource|script|register|drag (info|types)|resigned (active|key|main)|resiz(e(d)?|able)|right mouse (down|dragged|up)|scroll wheel|(at )?index|should (close|open( untitled)?|quit( after last window closed)?|zoom)|((proposed|screen) )?bounds|show(n)?|behind|in front of|size (mode|to fit)|update(d| toolbar item)?|was (hidden|miniaturized)|will (become active|close|finish launching|hide|miniaturize|move|open|quit|(resign )?active|((maximum|minimum|proposed) )?size|show|zoom)|bundle|data source|movie|pasteboard|sound|tool(bar| tip)|(color|open|save) panel|coordinate system|frontmost|main( (bundle|menu|window))?|((services|(excluded from )?windows) )?menu|((executable|frameworks|resource|scripts|shared (frameworks|support)) )?path|(selected item )?identifier|data|content(s| view)?|character(s)?|click count|(command|control|option|shift) key down|context|delta (x|y|z)|key( code)?|location|pressure|unmodified characters|types|(first )?responder|playing|(allowed|selectable) identifiers|allows customization|(auto saves )?configuration|visible|image( name)?|menu form representation|tag|user(-| )defaults|associated file name|(auto|needs) display|current field editor|floating|has (resize indicator|shadow)|hides when deactivated|level|minimized (image|title)|opaque|position|release when closed|sheet|title(d)?)\b/g,49 css: 'special' },59 { regex: /\b(?:adding folder items to|after receiving|choose( ((remote )?application|color|folder|from list|URL))?|clipboard info|set the clipboard to|(the )?clipboard|entire contents|display(ing| (alert|dialog|mode))?|document( (edited|file|nib name))?|file( (name|type))?|(info )?for|giving up after|(name )?extension|quoted form|return(ed)?|second(?! item)(s)?|list (disks|folder)|text item(s| delimiters)?|(Unicode )?text|(disk )?item(s)?|((current|list) )?view|((container|key) )?window|with (data|icon( (caution|note|stop))?|parameter(s)?|prompt|properties|seed|title)|case|diacriticals|hyphens|numeric strings|punctuation|white space|folder creation|application(s( folder)?| (processes|scripts position|support))?|((desktop )?(pictures )?|(documents|downloads|favorites|home|keychain|library|movies|music|public|scripts|sites|system|users|utilities|workflows) )folder|desktop|Folder Action scripts|font(s| panel)?|help|internet plugins|modem scripts|(system )?preferences|printer descriptions|scripting (additions|components)|shared (documents|libraries)|startup (disk|items)|temporary items|trash|on server|in AppleTalk zone|((as|long|short) )?user name|user (ID|locale)|(with )?password|in (bundle( with identifier)?|directory)|(close|open for) access|read|write( permission)?|(g|s)et eof|using( delimiters)?|starting at|default (answer|button|color|country code|entr(y|ies)|identifiers|items|name|location|script editor)|hidden( answer)?|open(ed| (location|untitled))?|error (handling|reporting)|(do( shell)?|load|run|store) script|administrator privileges|altering line endings|get volume settings|(alert|boot|input|mount|output|set) volume|output muted|(fax|random )?number|round(ing)?|up|down|toward zero|to nearest|as taught in school|system (attribute|info)|((AppleScript( Studio)?|system) )?version|(home )?directory|(IPv4|primary Ethernet) address|CPU (type|speed)|physical memory|time (stamp|to GMT)|replacing|ASCII (character|number)|localized string|from table|offset|summarize|beep|delay|say|(empty|multiple) selections allowed|(of|preferred) type|invisibles|showing( package contents)?|editable URL|(File|FTP|News|Media|Web) [Ss]ervers|Telnet hosts|Directory services|Remote applications|waiting until completion|saving( (in|to))?|path (for|to( (((current|frontmost) )?application|resource))?)|POSIX (file|path)|(background|RGB) color|(OK|cancel) button name|cancel button|button(s)?|cubic ((centi)?met(re|er)s|yards|feet|inches)|square ((kilo)?met(re|er)s|miles|yards|feet)|(centi|kilo)?met(re|er)s|miles|yards|feet|inches|lit(re|er)s|gallons|quarts|(kilo)?grams|ounces|pounds|degrees (Celsius|Fahrenheit|Kelvin)|print( (dialog|settings))?|clos(e(able)?|ing)|(de)?miniaturized|miniaturizable|zoom(ed|able)|attribute run|action (method|property|title)|phone|email|((start|end)ing|home) page|((birth|creation|current|custom|modification) )?date|((((phonetic )?(first|last|middle))|computer|host|maiden|related) |nick)?name|aim|icq|jabber|msn|yahoo|address(es)?|save addressbook|should enable action|city|country( code)?|formatte(r|d address)|(palette )?label|state|street|zip|AIM [Hh]andle(s)?|my card|select(ion| all)?|unsaved|(alpha )?value|entr(y|ies)|group|(ICQ|Jabber|MSN) handle|person|people|company|department|icon image|job title|note|organization|suffix|vcard|url|copies|collating|pages (across|down)|request print time|target( printer)?|((GUI Scripting|Script menu) )?enabled|show Computer scripts|(de)?activated|awake from nib|became (key|main)|call method|of (class|object)|center|clicked toolbar item|closed|for document|exposed|(can )?hide|idle|keyboard (down|up)|event( (number|type))?|launch(ed)?|load (image|movie|nib|sound)|owner|log|mouse (down|dragged|entered|exited|moved|up)|move|column|localization|resource|script|register|drag (info|types)|resigned (active|key|main)|resiz(e(d)?|able)|right mouse (down|dragged|up)|scroll wheel|(at )?index|should (close|open( untitled)?|quit( after last window closed)?|zoom)|((proposed|screen) )?bounds|show(n)?|behind|in front of|size (mode|to fit)|update(d| toolbar item)?|was (hidden|miniaturized)|will (become active|close|finish launching|hide|miniaturize|move|open|quit|(resign )?active|((maximum|minimum|proposed) )?size|show|zoom)|bundle|data source|movie|pasteboard|sound|tool(bar| tip)|(color|open|save) panel|coordinate system|frontmost|main( (bundle|menu|window))?|((services|(excluded from )?windows) )?menu|((executable|frameworks|resource|scripts|shared (frameworks|support)) )?path|(selected item )?identifier|data|content(s| view)?|character(s)?|click count|(command|control|option|shift) key down|context|delta (x|y|z)|key( code)?|location|pressure|unmodified characters|types|(first )?responder|playing|(allowed|selectable) identifiers|allows customization|(auto saves )?configuration|visible|image( name)?|menu form representation|tag|user(-| )defaults|associated file name|(auto|needs) display|current field editor|floating|has (resize indicator|shadow)|hides when deactivated|level|minimized (image|title)|opaque|position|release when closed|sheet|title(d)?)\b/g, 60 css: 'color3' }, 50 61 51 { regex: new RegExp(this.getKeywords(specials), 'gm'), css: 'special' }, 52 { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, 53 { regex: new RegExp(this.getKeywords(ordinals), 'gm'), css: 'keyword' }, 62 { regex: new RegExp(this.getKeywords(specials), 'gm'), css: 'color3' }, 63 { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, 64 { regex: new RegExp(this.getKeywords(ordinals), 'gm'), css: 'keyword' } 65 ]; 66 }; 54 67 55 { regex: /\b\w+\b/g, 56 css: 'userdef' } 57 ]; 58 }; 68 Brush.prototype = new SyntaxHighlighter.Highlighter(); 69 Brush.aliases = ['applescript']; 59 70 60 SyntaxHighlighter.brushes.AppleScript.prototype = new SyntaxHighlighter.Highlighter(); 61 SyntaxHighlighter.brushes.AppleScript.aliases = ['applescript']; 71 SyntaxHighlighter.brushes.AppleScript = Brush; 72 73 // CommonJS 74 typeof(exports) != 'undefined' ? exports.Brush = Brush : null; 75 })(); -
syntaxhighlighter-evolved-applescript/trunk/styles/shThemeAppleScript.css
r375998 r376400 1 1 /* 2 2 * AppleScript theme for SyntaxHighlighter 3 * 3 * 4 4 * SyntaxHighlighter by Alex Gorbatchev 5 5 * http://alexgorbatchev.com/ 6 * 6 * 7 7 * AppleScript theme by David Chambers 8 * http://davidchambersdesign.com/ 9 * { last updated: 8 June 2009 } 8 * https://bitbucket.org/davidchambers/applescript-theme 10 9 */ 11 10 12 div.syntaxhighlighter.applescript, 13 div.syntaxhighlighter.applescript div, 14 div.syntaxhighlighter.applescript code, 15 div.syntaxhighlighter.applescript span, 16 div.syntaxhighlighter.applescript .bold, 17 div.syntaxhighlighter.applescript .italic, 18 div.syntaxhighlighter.applescript div.line, 19 div.syntaxhighlighter.applescript div.line code.number, 20 div.syntaxhighlighter.applescript div.line span.content, 21 div.syntaxhighlighter.applescript div.line span.content span.block, 22 div.syntaxhighlighter.applescript div.line span.content code.spaces, 23 div.syntaxhighlighter.applescript div.bar, 24 div.syntaxhighlighter.applescript div.ruler, 25 div.syntaxhighlighter.applescript div.toolbar, 26 div.syntaxhighlighter.applescript div.toolbar a, 27 div.syntaxhighlighter.applescript div.toolbar a:hover 28 { 29 line-height: 1.25em !important; 30 font-family: Verdana, sans-serif !important; 31 font-weight: normal !important; 32 } 33 34 div.syntaxhighlighter.applescript 35 { 36 position: relative !important; 37 top: -1px !important; 38 left: 0 !important; 39 margin: 1.75em 0 -1px 0 !important; 40 width: auto !important; 41 border: 1px solid #ccc !important; 42 background: #f2f2f2 url(bg.png) repeat-y 2.5em 0 !important; 43 padding: 0 !important; 44 font-size: 1.0em !important; 45 overflow: hidden !important; 46 } 47 48 div.syntaxhighlighter.applescript.nogutter 49 { 50 background: #fff !important; 51 } 52 53 /* 54 ruler should not be used since AppleScript is not rendered in monospace font 55 */ 56 div.syntaxhighlighter.applescript div.ruler 57 { 58 display: none !important; 59 } 60 61 div.syntaxhighlighter.applescript div.toolbar 62 { 63 border-left: 1px solid #ddd !important; 64 border-bottom: 1px solid #ddd !important; 65 background-color: #f2f2f2 !important; 66 padding: 2px 5px 2px 0 !important; 67 } 68 69 div.syntaxhighlighter.applescript div.toolbar a.item 70 { 71 margin-left: 5px !important; 72 } 73 74 div.syntaxhighlighter.applescript div.toolbar a.item:hover, div.syntaxhighlighter div.toolbar a.item:active 75 { 76 border-bottom: none !important; 77 } 78 79 div.syntaxhighlighter.applescript.collapsed div.toolbar 80 { 81 border-left: none !important; 82 border-bottom: none !important; 83 padding: 0 !important; 84 font: 1.0em/1.667em "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, sans-serif !important; 85 } 86 87 div.syntaxhighlighter.collapsed div.toolbar a, 88 div.syntaxhighlighter.collapsed div.toolbar a:hover 89 { 90 font: 1.0em/1.667em "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, sans-serif !important; 91 } 92 93 div.syntaxhighlighter.applescript div.lines 94 { 95 padding: 0.167em 0 0.25em 0 !important; 96 } 97 98 div.syntaxhighlighter.applescript div.line code.number 99 { 100 width: 2.25em !important; 101 padding-right: 0.25em !important; 102 font-size: 1.0em !important; 103 line-height: 1.25em !important; 104 color: #939393 !important; 105 } 106 107 div.syntaxhighlighter.applescript div.line.highlighted code.number 108 { 109 color: #494949 !important; 110 } 111 112 div.syntaxhighlighter.applescript div.line.highlighted.alt1 span.content, 113 div.syntaxhighlighter.applescript div.line.highlighted.alt2 span.content 114 { 115 background-color: #b5d5ff !important; 116 } 117 118 div.syntaxhighlighter.applescript div.line span.content 119 { 120 margin-left: 2.583em !important; 121 padding-left: 0.5em !important; 122 color: #000 !important; 123 } 124 125 div.syntaxhighlighter.applescript.printing div.line span.content 126 { 127 border: 0 !important; 128 } 129 130 div.syntaxhighlighter.applescript div.line span.content span.block 131 { 132 padding-left: 5.083em !important; 133 text-indent: -5.083em !important; 134 } 135 136 /* 137 disable margin on the lines when no gutter option is set 138 */ 139 div.syntaxhighlighter.applescript.nogutter div.line span.content 140 { 141 margin-left: 0 !important; 142 } 143 144 div.syntaxhighlighter.applescript code.comments 145 { 146 font-style: normal !important; 147 color: #4d4e4e !important; 148 } 149 150 div.syntaxhighlighter.applescript code.keyword 151 { 152 font-weight: bold !important; 153 color: #3207fd !important; 154 } 155 156 div.syntaxhighlighter.applescript code.operator, 157 div.syntaxhighlighter.applescript code.standard, 158 div.syntaxhighlighter.applescript code.string 159 { 160 color: #000 !important; 161 } 162 163 div.syntaxhighlighter.applescript code.plain, 164 div.syntaxhighlighter.applescript code.userdef 165 { 166 color: #417f0a !important; 167 } 168 169 div.syntaxhighlighter.applescript code.special 170 { 171 color: #1c06fd !important; 172 } 11 .syntaxhighlighter.applescript div, 12 .syntaxhighlighter.applescript code { font: 1em/1.25 Verdana, sans-serif !important; } 13 .syntaxhighlighter.applescript { border: 1px solid #ccc; background: #fff; 14 padding: 2px; font-size: 1em; color: #000; } 15 .syntaxhighlighter.applescript .gutter, 16 .syntaxhighlighter.applescript .toolbar, 17 .syntaxhighlighter.applescript textarea { display: none; } 18 .syntaxhighlighter.applescript .code .line { padding: 0 !important; 19 white-space: pre-wrap !important; 20 overflow: hidden !important; } 21 .syntaxhighlighter.applescript .line.highlighted { background: #b5d5ff !important; } 22 .syntaxhighlighter.applescript .line>:first-child { margin-left: 4px !important; } 23 .syntaxhighlighter.applescript .comments { color: #4d4e4e; } 24 .syntaxhighlighter.applescript .keyword { font-weight: bold !important; color: #3207fd; } 25 .syntaxhighlighter.applescript .color3 { color: #3207fd; } 26 .syntaxhighlighter.applescript .plain { color: #417f0a; } 27 .syntaxhighlighter.applescript .spaces { display: inline-block; height: 0 !important; 28 font-size: 1.75em !important; 29 line-height: 0 !important; } -
syntaxhighlighter-evolved-applescript/trunk/syntaxhighlighter-applescript.php
r376071 r376400 4 4 Description: Adds support for the AppleScript language to the SyntaxHighlighter Evolved plugin. 5 5 Author: Scott Selikoff 6 Version: 1. 3.06 Version: 1.4.0 7 7 Author URI: http://www.selikoff.net/ 8 8 */ … … 16 16 // Register the brush file with WordPress 17 17 function syntaxhighlighter_applescript_regscript() { 18 wp_register_script( 'syntaxhighlighter-brush-applescript', plugins_url('syntaxhighlighter-evolved-applescript/scripts/shBrushAppleScript.js'), array('syntaxhighlighter-core'), '1. 0.2');19 wp_register_style( 'syntaxhighlighter-theme-applescript', plugins_url('syntaxhighlighter-evolved-applescript/styles/shThemeAppleScript.css'), array('syntaxhighlighter-core'), '1. 0.2');18 wp_register_script( 'syntaxhighlighter-brush-applescript', plugins_url('syntaxhighlighter-evolved-applescript/scripts/shBrushAppleScript.js'), array('syntaxhighlighter-core'), '1.4.0'); 19 wp_register_style( 'syntaxhighlighter-theme-applescript', plugins_url('syntaxhighlighter-evolved-applescript/styles/shThemeAppleScript.css'), array('syntaxhighlighter-core'), '1.4.0'); 20 20 } 21 21
Note: See TracChangeset
for help on using the changeset viewer.