.
29 | */
30 | SyntaxHighlighter.brushes.CSS = function()
31 | {
32 | function getKeywordsCSS(str)
33 | {
34 | return '\\b([a-z_]|)' + str.replace(/ /g, '(?=:)\\b|\\b([a-z_\\*]|\\*|)') + '(?=:)\\b';
35 | };
36 |
37 | function getValuesCSS(str)
38 | {
39 | return '\\b' + str.replace(/ /g, '(?!-)(?!:)\\b|\\b()') + '\:\\b';
40 | };
41 |
42 | var keywords = 'ascent azimuth background-attachment background-color background-image background-position ' +
43 | 'background-repeat background baseline bbox border-collapse border-color border-spacing border-style border-top ' +
44 | 'border-right border-bottom border-left border-top-color border-right-color border-bottom-color border-left-color ' +
45 | 'border-top-style border-right-style border-bottom-style border-left-style border-top-width border-right-width ' +
46 | 'border-bottom-width border-left-width border-width border bottom cap-height caption-side centerline clear clip color ' +
47 | 'content counter-increment counter-reset cue-after cue-before cue cursor definition-src descent direction display ' +
48 | 'elevation empty-cells float font-size-adjust font-family font-size font-stretch font-style font-variant font-weight font ' +
49 | 'height left letter-spacing line-height list-style-image list-style-position list-style-type list-style margin-top ' +
50 | 'margin-right margin-bottom margin-left margin marker-offset marks mathline max-height max-width min-height min-width orphans ' +
51 | 'outline-color outline-style outline-width outline overflow padding-top padding-right padding-bottom padding-left padding page ' +
52 | 'page-break-after page-break-before page-break-inside pause pause-after pause-before pitch pitch-range play-during position ' +
53 | 'quotes right richness size slope src speak-header speak-numeral speak-punctuation speak speech-rate stemh stemv stress ' +
54 | 'table-layout text-align top text-decoration text-indent text-shadow text-transform unicode-bidi unicode-range units-per-em ' +
55 | 'vertical-align visibility voice-family volume white-space widows width widths word-spacing x-height z-index';
56 |
57 | var values = 'above absolute all always aqua armenian attr aural auto avoid baseline behind below bidi-override black blink block blue bold bolder '+
58 | 'both bottom braille capitalize caption center center-left center-right circle close-quote code collapse compact condensed '+
59 | 'continuous counter counters crop cross crosshair cursive dashed decimal decimal-leading-zero default digits disc dotted double '+
60 | 'embed embossed e-resize expanded extra-condensed extra-expanded fantasy far-left far-right fast faster fixed format fuchsia '+
61 | 'gray green groove handheld hebrew help hidden hide high higher icon inline-table inline inset inside invert italic '+
62 | 'justify landscape large larger left-side left leftwards level lighter lime line-through list-item local loud lower-alpha '+
63 | 'lowercase lower-greek lower-latin lower-roman lower low ltr marker maroon medium message-box middle mix move narrower '+
64 | 'navy ne-resize no-close-quote none no-open-quote no-repeat normal nowrap n-resize nw-resize oblique olive once open-quote outset '+
65 | 'outside overline pointer portrait pre print projection purple red relative repeat repeat-x repeat-y rgb ridge right right-side '+
66 | 'rightwards rtl run-in screen scroll semi-condensed semi-expanded separate se-resize show silent silver slower slow '+
67 | 'small small-caps small-caption smaller soft solid speech spell-out square s-resize static status-bar sub super sw-resize '+
68 | 'table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group teal '+
69 | 'text-bottom text-top thick thin top transparent tty tv ultra-condensed ultra-expanded underline upper-alpha uppercase upper-latin '+
70 | 'upper-roman url visible wait white wider w-resize x-fast x-high x-large x-loud x-low x-slow x-small x-soft xx-large xx-small yellow';
71 |
72 | var fonts = '[mM]onospace [tT]ahoma [vV]erdana [aA]rial [hH]elvetica [sS]ans-serif [sS]erif [cC]ourier mono sans serif';
73 |
74 | this.regexList = [
75 | { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
76 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
77 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
78 | { regex: /\#[a-fA-F0-9]{3,6}/g, css: 'value' }, // html colors
79 | { regex: /(-?\d+)(\.\d+)?(px|em|pt|\:|\%|)/g, css: 'value' }, // sizes
80 | { regex: /!important/g, css: 'color3' }, // !important
81 | { regex: new RegExp(getKeywordsCSS(keywords), 'gm'), css: 'keyword' }, // keywords
82 | { regex: new RegExp(getValuesCSS(values), 'g'), css: 'value' }, // values
83 | { regex: new RegExp(this.getKeywords(fonts), 'g'), css: 'color1' } // fonts
84 | ];
85 |
86 | this.forHtmlScript({
87 | left: /(<|<)\s*style.*?(>|>)/gi,
88 | right: /(<|<)\/\s*style\s*(>|>)/gi
89 | });
90 | };
91 |
92 | SyntaxHighlighter.brushes.CSS.prototype = new SyntaxHighlighter.Highlighter();
93 | SyntaxHighlighter.brushes.CSS.aliases = ['css'];
94 |
--------------------------------------------------------------------------------
/examples/expanding-box-shim/index.php:
--------------------------------------------------------------------------------
1 |
15 | /* Two HTTP requests? How lame is that? */
16 |
17 | .lame_box {
18 | width: 220px;
19 | background: url(bg_top.gif) no-repeat 0 0;
20 | }
21 |
22 | .lame_box-inner {
23 | padding: 20px;
24 | background: url(bg_bottom.gif) no-repeat 0 100%;
25 | }
26 |
27 | /* A single HTTP request? How delightful! */
28 |
29 | .cool_box,
30 | .cool_box-shim {
31 | background: url(bg.gif) no-repeat 0 0;
32 | }
33 |
34 | .cool_box {
35 | width: 180px; /* Width of the box / bg graphic, minus the padding */
36 | padding: 20px; /* Everyone loves padding! */
37 |
38 | position: relative;
39 | }
40 |
41 | .cool_box-shim {
42 | height: 20px; /* Change this to a number <= the bottom padding */
43 |
44 | background-position: 0 100%;
45 | position: absolute;
46 | left: 0;
47 | right: 0;
48 | bottom: 0;
49 |
50 | _padding: 0 20px; /* Change the 20px to whatever padding the parent box has. */
51 | _bottom: -1px; /* Without this, sometimes you see a line at the bottom in IE6. */
52 | _width: 100%; /* Another IE6-only "fix" */
53 | }
54 |
55 | /* What's this? Another, totally different looking box
56 | in the same HTTP request? No way! */
57 |
58 | .cool_box_alt {
59 | background-position: -220px 0;
60 | }
61 |
62 | .cool_box_alt .cool_box-shim {
63 | background-position: -220px 100%;
64 | }
65 |
66 | /* This stuff isn't really important, it just helps make the example look pretty. */
67 |
68 | .box {
69 | float: left;
70 | margin-right: 10px;
71 | }
72 |
73 | .box h3,
74 | .box p {
75 | margin: 0 0 0.6em;
76 | }
77 |
78 | $shell['css'] = ob_get_contents();
79 | ob_end_clean();
80 |
81 | // ========================================================================== //
82 | // HTML HEAD ADDITIONAL
83 | // ========================================================================== //
84 |
85 | ob_start();
86 | ?>
87 |
97 |
123 |
124 | $shell['html_head'] = ob_get_contents();
125 | ob_end_clean();
126 |
127 | // ========================================================================== //
128 | // HTML BODY
129 | // ========================================================================== //
130 |
131 | ob_start();
132 | ?>
133 |
134 |
135 | I'm sure this has been done a million times before, but it just came to me yesterday, so I figured I'd
136 | write up an example on my site. Also note that I'm not suggesting these boxes actually look cool, it's the CSS
137 | technique, that while very simple and maybe obvious, is actually cool.
138 |
139 |
140 | And don't forget to post comments or feedback, thanks!
141 |
142 |
143 |
144 |
145 |
This box is lame!
146 |
147 | In order to be resizable vertically, the background image has been split into two
148 | separate files, bg_top.gif and bg_bottom.gif.
149 |
150 |
151 | The outer div background is the overly-tall top image, anchored to the top, while the inner div background is the short bottom "end cap" image, anchored to the bottom.
152 |
153 |
154 | While this is a pretty standard way to make a resizable box, it requires two images (two HTTP
155 | requests), which isn't great!
156 |
157 |
158 | Also, keep in mind that this implementation is limited to the height of the top image. If you want
159 | an infinitely-resizable box, you'd actually need three images (three HTTP requests), which is not at all good!
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
This box is cool!
169 |
170 | While the CSS used for this box might be slightly more complicated, the benefit is that only one
171 | image, bg.gif, is used. And when you inspect that image, you'll see
172 | that it actually contains the background for not one, but two differently styled boxes!
173 |
174 |
175 | In fact, you can use this single image for many other CSS sprite images, thereby further reducing
176 | the number of HTTP requests your page makes, which helps to save page load time.
177 |
178 |
179 | Are there any caveats? Not really. You're going to be height-limited, so if you really want an infinitely-resizable
180 | box, you're going to need three images. But that shouldn't be necessary, since you can just make your single
181 | image as tall as you need, and then some. For example, these box images are 1000px tall, which should be more than enough for
182 | the content.
183 |
184 |
185 |
186 |
187 |
188 |
This box is also cool!
189 |
190 | (continued)
191 | Also, when you calculate the box width, you need to take padding into consideration. Just a little
192 | math, which shouldn't be a problem. Finally, if you care about how the box renders in IE6, you'll need to hack in
193 | a few styles (shown below, prefixed with _ so they only affect IE6).
194 |
195 |
196 | If you want to use this technique, you should only need to change the box and shim background image,
197 | the box width and padding, and if you set the shim height to the value of the padding (or less), you
198 | won't need to mess with z-indexes. Also, for IE6, you'll need to set the padding appropriately.
199 |
200 |
201 | Also, if you want to set the height to something specific, you'll need to set it on the parent container (in the
202 | "lame" version, you'd need to set it on the inner container).
203 |
204 |
205 |
206 |
207 |
208 |
209 | The code
210 |
211 |
212 | = htmlspecialchars( $shell['css'] ); ?>
213 |
214 |
215 |
216 | $shell['html_body'] = ob_get_contents();
217 | ob_end_clean();
218 |
219 | // ========================================================================== //
220 | // DRAW SHELL
221 | // ========================================================================== //
222 |
223 | draw_shell();
224 |
225 | ?>
226 |
--------------------------------------------------------------------------------
/shared/SyntaxHighlighter/LGPLv3.txt:
--------------------------------------------------------------------------------
1 | GNU LESSER GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 |
9 | This version of the GNU Lesser General Public License incorporates
10 | the terms and conditions of version 3 of the GNU General Public
11 | License, supplemented by the additional permissions listed below.
12 |
13 | 0. Additional Definitions.
14 |
15 | As used herein, "this License" refers to version 3 of the GNU Lesser
16 | General Public License, and the "GNU GPL" refers to version 3 of the GNU
17 | General Public License.
18 |
19 | "The Library" refers to a covered work governed by this License,
20 | other than an Application or a Combined Work as defined below.
21 |
22 | An "Application" is any work that makes use of an interface provided
23 | by the Library, but which is not otherwise based on the Library.
24 | Defining a subclass of a class defined by the Library is deemed a mode
25 | of using an interface provided by the Library.
26 |
27 | A "Combined Work" is a work produced by combining or linking an
28 | Application with the Library. The particular version of the Library
29 | with which the Combined Work was made is also called the "Linked
30 | Version".
31 |
32 | The "Minimal Corresponding Source" for a Combined Work means the
33 | Corresponding Source for the Combined Work, excluding any source code
34 | for portions of the Combined Work that, considered in isolation, are
35 | based on the Application, and not on the Linked Version.
36 |
37 | The "Corresponding Application Code" for a Combined Work means the
38 | object code and/or source code for the Application, including any data
39 | and utility programs needed for reproducing the Combined Work from the
40 | Application, but excluding the System Libraries of the Combined Work.
41 |
42 | 1. Exception to Section 3 of the GNU GPL.
43 |
44 | You may convey a covered work under sections 3 and 4 of this License
45 | without being bound by section 3 of the GNU GPL.
46 |
47 | 2. Conveying Modified Versions.
48 |
49 | If you modify a copy of the Library, and, in your modifications, a
50 | facility refers to a function or data to be supplied by an Application
51 | that uses the facility (other than as an argument passed when the
52 | facility is invoked), then you may convey a copy of the modified
53 | version:
54 |
55 | a) under this License, provided that you make a good faith effort to
56 | ensure that, in the event an Application does not supply the
57 | function or data, the facility still operates, and performs
58 | whatever part of its purpose remains meaningful, or
59 |
60 | b) under the GNU GPL, with none of the additional permissions of
61 | this License applicable to that copy.
62 |
63 | 3. Object Code Incorporating Material from Library Header Files.
64 |
65 | The object code form of an Application may incorporate material from
66 | a header file that is part of the Library. You may convey such object
67 | code under terms of your choice, provided that, if the incorporated
68 | material is not limited to numerical parameters, data structure
69 | layouts and accessors, or small macros, inline functions and templates
70 | (ten or fewer lines in length), you do both of the following:
71 |
72 | a) Give prominent notice with each copy of the object code that the
73 | Library is used in it and that the Library and its use are
74 | covered by this License.
75 |
76 | b) Accompany the object code with a copy of the GNU GPL and this license
77 | document.
78 |
79 | 4. Combined Works.
80 |
81 | You may convey a Combined Work under terms of your choice that,
82 | taken together, effectively do not restrict modification of the
83 | portions of the Library contained in the Combined Work and reverse
84 | engineering for debugging such modifications, if you also do each of
85 | the following:
86 |
87 | a) Give prominent notice with each copy of the Combined Work that
88 | the Library is used in it and that the Library and its use are
89 | covered by this License.
90 |
91 | b) Accompany the Combined Work with a copy of the GNU GPL and this license
92 | document.
93 |
94 | c) For a Combined Work that displays copyright notices during
95 | execution, include the copyright notice for the Library among
96 | these notices, as well as a reference directing the user to the
97 | copies of the GNU GPL and this license document.
98 |
99 | d) Do one of the following:
100 |
101 | 0) Convey the Minimal Corresponding Source under the terms of this
102 | License, and the Corresponding Application Code in a form
103 | suitable for, and under terms that permit, the user to
104 | recombine or relink the Application with a modified version of
105 | the Linked Version to produce a modified Combined Work, in the
106 | manner specified by section 6 of the GNU GPL for conveying
107 | Corresponding Source.
108 |
109 | 1) Use a suitable shared library mechanism for linking with the
110 | Library. A suitable mechanism is one that (a) uses at run time
111 | a copy of the Library already present on the user's computer
112 | system, and (b) will operate properly with a modified version
113 | of the Library that is interface-compatible with the Linked
114 | Version.
115 |
116 | e) Provide Installation Information, but only if you would otherwise
117 | be required to provide such information under section 6 of the
118 | GNU GPL, and only to the extent that such information is
119 | necessary to install and execute a modified version of the
120 | Combined Work produced by recombining or relinking the
121 | Application with a modified version of the Linked Version. (If
122 | you use option 4d0, the Installation Information must accompany
123 | the Minimal Corresponding Source and Corresponding Application
124 | Code. If you use option 4d1, you must provide the Installation
125 | Information in the manner specified by section 6 of the GNU GPL
126 | for conveying Corresponding Source.)
127 |
128 | 5. Combined Libraries.
129 |
130 | You may place library facilities that are a work based on the
131 | Library side by side in a single library together with other library
132 | facilities that are not Applications and are not covered by this
133 | License, and convey such a combined library under terms of your
134 | choice, if you do both of the following:
135 |
136 | a) Accompany the combined library with a copy of the same work based
137 | on the Library, uncombined with any other library facilities,
138 | conveyed under the terms of this License.
139 |
140 | b) Give prominent notice with the combined library that part of it
141 | is a work based on the Library, and explaining where to find the
142 | accompanying uncombined form of the same work.
143 |
144 | 6. Revised Versions of the GNU Lesser General Public License.
145 |
146 | The Free Software Foundation may publish revised and/or new versions
147 | of the GNU Lesser General Public License from time to time. Such new
148 | versions will be similar in spirit to the present version, but may
149 | differ in detail to address new problems or concerns.
150 |
151 | Each version is given a distinguishing version number. If the
152 | Library as you received it specifies that a certain numbered version
153 | of the GNU Lesser General Public License "or any later version"
154 | applies to it, you have the option of following the terms and
155 | conditions either of that published version or of any later version
156 | published by the Free Software Foundation. If the Library as you
157 | received it does not specify a version number of the GNU Lesser
158 | General Public License, you may choose any version of the GNU Lesser
159 | General Public License ever published by the Free Software Foundation.
160 |
161 | If the Library as you received it specifies that a proxy can decide
162 | whether future versions of the GNU Lesser General Public License shall
163 | apply, that proxy's public statement of acceptance of any version is
164 | permanent authorization for you to choose that version for the
165 | Library.
--------------------------------------------------------------------------------
/shared/SyntaxHighlighter/styles/shCore.css:
--------------------------------------------------------------------------------
1 | /**
2 | * SyntaxHighlighter
3 | * http://alexgorbatchev.com/
4 | *
5 | * SyntaxHighlighter is donationware. If you are using it, please donate.
6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7 | *
8 | * @version
9 | * 2.0.320 (May 03 2009)
10 | *
11 | * @copyright
12 | * Copyright (C) 2004-2009 Alex Gorbatchev.
13 | *
14 | * @license
15 | * This file is part of SyntaxHighlighter.
16 | *
17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify
18 | * it under the terms of the GNU Lesser General Public License as published by
19 | * the Free Software Foundation, either version 3 of the License, or
20 | * (at your option) any later version.
21 | *
22 | * SyntaxHighlighter is distributed in the hope that it will be useful,
23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 | * GNU General Public License for more details.
26 | *
27 | * You should have received a copy of the GNU General Public License
28 | * along with SyntaxHighlighter. If not, see .
29 | */
30 | .syntaxhighlighter,
31 | .syntaxhighlighter div,
32 | .syntaxhighlighter code,
33 | .syntaxhighlighter span
34 | {
35 | margin: 0 !important;
36 | padding: 0 !important;
37 | border: 0 !important;
38 | outline: 0 !important;
39 | background: none !important;
40 | text-align: left !important;
41 | float: none !important;
42 | vertical-align: baseline !important;
43 | position: static !important;
44 | left: auto !important;
45 | top: auto !important;
46 | right: auto !important;
47 | bottom: auto !important;
48 | height: auto !important;
49 | width: auto !important;
50 | line-height: 1.1em !important;
51 | font-family: "Consolas", "Monaco", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important;
52 | font-weight: normal !important;
53 | font-style: normal !important;
54 | font-size: 1em !important;
55 | }
56 |
57 | .syntaxhighlighter
58 | {
59 | width: 100% !important;
60 | margin: 1em 0 1em 0 !important;
61 | padding: 1px !important; /* adds a little border on top and bottom */
62 | position: relative !important;
63 | }
64 |
65 | .syntaxhighlighter code {
66 | display: inline !important;
67 | }
68 |
69 | .syntaxhighlighter .bold {
70 | font-weight: bold !important;
71 | }
72 |
73 | .syntaxhighlighter .italic {
74 | font-style: italic !important;
75 | }
76 |
77 | .syntaxhighlighter .line .number
78 | {
79 | float: left !important;
80 | width: 3em !important;
81 | padding-right: .3em !important;
82 | text-align: right !important;
83 | display: block !important;
84 | }
85 |
86 | /* Disable numbers when no gutter option is set */
87 | .syntaxhighlighter.nogutter .line .number
88 | {
89 | display: none !important;
90 | }
91 |
92 | .syntaxhighlighter .line .content
93 | {
94 | margin-left: 3.3em !important;
95 | padding-left: .5em !important;
96 | display: block !important;
97 | }
98 |
99 | .syntaxhighlighter .line .content .block
100 | {
101 | display: block !important;
102 | padding-left: 1.5em !important;
103 | text-indent: -1.5em !important;
104 | }
105 |
106 | .syntaxhighlighter .line .content .spaces
107 | {
108 | display: none !important;
109 | }
110 |
111 | /* Disable border and margin on the lines when no gutter option is set */
112 | .syntaxhighlighter.nogutter .line .content
113 | {
114 | margin-left: 0 !important;
115 | border-left: none !important;
116 | }
117 |
118 | .syntaxhighlighter .bar
119 | {
120 | display: none !important;
121 | }
122 |
123 | .syntaxhighlighter .bar.show
124 | {
125 | display: block !important;
126 | }
127 |
128 | .syntaxhighlighter.collapsed .bar
129 | {
130 | display: block !important;
131 | }
132 |
133 | .syntaxhighlighter.nogutter .ruler
134 | {
135 | margin-left: 0 !important;
136 | padding-left: 0 !important;
137 | }
138 |
139 | .syntaxhighlighter .ruler
140 | {
141 | padding: 0 0 .5em .5em !important;
142 | margin-left: 3.3em !important;
143 | overflow: hidden !important;
144 | }
145 |
146 | /* Adjust some properties when collapsed */
147 |
148 | .syntaxhighlighter.collapsed .lines,
149 | .syntaxhighlighter.collapsed .ruler
150 | {
151 | display: none !important;
152 | }
153 |
154 | .syntaxhighlighter .lines.no-wrap
155 | {
156 | overflow: auto;
157 | overflow-y: hidden;
158 | }
159 |
160 | /* Styles for the toolbar */
161 |
162 | .syntaxhighlighter .toolbar
163 | {
164 | position: absolute !important;
165 | right: 0px !important;
166 | top: 0px !important;
167 | font-size: 1px !important;
168 | padding: 8px 8px 8px 0 !important; /* in px because images don't scale with ems */
169 | }
170 |
171 | .syntaxhighlighter.collapsed .toolbar
172 | {
173 | font-size: 80% !important;
174 | padding: .2em 0 .5em .5em !important;
175 | position: static !important;
176 | }
177 |
178 | .syntaxhighlighter .toolbar a.item,
179 | .syntaxhighlighter .toolbar .item
180 | {
181 | display: block !important;
182 | float: left !important;
183 | margin-left: 8px !important;
184 | background-repeat: no-repeat !important;
185 | overflow: hidden !important;
186 | text-indent: -5000px !important;
187 | }
188 |
189 | .syntaxhighlighter.collapsed .toolbar .item
190 | {
191 | display: none !important;
192 | }
193 |
194 | .syntaxhighlighter.collapsed .toolbar .item.expandSource
195 | {
196 | background-image: url(magnifier.png) !important;
197 | display: inline !important;
198 | text-indent: 0 !important;
199 | width: auto !important;
200 | float: none !important;
201 | height: 16px !important;
202 | padding-left: 20px !important;
203 | }
204 |
205 | .syntaxhighlighter .toolbar .item.viewSource
206 | {
207 | background-image: url(page_white_code.png) !important;
208 | }
209 |
210 | .syntaxhighlighter .toolbar .item.printSource
211 | {
212 | background-image: url(printer.png) !important;
213 | }
214 |
215 | .syntaxhighlighter .toolbar .item.copyToClipboard
216 | {
217 | text-indent: 0 !important;
218 | background: none !important;
219 | overflow: visible !important;
220 | }
221 |
222 | .syntaxhighlighter .toolbar .item.about
223 | {
224 | background-image: url(help.png) !important;
225 | }
226 |
227 | /**
228 | * Print view.
229 | * Colors are based on the default theme without background.
230 | */
231 |
232 | .syntaxhighlighter.printing,
233 | .syntaxhighlighter.printing .line.alt1 .content,
234 | .syntaxhighlighter.printing .line.alt2 .content,
235 | .syntaxhighlighter.printing .line.highlighted .number,
236 | .syntaxhighlighter.printing .line.highlighted.alt1 .content,
237 | .syntaxhighlighter.printing .line.highlighted.alt2 .content,
238 | .syntaxhighlighter.printing .line .content .block
239 | {
240 | background: none !important;
241 | }
242 |
243 | .syntaxhighlighter .no-wrap .line .content .block
244 | {
245 | white-space: nowrap !important;
246 | }
247 |
248 | /* Gutter line numbers */
249 | .syntaxhighlighter.printing .line .number
250 | {
251 | color: #bbb !important;
252 | }
253 |
254 | /* Add border to the lines */
255 | .syntaxhighlighter.printing .line .content
256 | {
257 | color: #000 !important;
258 | }
259 |
260 | /* Toolbar when visible */
261 | .syntaxhighlighter.printing .toolbar,
262 | .syntaxhighlighter.printing .ruler
263 | {
264 | display: none !important;
265 | }
266 |
267 | .syntaxhighlighter.printing a
268 | {
269 | text-decoration: none !important;
270 | }
271 |
272 | .syntaxhighlighter.printing .plain,
273 | .syntaxhighlighter.printing .plain a
274 | {
275 | color: #000 !important;
276 | }
277 |
278 | .syntaxhighlighter.printing .comments,
279 | .syntaxhighlighter.printing .comments a
280 | {
281 | color: #008200 !important;
282 | }
283 |
284 | .syntaxhighlighter.printing .string,
285 | .syntaxhighlighter.printing .string a
286 | {
287 | color: blue !important;
288 | }
289 |
290 | .syntaxhighlighter.printing .keyword
291 | {
292 | color: #069 !important;
293 | font-weight: bold !important;
294 | }
295 |
296 | .syntaxhighlighter.printing .preprocessor
297 | {
298 | color: gray !important;
299 | }
300 |
301 | .syntaxhighlighter.printing .variable
302 | {
303 | color: #a70 !important;
304 | }
305 |
306 | .syntaxhighlighter.printing .value
307 | {
308 | color: #090 !important;
309 | }
310 |
311 | .syntaxhighlighter.printing .functions
312 | {
313 | color: #ff1493 !important;
314 | }
315 |
316 | .syntaxhighlighter.printing .constants
317 | {
318 | color: #0066CC !important;
319 | }
320 |
321 | .syntaxhighlighter.printing .script
322 | {
323 | font-weight: bold !important;
324 | }
325 |
326 | .syntaxhighlighter.printing .color1,
327 | .syntaxhighlighter.printing .color1 a
328 | {
329 | color: #808080 !important;
330 | }
331 |
332 | .syntaxhighlighter.printing .color2,
333 | .syntaxhighlighter.printing .color2 a
334 | {
335 | color: #ff1493 !important;
336 | }
337 |
338 | .syntaxhighlighter.printing .color3,
339 | .syntaxhighlighter.printing .color3 a
340 | {
341 | color: red !important;
342 | }
343 |
--------------------------------------------------------------------------------
/shared/ba-debug.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * JavaScript Debug - v0.3 - 6/8/2009
3 | * http://benalman.com/projects/javascript-debug-console-log/
4 | *
5 | * Copyright (c) 2009 "Cowboy" Ben Alman
6 | * Dual licensed under the MIT and GPL licenses.
7 | * http://benalman.com/about/license/
8 | *
9 | * With lots of help from Paul Irish!
10 | * http://paulirish.com/
11 | */
12 |
13 | // Script: JavaScript Debug: A simple wrapper for console.log
14 | //
15 | // *Version: 0.3, Last Updated: 6/8/2009*
16 | //
17 | // Tested with Internet Explorer 6-8, Firefox 3, Safari 3-4, Chrome, Opera 9.
18 | //
19 | // Home - http://benalman.com/projects/javascript-debug-console-log/
20 | // GitHub - http://github.com/cowboy/javascript-debug/
21 | // Source - http://github.com/cowboy/javascript-debug/raw/master/ba-debug.js
22 | // (Minified) - http://github.com/cowboy/javascript-debug/raw/master/ba-debug.min.js (1.1kb)
23 | //
24 | // About: License
25 | //
26 | // Copyright (c) 2009 "Cowboy" Ben Alman,
27 | // Dual licensed under the MIT and GPL licenses.
28 | // http://benalman.com/about/license/
29 | //
30 | // About: Support and Testing
31 | //
32 | // Information about what browsers this code has been tested in.
33 | //
34 | // Browsers Tested - Internet Explorer 6-8, Firefox 3-3.5, Safari 3-4, Chrome, Opera 9.
35 | //
36 | // About: Examples
37 | //
38 | // These working examples, complete with fully commented code, illustrate a few
39 | // ways in which this plugin can be used.
40 | //
41 | // Examples - http://benalman.com/code/projects/javascript-debug/examples/debug/
42 | //
43 | // About: Revision History
44 | //
45 | // 0.3 - (6/8/2009) Initial release
46 | //
47 | // Topic: Pass-through console methods
48 | //
49 | // assert, clear, count, dir, dirxml, group, groupEnd, profile, profileEnd,
50 | // time, timeEnd, trace
51 | //
52 | // These console methods are passed through (but only if both the console and
53 | // the method exists), so use them without fear of reprisal. Note that these
54 | // methods will not be passed through if the logging level is set to 0 via
55 | // .
56 |
57 | window.debug = (function(){
58 | var window = this,
59 |
60 | // Some convenient shortcuts.
61 | aps = Array.prototype.slice,
62 | con = window.console,
63 |
64 | // Public object to be returned.
65 | that = {},
66 |
67 | callback_func,
68 | callback_force,
69 |
70 | // Default logging level, show everything.
71 | log_level = 9,
72 |
73 | // Logging methods, in "priority order". Not all console implementations
74 | // will utilize these, but they will be used in the callback passed to
75 | // setCallback.
76 | log_methods = [ 'error', 'warn', 'info', 'debug', 'log' ],
77 |
78 | // Pass these methods through to the console if they exist, otherwise just
79 | // fail gracefully. These methods are provided for convenience.
80 | pass_methods = 'assert clear count dir dirxml group groupEnd profile profileEnd time timeEnd trace'.split(' '),
81 | idx = pass_methods.length,
82 |
83 | // Logs are stored here so that they can be recalled as necessary.
84 | logs = [];
85 |
86 | while ( --idx >= 0 ) {
87 | (function( method ){
88 |
89 | // Generate pass-through methods. These methods will be called, if they
90 | // exist, as long as the logging level is non-zero.
91 | that[ method ] = function() {
92 | log_level !== 0 && con && con[ method ]
93 | && con[ method ].apply( con, arguments );
94 | }
95 |
96 | })( pass_methods[idx] );
97 | }
98 |
99 | idx = log_methods.length;
100 | while ( --idx >= 0 ) {
101 | (function( idx, level ){
102 |
103 | // Method: debug.log
104 | //
105 | // Call the console.log method if available. Adds an entry into the logs
106 | // array for a callback specified via .
107 | //
108 | // Usage:
109 | //
110 | // debug.log( object [, object, ...] ); - -
111 | //
112 | // Arguments:
113 | //
114 | // object - (Object) Any valid JavaScript object.
115 |
116 | // Method: debug.debug
117 | //
118 | // Call the console.debug method if available, otherwise call console.log.
119 | // Adds an entry into the logs array for a callback specified via
120 | // .
121 | //
122 | // Usage:
123 | //
124 | // debug.debug( object [, object, ...] ); - -
125 | //
126 | // Arguments:
127 | //
128 | // object - (Object) Any valid JavaScript object.
129 |
130 | // Method: debug.info
131 | //
132 | // Call the console.info method if available, otherwise call console.log.
133 | // Adds an entry into the logs array for a callback specified via
134 | // .
135 | //
136 | // Usage:
137 | //
138 | // debug.info( object [, object, ...] ); - -
139 | //
140 | // Arguments:
141 | //
142 | // object - (Object) Any valid JavaScript object.
143 |
144 | // Method: debug.warn
145 | //
146 | // Call the console.warn method if available, otherwise call console.log.
147 | // Adds an entry into the logs array for a callback specified via
148 | // .
149 | //
150 | // Usage:
151 | //
152 | // debug.warn( object [, object, ...] ); - -
153 | //
154 | // Arguments:
155 | //
156 | // object - (Object) Any valid JavaScript object.
157 |
158 | // Method: debug.error
159 | //
160 | // Call the console.error method if available, otherwise call console.log.
161 | // Adds an entry into the logs array for a callback specified via
162 | // .
163 | //
164 | // Usage:
165 | //
166 | // debug.error( object [, object, ...] ); - -
167 | //
168 | // Arguments:
169 | //
170 | // object - (Object) Any valid JavaScript object.
171 |
172 | that[ level ] = function() {
173 | var args = aps.call( arguments ),
174 | log_arr = [ level ].concat( args );
175 |
176 | logs.push( log_arr );
177 | exec_callback( log_arr );
178 |
179 | if ( !con || !is_level( idx ) ) { return; }
180 |
181 | con.firebug ? con[ level ].apply( window, args )
182 | : con[ level ] ? con[ level ]( args )
183 | : con.log( args );
184 | };
185 |
186 | })( idx, log_methods[idx] );
187 | }
188 |
189 | // Execute the callback function if set.
190 | function exec_callback( args ) {
191 | if ( callback_func && (callback_force || !con || !con.log) ) {
192 | callback_func.apply( window, args );
193 | }
194 | };
195 |
196 | // Method: debug.setLevel
197 | //
198 | // Set a minimum or maximum logging level for the console. Doesn't affect
199 | // the callback function, but if set to 0 to disable
200 | // logging, will be disabled as well.
201 | //
202 | // Usage:
203 | //
204 | // debug.setLevel( [ level ] ) - -
205 | //
206 | // Arguments:
207 | //
208 | // level - (Number) If 0, disables logging. If negative, shows N lowest
209 | // priority levels of log messages. If positive, shows N highest priority
210 | // levels of log messages.
211 | //
212 | // Priority levels:
213 | //
214 | // log (1) < debug (2) < info (3) < warn (4) < error (5)
215 |
216 | that.setLevel = function( level ) {
217 | log_level = typeof level === 'number' ? level : 9;
218 | };
219 |
220 | // Determine if the level is visible given the current log_level.
221 | function is_level( level ) {
222 | return log_level > 0
223 | ? log_level > level
224 | : log_methods.length + log_level <= level;
225 | };
226 |
227 | // Method: debug.setCallback
228 | //
229 | // Set a callback to be used if logging isn't possible due to console.log
230 | // not existing. If unlogged logs exist when callback is set, they will all
231 | // be logged immediately unless a limit is specified.
232 | //
233 | // Usage:
234 | //
235 | // debug.setCallback( callback [, force ] [, limit ] )
236 | //
237 | // Arguments:
238 | //
239 | // callback - (Function) The aforementioned callback function. The first
240 | // argument is the logging level, and all subsequent arguments are those
241 | // passed to the initial debug logging method.
242 | // force - (Boolean) If false, log to console.log if available, otherwise
243 | // callback. If true, log to both console.log and callback.
244 | // limit - (Number) If specified, number of lines to limit initial scrollback
245 | // to.
246 |
247 | that.setCallback = function() {
248 | var args = aps.call( arguments ),
249 | max = logs.length,
250 | i = max;
251 |
252 | callback_func = args.shift() || null;
253 | callback_force = typeof args[0] === 'boolean' ? args.shift() : false;
254 |
255 | i -= typeof args[0] === 'number' ? args.shift() : max;
256 |
257 | while ( i < max ) {
258 | exec_callback( logs[i++] );
259 | }
260 | };
261 |
262 | return that;
263 | })();
264 |
265 |
--------------------------------------------------------------------------------
/examples/index.css:
--------------------------------------------------------------------------------
1 | /* YUI RESETS */
2 |
3 | /*
4 | Copyright (c) 2008, Yahoo! Inc. All rights reserved.
5 | Code licensed under the BSD License:
6 | http://developer.yahoo.net/yui/license.txt
7 | version: 2.5.2
8 | */
9 | html{color:#000;background:#FFF;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym {border:0;font-variant:normal;}sup {vertical-align:text-top;}sub {vertical-align:text-bottom;}input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit;}input,textarea,select{*font-size:100%;}legend{color:#000;}
10 |
11 | /*
12 | Copyright (c) 2008, Yahoo! Inc. All rights reserved.
13 | Code licensed under the BSD License:
14 | http://developer.yahoo.net/yui/license.txt
15 | version: 2.5.2
16 | */
17 | body {font:13px/1.231 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small;}table {font-size:inherit;font:100%;}pre,code,kbd,samp,tt{font-family:monospace;*font-size:108%;line-height:100%;}
18 |
19 | /*
20 | Copyright (c) 2008, Yahoo! Inc. All rights reserved.
21 | Code licensed under the BSD License:
22 | http://developer.yahoo.net/yui/license.txt
23 | version: 2.5.2
24 | */
25 | h1{font-size:138.5%;}h2{font-size:123.1%;}h3{font-size:108%;}h1,h2,h3{margin:1em 0;}h1,h2,h3,h4,h5,h6,strong{font-weight:bold;}abbr,acronym{border-bottom:1px dotted #000;cursor:help;} em{font-style:italic;}blockquote,ul,ol,dl{margin:1em;}ol,ul,dl{margin-left:2em;}ol li{list-style:decimal outside;}ul li{list-style:disc outside;}dl dd{margin-left:1em;}th,td{border:1px solid #000;padding:.5em;}th{font-weight:bold;text-align:center;}caption{margin-bottom:.5em;text-align:center;}p,fieldset,table,pre{margin-bottom:1em;}input[type=text],input[type=password],textarea{width:12.25em;*width:11.9em;}
26 |
27 | /* MISC RESETS */
28 |
29 | em, i {
30 | font-weight: inherit;
31 | }
32 |
33 | ul, ol {
34 | margin-right: 0;
35 | }
36 |
37 | pre {
38 | white-space: pre-wrap;
39 | white-space: -moz-pre-wrap;
40 | white-space: -o-pre-wrap;
41 | word-wrap: break-word;
42 | _white-space: pre;
43 | }
44 |
45 | /* LISTS */
46 |
47 | div.nav ul, ul.nav {
48 | margin: 0 !important;
49 | padding: 0 !important;
50 | }
51 |
52 | div.nav li, ul.nav li {
53 | list-style: none !important;
54 | background: none !important;
55 | margin: 0 !important;
56 | padding: 0 !important;
57 | }
58 |
59 | div.nav-inline ul, ul.nav-inline {
60 | width: auto !important;
61 | }
62 |
63 | div.nav-inline li, ul.nav-inline li {
64 | display: inline !important;
65 | }
66 |
67 | dl.inline {
68 | margin-left: 0;
69 | }
70 |
71 | dl.inline dt,
72 | dl.inline dd {
73 | margin: 0;
74 | display: inline;
75 | }
76 |
77 | /* HORIZONTAL RULE */
78 |
79 | hr {
80 | height: 1px;
81 | color: #777;
82 | }
83 |
84 | div.hr {
85 | height: 1px;
86 | overflow: hidden;
87 | border-bottom: 1px solid #777;
88 | margin: 0.8em 0;
89 | }
90 |
91 |
92 | /* GENERAL-PURPOSE CLASSES */
93 |
94 | .hidden {
95 | display: none !important;
96 | }
97 |
98 | .inline {
99 | display: inline !important;
100 | float: none !important;
101 | }
102 |
103 | .floatright {
104 | display: inline;
105 | float: right !important;
106 | }
107 |
108 | .floatleft {
109 | display: inline;
110 | float: left !important;
111 | }
112 |
113 | .clear {
114 | clear: both !important;
115 | display: block;
116 | }
117 |
118 | .clearleft {
119 | clear: left !important;
120 | display: block;
121 | }
122 |
123 | .clearright {
124 | clear: right !important;
125 | display: block;
126 | }
127 |
128 | .left {
129 | text-align: left !important;
130 | }
131 |
132 | .right {
133 | text-align: right !important;
134 | }
135 |
136 | .center {
137 | text-align: center !important;
138 | }
139 |
140 | .nowrap {
141 | white-space: nowrap !important;
142 | }
143 |
144 | .uppercase {
145 | text-transform: uppercase !important;
146 | }
147 |
148 | .lowercase {
149 | text-transform: lowercase !important;
150 | }
151 |
152 | .nocase {
153 | text-transform: default !important;
154 | }
155 |
156 | .bold {
157 | font-weight: 700 !important;
158 | }
159 |
160 | .normal {
161 | font-weight: 400 !important;
162 | }
163 |
164 | .small {
165 | font-size: 86% !important;
166 | }
167 |
168 | @media print {
169 | .hidden-print {
170 | display: none !important;
171 | }
172 | .nopagebreak {
173 | page-break-inside: avoid !important;
174 | }
175 | }
176 |
177 | @media screen {
178 | .hidden-screen {
179 | display: none !important;
180 | }
181 | }
182 |
183 |
184 | /* HORIZONTAL + VERTICAL CENTERING */
185 |
186 | .center1 {
187 | text-align: center;
188 | }
189 |
190 | .center2 {
191 | #left: 50%;
192 | }
193 |
194 | .center3 {
195 | margin: 0 auto;
196 | #left: -50%;
197 | }
198 |
199 | .center1, .vcenter1 {
200 | display: table;
201 | #display: block;
202 | #text-align: auto;
203 | #position: relative;
204 | }
205 |
206 | .center2, .vcenter2 {
207 | display: table-cell;
208 | vertical-align: middle;
209 | #position: absolute;
210 | #top: 50%;
211 | }
212 |
213 | .center3, .vcenter3 {
214 | display: block;
215 | #position: relative;
216 | #top: -50%;
217 | }
218 |
219 | /*
220 | .center1, .vcenter1 { border: 1px solid #f00 !important; }
221 | .center2, .vcenter2 { border: 1px solid #0f0 !important; }
222 | .center3, .vcenter3 { border: 1px solid #00f !important; }
223 | */
224 |
225 |
226 | /* CSS BG IMAGE REPLACEMENT */
227 |
228 | .bgfx, .bgfx1, .bgfx2 {
229 | display: block;
230 | width: 300px;
231 | height: 50px;
232 | padding: 0 !important;
233 | }
234 |
235 | a.bgfx, a.bgfx1, a.bgfx2,
236 | a.bgfx:hover, a.bgfx1:hover, a.bgfx2:hover {
237 | text-decoration: none;
238 | cursor: pointer;
239 | cursor: hand;
240 | }
241 |
242 | .bgfx {
243 | position: relative;
244 | overflow: hidden;
245 | background: no-repeat 0 0;
246 | }
247 |
248 | .bgfx1, .bgfx2 {
249 | position: absolute;
250 | left: 0;
251 | top: 0;
252 | z-index: 1;
253 | background: no-repeat 0 0;
254 | }
255 |
256 |
257 | /* "HIT" LINKS */
258 |
259 | .hit, .hit .hit1 {
260 | display: block;
261 | position: absolute;
262 | left: 0;
263 | right: 0;
264 | top: 0;
265 | bottom: 0;
266 | cursor: hand;
267 | cursor: pointer;
268 | _width: 100%;
269 | _height: 100%;
270 | }
271 |
272 | .hit {
273 | z-index: 1000;
274 | }
275 |
276 | .hit .hit1 {
277 | #background: #fff;
278 | #filter: alpha(opacity=1);
279 | }
280 |
281 |
282 | /* EXAMPLE CSS */
283 |
284 | /* http://colorschemedesigner.com/#3s40M--K-BRJD */
285 |
286 | .primary-1 { background-color: #008CD0 }
287 | .primary-2 { background-color: #2C7091 }
288 | .primary-3 { background-color: #005178 }
289 | .primary-4 { background-color: #58C0F2 }
290 | .primary-5 { background-color: #9FD7F2 }
291 |
292 | .secondary-a-1 { background-color: #0BE700 }
293 | .secondary-a-2 { background-color: #36A131 }
294 | .secondary-a-3 { background-color: #078500 }
295 | .secondary-a-4 { background-color: #62F85A }
296 | .secondary-a-5 { background-color: #A7F8A3 }
297 |
298 | .secondary-b-1 { background-color: #FE0006 }
299 | .secondary-b-2 { background-color: #B13639 }
300 | .secondary-b-3 { background-color: #920004 }
301 | .secondary-b-4 { background-color: #FF5D61 }
302 | .secondary-b-5 { background-color: #FFA7A9 }
303 |
304 | .complement-1 { background-color: #FF8900 }
305 | .complement-2 { background-color: #B27836 }
306 | .complement-3 { background-color: #934F00 }
307 | .complement-4 { background-color: #FFB45D }
308 | .complement-5 { background-color: #FFD6A7 }
309 |
310 | /*
311 | bg: #FDEBDC
312 | bg1: #FFBE7D
313 | bg2: #FFAB59
314 | orange: #FF7F00
315 | brown: #913D00
316 | lt. brown: #C4884F
317 | */
318 |
319 | html, body {
320 | color: #000;
321 | background: #fff;
322 | font-family: Arial;
323 | }
324 |
325 | body {
326 | font-size: 0.8em;
327 | margin: 1em;
328 | }
329 |
330 | h1, h2 {
331 | font-family: "Gill Sans", "Gill Sans MT", Arial, Helvetica, sans-serif;
332 | }
333 |
334 | h1 {
335 | font-size: 140%;
336 | font-weight: 400;
337 | text-transform: uppercase;
338 | color: #FF7F00;
339 | margin: 0 0 0.6em;
340 | }
341 |
342 | h1 a {
343 | color: #FF7F00;
344 | }
345 |
346 | h1 a:hover {
347 | color: #913D00;
348 | }
349 |
350 | h1 .title {
351 | color: #913D00;
352 | }
353 |
354 | h1 a.title:hover {
355 | color: #FF7F00;
356 | }
357 |
358 | h2 {
359 | font-size: 120%;
360 | color: #913D00;
361 | }
362 |
363 | h3 {
364 | font-size: 100%;
365 | }
366 |
367 | a {
368 | color: #913D00;
369 | }
370 |
371 | a:hover {
372 | color: #FF7F00;
373 | }
374 |
375 | .divider {
376 | color: #C4884F;
377 | }
378 |
379 | #page {
380 | width: 700px;
381 | }
382 |
383 | #header h1 {
384 | white-space: nowrap;
385 | }
386 |
387 | #footer {
388 | clear: both;
389 | padding-top: 2em;
390 | font-size: 80%;
391 | color: #C4884F;
392 | }
393 |
394 | #footer a {
395 | color: #C4884F;
396 | }
397 |
398 | #footer a:hover {
399 | color: #FF7F00;
400 | }
401 |
402 |
403 | pre {
404 | overflow-x: auto;
405 | }
406 |
407 | pre code {
408 | display: block;
409 | border: 1px solid transparent;
410 | _border: none;
411 | }
412 |
413 | /* ROUNDED BORDERS */
414 |
415 | pre,
416 | .syntaxhighlighter,
417 | .syntaxhighlighter .toolbar {
418 | -moz-border-radius: 10px;
419 | -webkit-border-radius: 10px;
420 | }
421 |
422 | /* PRE/CODE BLOCKS, SYNTAX HIGHLIGHTING */
423 |
424 | code, pre {
425 | font-family: "Consolas","Monaco","Bitstream Vera Sans Mono","Courier New",Courier,monospace;
426 | }
427 |
428 | a code {
429 | color: inherit;
430 | }
431 |
432 | code {
433 | color: #913D00;
434 | font-size: 12px;
435 | font-weight: inherit;
436 | }
437 |
438 | pre {
439 | margin: 0 0 0.6em;
440 | padding: 0 0.6em;
441 | border: 1px solid #C4884F;
442 | background: #fee0c5;
443 | color: #000;
444 | }
445 |
446 | pre code {
447 | color: #000;
448 | }
449 |
450 | pre,
451 | .syntaxhighlighter,
452 | .syntaxhighlighter div,
453 | .syntaxhighlighter code,
454 | .syntaxhighlighter span {
455 | font-size: 11px !important;
456 | line-height: 1.5em !important;
457 | }
458 |
459 | pre,
460 | .syntaxhighlighter,
461 | .syntaxhighlighter .line:first-child .content {
462 | min-height: 2.99em;
463 | }
464 |
465 | .syntaxhighlighter .line:not(:last-child) .content {
466 | min-height: 0;
467 | }
468 |
469 | .syntaxhighlighter .content {
470 | min-height: 0\9 !important; /* IE6, IE7, IE8 */
471 | }
472 |
473 | .syntaxhighlighter,
474 | .syntaxhighlighter code,
475 | .syntaxhighlighter a {
476 | word-wrap: break-word !important;
477 | }
478 |
479 | .syntaxhighlighter .line .content .block {
480 | background-position: 0 1.5em !important;
481 | }
482 |
483 | .syntaxhighlighter {
484 | width: auto !important;
485 | margin: 0 0 0.6em !important;
486 | padding: 0 1px !important;
487 | background: #fee0c5 !important;
488 | border: 1px solid #C4884F !important;
489 | _zoom: 1;
490 | }
491 |
492 | .syntaxhighlighter .toolbar {
493 | right: 3px !important;
494 | top: 3px !important;
495 | }
496 |
497 | .syntaxhighlighter .line .number {
498 | color: #C4884F !important;
499 | }
500 |
501 | .syntaxhighlighter .lines .content {
502 | border-color: #C4884F !important;
503 | }
504 |
505 | .syntaxhighlighter .lines .line:first-child,
506 | .syntaxhighlighter .lines .line:first-child .content {
507 | -moz-border-radius-topright: 10px;
508 | -webkit-border-top-right-radius: 10px;
509 | }
510 |
511 | .syntaxhighlighter .lines .line:last-child,
512 | .syntaxhighlighter .lines .line:last-child .content {
513 | -moz-border-radius-bottomright: 10px;
514 | -webkit-border-bottom-right-radius: 10px;
515 | }
516 |
517 | .syntaxhighlighter.nogutter .lines .line:first-child,
518 | .syntaxhighlighter.nogutter .lines .line:first-child .content {
519 | -moz-border-radius-topleft: 10px;
520 | -webkit-border-top-left-radius: 10px;
521 | }
522 |
523 | .syntaxhighlighter.nogutter .lines .line:last-child,
524 | .syntaxhighlighter.nogutter .lines .line:last-child .content {
525 | -moz-border-radius-bottomleft: 10px;
526 | -webkit-border-bottom-left-radius: 10px;
527 | }
528 |
--------------------------------------------------------------------------------
/shared/SyntaxHighlighter/scripts/shCore.js:
--------------------------------------------------------------------------------
1 | /**
2 | * SyntaxHighlighter
3 | * http://alexgorbatchev.com/
4 | *
5 | * SyntaxHighlighter is donationware. If you are using it, please donate.
6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7 | *
8 | * @version
9 | * 2.0.320 (May 03 2009)
10 | *
11 | * @copyright
12 | * Copyright (C) 2004-2009 Alex Gorbatchev.
13 | *
14 | * @license
15 | * This file is part of SyntaxHighlighter.
16 | *
17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify
18 | * it under the terms of the GNU Lesser General Public License as published by
19 | * the Free Software Foundation, either version 3 of the License, or
20 | * (at your option) any later version.
21 | *
22 | * SyntaxHighlighter is distributed in the hope that it will be useful,
23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 | * GNU General Public License for more details.
26 | *
27 | * You should have received a copy of the GNU General Public License
28 | * along with SyntaxHighlighter. If not, see .
29 | */
30 | eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('f(!1q.2E){l 2E=h(){l p={77:{"1e-1f":"","79-2P":1,"1I":u,"6V-70":U,"1C-2A":4,"5f":N,"4Z":U,"1z":U,"56":N,"7G-7F":U,"6Z":N,"4S-1m":U},M:{52:u,5P:16,5S:16,8k:N,8l:N,83:"4R",1k:{3Y:"97 1c",41:"9b 1c",5U:"9O 93 7A",6t:"9B I 9E 23 8w 7A 8o",34:"34",6P:"?",1v:"2E\\n\\n",6F:"8p\'t 8I 87 D: ",7X:"8V 8v\'t bD D 2u-2c bf: ",6H:"<2u ay=\\"2g://6D.6v.6m/as/8r\\"><6l><8T 2g-92=\\"8P-8L\\" 5B=\\"2d/2u; 8E=8s-8\\" /><3B>8C 2E3B>6l><2L 1n=\\"3N-8x:8Z,9y,9H,9I-9Q;9S-4v:#9K;4v:#9J;3N-2A:9L;2d-6k:6i;\\">2E6f 2.0.9j (9n 9s 6n)2g://6j.4U