Crayon Syntax Highlighter - Version 1.9.0

Version Description

  • This update is the biggest update yet - highly recommended for all users.
  • Added a brand new Tag Editor in the Visual Editor toolbar! Greatly simplifies adding code to posts in the Visual Editor. You can also switch between Visual and HTML modes to verify your code before posting!
  • Added ability to decode HTML entities, so now you can use <, > etc. in the Visual Editor. But if you need indentation etc, you'll want to use the HTML editor for posts with Crayons. You can also use decode="yes/no/true/false" to set this for an individual Crayon.
  • Added ability to decode attributes, which is enabled by default to avoid seeing encoded strings in the title, and also to allow encoded angle/square brackets in the title that would otherwise clash with the Crayon tag brackets if left unencoded.
  • Added ability to use the class attribute in <pre> tags for specifying settings like url, mark, lang, toolbar and all other valid settings like in a normal [crayon] tag. This will ensure your <pre> tags remain valid XHTML markup even with Crayon disabled.
  • Added ability to specify hyphen-separated-values in the class attribute of a <pre> tag to make them look like actual class selectors. E.g. <pre class="lang-objc toolbar-false">...</pre>. The setting name is made up of letters and hyphens ONLY, the value is whatever is left between the last hyphen and the next whitespace character.
  • Added Scheme language thanks to https://github.com/harry75369
  • Added ABAP language with help from Christian Fein
  • Added a new setting: crayon="false/no/0" as an attribute or crayon:false in the class tag of a <pre>. This will ignore the <pre> tag and not turn it into a Crayon for those rare cases you don't want to use the plugin.
  • Improved the method of finding posts with Crayons - now it will search through all posts for Crayons and save the ids in the options db. When the_posts is called, it won't need to do any extra searching on page loading and will already know which post has Crayons. Like before, pages which might use page templates will turn off enqueuing of fonts and themes to ensure they are always printed.
  • Overriden Language File elements are now put first in the CSS class name, so the extended element can override in a theme
  • Prevented capturing Crayons in the admin
  • Crayons now use HTML5 valid markup
  • I'm still sticking to the wrap="off" for no-wrapping preformatted styling - CSS doesn't do the trick yet: http://stackoverflow.com/questions/657795/how-remove-wordwrap-from-textarea
  • Improved ajax handling
  • Cleaned up the settings screen
  • Line numbers now use UID in id to avoid duplicates
  • Crayon CSS updated to use inline styles and never use style tags in the body
  • Simplified the toolbar buttons to suit the minimalistic design of the rest of Crayon. It'll look badass with an inset shadow in a future theme...
  • Plain tags are now just <pre> tags and don't contain the inline code tag since they are block tags.
  • Fixed a MAJOR bug preventing previously captured Crayons from being applied to post content!
  • Fixed a bug causing case insensitive Boolean settings to fail at times
  • Fixed a bug causing a [crayon ... /] tags to be recognised as [c ... /] tags (added a \b)
  • Fixed a bug preventing highlight="false" from working
  • Fixed a bug preventing mouse events for showing plain code when toolbar is always hidden
  • Fixed a bug preventing smart enqueuing from detecting if a Crayon was present before enqueuing resources.
  • Fixed a bug causing inline tags to be surround in <p> tags
  • Fixed a bug causing toolbar=1 to be regarded as toolbar=false from legacy settings
  • Fixed a bug causing content to be specified but not formatted for URLs with no code given
  • Fixed removing $ in font of ignored crayons like $<pre...
  • Fixed js .style bugs in < IE 9
  • Cleaned up code for specifying attributes, NULL attributes are not passed as empty strings anymore.
  • The log looks cleaner now
  • Now crayons are replaced with [crayon-id/] in posts before being replaced with the actual Crayon
  • If js ever fails to load, it won't affect styling, just functionality
  • Added ability to use closed Mini Tags like [php ... ] when you're just giving a URL
  • Added lenient spaces for closed tags
  • Fixed element content text in XHTML to avoid capturing "" as strings
  • Added Lithuanian translation thanks to Vincent G
Download this release

Release Info

Developer akarmenia
Plugin Icon wp plugin Crayon Syntax Highlighter
Version 1.9.0
Comparing to
See all releases

Code changes from version 1.8.3 to 1.9.0

Files changed (54) hide show
  1. crayon_formatter.class.php +85 -69
  2. crayon_highlighter.class.php +37 -15
  3. crayon_parser.class.php +1 -1
  4. crayon_resource.class.php +8 -0
  5. crayon_settings.class.php +42 -7
  6. crayon_settings_wp.class.php +202 -114
  7. crayon_wp.class.php +283 -142
  8. css/admin_style.css +201 -2
  9. css/images/crayon_tinymce.png +0 -0
  10. css/scrollbar.css +0 -48
  11. css/style.css +118 -47
  12. global.php +11 -0
  13. js/crayon.js +127 -135
  14. js/crayon_admin.js +76 -94
  15. js/util.js +71 -0
  16. langs/abap/abap.txt +17 -0
  17. langs/abap/operator.txt +22 -0
  18. langs/abap/reserved.txt +404 -0
  19. langs/abap/statement.txt +670 -0
  20. langs/css/css.txt +3 -3
  21. langs/scheme/entity.txt +168 -0
  22. langs/scheme/keyword.txt +24 -0
  23. langs/scheme/scheme.txt +23 -0
  24. langs/xhtml/xhtml.txt +3 -2
  25. readme.txt +104 -25
  26. screenshot-4.png +0 -0
  27. themes/classic/classic.css +2 -2
  28. themes/neon/neon.css +3 -3
  29. themes/twilight/twilight.css +3 -3
  30. trans/codestyling-localization-lt_LT.mo +0 -0
  31. trans/codestyling-localization-lt_LT.po +1028 -0
  32. trans/crayon-syntax-highlighter-de_DE.mo +0 -0
  33. trans/crayon-syntax-highlighter-de_DE.po +287 -161
  34. trans/crayon-syntax-highlighter-fr_FR.po +256 -161
  35. trans/crayon-syntax-highlighter-ja.mo +0 -0
  36. trans/crayon-syntax-highlighter-ja.po +469 -344
  37. trans/crayon-syntax-highlighter-ru_RU.mo +0 -0
  38. trans/crayon-syntax-highlighter-ru_RU.po +280 -176
  39. trans/crayon-syntax-highlighter-tr_TR.mo +0 -0
  40. trans/crayon-syntax-highlighter-tr_TR.po +281 -186
  41. trans/crayon-syntax-highlighter-zh_CN.mo +0 -0
  42. trans/crayon-syntax-highlighter-zh_CN.po +540 -414
  43. util/ajax.php +10 -3
  44. util/crayon_log.class.php +6 -5
  45. util/crayon_util.class.php +16 -1
  46. util/preview.php +1 -3
  47. util/sample/abap.txt +8 -0
  48. util/sample/scheme.txt +6 -0
  49. util/tag-editor/crayon_qt.js +27 -0
  50. util/tag-editor/crayon_tag_editor_wp.class.php +110 -0
  51. util/tag-editor/crayon_te.css +32 -0
  52. util/tag-editor/crayon_te.js +573 -0
  53. util/tag-editor/crayon_te_content.php +134 -0
  54. util/tag-editor/crayon_tinymce.js +176 -0
crayon_formatter.class.php CHANGED
@@ -23,7 +23,7 @@ class CrayonFormatter {
23
  // Methods ================================================================
24
  private function __construct() {}
25
 
26
- /* Formats the code using the regex and stores the elements for later use. */
27
  public static function format_code($code, $language, $hl = NULL, $highlight = TRUE) {
28
  // Ensure the language is defined
29
  if ($language != NULL && $highlight) {
@@ -61,8 +61,10 @@ class CrayonFormatter {
61
  if ($captured_element->name() == CrayonParser::CRAYON_ELEMENT) {
62
  return $matches[0]; // Return as is
63
  } else {
64
- // Separate lines and add css class.
65
- $css = $captured_element->css() . CrayonLangs::known_elements($captured_element->fallback());
 
 
66
  return self::split_lines($matches[0], $css);
67
  }
68
  } else {
@@ -77,6 +79,8 @@ class CrayonFormatter {
77
 
78
  // We can print either block or inline, inline is treated differently, factor out common stuff here
79
  $output = '';
 
 
80
  // Unique ID for this instance of Crayon
81
  $uid = 'crayon-' . $hl->id();
82
  // Print theme id
@@ -98,43 +102,52 @@ class CrayonFormatter {
98
  // Inline margin
99
  if ($hl->is_inline()) {
100
  $inline_margin = $hl->setting_val(CrayonSettings::INLINE_MARGIN) . 'px !important;';
101
- $output .= '<style type="text/css" media="all">' . "#$uid { margin: 0 {$inline_margin} }</style>";
102
  }
103
 
104
  // Determine font size
105
  // TODO improve logic
106
- $font_style = '';
107
  if ($hl->setting_val(CrayonSettings::FONT_SIZE_ENABLE)) {
108
  $font_size = $hl->setting_val(CrayonSettings::FONT_SIZE) . 'px !important;';
109
- $font_height = ($font_size + 4) . 'px !important;';
110
- $toolbar_height = ($font_size + 8) . 'px !important;';
111
- $font_style .= "#$uid * { font-size: $font_size line-height: $font_height }";
 
 
 
 
 
 
112
  if ($hl->is_inline()) {
113
- $font_style .= "#$uid { font-size: $font_size }\n";
 
114
  } else {
115
- $font_style .= "#$uid .crayon-toolbar, #$uid .crayon-toolbar * { height: $toolbar_height line-height: $toolbar_height }\n";
116
- $font_style .= "#$uid .crayon-num, #$uid .crayon-line, #$uid .crayon-toolbar a.crayon-button { height: $font_height }\n";
 
 
117
  }
118
  } else if (!$hl->is_inline()) {
119
  if (($font_size = CrayonGlobalSettings::get(CrayonSettings::FONT_SIZE)) !== FALSE) {
120
  $font_size = $font_size->def() . 'px !important;';
121
  $font_height = ($font_size + 4) . 'px !important;';
122
  // Correct font CSS for WP 3.3
123
- $font_style .= "#$uid .crayon-plain { font-size: $font_size line-height: $font_height }";
124
  }
125
  }
126
 
127
  // Produce style for individual crayon
 
128
  if (!empty($font_style)) {
129
- $output .= '<style type="text/css" media="all">'.$font_style.'</style>';
130
  }
131
 
132
  // This will return from function with inline print
133
  if ($hl->is_inline()) {
134
  $wrap = !$hl->setting_val(CrayonSettings::INLINE_WRAP) ? 'crayon-syntax-inline-nowrap' : '';
135
  $output .= '
136
- <span id="'.$uid.'" class="crayon-syntax crayon-syntax-inline '.$wrap.' crayon-theme-'.$theme_id_dashed.' crayon-theme-'.$theme_id_dashed.'-inline crayon-font-'.$font_id_dashed.'">' .
137
- '<span class="crayon-pre">' . $code . '</span>' .
138
  '</span>';
139
  return $output;
140
  }
@@ -180,9 +193,9 @@ class CrayonFormatter {
180
  }
181
  // Generate the lines
182
  $line_num = $start_line + $i - 1;
183
- $print_code .= '<div class="crayon-line' . $marked_line . $striped_line . '" id="line-' . $line_num . '">' . $code_line . '</div>';
184
  if (!is_string($line_numbers)) {
185
- $print_nums .= '<div class="crayon-num' . $marked_num . $striped_num . '">' . $line_num . '</div>';
186
  }
187
  }
188
  // If $line_numbers is a string, display it
@@ -191,8 +204,12 @@ class CrayonFormatter {
191
  } else if ( empty($line_numbers) ) {
192
  $print_nums = FALSE;
193
  }
194
- // Determine whether to print title
195
  $title = $hl->title();
 
 
 
 
196
  $print_title = ($hl->setting_val(CrayonSettings::SHOW_TITLE) && $title ? '<span class="crayon-title">' . $title . '</span>' : '');
197
  // Determine whether to print language
198
  $print_lang = '';
@@ -221,8 +238,9 @@ class CrayonFormatter {
221
  $touch = TRUE;
222
  $code_settings .= ' touchscreen';
223
  }
 
224
  // Draw the plain code and toolbar
225
- $toolbar_settings = '';
226
  if (empty($error) && $hl->setting_index(CrayonSettings::TOOLBAR) != 2) {
227
  // Enable mouseover setting for toolbar
228
  if ($hl->setting_index(CrayonSettings::TOOLBAR) == 0 && !$touch) {
@@ -239,41 +257,14 @@ class CrayonFormatter {
239
  }
240
  } else if ($hl->setting_index(CrayonSettings::TOOLBAR) == 1) {
241
  // Always display the toolbar
242
- $toolbar_settings .= 'show';
243
  } else {
244
  $toolbar_settings .= '';
245
  }
246
- if ($hl->setting_val(CrayonSettings::PLAIN)) {
247
- // Different events to display plain code
248
- switch ($hl->setting_index(CrayonSettings::SHOW_PLAIN)) {
249
- case 0 :
250
- $plain_settings = 'dblclick';
251
- break;
252
- case 1 :
253
- $plain_settings = 'click';
254
- break;
255
- case 2 :
256
- $plain_settings = 'mouseover';
257
- break;
258
- default :
259
- $plain_settings = '';
260
- }
261
- if ($hl->setting_val(CrayonSettings::SHOW_PLAIN_DEFAULT)) {
262
- $plain_settings .= ' show-plain-default';
263
- }
264
- $tab = $hl->setting_val(CrayonSettings::TAB_SIZE);
265
- // TODO doesn't seem to work at the moment
266
- $plain_style = "-moz-tab-size:$tab; -o-tab-size:$tab; -webkit-tab-size:$tab; tab-size:$tab;";
267
- $readonly = $touch ? '' : 'readonly';
268
- $print_plain = $print_plain_button = '';
269
- $print_plain = '<textarea class="crayon-plain" settings="' . $plain_settings . '" '. $readonly .' wrap="off" style="' . $plain_style .'">' . self::clean_code($hl->code()) . '</textarea>';
270
- $print_plain_button = $hl->setting_val(CrayonSettings::PLAIN_TOGGLE) ? '<a class="crayon-plain-button crayon-button" title="'.crayon__('Toggle Plain Code').'"></a>' : '';
271
- $print_copy_button = !$touch && $hl->setting_val(CrayonSettings::PLAIN) && $hl->setting_val(CrayonSettings::COPY) ?
272
- '<a class="crayon-copy-button crayon-button" show_txt="'.crayon__('Press %s to Copy, %s to Paste').'" title="'.crayon__('Copy Plain Code').'"></a>' : '';
273
- } else {
274
- $print_plain = $plain_settings = $print_plain_button = $print_copy_button = '';
275
- }
276
 
 
 
 
277
  $print_popup_button = $hl->setting_val(CrayonSettings::POPUP) ?
278
  '<a class="crayon-popup-button crayon-button" title="'.crayon__('Open Code In New Window').'" onclick="return false;"></a>' : '';
279
 
@@ -284,24 +275,49 @@ class CrayonFormatter {
284
  }
285
  /* The table is rendered invisible by CSS and enabled with JS when asked to. If JS
286
  is not enabled or fails, the toolbar won't work so there is no point to display it. */
287
-
288
- $print_plus = $hl->is_mixed() && $hl->setting_val(CrayonSettings::SHOW_MIXED) ? '<span class="crayon-mixed-highlight" title="'.crayon__('Contains Mixed Languages').'"></span>' : '';
289
  $buttons = $print_plus.$print_nums_button.$print_copy_button.$print_popup_button.$print_plain_button.$print_lang;
290
  $button_preload = '';
291
  foreach (array('nums', 'copy', 'popup', 'plain') as $name) {
292
  $button_preload .= '<a class="crayon-'.$name.'-button crayon-button crayon-pressed crayon-invisible"></a>';
293
  }
294
  $toolbar = '
295
- <div class="crayon-toolbar" settings="'.$toolbar_settings.'">'.$print_title.'
296
- <div class="crayon-tools">'.$buttons.$button_preload.'</div>
297
- </div><div>'.$print_plain.'</div>'.'<div class="crayon-info"></div>';
298
 
299
  } else {
300
  $toolbar = $buttons = $plain_settings = '';
301
  }
302
 
303
- // Print strings
304
- $main_style = $code_style = '';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
305
 
306
  // Line numbers visibility
307
  $num_vis = $num_settings = '';
@@ -375,25 +391,24 @@ class CrayonFormatter {
375
  // Determine if operating system is mac
376
  $crayon_os = CrayonUtil::is_mac() ? 'mac' : 'pc';
377
 
378
-
379
-
380
  // Produce output
381
  $output .= '
382
- <div id="'.$uid.'" class="crayon-syntax crayon-theme-'.$theme_id_dashed.' crayon-font-'.$font_id_dashed.'" crayon-os="'.$crayon_os.'" settings="'.$code_settings.'" style="'.$code_style.'">
383
  '.$toolbar.'
 
384
  <div class="crayon-main" style="'.$main_style.'">
385
- <table class="crayon-table" cellspacing="0" cellpadding="0">
386
  <tr class="crayon-row">';
387
 
388
  if ($print_nums !== FALSE) {
389
  $output .= '
390
- <td class="crayon-nums '.$num_vis.'" settings="'.$num_settings.'">
391
  <div class="crayon-nums-content">'.$print_nums.'</div>
392
  </td>';
393
  }
394
  // XXX
395
  $output .= '
396
- <td class="crayon-code"><div class="crayon-pre">'.$print_code.'</div></td>
397
  </tr>
398
  </table>
399
  </div>
@@ -424,13 +439,13 @@ class CrayonFormatter {
424
  if ($hl->setting_val(CrayonSettings::ERROR_MSG_SHOW)) {
425
  $error = $hl->setting_val(CrayonSettings::ERROR_MSG);
426
  }
427
- $error = self::split_lines(trim($error), 'error');
428
  return self::print_code($hl, $error, $line_numbers, $print);
429
  }
430
 
431
  // Delimiters =============================================================
432
 
433
- public static function format_mixed_code($code, $language, $hl) {
434
  self::$curr = $hl;
435
  self::$delim_pieces = array();
436
  // Remove crayon internal element from INPUT code
@@ -449,7 +464,7 @@ class CrayonFormatter {
449
  $internal_code = preg_replace_callback(self::$delim_regex, 'CrayonFormatter::delim_to_internal', $code);
450
 
451
  // Format with given language
452
- $formatted_code = CrayonFormatter::format_code($internal_code, $language, $hl, TRUE);
453
 
454
  // Replace internal elements with delimited pieces
455
  $formatted_code = preg_replace_callback('#\{\{crayon-internal:(\d+)\}\}#', 'CrayonFormatter::internal_to_code', $formatted_code);
@@ -458,6 +473,7 @@ class CrayonFormatter {
458
  }
459
 
460
  public static function delim_to_internal($matches) {
 
461
  self::$curr->is_mixed(TRUE);
462
  $capture_group = count($matches) - 2;
463
  $capture_groups = array_keys(self::$delimiters);
@@ -480,8 +496,8 @@ class CrayonFormatter {
480
  if (empty($code)) {
481
  return $code;
482
  }
483
- /* Replace <, > and & characters, as these can appear as HTML tags and entities. */
484
- $code = htmlspecialchars($code, ENT_NOQUOTES);
485
  // Replace 2 spaces with html escaped characters
486
  $code = preg_replace('| |', '&nbsp;&nbsp;', $code);
487
  // Replace tabs with 4 spaces
@@ -499,7 +515,7 @@ class CrayonFormatter {
499
  if (CrayonGlobalSettings::val(CrayonSettings::TRIM_WHITESPACE)) {
500
  $code = trim($code);
501
  }
502
- return '<pre class="crayon-plain-tag"><code>'.$code.'</code></pre>';
503
  }
504
 
505
  public static function split_lines($code, $class) {
23
  // Methods ================================================================
24
  private function __construct() {}
25
 
26
+ /* Formats the code using the parsed language elements. */
27
  public static function format_code($code, $language, $hl = NULL, $highlight = TRUE) {
28
  // Ensure the language is defined
29
  if ($language != NULL && $highlight) {
61
  if ($captured_element->name() == CrayonParser::CRAYON_ELEMENT) {
62
  return $matches[0]; // Return as is
63
  } else {
64
+ // Separate lines and add css class, keep extended class last to allow overriding
65
+ $fallback_css = CrayonLangs::known_elements($captured_element->fallback());
66
+ $element_css = $captured_element->css();
67
+ $css = !empty($fallback_css) ? $fallback_css . ' ' . $element_css : $element_css ;
68
  return self::split_lines($matches[0], $css);
69
  }
70
  } else {
79
 
80
  // We can print either block or inline, inline is treated differently, factor out common stuff here
81
  $output = '';
82
+ // Used for style tag
83
+ $main_style = $code_style = $toolbar_style = $info_style = $font_style = $line_style = '';
84
  // Unique ID for this instance of Crayon
85
  $uid = 'crayon-' . $hl->id();
86
  // Print theme id
102
  // Inline margin
103
  if ($hl->is_inline()) {
104
  $inline_margin = $hl->setting_val(CrayonSettings::INLINE_MARGIN) . 'px !important;';
105
+ //$output .= '<style type="text/css" media="all">' . "#$uid { margin: 0 {$inline_margin} }</style>";
106
  }
107
 
108
  // Determine font size
109
  // TODO improve logic
 
110
  if ($hl->setting_val(CrayonSettings::FONT_SIZE_ENABLE)) {
111
  $font_size = $hl->setting_val(CrayonSettings::FONT_SIZE) . 'px !important;';
112
+ $font_height = $font_size * 1.25 . 'px !important;';
113
+ $toolbar_height = $font_size * 1.5 . 'px !important;';
114
+ $info_height = $font_size * 1.25 . 'px !important;';
115
+ //$font_style .= "#$uid * { font-size: $font_size line-height: $font_height }";
116
+
117
+ $font_style .= "font-size: $font_size line-height: $font_height";
118
+ // $inline_font_style .= "font-size: $font_size line-height: $font_height";
119
+ $line_style .= "height: $font_height";
120
+
121
  if ($hl->is_inline()) {
122
+ //$font_style .= "#$uid { font-size: $font_size }\n";
123
+ $font_style .= "font-size: $font_size";
124
  } else {
125
+ //$font_style .= "#$uid .crayon-toolbar, #$uid .crayon-toolbar * { height: $toolbar_height line-height: $toolbar_height }\n";
126
+ $toolbar_style .= "height: $toolbar_height line-height: $toolbar_height";
127
+ $info_style .= "min-height: $info_height line-height: $info_height";
128
+ // $font_style .= "#$uid .crayon-num, #$uid .crayon-line, #$uid .crayon-toolbar a.crayon-button { height: $font_height }\n";
129
  }
130
  } else if (!$hl->is_inline()) {
131
  if (($font_size = CrayonGlobalSettings::get(CrayonSettings::FONT_SIZE)) !== FALSE) {
132
  $font_size = $font_size->def() . 'px !important;';
133
  $font_height = ($font_size + 4) . 'px !important;';
134
  // Correct font CSS for WP 3.3
135
+ // $font_style .= "#$uid .crayon-plain { font-size: $font_size line-height: $font_height }";
136
  }
137
  }
138
 
139
  // Produce style for individual crayon
140
+ // TODO
141
  if (!empty($font_style)) {
142
+ //$output .= '<style type="text/css" media="all">'.$font_style.'</style>';
143
  }
144
 
145
  // This will return from function with inline print
146
  if ($hl->is_inline()) {
147
  $wrap = !$hl->setting_val(CrayonSettings::INLINE_WRAP) ? 'crayon-syntax-inline-nowrap' : '';
148
  $output .= '
149
+ <span id="'.$uid.'" class="crayon-syntax crayon-syntax-inline '.$wrap.' crayon-theme-'.$theme_id_dashed.' crayon-theme-'.$theme_id_dashed.'-inline crayon-font-'.$font_id_dashed.'" style="'.$font_style.'">' .
150
+ '<span class="crayon-pre" style="'.$font_style.'">' . $code . '</span>' .
151
  '</span>';
152
  return $output;
153
  }
193
  }
194
  // Generate the lines
195
  $line_num = $start_line + $i - 1;
196
+ $print_code .= '<div class="crayon-line' . $marked_line . $striped_line . '" id="'. $uid .'-' . $line_num . '" style="'.$line_style.'">' . $code_line . '</div>';
197
  if (!is_string($line_numbers)) {
198
+ $print_nums .= '<div class="crayon-num' . $marked_num . $striped_num . '" style="'.$line_style.'">' . $line_num . '</div>';
199
  }
200
  }
201
  // If $line_numbers is a string, display it
204
  } else if ( empty($line_numbers) ) {
205
  $print_nums = FALSE;
206
  }
207
+ // Determine whether to print title, encode characters
208
  $title = $hl->title();
209
+ // Decode if needed
210
+ if ($hl->setting_val(CrayonSettings::DECODE_ATTRIBUTES)) {
211
+ $title = CrayonUtil::html_entity_decode($title);
212
+ }
213
  $print_title = ($hl->setting_val(CrayonSettings::SHOW_TITLE) && $title ? '<span class="crayon-title">' . $title . '</span>' : '');
214
  // Determine whether to print language
215
  $print_lang = '';
238
  $touch = TRUE;
239
  $code_settings .= ' touchscreen';
240
  }
241
+
242
  // Draw the plain code and toolbar
243
+ $toolbar_settings = $print_plain_button = $print_copy_button = '';
244
  if (empty($error) && $hl->setting_index(CrayonSettings::TOOLBAR) != 2) {
245
  // Enable mouseover setting for toolbar
246
  if ($hl->setting_index(CrayonSettings::TOOLBAR) == 0 && !$touch) {
257
  }
258
  } else if ($hl->setting_index(CrayonSettings::TOOLBAR) == 1) {
259
  // Always display the toolbar
260
+ $toolbar_settings .= ' show';
261
  } else {
262
  $toolbar_settings .= '';
263
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
264
 
265
+ $print_plain_button = $hl->setting_val(CrayonSettings::PLAIN_TOGGLE) ? '<a class="crayon-plain-button crayon-button" title="'.crayon__('Toggle Plain Code').'"></a>' : '';
266
+ $print_copy_button = !$touch && $hl->setting_val(CrayonSettings::PLAIN) && $hl->setting_val(CrayonSettings::COPY) ?
267
+ '<a class="crayon-copy-button crayon-button" data-text="'.crayon__('Press %s to Copy, %s to Paste').'" title="'.crayon__('Copy Plain Code').'"></a>' : '';
268
  $print_popup_button = $hl->setting_val(CrayonSettings::POPUP) ?
269
  '<a class="crayon-popup-button crayon-button" title="'.crayon__('Open Code In New Window').'" onclick="return false;"></a>' : '';
270
 
275
  }
276
  /* The table is rendered invisible by CSS and enabled with JS when asked to. If JS
277
  is not enabled or fails, the toolbar won't work so there is no point to display it. */
278
+ $print_plus = $hl->setting_val(CrayonSettings::MIXED) && $hl->setting_val(CrayonSettings::SHOW_MIXED) ? '<span class="crayon-mixed-highlight" title="'.crayon__('Contains Mixed Languages').'"></span>' : '';
 
279
  $buttons = $print_plus.$print_nums_button.$print_copy_button.$print_popup_button.$print_plain_button.$print_lang;
280
  $button_preload = '';
281
  foreach (array('nums', 'copy', 'popup', 'plain') as $name) {
282
  $button_preload .= '<a class="crayon-'.$name.'-button crayon-button crayon-pressed crayon-invisible"></a>';
283
  }
284
  $toolbar = '
285
+ <div class="crayon-toolbar" data-settings="'.$toolbar_settings.'" style="'.$toolbar_style.'">'.$print_title.'
286
+ <div class="crayon-tools">'.$buttons.$button_preload.'</div></div>
287
+ <div class="crayon-info" style="'.$info_style.'"></div>';
288
 
289
  } else {
290
  $toolbar = $buttons = $plain_settings = '';
291
  }
292
 
293
+ if (empty($error) && $hl->setting_val(CrayonSettings::PLAIN)) {
294
+ // Different events to display plain code
295
+ switch ($hl->setting_index(CrayonSettings::SHOW_PLAIN)) {
296
+ case 0 :
297
+ $plain_settings = 'dblclick';
298
+ break;
299
+ case 1 :
300
+ $plain_settings = 'click';
301
+ break;
302
+ case 2 :
303
+ $plain_settings = 'mouseover';
304
+ break;
305
+ default :
306
+ $plain_settings = '';
307
+ }
308
+ if ($hl->setting_val(CrayonSettings::SHOW_PLAIN_DEFAULT)) {
309
+ $plain_settings .= ' show-plain-default';
310
+ }
311
+ $tab = $hl->setting_val(CrayonSettings::TAB_SIZE);
312
+ // TODO doesn't seem to work at the moment
313
+ $plain_style = "-moz-tab-size:$tab; -o-tab-size:$tab; -webkit-tab-size:$tab; tab-size:$tab;";
314
+ $readonly = $touch ? '' : 'readonly';
315
+ $print_plain = $print_plain_button = '';
316
+ // TODO remove wrap
317
+ $print_plain = '<textarea wrap="off" class="crayon-plain print-no" data-settings="' . $plain_settings . '" '. $readonly .' style="' . $plain_style .' '. $font_style . '">' . self::clean_code($hl->code()) . '</textarea>';
318
+ } else {
319
+ $print_plain = $plain_settings = $plain_settings = '';
320
+ }
321
 
322
  // Line numbers visibility
323
  $num_vis = $num_settings = '';
391
  // Determine if operating system is mac
392
  $crayon_os = CrayonUtil::is_mac() ? 'mac' : 'pc';
393
 
 
 
394
  // Produce output
395
  $output .= '
396
+ <div id="'.$uid.'" class="crayon-syntax crayon-theme-'.$theme_id_dashed.' crayon-font-'.$font_id_dashed.' crayon-os-'.$crayon_os.' print-yes" data-settings="'.$code_settings.'" style="'.$code_style.' '.$font_style.'">
397
  '.$toolbar.'
398
+ <div class="crayon-plain-wrap">'.$print_plain.'</div>'.'
399
  <div class="crayon-main" style="'.$main_style.'">
400
+ <table class="crayon-table">
401
  <tr class="crayon-row">';
402
 
403
  if ($print_nums !== FALSE) {
404
  $output .= '
405
+ <td class="crayon-nums '.$num_vis.'" data-settings="'.$num_settings.'" style="'.$font_style.'">
406
  <div class="crayon-nums-content">'.$print_nums.'</div>
407
  </td>';
408
  }
409
  // XXX
410
  $output .= '
411
+ <td class="crayon-code"><div class="crayon-pre" style="'.$font_style.'">'.$print_code.'</div></td>
412
  </tr>
413
  </table>
414
  </div>
439
  if ($hl->setting_val(CrayonSettings::ERROR_MSG_SHOW)) {
440
  $error = $hl->setting_val(CrayonSettings::ERROR_MSG);
441
  }
442
+ $error = self::split_lines(trim($error), 'crayon-error');
443
  return self::print_code($hl, $error, $line_numbers, $print);
444
  }
445
 
446
  // Delimiters =============================================================
447
 
448
+ public static function format_mixed_code($code, $language, $hl, $highlight = TRUE) {
449
  self::$curr = $hl;
450
  self::$delim_pieces = array();
451
  // Remove crayon internal element from INPUT code
464
  $internal_code = preg_replace_callback(self::$delim_regex, 'CrayonFormatter::delim_to_internal', $code);
465
 
466
  // Format with given language
467
+ $formatted_code = CrayonFormatter::format_code($internal_code, $language, $hl, $highlight);
468
 
469
  // Replace internal elements with delimited pieces
470
  $formatted_code = preg_replace_callback('#\{\{crayon-internal:(\d+)\}\}#', 'CrayonFormatter::internal_to_code', $formatted_code);
473
  }
474
 
475
  public static function delim_to_internal($matches) {
476
+ // Mark as mixed so we can show (+)
477
  self::$curr->is_mixed(TRUE);
478
  $capture_group = count($matches) - 2;
479
  $capture_groups = array_keys(self::$delimiters);
496
  if (empty($code)) {
497
  return $code;
498
  }
499
+ /* Convert <, > and & characters to entities, as these can appear as HTML tags and entities. */
500
+ $code = CrayonUtil::htmlspecialchars($code);
501
  // Replace 2 spaces with html escaped characters
502
  $code = preg_replace('| |', '&nbsp;&nbsp;', $code);
503
  // Replace tabs with 4 spaces
515
  if (CrayonGlobalSettings::val(CrayonSettings::TRIM_WHITESPACE)) {
516
  $code = trim($code);
517
  }
518
+ return '<pre class="crayon-plain-tag">'.$code.'</pre>';
519
  }
520
 
521
  public static function split_lines($code, $class) {
crayon_highlighter.class.php CHANGED
@@ -10,7 +10,8 @@ require_once (CRAYON_LANGS_PHP);
10
  class CrayonHighlighter {
11
  // Properties and Constants ===============================================
12
  private $id = '';
13
- private $url = '';
 
14
  private $code = '';
15
  private $formatted_code = '';
16
  private $title = '';
@@ -18,8 +19,8 @@ class CrayonHighlighter {
18
  private $marked_lines = array();
19
  private $error = '';
20
  // Determine whether the code needs to be loaded, parsed or formatted
21
- private $needs_load = TRUE;
22
- private $needs_format = TRUE;
23
  // Record the script run times
24
  private $runtime = array();
25
  // Whether the code is mixed
@@ -56,6 +57,9 @@ class CrayonHighlighter {
56
  /* Try to replace the URL with an absolute path if it is local, used to prevent scripts
57
  from executing when they are loaded. */
58
  $url = $this->url;
 
 
 
59
  $url = CrayonUtil::pathf($url);
60
  $local = FALSE; // Whether to read locally
61
  $site_http = CrayonGlobalSettings::site_http();
@@ -97,7 +101,7 @@ class CrayonHighlighter {
97
  $content = $cached;
98
  $http_code = 200;
99
  } else {
100
- $response = wp_remote_get($url, array('sslverify' => false, 'timeout' => 20));
101
  $content = wp_remote_retrieve_body($response);
102
  $http_code = wp_remote_retrieve_response_code($response);
103
  $cache = $this->setting_val(CrayonSettings::CACHE);
@@ -124,11 +128,11 @@ class CrayonHighlighter {
124
  curl_close($ch);
125
  }
126
  if ($http_code >= 200 && $http_code < 400) {
127
- $this->code = $content;
128
  } else {
129
  if (empty($this->code)) {
130
  // If code is also given, just use that
131
- $this->error("The provided URL ('$this->url') could not be accessed locally or remotely.");
132
  }
133
  }
134
  }
@@ -148,6 +152,7 @@ class CrayonHighlighter {
148
  // Disable highlighting for errors and empty code
149
  return;
150
  }
 
151
  if ($this->language === NULL) {
152
  $this->language($this->setting_val(CrayonSettings::FALLBACK_LANG));
153
  }
@@ -155,7 +160,6 @@ class CrayonHighlighter {
155
  $tmr->start();
156
  try {
157
  // Parse before hand to read modes
158
- CrayonParser::parse($this->language->id());
159
  $code = $this->code;
160
  // If inline, then combine lines into one
161
  if ($this->is_inline) {
@@ -164,13 +168,19 @@ class CrayonHighlighter {
164
  $code = trim($code);
165
  }
166
  }
 
 
 
 
 
 
167
  // Allow mixed if langauge supports it and setting is set
168
  if (!$this->setting_val(CrayonSettings::MIXED) || !$this->language->mode(CrayonParser::ALLOW_MIXED)) {
169
  // Format the code with the generated regex and elements
170
  $this->formatted_code = CrayonFormatter::format_code($code, $this->language, $this, $this->is_highlighted);
171
  } else {
172
  // Format the code with Mixed Highlighting
173
- $this->formatted_code = CrayonFormatter::format_mixed_code($code, $this->language, $this);
174
  }
175
  } catch (Exception $e) {
176
  $this->error($e->message());
@@ -195,7 +205,7 @@ class CrayonHighlighter {
195
  // If no errors have occured, print the formatted code
196
  $ret = CrayonFormatter::print_code($this, $this->formatted_code, $show_lines, $print);
197
  } else {
198
- $ret = CrayonFormatter::print_error($this, $this->error, /*'ERROR'*/'', $print);
199
  }
200
  // Reset the error message at the end of the print session
201
  $this->error = '';
@@ -212,9 +222,11 @@ class CrayonHighlighter {
212
  if ($this->setting_val(CrayonSettings::TRIM_WHITESPACE)) {
213
  $code = preg_replace("#(?:^\\s*\\r?\\n)|(?:\\r?\\n\\s*$)#", '', $code);
214
  }
215
- $this->code = $code;
216
- $this->needs_load = FALSE; // No need to load, code provided
217
- $this->needs_format = TRUE;
 
 
218
  }
219
  }
220
 
@@ -233,14 +245,24 @@ class CrayonHighlighter {
233
  }
234
  $this->language = CrayonResources::langs()->detect($this->url, $this->setting_val(CrayonSettings::FALLBACK_LANG));
235
  }
 
 
 
236
  }
237
 
238
  function url($url = NULL) {
239
- if (CrayonUtil::str($this->url, $url)) {
240
- $this->needs_load = TRUE;
241
- } else {
242
  return $this->url;
 
 
 
243
  }
 
 
 
 
 
 
244
  }
245
 
246
  function title($title = NULL) {
10
  class CrayonHighlighter {
11
  // Properties and Constants ===============================================
12
  private $id = '';
13
+ // URL is initially NULL, meaning none provided
14
+ private $url = NULL;
15
  private $code = '';
16
  private $formatted_code = '';
17
  private $title = '';
19
  private $marked_lines = array();
20
  private $error = '';
21
  // Determine whether the code needs to be loaded, parsed or formatted
22
+ private $needs_load = FALSE;
23
+ private $needs_format = FALSE;
24
  // Record the script run times
25
  private $runtime = array();
26
  // Whether the code is mixed
57
  /* Try to replace the URL with an absolute path if it is local, used to prevent scripts
58
  from executing when they are loaded. */
59
  $url = $this->url;
60
+ if ($this->setting_val(CrayonSettings::DECODE_ATTRIBUTES)) {
61
+ $url = CrayonUtil::html_entity_decode($url);
62
+ }
63
  $url = CrayonUtil::pathf($url);
64
  $local = FALSE; // Whether to read locally
65
  $site_http = CrayonGlobalSettings::site_http();
101
  $content = $cached;
102
  $http_code = 200;
103
  } else {
104
+ $response = @wp_remote_get($url, array('sslverify' => false, 'timeout' => 20));
105
  $content = wp_remote_retrieve_body($response);
106
  $http_code = wp_remote_retrieve_response_code($response);
107
  $cache = $this->setting_val(CrayonSettings::CACHE);
128
  curl_close($ch);
129
  }
130
  if ($http_code >= 200 && $http_code < 400) {
131
+ $this->code($content);
132
  } else {
133
  if (empty($this->code)) {
134
  // If code is also given, just use that
135
+ $this->error("The provided URL ('$this->url'), parsed remotely as ('$url'), could not be accessed.");
136
  }
137
  }
138
  }
152
  // Disable highlighting for errors and empty code
153
  return;
154
  }
155
+
156
  if ($this->language === NULL) {
157
  $this->language($this->setting_val(CrayonSettings::FALLBACK_LANG));
158
  }
160
  $tmr->start();
161
  try {
162
  // Parse before hand to read modes
 
163
  $code = $this->code;
164
  // If inline, then combine lines into one
165
  if ($this->is_inline) {
168
  $code = trim($code);
169
  }
170
  }
171
+ // Decode html entities (e.g. if using visual editor or manually encoding)
172
+ if ($this->setting_val(CrayonSettings::DECODE)) {
173
+ $code = CrayonUtil::html_entity_decode($code);
174
+ }
175
+ // Save code so output is plain output is the same
176
+ $this->code = $code;
177
  // Allow mixed if langauge supports it and setting is set
178
  if (!$this->setting_val(CrayonSettings::MIXED) || !$this->language->mode(CrayonParser::ALLOW_MIXED)) {
179
  // Format the code with the generated regex and elements
180
  $this->formatted_code = CrayonFormatter::format_code($code, $this->language, $this, $this->is_highlighted);
181
  } else {
182
  // Format the code with Mixed Highlighting
183
+ $this->formatted_code = CrayonFormatter::format_mixed_code($code, $this->language, $this, $this->is_highlighted);
184
  }
185
  } catch (Exception $e) {
186
  $this->error($e->message());
205
  // If no errors have occured, print the formatted code
206
  $ret = CrayonFormatter::print_code($this, $this->formatted_code, $show_lines, $print);
207
  } else {
208
+ $ret = CrayonFormatter::print_error($this, $this->error, '', $print);
209
  }
210
  // Reset the error message at the end of the print session
211
  $this->error = '';
222
  if ($this->setting_val(CrayonSettings::TRIM_WHITESPACE)) {
223
  $code = preg_replace("#(?:^\\s*\\r?\\n)|(?:\\r?\\n\\s*$)#", '', $code);
224
  }
225
+ if (!empty($code)) {
226
+ $this->code = $code;
227
+ // $this->needs_load = FALSE; // No need to load, code provided
228
+ $this->needs_format = TRUE;
229
+ }
230
  }
231
  }
232
 
245
  }
246
  $this->language = CrayonResources::langs()->detect($this->url, $this->setting_val(CrayonSettings::FALLBACK_LANG));
247
  }
248
+
249
+ // Prepare the language for use, even if we have no code, we need the name
250
+ CrayonParser::parse($this->language->id());
251
  }
252
 
253
  function url($url = NULL) {
254
+ if ($url === NULL) {
 
 
255
  return $this->url;
256
+ } else {
257
+ $this->url = $url;
258
+ $this->needs_load = TRUE;
259
  }
260
+
261
+ // if (CrayonUtil::str($this->url, $url)) {
262
+ // $this->needs_load = TRUE;
263
+ // } else {
264
+ // return $this->url;
265
+ // }
266
  }
267
 
268
  function title($title = NULL) {
crayon_parser.class.php CHANGED
@@ -235,7 +235,7 @@ class CrayonParser {
235
  $css_str .= $c . ' ';
236
  }
237
  }
238
- return $css_str;
239
  } else {
240
  return '';
241
  }
235
  $css_str .= $c . ' ';
236
  }
237
  }
238
+ return trim($css_str);
239
  } else {
240
  return '';
241
  }
crayon_resource.class.php CHANGED
@@ -190,6 +190,14 @@ class CrayonResourceCollection {
190
  }
191
  return NULL;
192
  }
 
 
 
 
 
 
 
 
193
 
194
  public function is_loaded($id) {
195
  if (is_string($id)) {
190
  }
191
  return NULL;
192
  }
193
+
194
+ public function get_array() {
195
+ $array = array();
196
+ foreach ($this->get() as $resource) {
197
+ $array[$resource->id()] = $resource->name();
198
+ }
199
+ return $array;
200
+ }
201
 
202
  public function is_loaded($id) {
203
  if (is_string($id)) {
crayon_settings.class.php CHANGED
@@ -13,6 +13,14 @@ class CrayonSettings {
13
  // Plugin data
14
  const VERSION = 'version';
15
 
 
 
 
 
 
 
 
 
16
  // Global names for settings
17
  const THEME = 'theme';
18
  const FONT = 'font';
@@ -84,6 +92,12 @@ class CrayonSettings {
84
  const INLINE_WRAP = 'inline-wrap';
85
  const BACKQUOTE = 'backquote';
86
  const COMMENTS = 'comments';
 
 
 
 
 
 
87
 
88
  private static $cache_array;
89
 
@@ -103,9 +117,6 @@ class CrayonSettings {
103
  private static $default = NULL;
104
 
105
  function __construct() {
106
- self::$cache_array = array(crayon__('Hourly') => 3600, crayon__('Daily') => 86400,
107
- crayon__('Weekly') => 604800, crayon__('Monthly') => 18144000,
108
- crayon__('Immediately') => 1);
109
  $this->init();
110
  }
111
 
@@ -124,6 +135,10 @@ class CrayonSettings {
124
 
125
  crayon_load_plugin_textdomain();
126
 
 
 
 
 
127
  $settings = array(
128
  new CrayonSetting(self::VERSION, $CRAYON_VERSION, NULL, TRUE),
129
  new CrayonSetting(self::THEME, CrayonThemes::DEFAULT_THEME),
@@ -166,7 +181,7 @@ class CrayonSettings {
166
  new CrayonSetting(self::TAB_SIZE, 4),
167
  new CrayonSetting(self::FALLBACK_LANG, CrayonLangs::DEFAULT_LANG),
168
  new CrayonSetting(self::LOCAL_PATH, ''),
169
- new CrayonSetting(self::SCROLL, FALSE),//array(crayon__('On MouseOver'), crayon__('Always'))),
170
  new CrayonSetting(self::PLAIN, TRUE),
171
  new CrayonSetting(self::PLAIN_TOGGLE, TRUE),
172
  new CrayonSetting(self::SHOW_PLAIN_DEFAULT, FALSE),
@@ -197,6 +212,12 @@ class CrayonSettings {
197
  new CrayonSetting(self::INLINE_WRAP, TRUE),
198
  new CrayonSetting(self::BACKQUOTE, TRUE),
199
  new CrayonSetting(self::COMMENTS, TRUE),
 
 
 
 
 
 
200
  );
201
 
202
  $this->set($settings);
@@ -266,6 +287,18 @@ class CrayonSettings {
266
  }
267
  }
268
 
 
 
 
 
 
 
 
 
 
 
 
 
269
  function get_array() {
270
  $array = array();
271
  foreach ($this->settings as $setting) {
@@ -330,7 +363,7 @@ class CrayonSettings {
330
  if (($setting = CrayonGlobalSettings::get($name)) != FALSE) {
331
  // Booleans settings that are sent as string are allowed to have "false" == false
332
  if (is_string($value) && is_bool($setting->def())) {
333
- $value = trim(str_replace(array('no', 'false'), '0', $value));
334
  }
335
  // Ensure we don't cast integer settings to 0 because $value doesn't have any numbers in it
336
  if (is_string($value) && is_int($setting->def())) {
@@ -440,8 +473,6 @@ class CrayonSettings {
440
  }
441
  else if (CrayonUtil::str_to_bool($value) === FALSE) {
442
  $settings[CrayonSettings::TOOLBAR] = 2;
443
- } else if (CrayonUtil::str_to_bool($value, FALSE)) {
444
- $settings[CrayonSettings::TOOLBAR] = 0;
445
  }
446
  }
447
  }
@@ -520,6 +551,10 @@ class CrayonGlobalSettings {
520
  public static function val($name = NULL) {
521
  return self::$global->val($name);
522
  }
 
 
 
 
523
 
524
  public static function set($name, $value = NULL, $replace = FALSE) {
525
  self::init();
13
  // Plugin data
14
  const VERSION = 'version';
15
 
16
+ // Added when used in HTML to avoid id conflicts
17
+ const PREFIX = 'crayon-';
18
+ const SETTING = 'crayon-setting';
19
+ const SETTING_SELECTED = 'crayon-setting-selected';
20
+ const SETTING_CHANGED = 'crayon-setting-changed';
21
+ const SETTING_SPECIAL = 'crayon-setting-special';
22
+ const SETTING_ORIG_VALUE = 'data-orig-value';
23
+
24
  // Global names for settings
25
  const THEME = 'theme';
26
  const FONT = 'font';
92
  const INLINE_WRAP = 'inline-wrap';
93
  const BACKQUOTE = 'backquote';
94
  const COMMENTS = 'comments';
95
+ const DECODE = 'decode';
96
+ const DECODE_ATTRIBUTES = 'decode-attributes';
97
+ const TINYMCE_USED = 'tinymce-used';
98
+ const ATTR_SEP = 'attr-sep';
99
+ // const TINYMCE_LINE_BREAK = 'tinymce-line-break';
100
+ // const TINYMCE_ADD_OVERRIDDEN = 'tinymce-add-overridden';
101
 
102
  private static $cache_array;
103
 
117
  private static $default = NULL;
118
 
119
  function __construct() {
 
 
 
120
  $this->init();
121
  }
122
 
135
 
136
  crayon_load_plugin_textdomain();
137
 
138
+ self::$cache_array = array(crayon__('Hourly') => 3600, crayon__('Daily') => 86400,
139
+ crayon__('Weekly') => 604800, crayon__('Monthly') => 18144000,
140
+ crayon__('Immediately') => 1);
141
+
142
  $settings = array(
143
  new CrayonSetting(self::VERSION, $CRAYON_VERSION, NULL, TRUE),
144
  new CrayonSetting(self::THEME, CrayonThemes::DEFAULT_THEME),
181
  new CrayonSetting(self::TAB_SIZE, 4),
182
  new CrayonSetting(self::FALLBACK_LANG, CrayonLangs::DEFAULT_LANG),
183
  new CrayonSetting(self::LOCAL_PATH, ''),
184
+ new CrayonSetting(self::SCROLL, FALSE),
185
  new CrayonSetting(self::PLAIN, TRUE),
186
  new CrayonSetting(self::PLAIN_TOGGLE, TRUE),
187
  new CrayonSetting(self::SHOW_PLAIN_DEFAULT, FALSE),
212
  new CrayonSetting(self::INLINE_WRAP, TRUE),
213
  new CrayonSetting(self::BACKQUOTE, TRUE),
214
  new CrayonSetting(self::COMMENTS, TRUE),
215
+ new CrayonSetting(self::DECODE, FALSE),
216
+ new CrayonSetting(self::DECODE_ATTRIBUTES, TRUE),
217
+ new CrayonSetting(self::TINYMCE_USED, FALSE),
218
+ new CrayonSetting(self::ATTR_SEP, array(':', '_')),
219
+ // new CrayonSetting(self::TINYMCE_LINE_BREAK, array(crayon__('Before & After'), crayon__('After'), crayon__('Before'), crayon__('None'))),
220
+ // new CrayonSetting(self::TINYMCE_ADD_OVERRIDDEN, TRUE),
221
  );
222
 
223
  $this->set($settings);
287
  }
288
  }
289
 
290
+ function val_str($name) {
291
+ if (($setting = self::get($name)) != FALSE) {
292
+ $def = $setting->def();
293
+ $index = $setting->value();
294
+ if (array_key_exists($index, $def)) {
295
+ return $def[$index];
296
+ } else {
297
+ return NULL;
298
+ }
299
+ }
300
+ }
301
+
302
  function get_array() {
303
  $array = array();
304
  foreach ($this->settings as $setting) {
363
  if (($setting = CrayonGlobalSettings::get($name)) != FALSE) {
364
  // Booleans settings that are sent as string are allowed to have "false" == false
365
  if (is_string($value) && is_bool($setting->def())) {
366
+ $value = CrayonUtil::str_to_bool($value);
367
  }
368
  // Ensure we don't cast integer settings to 0 because $value doesn't have any numbers in it
369
  if (is_string($value) && is_int($setting->def())) {
473
  }
474
  else if (CrayonUtil::str_to_bool($value) === FALSE) {
475
  $settings[CrayonSettings::TOOLBAR] = 2;
 
 
476
  }
477
  }
478
  }
551
  public static function val($name = NULL) {
552
  return self::$global->val($name);
553
  }
554
+
555
+ public static function val_str($name = NULL) {
556
+ return self::$global->val_str($name);
557
+ }
558
 
559
  public static function set($name, $value = NULL, $replace = FALSE) {
560
  self::init();
crayon_settings_wp.class.php CHANGED
@@ -13,14 +13,19 @@ class CrayonSettingsWP {
13
 
14
  // A copy of the current options in db
15
  private static $options = NULL;
 
 
16
  // An array of cache names for use with Transients API
17
  private static $cache = NULL;
 
 
18
  private static $admin_page = '';
19
  private static $is_fully_loaded = FALSE;
20
 
21
  const SETTINGS = 'crayon_fields';
22
  const FIELDS = 'crayon_settings';
23
  const OPTIONS = 'crayon_options';
 
24
  const CACHE = 'crayon_cache';
25
  const GENERAL = 'crayon_general';
26
  const DEBUG = 'crayon_debug';
@@ -42,7 +47,10 @@ class CrayonSettingsWP {
42
  // Register settings, second argument is option name stored in db
43
  register_setting(self::FIELDS, self::OPTIONS, 'CrayonSettingsWP::settings_validate');
44
  add_action("admin_head-$admin_page", 'CrayonSettingsWP::admin_init');
45
-
 
 
 
46
  // TODO depreciated since WP 3.3, remove eventually
47
  global $wp_version;
48
  if ($wp_version >= '3.3') {
@@ -51,7 +59,7 @@ class CrayonSettingsWP {
51
  add_filter('contextual_help', 'CrayonSettingsWP::cont_help', 10, 3);
52
  }
53
  }
54
-
55
  public static function admin_styles() {
56
  global $CRAYON_VERSION;
57
  wp_enqueue_style('crayon_admin_style', plugins_url(CRAYON_STYLE_ADMIN, __FILE__), array(), $CRAYON_VERSION);
@@ -60,12 +68,30 @@ class CrayonSettingsWP {
60
  public static function admin_scripts() {
61
  global $CRAYON_VERSION;
62
  //wp_enqueue_script('crayon_jquery', plugins_url(CRAYON_JQUERY, __FILE__), array(), $CRAYON_VERSION);
63
- wp_enqueue_script('crayon_js', plugins_url(CRAYON_JS, __FILE__), array('jquery'), $CRAYON_VERSION);
64
- wp_enqueue_script('crayon_admin_js', plugins_url(CRAYON_JS_ADMIN, __FILE__), array('jquery'), $CRAYON_VERSION);
65
  wp_enqueue_script('crayon_jquery_popup', plugins_url(CRAYON_JQUERY_POPUP, __FILE__), array('jquery'), $CRAYON_VERSION);
 
66
  if (CRAYON_THEME_EDITOR) {
67
  wp_enqueue_script('crayon_theme_editor', plugins_url(CRAYON_THEME_EDITOR_JS, __FILE__), array('jquery'), $CRAYON_VERSION);
68
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
69
  }
70
 
71
  public static function settings() {
@@ -73,8 +99,18 @@ class CrayonSettingsWP {
73
  wp_die(crayon__('You do not have sufficient permissions to access this page.'));
74
  }
75
 
 
 
 
76
  ?>
77
 
 
 
 
 
 
 
 
78
  <div id="crayon-main-wrap" class="wrap">
79
 
80
  <div id="icon-options-general" class="icon32"><br>
@@ -154,13 +190,57 @@ class CrayonSettingsWP {
154
  }
155
 
156
  // Saves settings from CrayonGlobalSettings, or provided array, to the db
157
- public static function save_settings($settings) {
158
  if ($settings === NULL) {
159
  $settings = CrayonGlobalSettings::get_array();
160
  }
161
  update_option(self::OPTIONS, $settings);
162
  }
163
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
164
  // Cache
165
  public static function add_cache($name) {
166
  self::load_cache();
@@ -216,9 +296,10 @@ class CrayonSettingsWP {
216
  self::load_settings();
217
  // General
218
 
 
219
  self::add_section(self::GENERAL, crayon__('General'));
220
- self::add_field(self::GENERAL, crayon__('Theme'), 'themes');
221
- self::add_field(self::GENERAL, crayon__('Font'), 'fonts');
222
  self::add_field(self::GENERAL, crayon__('Metrics'), 'metrics');
223
  self::add_field(self::GENERAL, crayon__('Toolbar'), 'toolbar');
224
  self::add_field(self::GENERAL, crayon__('Lines'), 'lines');
@@ -226,6 +307,7 @@ class CrayonSettingsWP {
226
  self::add_field(self::GENERAL, crayon__('Tags'), 'tags');
227
  self::add_field(self::GENERAL, crayon__('Languages'), 'langs');
228
  self::add_field(self::GENERAL, crayon__('Files'), 'files');
 
229
  self::add_field(self::GENERAL, crayon__('Misc'), 'misc');
230
  // Debug
231
 
@@ -256,8 +338,6 @@ class CrayonSettingsWP {
256
  // Validates all the settings passed from the form in $inputs
257
 
258
  public static function settings_validate($inputs) {
259
- //return array();
260
-
261
  // Load current settings from db
262
  self::load_settings(TRUE);
263
 
@@ -298,11 +378,13 @@ class CrayonSettingsWP {
298
  // If settings don't exist in input, set them to default
299
  $global_settings = CrayonSettings::get_defaults();
300
 
 
 
301
  foreach ($global_settings as $setting) {
302
- // XXX Ignore the HIDE_HELP
303
- if ($setting->name() == CrayonSettings::HIDE_HELP) {
304
- $inputs[CrayonSettings::HIDE_HELP] = CrayonGlobalSettings::val(CrayonSettings::HIDE_HELP);
305
- continue;
306
  }
307
 
308
  // If boolean setting is not in input, then it is set to FALSE in the form
@@ -330,61 +412,57 @@ class CrayonSettingsWP {
330
  public static function blank() {} // Used for required callbacks with blank content
331
 
332
  // Input Drawing ==========================================================
333
-
334
- // Used to read args and validate for input tags
335
- private static function input($args) {
336
- if (empty($args) || !is_array($args)) {
337
- return FALSE;
338
- }
339
- extract($args);
340
- $name = (!empty($name) ? $name : '');
341
- $size = (!empty($size) && is_numeric($size) ? $size : 40);
342
- $break = (!empty($break) && $break ? CRAYON_BR : '');
343
- $margin = (!empty($margin) && $margin ? '20px' : 0);
344
- // By default, inputs will trigger preview refresh
345
- $preview = (!empty($preview) && !$preview ? 0 : 1);
346
- //$options = get_option(self::OPTIONS);
347
- if (!array_key_exists($name, self::$options)) {
348
- return array();
349
- }
350
- return compact('name', 'size', 'break', 'margin', 'preview', 'options');
351
- }
352
-
353
  private static function textbox($args) {
354
- if (!($args = self::input($args))) {
355
- return;
356
- }
357
- $name = $size = $margin = $preview = $break = '';
358
- extract($args);
359
- echo '<input id="', $name, '" name="', self::OPTIONS, '[', $name, ']" size="', $size, '" type="text" value="',
360
- self::$options[$name], '" style="margin-left: ', $margin, '" crayon-preview="', ($preview ? 1 : 0), '" />', $break;
 
 
361
  }
362
 
363
  private static function checkbox($args, $line_break = TRUE, $preview = TRUE) {
364
  if (empty($args) || !is_array($args) || count($args) != 2) {
365
  return;
366
  }
367
- $name = $args[0];
368
  $text = $args[1];
369
- $checked = (!array_key_exists($name, self::$options)) ? '' : checked(TRUE, self::$options[$name], FALSE);
370
- echo '<input id="', $name, '" name="', self::OPTIONS, '[', $name, ']" type="checkbox" value="1"', $checked,
 
371
  ' crayon-preview="', ($preview ? 1 : 0), '" /> ', '<span>', $text, '</span>', ($line_break ? CRAYON_BR : '');
372
  }
373
 
374
  // Draws a dropdown by loading the default value (an array) from a setting
375
- private static function dropdown($name, $line_break = TRUE, $preview = TRUE) {
376
- if (!array_key_exists($name, self::$options)) {
377
  return;
378
  }
379
- $opts = CrayonGlobalSettings::get($name)->def();
380
- if (is_array($opts)) {
381
- echo '<select id="', $name, '" name="', self::OPTIONS, '[', $name, ']" crayon-preview="', ($preview ? 1 : 0), '">';
382
- for ($i = 0; $i < count($opts); $i++) {
383
- echo '<option value="', $i,'" ', selected(self::$options[$name], $i), '>', $opts[$i], '</option>';
384
- }
385
- echo '</select>', ($line_break ? CRAYON_BR : '');
 
 
 
 
386
  }
387
  }
 
 
 
 
 
 
 
 
388
 
389
  // General Fields =========================================================
390
  public static function help() {
@@ -435,16 +513,17 @@ class CrayonSettingsWP {
435
  }
436
 
437
  public static function metrics() {
 
438
  self::checkbox(array(CrayonSettings::HEIGHT_SET, '<span class="crayon-span-50">'.crayon__('Height').' </span>'), FALSE);
439
  self::dropdown(CrayonSettings::HEIGHT_MODE, FALSE);
440
  echo ' ';
441
- self::textbox(array('name' => CrayonSettings::HEIGHT, 'size' => 8));
442
  echo ' ';
443
  self::dropdown(CrayonSettings::HEIGHT_UNIT);
444
  self::checkbox(array(CrayonSettings::WIDTH_SET, '<span class="crayon-span-50">'.crayon__('Width').' </span>'), FALSE);
445
  self::dropdown(CrayonSettings::WIDTH_MODE, FALSE);
446
  echo ' ';
447
- self::textbox(array('name' => CrayonSettings::WIDTH, 'size' => 8));
448
  echo ' ';
449
  self::dropdown(CrayonSettings::WIDTH_UNIT);
450
  $text = array(crayon__('Top Margin') => array(CrayonSettings::TOP_SET, CrayonSettings::TOP_MARGIN),
@@ -457,39 +536,44 @@ class CrayonSettingsWP {
457
  $preview = ($p == crayon__('Left Margin') || $p == crayon__('Right Margin'));
458
  self::checkbox(array($set, '<span class="crayon-span-110">' . $p . '</span>'), FALSE, $preview);
459
  echo ' ';
460
- self::textbox(array('name' => $margin, 'size' => 8, 'preview' => FALSE));
461
  echo '<span class="crayon-span-margin">', crayon__('Pixels'), '</span>', CRAYON_BR;
462
  }
463
  echo '<span class="crayon-span" style="min-width: 135px;">'.crayon__('Horizontal Alignment').' </span>';
464
  self::dropdown(CrayonSettings::H_ALIGN);
465
- echo '<div id="crayon-float">';
466
  self::checkbox(array(CrayonSettings::FLOAT_ENABLE, crayon__('Allow floating elements to surround Crayon')), FALSE, FALSE);
467
  echo '</div>';
468
  echo '<span class="crayon-span-100">' . crayon__('Inline Margin') . '</span>';
469
- self::textbox(array('name' => CrayonSettings::INLINE_MARGIN, 'size' => 2));
470
  echo '<span class="crayon-span-margin">', crayon__('Pixels'), '</span>';
 
471
  }
472
 
473
  public static function toolbar() {
474
- echo crayon__('Display the Toolbar'), ' ';
 
475
  self::dropdown(CrayonSettings::TOOLBAR);
476
- echo '<div id="' . CrayonSettings::TOOLBAR_OVERLAY . '">';
477
  self::checkbox(array(CrayonSettings::TOOLBAR_OVERLAY, crayon__('Overlay the toolbar on code rather than push it down when possible')));
478
  self::checkbox(array(CrayonSettings::TOOLBAR_HIDE, crayon__('Toggle the toolbar on single click when it is overlayed')));
479
  self::checkbox(array(CrayonSettings::TOOLBAR_DELAY, crayon__('Delay hiding the toolbar on MouseOut')));
480
  echo '</div>';
481
  self::checkbox(array(CrayonSettings::SHOW_TITLE, crayon__('Display the title when provided')));
482
- echo crayon__('Display the language'), ' ';
483
  self::dropdown(CrayonSettings::SHOW_LANG);
 
484
  }
485
 
486
  public static function lines() {
 
487
  self::checkbox(array(CrayonSettings::STRIPED, crayon__('Display striped code lines')));
488
  self::checkbox(array(CrayonSettings::MARKING, crayon__('Enable line marking for important lines')));
489
  self::checkbox(array(CrayonSettings::NUMS, crayon__('Display line numbers by default')));
490
  self::checkbox(array(CrayonSettings::NUMS_TOGGLE, crayon__('Enable line number toggling')));
491
- echo crayon__('Start line numbers from'), ' ';
492
- self::textbox(array('name' => CrayonSettings::START_LINE, 'size' => 2, 'break' => TRUE));
 
493
  }
494
 
495
  public static function langs() {
@@ -497,10 +581,8 @@ class CrayonSettingsWP {
497
  // Specialised dropdown for languages
498
  if (array_key_exists(CrayonSettings::FALLBACK_LANG, self::$options)) {
499
  if (($langs = CrayonParser::parse_all()) != FALSE) {
500
- $name = CrayonSettings::FALLBACK_LANG;
501
- echo crayon__('When no language is provided, use the fallback'), ': ', '<select id="', $name, '" name="', self::OPTIONS,
502
- '[', $name, ']" crayon-preview="1">';
503
- self::lang_dropdown($langs);
504
  // Information about parsing
505
  $parsed = CrayonResources::langs()->is_parsed();
506
  $count = count($langs);
@@ -515,118 +597,123 @@ class CrayonSettingsWP {
515
  echo '<br/><span class="crayon-error">', sprintf(crayon__('The selected language with id %s could not be loaded'), '<strong>'.$db_fallback.'</strong>'), '. </span>';
516
  }
517
  // Language parsing info
518
- echo CRAYON_BR, '<div id="lang-info"><div><a id="show-lang" class="button-primary" onclick="CrayonSyntaxAdmin.show_langs(\'', plugins_url(CRAYON_LIST_LANGS_PHP, __FILE__),
519
  '\');">', crayon__('Show Languages'), '</a></div></div>';
520
  } else {
521
  echo 'No languages could be parsed.';
522
  }
523
  }
524
  }
525
-
526
- public static function lang_dropdown($langs) {
527
- foreach ($langs as $lang) {
528
- $title = $lang->name() . ' [' . $lang->id() . ']';
529
- echo '<option value="', $lang->id(), '" ', selected(self::$options[CrayonSettings::FALLBACK_LANG],
530
- $lang->id()), '>', $title, '</option>';
531
- }
532
- }
533
 
534
- public static function themes() {
535
  $db_theme = self::$options[CrayonSettings::THEME]; // Theme name from db
536
  if (!array_key_exists(CrayonSettings::THEME, self::$options)) {
537
  $db_theme = '';
538
  }
539
- $name = CrayonSettings::THEME;
540
- $themes = CrayonResources::themes()->get();
541
- echo '<select id="', $name, '" name="', self::OPTIONS, '[', $name, ']" crayon-preview="1">';
542
- foreach ($themes as $theme) {
543
- $title = $theme->name();
544
- echo '<option value="', $theme->id(), '" ', selected($db_theme, $theme->id()), '>', $title, '</option>';
545
  }
546
- echo '</select><span class="crayon-span-5"></span>';
547
  // Theme editor
548
  if (CRAYON_THEME_EDITOR) {
549
  echo '<a id="crayon-theme-editor-button" class="button-primary crayon-admin-button" loading="'. crayon__('Loading...') .'" loaded="'. crayon__('Theme Editor') .'" >'. crayon__('Theme Editor') .'</a></br>';
550
  }
551
  // Preview Box
552
- echo '<div id="crayon-preview" url="', plugins_url(CRAYON_PREVIEW_PHP, __FILE__), '"></div>';
 
553
  printf(crayon__('Change the %1$sfallback language%2$s to change the sample code. Lines 5-7 are marked.'), '<a href="#langs">', '</a>');
 
554
  // Preview checkbox
555
  echo '<div style="height:10px;"></div>';
556
  self::checkbox(array(CrayonSettings::PREVIEW, crayon__('Enable Live Preview')), FALSE, FALSE);
557
  echo '</select><span class="crayon-span-10"></span>';
558
- self::checkbox(array(CrayonSettings::ENQUEUE_THEMES, crayon__('Enqueue themes in the header (more efficient).') . ' <a href="http://bit.ly/zTUAQV" target="_blank">' . crayon__('Learn More') . '</a>'));
559
  // Check if theme from db is loaded
560
  if (!CrayonResources::themes()->is_loaded($db_theme) || !CrayonResources::themes()->exists($db_theme)) {
561
  echo '<span class="crayon-error">', sprintf(crayon__('The selected theme with id %s could not be loaded'), '<strong>'.$db_theme.'</strong>'), '. </span>';
562
  }
563
  }
564
 
565
- public static function fonts() {
566
  $db_font = self::$options[CrayonSettings::FONT]; // Theme name from db
567
  if (!array_key_exists(CrayonSettings::FONT, self::$options)) {
568
  $db_font = '';
569
  }
570
- $name = CrayonSettings::FONT;
571
- $fonts = CrayonResources::fonts()->get();
572
- echo '<select id="', $name, '" name="', self::OPTIONS, '[', $name, ']" crayon-preview="1">';
573
- foreach ($fonts as $font) {
574
- // $title = $font->id() != CrayonFonts::DEFAULT_FONT ? $font->name() : crayon__('Theme Default');
575
- $title = $font->name();
576
- echo '<option value="', $font->id(), '" ', selected($db_font, $font->id()), '>', $title, '</option>';
577
- }
578
- echo '</select><span class="crayon-span-10"></span>';
579
  self::checkbox(array(CrayonSettings::FONT_SIZE_ENABLE, crayon__('Custom Font Size').' '), FALSE);
580
- self::textbox(array('name' => CrayonSettings::FONT_SIZE, 'size' => 2));
581
  echo '<span class="crayon-span-margin">', crayon__('Pixels'), '</span></br>';
582
- if (/*$db_font != CrayonFonts::DEFAULT_FONT &&*/ (!CrayonResources::fonts()->is_loaded($db_font) || !CrayonResources::fonts()->exists($db_font))) {
583
  // Default font doesn't actually exist as a file, it means do not override default theme font
584
  echo '<span class="crayon-error">', sprintf(crayon__('The selected font with id %s could not be loaded'), '<strong>'.$db_font.'</strong>'), '. </span><br/>';
585
  }
 
 
 
586
  echo '<div style="height:10px;"></div>';
587
- self::checkbox(array(CrayonSettings::ENQUEUE_FONTS, crayon__('Enqueue fonts in the header (more efficient).') . ' <a href="http://bit.ly/zTUAQV" target="_blank">' . crayon__('Learn More') . '</a>'));
588
  }
589
 
590
- public static function code() {
 
591
  self::checkbox(array(CrayonSettings::PLAIN, crayon__('Enable plain code view and display').' '), FALSE);
592
  self::dropdown(CrayonSettings::SHOW_PLAIN);
593
- echo '<span id="crayon-copy-check">';
594
  self::checkbox(array(CrayonSettings::PLAIN_TOGGLE, crayon__('Enable plain code toggling')));
595
  self::checkbox(array(CrayonSettings::SHOW_PLAIN_DEFAULT, crayon__('Show the plain code by default')));
596
  self::checkbox(array(CrayonSettings::COPY, crayon__('Enable code copy/paste')));
597
  echo '</span>';
598
  self::checkbox(array(CrayonSettings::POPUP, crayon__('Enable opening code in a window')));
599
  self::checkbox(array(CrayonSettings::SCROLL, crayon__('Always display scrollbars')));
600
- echo crayon__('Tab size in spaces'),': ';
601
- self::textbox(array('name' => CrayonSettings::TAB_SIZE, 'size' => 2, 'break' => TRUE));
 
 
 
 
 
 
 
602
  self::checkbox(array(CrayonSettings::TRIM_WHITESPACE, crayon__('Remove whitespace surrounding the shortcode content')));
603
- self::checkbox(array(CrayonSettings::MIXED, crayon__('Allow Mixed Language Highlighting with delimiters and tags.') . ' <a href="http://bit.ly/ukwts2" target="_blank">' . crayon__('Learn More') . '</a>'));
 
 
604
  self::checkbox(array(CrayonSettings::SHOW_MIXED, crayon__('Show Mixed Language Icon (+)')));
 
605
  }
606
 
607
  public static function tags() {
608
- self::checkbox(array(CrayonSettings::CAPTURE_MINI_TAG, crayon__('Capture Mini Tags like [php][/php] as Crayons.') . ' <a href="http://bit.ly/rRZuzk" target="_blank">' . crayon__('Learn More') . '</a>'));
609
- self::checkbox(array(CrayonSettings::INLINE_TAG, crayon__('Capture Inline Tags like {php}{/php} inside sentences.') . ' <a href="http://bit.ly/yFafFL" target="_blank">' . crayon__('Learn More') . '</a>'));
610
- self::checkbox(array(CrayonSettings::INLINE_WRAP, crayon__('Wrap Inline Tags') . ' <a href="http://bit.ly/yFafFL" target="_blank">' . crayon__('Learn More') . '</a>'));
611
- self::checkbox(array(CrayonSettings::BACKQUOTE, crayon__('Capture `backquotes` as &lt;code&gt;') . ' <a href="http://bit.ly/yFafFL" target="_blank">' . crayon__('Learn More') . '</a>'));
612
- self::checkbox(array(CrayonSettings::CAPTURE_PRE, crayon__('Capture &lt;pre&gt; tags as Crayons') . ' <a href="http://bit.ly/rRZuzk" target="_blank">' . crayon__('Learn More') . '</a>'));
613
- self::checkbox(array(CrayonSettings::PLAIN_TAG, crayon__('Enable [plain][/plain] tag.') . ' <a href="http://bit.ly/rRZuzk" target="_blank">' . crayon__('Learn More') . '</a>'));
614
  }
615
 
616
  public static function files() {
617
  echo '<a name="files"></a>';
618
  echo crayon__('When loading local files and a relative path is given for the URL, use the absolute path'),': ',
619
  '<div style="margin-left: 20px">', home_url(), '/';
620
- self::textbox(array('name' => CrayonSettings::LOCAL_PATH));
621
  echo '</div>', crayon__('Followed by your relative URL.');
622
  }
 
 
 
 
 
 
623
 
624
  public static function misc() {
625
  echo crayon__('Clear the cache used to store remote code requests'),': ';
626
  self::dropdown(CrayonSettings::CACHE, false);
627
  echo '<input type="submit" id="crayon-cache-clear" name="crayon-cache-clear" class="button-secondary" value="', crayon__('Clear Now'), '" /><br/>';
628
- self::checkbox(array(CrayonSettings::EFFICIENT_ENQUEUE, crayon__('Attempt to load Crayon\'s CSS and JavaScript only when needed').'. <a href="http://ak.net84.net/?p=660" target="_blank">'.crayon__('Learn More').'</a>'));
629
- self::checkbox(array(CrayonSettings::SAFE_ENQUEUE, crayon__('Disable enqueuing for page templates that may contain The Loop.') . ' <a href="http://bit.ly/AcWRNY" target="_blank">' . crayon__('Learn More') . '</a>'));
630
  self::checkbox(array(CrayonSettings::COMMENTS, crayon__('Allow Crayons inside comments')));
631
  self::checkbox(array(CrayonSettings::MAIN_QUERY, crayon__('Load Crayons only from the main Wordpress query')));
632
  self::checkbox(array(CrayonSettings::TOUCHSCREEN, crayon__('Disable mouse gestures for touchscreen devices (eg. MouseOver)')));
@@ -641,7 +728,7 @@ class CrayonSettingsWP {
641
  self::checkbox(array(CrayonSettings::ERROR_LOG, crayon__('Log errors for individual Crayons')));
642
  self::checkbox(array(CrayonSettings::ERROR_LOG_SYS, crayon__('Log system-wide errors')));
643
  self::checkbox(array(CrayonSettings::ERROR_MSG_SHOW, crayon__('Display custom message for errors')));
644
- self::textbox(array('name' => CrayonSettings::ERROR_MSG, 'size' => 60, 'margin' => TRUE));
645
  }
646
 
647
  public static function log() {
@@ -677,8 +764,9 @@ class CrayonSettingsWP {
677
  $date = $CRAYON_DATE;
678
  $developer = '<strong>'.crayon__('Developer').':</strong> ' . '<a href="'.$CRAYON_AUTHOR_SITE.'" target="_blank">' . $CRAYON_AUTHOR . '</a>';
679
  $translators = '<strong>'.crayon__('Translators').':</strong> ' .
680
- 'Chinese (<a href="http://smerpup.com/" target="_blank">Dezhi Liu</a>),
681
  German (<a href="http://www.technologyblog.de/" target="_blank">Stephan Knau&#223;</a>),
 
682
  Japanese (<a href="https://twitter.com/#!/west_323" target="_blank">@west_323</a>),
683
  Russian (<a href="http://simplelib.com/" target="_blank">Minimus</a>, <a href="http://atlocal.net/" target="_blank">Di_Skyer</a>),
684
  Turkish (<a href="http://kazancexpert.com" target="_blank">Hakan</a>)';
13
 
14
  // A copy of the current options in db
15
  private static $options = NULL;
16
+ // Posts containing crayons in db
17
+ private static $crayon_posts = NULL;
18
  // An array of cache names for use with Transients API
19
  private static $cache = NULL;
20
+ // Array of settings to pass to js
21
+ private static $js_settings = NULL;
22
  private static $admin_page = '';
23
  private static $is_fully_loaded = FALSE;
24
 
25
  const SETTINGS = 'crayon_fields';
26
  const FIELDS = 'crayon_settings';
27
  const OPTIONS = 'crayon_options';
28
+ const POSTS = 'crayon_posts';
29
  const CACHE = 'crayon_cache';
30
  const GENERAL = 'crayon_general';
31
  const DEBUG = 'crayon_debug';
47
  // Register settings, second argument is option name stored in db
48
  register_setting(self::FIELDS, self::OPTIONS, 'CrayonSettingsWP::settings_validate');
49
  add_action("admin_head-$admin_page", 'CrayonSettingsWP::admin_init');
50
+ // Register settings for post page
51
+ add_action("admin_print_styles-post-new.php", 'CrayonSettingsWP::admin_styles');
52
+ add_action("admin_print_styles-post.php", 'CrayonSettingsWP::admin_styles');
53
+
54
  // TODO depreciated since WP 3.3, remove eventually
55
  global $wp_version;
56
  if ($wp_version >= '3.3') {
59
  add_filter('contextual_help', 'CrayonSettingsWP::cont_help', 10, 3);
60
  }
61
  }
62
+
63
  public static function admin_styles() {
64
  global $CRAYON_VERSION;
65
  wp_enqueue_style('crayon_admin_style', plugins_url(CRAYON_STYLE_ADMIN, __FILE__), array(), $CRAYON_VERSION);
68
  public static function admin_scripts() {
69
  global $CRAYON_VERSION;
70
  //wp_enqueue_script('crayon_jquery', plugins_url(CRAYON_JQUERY, __FILE__), array(), $CRAYON_VERSION);
71
+ wp_enqueue_script('crayon_util_js', plugins_url(CRAYON_JS_UTIL, __FILE__), array('jquery'), $CRAYON_VERSION);
72
+ wp_enqueue_script('crayon_admin_js', plugins_url(CRAYON_JS_ADMIN, __FILE__), array('jquery', 'crayon_util_js'), $CRAYON_VERSION);
73
  wp_enqueue_script('crayon_jquery_popup', plugins_url(CRAYON_JQUERY_POPUP, __FILE__), array('jquery'), $CRAYON_VERSION);
74
+ wp_enqueue_script('crayon_js', plugins_url(CRAYON_JS, __FILE__), array('jquery', 'crayon_jquery_popup', 'crayon_util_js'), $CRAYON_VERSION);
75
  if (CRAYON_THEME_EDITOR) {
76
  wp_enqueue_script('crayon_theme_editor', plugins_url(CRAYON_THEME_EDITOR_JS, __FILE__), array('jquery'), $CRAYON_VERSION);
77
  }
78
+ // Must come after
79
+ self::init_js_settings();
80
+ }
81
+
82
+ public static function init_js_settings() {
83
+ // TODO Create a global CrayonSyntaxSettings object here
84
+ if (!self::$js_settings) {
85
+ self::$js_settings = array(
86
+ 'prefix' => CrayonSettings::PREFIX,
87
+ 'setting' => CrayonSettings::SETTING,
88
+ 'selected' => CrayonSettings::SETTING_SELECTED,
89
+ 'changed' => CrayonSettings::SETTING_CHANGED,
90
+ 'special' => CrayonSettings::SETTING_SPECIAL,
91
+ 'orig_value' => CrayonSettings::SETTING_ORIG_VALUE,
92
+ );
93
+ }
94
+ wp_localize_script('crayon_admin_js', 'CrayonSyntaxSettings', self::$js_settings);
95
  }
96
 
97
  public static function settings() {
99
  wp_die(crayon__('You do not have sufficient permissions to access this page.'));
100
  }
101
 
102
+ // Go through and find all Crayons in posts on each reload
103
+ self::scan_and_save_posts();
104
+
105
  ?>
106
 
107
+ <script type="text/javascript">
108
+ jQuery(document).ready(function() {
109
+ CrayonSyntaxAdmin.init();
110
+ });
111
+ </script>
112
+
113
+
114
  <div id="crayon-main-wrap" class="wrap">
115
 
116
  <div id="icon-options-general" class="icon32"><br>
190
  }
191
 
192
  // Saves settings from CrayonGlobalSettings, or provided array, to the db
193
+ public static function save_settings($settings = NULL) {
194
  if ($settings === NULL) {
195
  $settings = CrayonGlobalSettings::get_array();
196
  }
197
  update_option(self::OPTIONS, $settings);
198
  }
199
 
200
+ // Crayons posts
201
+ public static function load_posts() {
202
+ if (self::$crayon_posts === NULL) {
203
+ // Load from db
204
+ if (!(self::$crayon_posts = get_option(self::POSTS))) {
205
+ // Posts don't exist! Scan for them. This will fill self::$crayon_posts
206
+ self::$crayon_posts = CrayonWP::scan_posts();
207
+ update_option(self::POSTS, self::$crayon_posts);
208
+ }
209
+ }
210
+ return self::$crayon_posts;
211
+ }
212
+
213
+ public static function scan_and_save_posts() {
214
+ self::save_posts(CrayonWP::scan_posts());
215
+ }
216
+
217
+ public static function save_posts($posts = NULL) {
218
+ if ($posts === NULL) {
219
+ $posts = self::$crayon_posts;
220
+ }
221
+ update_option(self::POSTS, $posts);
222
+ self::load_posts();
223
+ }
224
+
225
+ public static function add_post($id) {
226
+ self::load_posts();
227
+ if (!in_array($id, self::$crayon_posts)) {
228
+ self::$crayon_posts[] = $id;
229
+ }
230
+ self::save_posts();
231
+ }
232
+
233
+ public static function remove_post($id) {
234
+ self::load_posts();
235
+ for ($i = 0; $i < count(self::$crayon_posts); $i++) {
236
+ if (self::$crayon_posts[$i] == $id) {
237
+ unset(self::$crayon_posts[$i]);
238
+ break;
239
+ }
240
+ }
241
+ self::save_posts();
242
+ }
243
+
244
  // Cache
245
  public static function add_cache($name) {
246
  self::load_cache();
296
  self::load_settings();
297
  // General
298
 
299
+ // Some of these will the $editor arguments, if TRUE it will alter for use in the Tag Editor
300
  self::add_section(self::GENERAL, crayon__('General'));
301
+ self::add_field(self::GENERAL, crayon__('Theme'), 'theme');
302
+ self::add_field(self::GENERAL, crayon__('Font'), 'font');
303
  self::add_field(self::GENERAL, crayon__('Metrics'), 'metrics');
304
  self::add_field(self::GENERAL, crayon__('Toolbar'), 'toolbar');
305
  self::add_field(self::GENERAL, crayon__('Lines'), 'lines');
307
  self::add_field(self::GENERAL, crayon__('Tags'), 'tags');
308
  self::add_field(self::GENERAL, crayon__('Languages'), 'langs');
309
  self::add_field(self::GENERAL, crayon__('Files'), 'files');
310
+ self::add_field(self::GENERAL, crayon__('Tag Editor'), 'tag_editor');
311
  self::add_field(self::GENERAL, crayon__('Misc'), 'misc');
312
  // Debug
313
 
338
  // Validates all the settings passed from the form in $inputs
339
 
340
  public static function settings_validate($inputs) {
 
 
341
  // Load current settings from db
342
  self::load_settings(TRUE);
343
 
378
  // If settings don't exist in input, set them to default
379
  $global_settings = CrayonSettings::get_defaults();
380
 
381
+ $ignored = array(CrayonSettings::HIDE_HELP, CrayonSettings::TINYMCE_USED);
382
+
383
  foreach ($global_settings as $setting) {
384
+ // XXX Ignore some settings
385
+ if ( in_array($setting->name(), $ignored) ) {
386
+ $inputs[$setting->name()] = CrayonGlobalSettings::val($setting->name());
387
+ continue;
388
  }
389
 
390
  // If boolean setting is not in input, then it is set to FALSE in the form
412
  public static function blank() {} // Used for required callbacks with blank content
413
 
414
  // Input Drawing ==========================================================
415
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
416
  private static function textbox($args) {
417
+ $id = '';
418
+ $size = 40;
419
+ $margin = FALSE;
420
+ $preview = 1;
421
+ $break = FALSE;
422
+ extract($args);
423
+
424
+ echo '<input id="', CrayonSettings::PREFIX, $id, '" name="', self::OPTIONS, '[', $id, ']" class="'.CrayonSettings::SETTING.'" size="', $size, '" type="text" value="',
425
+ self::$options[$id], '" style="margin-left: ', ($margin ? '20px' : '0px'), ';" crayon-preview="', ($preview ? 1 : 0), '" />', ($break ? CRAYON_BR : '');
426
  }
427
 
428
  private static function checkbox($args, $line_break = TRUE, $preview = TRUE) {
429
  if (empty($args) || !is_array($args) || count($args) != 2) {
430
  return;
431
  }
432
+ $id = $args[0];
433
  $text = $args[1];
434
+ $checked = (!array_key_exists($id, self::$options)) ? FALSE : self::$options[$id] == TRUE;
435
+ $checked_str = $checked ? ' checked="checked"' : '';
436
+ echo '<input id="', CrayonSettings::PREFIX, $id, '" name="', self::OPTIONS, '[', $id, ']" type="checkbox" class="'.CrayonSettings::SETTING.'" value="1"', $checked_str,
437
  ' crayon-preview="', ($preview ? 1 : 0), '" /> ', '<span>', $text, '</span>', ($line_break ? CRAYON_BR : '');
438
  }
439
 
440
  // Draws a dropdown by loading the default value (an array) from a setting
441
+ private static function dropdown($id, $line_break = TRUE, $preview = TRUE, $echo = TRUE, $resources = NULL) {
442
+ if (!array_key_exists($id, self::$options)) {
443
  return;
444
  }
445
+ $resources = $resources != NULL ? $resources : CrayonGlobalSettings::get($id)->def();
446
+
447
+ $return = '<select id="'.CrayonSettings::PREFIX.$id.'" name="'.self::OPTIONS.'['.$id.']" class="'.CrayonSettings::SETTING.'" crayon-preview="'.($preview ? 1 : 0).'">';
448
+ foreach ($resources as $k=>$v) {
449
+ $return .='<option value="'.$k.'" '.selected(self::$options[$id], $k, FALSE).'>'.$v.'</option>';
450
+ }
451
+ $return .= '</select>'.($line_break ? CRAYON_BR : '');
452
+ if ($echo) {
453
+ echo $return;
454
+ } else {
455
+ return $return;
456
  }
457
  }
458
+
459
+ private static function info_span($name, $text) {
460
+ echo '<span id="', $name, '-info">', $text,'</span>';
461
+ }
462
+
463
+ private static function span($text) {
464
+ echo '<span>', $text,'</span>';
465
+ }
466
 
467
  // General Fields =========================================================
468
  public static function help() {
513
  }
514
 
515
  public static function metrics() {
516
+ echo '<div id="crayon-section-metrics" class="crayon-hide-inline">';
517
  self::checkbox(array(CrayonSettings::HEIGHT_SET, '<span class="crayon-span-50">'.crayon__('Height').' </span>'), FALSE);
518
  self::dropdown(CrayonSettings::HEIGHT_MODE, FALSE);
519
  echo ' ';
520
+ self::textbox(array('id' => CrayonSettings::HEIGHT, 'size' => 8));
521
  echo ' ';
522
  self::dropdown(CrayonSettings::HEIGHT_UNIT);
523
  self::checkbox(array(CrayonSettings::WIDTH_SET, '<span class="crayon-span-50">'.crayon__('Width').' </span>'), FALSE);
524
  self::dropdown(CrayonSettings::WIDTH_MODE, FALSE);
525
  echo ' ';
526
+ self::textbox(array('id' => CrayonSettings::WIDTH, 'size' => 8));
527
  echo ' ';
528
  self::dropdown(CrayonSettings::WIDTH_UNIT);
529
  $text = array(crayon__('Top Margin') => array(CrayonSettings::TOP_SET, CrayonSettings::TOP_MARGIN),
536
  $preview = ($p == crayon__('Left Margin') || $p == crayon__('Right Margin'));
537
  self::checkbox(array($set, '<span class="crayon-span-110">' . $p . '</span>'), FALSE, $preview);
538
  echo ' ';
539
+ self::textbox(array('id' => $margin, 'size' => 8, 'preview' => FALSE));
540
  echo '<span class="crayon-span-margin">', crayon__('Pixels'), '</span>', CRAYON_BR;
541
  }
542
  echo '<span class="crayon-span" style="min-width: 135px;">'.crayon__('Horizontal Alignment').' </span>';
543
  self::dropdown(CrayonSettings::H_ALIGN);
544
+ echo '<div id="crayon-subsection-float">';
545
  self::checkbox(array(CrayonSettings::FLOAT_ENABLE, crayon__('Allow floating elements to surround Crayon')), FALSE, FALSE);
546
  echo '</div>';
547
  echo '<span class="crayon-span-100">' . crayon__('Inline Margin') . '</span>';
548
+ self::textbox(array('id' => CrayonSettings::INLINE_MARGIN, 'size' => 2));
549
  echo '<span class="crayon-span-margin">', crayon__('Pixels'), '</span>';
550
+ echo '</div>';
551
  }
552
 
553
  public static function toolbar() {
554
+ echo '<div id="crayon-section-toolbar" class="crayon-hide-inline">';
555
+ self::span(crayon__('Display the Toolbar').' ');
556
  self::dropdown(CrayonSettings::TOOLBAR);
557
+ echo '<div id="crayon-subsection-toolbar">';
558
  self::checkbox(array(CrayonSettings::TOOLBAR_OVERLAY, crayon__('Overlay the toolbar on code rather than push it down when possible')));
559
  self::checkbox(array(CrayonSettings::TOOLBAR_HIDE, crayon__('Toggle the toolbar on single click when it is overlayed')));
560
  self::checkbox(array(CrayonSettings::TOOLBAR_DELAY, crayon__('Delay hiding the toolbar on MouseOut')));
561
  echo '</div>';
562
  self::checkbox(array(CrayonSettings::SHOW_TITLE, crayon__('Display the title when provided')));
563
+ self::span(crayon__('Display the language').' ');
564
  self::dropdown(CrayonSettings::SHOW_LANG);
565
+ echo '</div>';
566
  }
567
 
568
  public static function lines() {
569
+ echo '<div id="crayon-section-lines" class="crayon-hide-inline">';
570
  self::checkbox(array(CrayonSettings::STRIPED, crayon__('Display striped code lines')));
571
  self::checkbox(array(CrayonSettings::MARKING, crayon__('Enable line marking for important lines')));
572
  self::checkbox(array(CrayonSettings::NUMS, crayon__('Display line numbers by default')));
573
  self::checkbox(array(CrayonSettings::NUMS_TOGGLE, crayon__('Enable line number toggling')));
574
+ self::span(crayon__('Start line numbers from').' ');
575
+ self::textbox(array('id' => CrayonSettings::START_LINE, 'size' => 2, 'break' => TRUE));
576
+ echo '</div>';
577
  }
578
 
579
  public static function langs() {
581
  // Specialised dropdown for languages
582
  if (array_key_exists(CrayonSettings::FALLBACK_LANG, self::$options)) {
583
  if (($langs = CrayonParser::parse_all()) != FALSE) {
584
+ self::span(crayon__('When no language is provided, use the fallback').': ');
585
+ self::dropdown(CrayonSettings::FALLBACK_LANG,FALSE,TRUE,TRUE,$langs);
 
 
586
  // Information about parsing
587
  $parsed = CrayonResources::langs()->is_parsed();
588
  $count = count($langs);
597
  echo '<br/><span class="crayon-error">', sprintf(crayon__('The selected language with id %s could not be loaded'), '<strong>'.$db_fallback.'</strong>'), '. </span>';
598
  }
599
  // Language parsing info
600
+ echo CRAYON_BR, '<div id="crayon-subsection-lang-info"><div><a id="show-lang" class="button-primary" onclick="CrayonSyntaxAdmin.show_langs(\'', plugins_url(CRAYON_LIST_LANGS_PHP, __FILE__),
601
  '\');">', crayon__('Show Languages'), '</a></div></div>';
602
  } else {
603
  echo 'No languages could be parsed.';
604
  }
605
  }
606
  }
 
 
 
 
 
 
 
 
607
 
608
+ public static function theme($editor = FALSE) {
609
  $db_theme = self::$options[CrayonSettings::THEME]; // Theme name from db
610
  if (!array_key_exists(CrayonSettings::THEME, self::$options)) {
611
  $db_theme = '';
612
  }
613
+ $themes_array = CrayonResources::themes()->get_array();
614
+ self::dropdown(CrayonSettings::THEME,FALSE,TRUE,TRUE,$themes_array);
615
+ if ($editor) {
616
+ return;
 
 
617
  }
 
618
  // Theme editor
619
  if (CRAYON_THEME_EDITOR) {
620
  echo '<a id="crayon-theme-editor-button" class="button-primary crayon-admin-button" loading="'. crayon__('Loading...') .'" loaded="'. crayon__('Theme Editor') .'" >'. crayon__('Theme Editor') .'</a></br>';
621
  }
622
  // Preview Box
623
+ echo '<div id="crayon-live-preview" url="', plugins_url(CRAYON_PREVIEW_PHP, __FILE__), '"></div>';
624
+ echo '<div id="crayon-preview-info">';
625
  printf(crayon__('Change the %1$sfallback language%2$s to change the sample code. Lines 5-7 are marked.'), '<a href="#langs">', '</a>');
626
+ echo '</div>';
627
  // Preview checkbox
628
  echo '<div style="height:10px;"></div>';
629
  self::checkbox(array(CrayonSettings::PREVIEW, crayon__('Enable Live Preview')), FALSE, FALSE);
630
  echo '</select><span class="crayon-span-10"></span>';
631
+ self::checkbox(array(CrayonSettings::ENQUEUE_THEMES, crayon__('Enqueue themes in the header (more efficient).') . ' <a href="http://bit.ly/zTUAQV" target="_blank" class="crayon-question">' . crayon__('?') . '</a>'));
632
  // Check if theme from db is loaded
633
  if (!CrayonResources::themes()->is_loaded($db_theme) || !CrayonResources::themes()->exists($db_theme)) {
634
  echo '<span class="crayon-error">', sprintf(crayon__('The selected theme with id %s could not be loaded'), '<strong>'.$db_theme.'</strong>'), '. </span>';
635
  }
636
  }
637
 
638
+ public static function font($editor = FALSE) {
639
  $db_font = self::$options[CrayonSettings::FONT]; // Theme name from db
640
  if (!array_key_exists(CrayonSettings::FONT, self::$options)) {
641
  $db_font = '';
642
  }
643
+ $fonts_array = CrayonResources::fonts()->get_array();
644
+ self::dropdown(CrayonSettings::FONT,FALSE,TRUE,TRUE,$fonts_array);
645
+ echo '<span class="crayon-span-10"></span>';
 
 
 
 
 
 
646
  self::checkbox(array(CrayonSettings::FONT_SIZE_ENABLE, crayon__('Custom Font Size').' '), FALSE);
647
+ self::textbox(array('id' => CrayonSettings::FONT_SIZE, 'size' => 2));
648
  echo '<span class="crayon-span-margin">', crayon__('Pixels'), '</span></br>';
649
+ if ((!CrayonResources::fonts()->is_loaded($db_font) || !CrayonResources::fonts()->exists($db_font))) {
650
  // Default font doesn't actually exist as a file, it means do not override default theme font
651
  echo '<span class="crayon-error">', sprintf(crayon__('The selected font with id %s could not be loaded'), '<strong>'.$db_font.'</strong>'), '. </span><br/>';
652
  }
653
+ if ($editor) {
654
+ return;
655
+ }
656
  echo '<div style="height:10px;"></div>';
657
+ self::checkbox(array(CrayonSettings::ENQUEUE_FONTS, crayon__('Enqueue fonts in the header (more efficient).') . ' <a href="http://bit.ly/zTUAQV" target="_blank" class="crayon-question">' . crayon__('?') . '</a>'));
658
  }
659
 
660
+ public static function code($editor = FALSE) {
661
+ echo '<div id="crayon-section-code-interaction" class="crayon-hide-inline-only">';
662
  self::checkbox(array(CrayonSettings::PLAIN, crayon__('Enable plain code view and display').' '), FALSE);
663
  self::dropdown(CrayonSettings::SHOW_PLAIN);
664
+ echo '<span id="crayon-subsection-copy-check">';
665
  self::checkbox(array(CrayonSettings::PLAIN_TOGGLE, crayon__('Enable plain code toggling')));
666
  self::checkbox(array(CrayonSettings::SHOW_PLAIN_DEFAULT, crayon__('Show the plain code by default')));
667
  self::checkbox(array(CrayonSettings::COPY, crayon__('Enable code copy/paste')));
668
  echo '</span>';
669
  self::checkbox(array(CrayonSettings::POPUP, crayon__('Enable opening code in a window')));
670
  self::checkbox(array(CrayonSettings::SCROLL, crayon__('Always display scrollbars')));
671
+ self::span(crayon__('Tab size in spaces').': ');
672
+ self::textbox(array('id' => CrayonSettings::TAB_SIZE, 'size' => 2, 'break' => TRUE));
673
+ echo '</div>';
674
+
675
+ if (!$editor) {
676
+ self::checkbox(array(CrayonSettings::DECODE, crayon__('Decode HTML entities in code')));
677
+ }
678
+ self::checkbox(array(CrayonSettings::DECODE_ATTRIBUTES, crayon__('Decode HTML entities in attributes')));
679
+ echo '<div class="crayon-hide-inline-only">';
680
  self::checkbox(array(CrayonSettings::TRIM_WHITESPACE, crayon__('Remove whitespace surrounding the shortcode content')));
681
+ echo '</div>';
682
+ self::checkbox(array(CrayonSettings::MIXED, crayon__('Allow Mixed Language Highlighting with delimiters and tags.') . ' <a href="http://bit.ly/ukwts2" target="_blank" class="crayon-question">' . crayon__('?') . '</a>'));
683
+ echo '<div class="crayon-hide-inline-only">';
684
  self::checkbox(array(CrayonSettings::SHOW_MIXED, crayon__('Show Mixed Language Icon (+)')));
685
+ echo '</div>';
686
  }
687
 
688
  public static function tags() {
689
+ self::checkbox(array(CrayonSettings::CAPTURE_MINI_TAG, crayon__('Capture Mini Tags like [php][/php] as Crayons.') . ' <a href="http://bit.ly/rRZuzk" target="_blank" class="crayon-question">' . crayon__('?') . '</a>'));
690
+ self::checkbox(array(CrayonSettings::INLINE_TAG, crayon__('Capture Inline Tags like {php}{/php} inside sentences.') . ' <a href="http://bit.ly/yFafFL" target="_blank" class="crayon-question">' . crayon__('?') . '</a>'));
691
+ self::checkbox(array(CrayonSettings::INLINE_WRAP, crayon__('Wrap Inline Tags') . ' <a href="http://bit.ly/yFafFL" target="_blank" class="crayon-question">' . crayon__('?') . '</a>'));
692
+ self::checkbox(array(CrayonSettings::BACKQUOTE, crayon__('Capture `backquotes` as &lt;code&gt;') . ' <a href="http://bit.ly/yFafFL" target="_blank" class="crayon-question">' . crayon__('?') . '</a>'));
693
+ self::checkbox(array(CrayonSettings::CAPTURE_PRE, crayon__('Capture &lt;pre&gt; tags as Crayons') . ' <a href="http://bit.ly/rRZuzk" target="_blank" class="crayon-question">' . crayon__('?') . '</a>'));
694
+ self::checkbox(array(CrayonSettings::PLAIN_TAG, crayon__('Enable [plain][/plain] tag.') . ' <a href="http://bit.ly/rRZuzk" target="_blank" class="crayon-question">' . crayon__('?') . '</a>'));
695
  }
696
 
697
  public static function files() {
698
  echo '<a name="files"></a>';
699
  echo crayon__('When loading local files and a relative path is given for the URL, use the absolute path'),': ',
700
  '<div style="margin-left: 20px">', home_url(), '/';
701
+ self::textbox(array('id' => CrayonSettings::LOCAL_PATH));
702
  echo '</div>', crayon__('Followed by your relative URL.');
703
  }
704
+
705
+ public static function tag_editor() {
706
+ $sep = sprintf(crayon__('Use %s to separate setting names from values in the &lt;pre&gt; class attribute'),
707
+ self::dropdown(CrayonSettings::ATTR_SEP, FALSE, FALSE, FALSE));
708
+ echo '<span>', $sep, ' <a href="http://bit.ly/H3xW3D" target="_blank" class="crayon-question">' . crayon__('?') . '</a>', '</span>';
709
+ }
710
 
711
  public static function misc() {
712
  echo crayon__('Clear the cache used to store remote code requests'),': ';
713
  self::dropdown(CrayonSettings::CACHE, false);
714
  echo '<input type="submit" id="crayon-cache-clear" name="crayon-cache-clear" class="button-secondary" value="', crayon__('Clear Now'), '" /><br/>';
715
+ self::checkbox(array(CrayonSettings::EFFICIENT_ENQUEUE, crayon__('Attempt to load Crayon\'s CSS and JavaScript only when needed').'. <a href="http://ak.net84.net/?p=660" target="_blank" class="crayon-question">'.crayon__('?').'</a>'));
716
+ self::checkbox(array(CrayonSettings::SAFE_ENQUEUE, crayon__('Disable enqueuing for page templates that may contain The Loop.') . ' <a href="http://bit.ly/AcWRNY" target="_blank" class="crayon-question">' . crayon__('?') . '</a>'));
717
  self::checkbox(array(CrayonSettings::COMMENTS, crayon__('Allow Crayons inside comments')));
718
  self::checkbox(array(CrayonSettings::MAIN_QUERY, crayon__('Load Crayons only from the main Wordpress query')));
719
  self::checkbox(array(CrayonSettings::TOUCHSCREEN, crayon__('Disable mouse gestures for touchscreen devices (eg. MouseOver)')));
728
  self::checkbox(array(CrayonSettings::ERROR_LOG, crayon__('Log errors for individual Crayons')));
729
  self::checkbox(array(CrayonSettings::ERROR_LOG_SYS, crayon__('Log system-wide errors')));
730
  self::checkbox(array(CrayonSettings::ERROR_MSG_SHOW, crayon__('Display custom message for errors')));
731
+ self::textbox(array('id' => CrayonSettings::ERROR_MSG, 'size' => 60, 'margin' => TRUE));
732
  }
733
 
734
  public static function log() {
764
  $date = $CRAYON_DATE;
765
  $developer = '<strong>'.crayon__('Developer').':</strong> ' . '<a href="'.$CRAYON_AUTHOR_SITE.'" target="_blank">' . $CRAYON_AUTHOR . '</a>';
766
  $translators = '<strong>'.crayon__('Translators').':</strong> ' .
767
+ 'Chinese (<a href="http://smerpup.com/" target="_blank">Dezhi Liu</a>, <a href="http://neverno.me/" target="_blank">Jash Yin</a>),
768
  German (<a href="http://www.technologyblog.de/" target="_blank">Stephan Knau&#223;</a>),
769
+ Lithuanian (<a href="http://www.host1free.com" target="_blank">Vincent G</a>),
770
  Japanese (<a href="https://twitter.com/#!/west_323" target="_blank">@west_323</a>),
771
  Russian (<a href="http://simplelib.com/" target="_blank">Minimus</a>, <a href="http://atlocal.net/" target="_blank">Di_Skyer</a>),
772
  Turkish (<a href="http://kazancexpert.com" target="_blank">Hakan</a>)';
crayon_wp.class.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Crayon Syntax Highlighter
4
  Plugin URI: http://ak.net84.net/projects/crayon-syntax-highlighter
5
  Description: Supports multiple languages, themes, highlighting from a URL, local file or post text.
6
- Version: 1.8.3
7
  Author: Aram Kocharyan
8
  Author URI: http://ak.net84.net/
9
  Text Domain: crayon-syntax-highlighter
@@ -25,6 +25,7 @@ License: GPL2
25
  */
26
  require_once ('global.php');
27
  require_once (CRAYON_HIGHLIGHTER_PHP);
 
28
  require_once ('crayon_settings_wp.class.php');
29
 
30
  if (defined('ABSPATH')) {
@@ -51,27 +52,31 @@ class CrayonWP {
51
  private static $wp_head = FALSE;
52
  // Used to keep Crayon IDs
53
  private static $next_id = 0;
54
- // Array of tag search strings
55
- private static $search_tags = array('[crayon', '<pre', '[plain');
56
  // String to store the regex for capturing mini tags
57
  private static $alias_regex = '';
58
- private static $is_special_tag_init = FALSE;
 
59
 
60
  // Used to detect the shortcode
61
- const REGEX_CLOSED = '(?:\[crayon(?:-(\w+))?\b([^\]]*)/\])'; // [crayon atts="" /]
62
- const REGEX_TAG = '(?:\[crayon(?:-(\w+))?\b([^\]]*)\][\r\n]*?(.*?)[\r\n]*?\[/crayon\])'; // [crayon atts=""] ... [/crayon]
 
63
 
64
- const REGEX_CLOSED_NO_CAPTURE = '(?:\[crayon\b[^\]]*/\])';
65
- const REGEX_TAG_NO_CAPTURE = '(?:\[crayon\b[^\]]*\][\r\n]*?.*?[\r\n]*?\[/crayon\])';
66
 
67
- const REGEX_QUICK_CAPTURE = '(?:\[crayon[^\]]*\].*?\[/crayon\])|(?:\[crayon[^\]]*/\])';
68
 
69
- const REGEX_BETWEEN_PARAGRAPH = '<p[^<]*>(?:[^<]*<(?!/?p(\s+[^>]*)?>)[^>]+(\s+[^>]*)?>)*[^<]*((?:\[crayon[^\]]*\].*?\[/crayon\])|(?:\[crayon[^\]]*/\]))(?:[^<]*<(?!/?p(\s+[^>]*)?>)[^>]+(\s+[^>]*)?>)*[^<]*</p[^<]*>';
70
  const REGEX_BETWEEN_PARAGRAPH_SIMPLE = '(<p(?:\s+[^>]*)?>)(.*?)(</p(?:\s+[^>]*)?>)';
71
- const REGEX_BR_BEFORE = '<br\s*/?>\s*(\[crayon)';
72
- const REGEX_BR_AFTER = '(\[/crayon\])\s*<br\s*/?>';
73
 
74
- const REGEX_ID = '#(?<!\$)\[crayon#i';
 
 
 
 
 
 
75
 
76
  const MODE_NORMAL = 0, MODE_JUST_CODE = 1, MODE_PLAIN_CODE = 2;
77
 
@@ -80,15 +85,16 @@ class CrayonWP {
80
  private function __construct() {}
81
 
82
  public static function regex() {
83
- return '#(?<!\$)(?:'. self::REGEX_CLOSED .'|'. self::REGEX_TAG .')(?!\$)#s';
84
  }
85
 
86
  public static function regex_with_id($id) {
87
- return '#(?<!\$)(?:(?:\[crayon-'.$id.'\b[^\]]*/\])|(?:\[crayon-'.$id.'\b[^\]]*\][\r\n]*?.*?[\r\n]*?\[/crayon\]))(?!\$)#s';
 
88
  }
89
 
90
  public static function regex_no_capture() {
91
- return '#(?<!\$)(?:'. self::REGEX_CLOSED_NO_CAPTURE .'|'. self::REGEX_TAG_NO_CAPTURE .')(?!\$)#s';
92
  }
93
 
94
  /**
@@ -101,13 +107,15 @@ class CrayonWP {
101
  // Load attributes from shortcode
102
  $allowed_atts = array('url' => NULL, 'lang' => NULL, 'title' => NULL, 'mark' => NULL, 'inline' => NULL);
103
  $filtered_atts = shortcode_atts($allowed_atts, $atts);
104
- $filtered_atts['lang'] = strtolower($filtered_atts['lang']);
105
 
106
  // Clean attributes
107
  $keys = array_keys($filtered_atts);
108
  for ($i = 0; $i < count($keys); $i++) {
109
  $key = $keys[$i];
110
- $filtered_atts[$key] = trim(strip_tags($filtered_atts[$key]));
 
 
 
111
  }
112
 
113
  // Contains all other attributes not found in allowed, used to override global settings
@@ -116,23 +124,19 @@ class CrayonWP {
116
  $extra_attr = array_diff_key($atts, $allowed_atts);
117
  $extra_attr = CrayonSettings::smart_settings($extra_attr);
118
  }
119
- $lang = $title = $mark = $inline = '';
120
  extract($filtered_atts);
121
 
122
  $crayon = self::instance($extra_attr, $id);
123
 
124
  // Set URL
125
- $url = isset($url) ? $url : '';
126
- if (!empty($url)) {
127
- $crayon->url($url);
128
- }
129
- if (!empty($content)) {
130
- $crayon->code($content);
131
- }
132
  // Set attributes, should be set after URL to allow language auto detection
133
  $crayon->language($lang);
134
  $crayon->title($title);
135
  $crayon->marked($mark);
 
136
  $crayon->is_inline($inline);
137
 
138
  // Determine if we should highlight
@@ -162,6 +166,8 @@ class CrayonWP {
162
 
163
  /* Uses the main query */
164
  public static function wp() {
 
 
165
  global $wp_the_query;
166
  $posts = $wp_the_query->posts;
167
  self::the_posts($posts);
@@ -171,58 +177,57 @@ class CrayonWP {
171
  // Will contain captured crayons and altered $wp_content
172
  $capture = array('capture' => array(), 'content' => $wp_content, 'has_captured' => FALSE);
173
 
174
- // If we get query for a page, then that page might have a template and load more posts containing Crayons
175
- // By this state, we would be unable to enqueue anything (header already written).
176
- if (CrayonGlobalSettings::val(CrayonSettings::SAFE_ENQUEUE) && is_page($wp_id)) {
177
- CrayonGlobalSettings::set(CrayonSettings::ENQUEUE_THEMES, false);
178
- CrayonGlobalSettings::set(CrayonSettings::ENQUEUE_FONTS, false);
179
- }
180
-
181
- // To improve efficiency, avoid complicated regex with a simple check first
182
- if (CrayonUtil::strposa($wp_content, self::$search_tags, TRUE) === FALSE) {
183
- return $capture;
184
- }
185
 
186
  // Convert <pre> tags to crayon tags, if needed
187
  if (CrayonGlobalSettings::val(CrayonSettings::CAPTURE_PRE)) {
188
  // XXX This will fail if <pre></pre> is used inside another <pre></pre>
189
- $wp_content = preg_replace('#(?<!\$)<pre([^\>]*)>(.*?)</pre>(?!\$)#msi', '[crayon\1]\2[/crayon]', $wp_content);
190
  }
191
 
192
  // Convert mini [php][/php] tags to crayon tags, if needed
193
  if (CrayonGlobalSettings::val(CrayonSettings::CAPTURE_MINI_TAG)) {
194
- $wp_content = preg_replace('#(?<!\$)\[('.self::$alias_regex.')([^\]]*)\](.*?)\[/(?:\1)\](?!\$)#msi', '[crayon lang="\1" \2]\3[/crayon]', $wp_content);
 
195
  }
196
 
197
  // Convert inline {php}{/php} tags to crayon tags, if needed
198
  if (CrayonGlobalSettings::val(CrayonSettings::INLINE_TAG)) {
199
- $wp_content = preg_replace('#(?<!\$)\{('.self::$alias_regex.')([^\}]*)\}(.*?)\{/(?:\1)\}(?!\$)#msi', '[crayon lang="\1" inline="true" \2]\3[/crayon]', $wp_content);
 
 
200
  }
201
 
202
  // Convert [plain] tags into <pre><code></code></pre>, if needed
203
  if (CrayonGlobalSettings::val(CrayonSettings::PLAIN_TAG)) {
204
- $wp_content = preg_replace_callback('#(?<!\$)\[plain\](.*?)\[/plain\]#msi', 'CrayonFormatter::plain_code', $wp_content);
205
  }
206
 
207
  // Convert `` backquote tags into <code></code>, if needed
208
  if (CrayonGlobalSettings::val(CrayonSettings::BACKQUOTE)) {
209
- $wp_content = preg_replace('#(?<!\\\\)`(.*?)`#msi', '<code>\1</code>', $wp_content);
210
  }
211
 
212
  // Add IDs to the Crayons
 
213
  $wp_content = preg_replace_callback(self::REGEX_ID, 'CrayonWP::add_crayon_id', $wp_content);
 
214
 
215
  // Only include if a post exists with Crayon tag
216
  preg_match_all(self::regex(), $wp_content, $matches);
217
 
218
  // We need to escape ignored Crayons, since they won't be captured
219
- $capture['content'] = self::crayon_remove_ignore($wp_content);
 
220
 
221
  if ( count($matches[0]) != 0 ) {
 
222
  // Crayons found! Load settings first to ensure global settings loaded
223
  CrayonSettingsWP::load_settings();
224
  $capture['has_captured'] = TRUE;
225
 
 
 
226
  $full_matches = $matches[0];
227
  $closed_ids = $matches[1];
228
  $closed_atts = $matches[2];
@@ -245,7 +250,6 @@ class CrayonWP {
245
 
246
  // Capture attributes
247
  preg_match_all('#([^="\'\s]+)[\t ]*=[\t ]*("|\')(.*?)\2#', $atts, $att_matches);
248
-
249
  $atts_array = array();
250
  if ( count($att_matches[0]) != 0 ) {
251
  for ($j = 0; $j < count($att_matches[1]); $j++) {
@@ -287,6 +291,7 @@ class CrayonWP {
287
  $font_id = CrayonFonts::DEFAULT_FONT;
288
  }
289
  }
 
290
  // If font is now valid, change the array
291
  if ($font/* != NULL && $font_id != CrayonFonts::DEFAULT_FONT*/) {
292
  $atts_array[CrayonSettings::FONT] = $font_id;
@@ -297,10 +302,17 @@ class CrayonWP {
297
  $id = !empty($open_ids[$i]) ? $open_ids[$i] : $closed_ids[$i];
298
  $code = self::crayon_remove_ignore($contents[$i]);
299
  $capture['capture'][$id] = array('post_id'=>$wp_id, 'atts'=>$atts_array, 'code'=>$code);
 
 
 
 
 
300
  }
301
 
302
  }
303
 
 
 
304
  return $capture;
305
  }
306
 
@@ -312,26 +324,46 @@ class CrayonWP {
312
  $enqueue = FALSE;
313
  CrayonSettingsWP::load_settings(TRUE); // Load just the settings from db, for now
314
 
315
- self::init_special_tags();
 
316
 
317
  // Search for shortcode in posts
318
  foreach ($posts as $post) {
 
 
 
 
 
 
 
 
 
 
 
 
319
  $id_str = strval($post->ID);
320
- if ( isset(self::$post_queue[$id_str]) ) {
 
321
  // Don't capture twice
 
 
 
 
322
  continue;
323
  }
324
  // Capture post Crayons
325
  $captures = self::capture_crayons($post->ID, $post->post_content);
326
- self::$post_queue[$id_str] = array();
327
- foreach ($captures['capture'] as $capture_id=>$capture_content) {
328
- self::$post_queue[$id_str][$capture_id] = $capture_content;
329
- }
330
- // TODO improve by using capture, but careful not to undo changes by other plugins
331
  $post->post_content = $captures['content'];
 
332
  if ($captures['has_captured'] === TRUE) {
333
- self::$post_captures[$id_str] = $captures['content'];
334
- }
 
 
 
 
335
 
336
  // Search for shortcode in comments
337
  if (CrayonGlobalSettings::val(CrayonSettings::COMMENTS)) {
@@ -346,6 +378,8 @@ class CrayonWP {
346
  $captures = self::capture_crayons($comment->comment_ID, $comment->comment_content);
347
  self::$comment_captures[$id_str] = $captures['content'];
348
  if ($captures['has_captured'] === TRUE) {
 
 
349
  foreach ($captures['capture'] as $capture_id=>$capture_content) {
350
  self::$comment_queue[$id_str][$capture_id] = $capture_content;
351
  }
@@ -358,12 +392,14 @@ class CrayonWP {
358
  // Crayons have been found and we enqueue efficiently
359
  self::enqueue_resources();
360
  }
361
-
362
  return $posts;
363
  }
364
 
365
  private static function add_crayon_id($content) {
366
- return $content[0].'-'.uniqid();
 
 
367
  }
368
 
369
  private static function get_crayon_id() {
@@ -376,47 +412,67 @@ class CrayonWP {
376
  global $CRAYON_VERSION;
377
  wp_enqueue_style('crayon-style', plugins_url(CRAYON_STYLE, __FILE__), array(), $CRAYON_VERSION);
378
  //wp_enqueue_script('crayon-jquery', plugins_url(CRAYON_JQUERY, __FILE__), array(), $CRAYON_VERSION);
379
- wp_enqueue_script('crayon-js', plugins_url(CRAYON_JS, __FILE__), array('jquery'), $CRAYON_VERSION);
 
380
  wp_enqueue_script('crayon-jquery-popup', plugins_url(CRAYON_JQUERY_POPUP, __FILE__), array('jquery'), $CRAYON_VERSION);
381
  self::$enqueued = TRUE;
382
  }
383
 
384
- private static function init_special_tags() {
385
- if (!self::$is_special_tag_init &&
386
- ( CrayonGlobalSettings::val(CrayonSettings::CAPTURE_MINI_TAG) ||
387
- CrayonGlobalSettings::val(CrayonSettings::INLINE_TAG) )
388
- ) {
389
- $aliases = CrayonResources::langs()->ids_and_aliases();
390
- for ($i = 0; $i < count($aliases); $i++) {
391
- $alias = $aliases[$i];
392
- // Support for both block and inline tags
393
- self::$search_tags[] = '[' . $alias;
394
- self::$search_tags[] = '{' . $alias;
395
-
396
- $alias_regex = CrayonUtil::esc_hash(CrayonUtil::esc_regex($alias));
397
- if ($i != count($aliases) - 1) {
398
- $alias_regex .= '|';
399
- }
400
- self::$alias_regex .= $alias_regex;
 
 
 
 
 
 
 
 
401
  }
402
- // Add plain and backquote
403
- self::$search_tags[] = '[plain';
404
- self::$search_tags[] = '`';
405
- self::$is_special_tag_init = TRUE;
 
 
 
 
406
  }
407
  }
408
 
409
  // Add Crayon into the_content
410
  public static function the_content($the_content) {
411
- CrayonLog::debug('the_content');
 
 
 
 
 
 
412
 
413
  global $post;
414
- // Go through queued posts and find crayons
 
415
  $post_id = strval($post->ID);
416
 
417
  if (self::$is_excerpt) {
418
  // Remove Crayon from content if we are displaying an excerpt
419
- $excerpt = preg_replace(self::regex_no_capture(), '', $the_content);
420
  return $excerpt;
421
  }
422
 
@@ -424,9 +480,8 @@ class CrayonWP {
424
  if ( array_key_exists($post_id, self::$post_queue) ) {
425
  // XXX We want the plain post content, no formatting
426
  $the_content_original = $the_content;
427
- // Replace with IDs now that we need to
428
- // TODO may replace text changed by other plugins, so not using for now
429
- // $the_content = self::$post_captures[$post_id];
430
  // Loop through Crayons
431
  $post_in_queue = self::$post_queue[$post_id];
432
  foreach ($post_in_queue as $id=>$v) {
@@ -440,12 +495,10 @@ class CrayonWP {
440
  // Apply shortcode to the content
441
  $crayon_formatted = $crayon->output(TRUE, FALSE);
442
  }
443
- // Replacing may cause <p> tags to become disjoint with a <div> inside them, close and reopen them if needed
444
- if (!$crayon->is_inline()) {
445
- $the_content = preg_replace_callback('#' . self::REGEX_BETWEEN_PARAGRAPH_SIMPLE . '#msi', 'CrayonWP::add_paragraphs', $the_content);
446
- }
447
  // Replace the code with the Crayon
 
448
  $the_content = CrayonUtil::preg_replace_escape_back(self::regex_with_id($id), $crayon_formatted, $the_content, 1, $count);
 
449
  }
450
  }
451
 
@@ -456,13 +509,15 @@ class CrayonWP {
456
  global $comment;
457
  $comment_id = strval($comment->comment_ID);
458
  // Find if this post has Crayons
 
 
 
 
459
  if ( array_key_exists($comment_id, self::$comment_queue) ) {
460
  // XXX We want the plain post content, no formatting
461
  $the_content_original = $text;
462
  // Loop through Crayons
463
  $post_in_queue = self::$comment_queue[$comment_id];
464
- // Replace with IDs now that we need to
465
- $text = self::$comment_captures[$comment_id];
466
 
467
  foreach ($post_in_queue as $id=>$v) {
468
  $atts = $v['atts'];
@@ -482,34 +537,18 @@ class CrayonWP {
482
 
483
  public static function add_paragraphs($capture) {
484
  if (count($capture) != 4) {
 
485
  return $capture[0];
486
  }
487
-
488
- // Remove <br/>
489
- $capture[2] = preg_replace('#' . self::REGEX_BR_BEFORE . '#msi', '$1', $capture[2]);
490
- $capture[2] = preg_replace('#' . self::REGEX_BR_AFTER . '#msi', '$1', $capture[2]);
491
- // Add <p>
492
- $capture[2] = trim($capture[2]);
493
-
494
- if (stripos($capture[2], '[crayon') !== 0) {
495
- $capture[2] = preg_replace('#(\[crayon)#msi', '</p>$1', $capture[2]);
496
- } else {
497
- $capture[1] = '';
498
- }
499
-
500
- if ( stripos($capture[2], '[/crayon]') !== strlen($capture[2]) - strlen('[/crayon]') ) {
501
- $capture[2] = preg_replace('#(\[/crayon\])#msi', '$1<p>', $capture[2]);
502
- } else {
503
- $capture[3] = '';
504
- }
505
-
506
- return $capture[1].$capture[2].$capture[3];
507
  }
508
 
509
  // Remove Crayons from the_excerpt
510
  public static function the_excerpt($the_excerpt) {
511
  CrayonLog::debug('excerpt');
512
-
513
  self::$is_excerpt = TRUE;
514
  global $post;
515
  if (!empty($post->post_excerpt)) {
@@ -520,12 +559,76 @@ class CrayonWP {
520
  $the_excerpt = wpautop(wp_trim_excerpt(''));
521
  }
522
  self::$is_excerpt = FALSE;
523
- return $the_excerpt;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
524
  }
525
 
526
  // Check if the $[crayon]...[/crayon] notation has been used to ignore [crayon] tags within posts
527
  public static function crayon_remove_ignore($the_content) {
528
- $the_content = str_ireplace(array('$[crayon', 'crayon]$'), array('[crayon', 'crayon]'), $the_content);
 
 
 
 
 
529
  if (CrayonGlobalSettings::val(CrayonSettings::CAPTURE_PRE)) {
530
  $the_content = str_ireplace(array('$<pre', 'pre>$'), array('<pre', 'pre>'), $the_content);
531
  }
@@ -534,9 +637,9 @@ class CrayonWP {
534
  }
535
  if (CrayonGlobalSettings::val(CrayonSettings::CAPTURE_MINI_TAG) ||
536
  CrayonGlobalSettings::val(CrayonSettings::INLINE_TAG)) {
537
- self::init_special_tags();
538
- $the_content = preg_replace('#\$([\[\{])('. self::$alias_regex .')#', '$1$2', $the_content);
539
- $the_content = preg_replace('#('. self::$alias_regex .')([\[\{])\$#', '$1$2', $the_content);
540
  }
541
  if (CrayonGlobalSettings::val(CrayonSettings::BACKQUOTE)) {
542
  $the_content = str_ireplace('\\`', '`', $the_content);
@@ -549,9 +652,11 @@ class CrayonWP {
549
 
550
  self::$wp_head = TRUE;
551
  if (!self::$enqueued) {
 
552
  // We have missed our chance to check before enqueuing. Use setting to either load always or only in the_post
553
  CrayonSettingsWP::load_settings(TRUE); // Ensure settings are loaded
554
  if (!CrayonGlobalSettings::val(CrayonSettings::EFFICIENT_ENQUEUE)) {
 
555
  // Efficient enqueuing disabled, always load despite enqueuing or not in the_post
556
  self::enqueue_resources();
557
  }
@@ -566,6 +671,20 @@ class CrayonWP {
566
  }
567
  }
568
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
569
  public static function crayon_theme_css() {
570
  global $CRAYON_VERSION;
571
  $css = CrayonResources::themes()->get_used_css();
@@ -578,9 +697,7 @@ class CrayonWP {
578
  global $CRAYON_VERSION;
579
  $css = CrayonResources::fonts()->get_used_css();
580
  foreach ($css as $font_id=>$url) {
581
- // if ($font_id != CrayonFonts::DEFAULT_FONT) {
582
- wp_enqueue_style('crayon-font-'.$font_id, $url, array(), $CRAYON_VERSION);
583
- // }
584
  }
585
  }
586
 
@@ -589,6 +706,19 @@ class CrayonWP {
589
  crayon_load_plugin_textdomain();
590
  }
591
 
 
 
 
 
 
 
 
 
 
 
 
 
 
592
  public static function install() {
593
  self::update();
594
  }
@@ -598,7 +728,7 @@ class CrayonWP {
598
  }
599
 
600
  public static function update() {
601
- // Upgrade database
602
  global $CRAYON_VERSION;
603
  $settings = CrayonSettingsWP::get_settings();
604
  if ($settings === NULL || !isset($settings[CrayonSettings::VERSION])) {
@@ -627,36 +757,47 @@ class CrayonWP {
627
 
628
  public static function basename() {
629
  return plugin_basename(__FILE__);
 
 
 
 
 
630
  }
631
 
632
  }
633
 
634
- // Only if WP is loaded
635
  if (defined('ABSPATH')) {
636
- register_activation_hook(__FILE__, 'CrayonWP::install');
637
- register_deactivation_hook(__FILE__, 'CrayonWP::uninstall');
638
-
639
- // Filters and Actions
640
- add_filter('init', 'CrayonWP::init');
641
-
642
- // TODO find a better way to handle updates
643
- CrayonWP::update();
644
- CrayonSettingsWP::load_settings(TRUE);
645
- if (CrayonGlobalSettings::val(CrayonSettings::MAIN_QUERY)) {
646
- add_action('wp', 'CrayonWP::wp');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
647
  } else {
648
- add_filter('the_posts', 'CrayonWP::the_posts');
649
- }
650
-
651
- // XXX Some themes like to play with the content, make sure we replace after they're done
652
- add_filter('the_content', 'CrayonWP::the_content', 100);
653
-
654
- if (CrayonGlobalSettings::val(CrayonSettings::COMMENTS)) {
655
- add_filter('comment_text', 'CrayonWP::comment_text', 100);
656
  }
657
-
658
- add_filter('the_excerpt', 'CrayonWP::the_excerpt');
659
- add_action('template_redirect', 'CrayonWP::wp_head');
660
  }
661
 
662
  ?>
3
  Plugin Name: Crayon Syntax Highlighter
4
  Plugin URI: http://ak.net84.net/projects/crayon-syntax-highlighter
5
  Description: Supports multiple languages, themes, highlighting from a URL, local file or post text.
6
+ Version: 1.9.0
7
  Author: Aram Kocharyan
8
  Author URI: http://ak.net84.net/
9
  Text Domain: crayon-syntax-highlighter
25
  */
26
  require_once ('global.php');
27
  require_once (CRAYON_HIGHLIGHTER_PHP);
28
+ require_once ('util/tag-editor/crayon_tag_editor_wp.class.php');
29
  require_once ('crayon_settings_wp.class.php');
30
 
31
  if (defined('ABSPATH')) {
52
  private static $wp_head = FALSE;
53
  // Used to keep Crayon IDs
54
  private static $next_id = 0;
 
 
55
  // String to store the regex for capturing mini tags
56
  private static $alias_regex = '';
57
+ private static $tags_regex = '';
58
+ private static $is_tags_regex_init = FALSE;
59
 
60
  // Used to detect the shortcode
61
+ const REGEX_CLOSED = '(?:\[\s*crayon(?:-(\w+))?\b([^\]]*)/\s*\])'; // [crayon atts="" /]
62
+ const REGEX_TAG = '(?:\[\s*crayon(?:-(\w+))?\b([^\]]*)\][\r\n]*?(.*?)[\r\n]*?\[\s*/\s*crayon\s*\])'; // [crayon atts=""] ... [/crayon]
63
+ const REGEX_INLINE_CLASS = '\bcrayon-inline\b';
64
 
65
+ const REGEX_CLOSED_NO_CAPTURE = '(?:\[\s*crayon\b[^\]]*/\])';
66
+ const REGEX_TAG_NO_CAPTURE = '(?:\[\s*crayon\b[^\]]*\][\r\n]*?.*?[\r\n]*?\[/crayon\])';
67
 
68
+ const REGEX_QUICK_CAPTURE = '(?:\[\s*crayon[^\]]*\].*?\[\s*/\s*crayon\s*\])|(?:\[\s*crayon[^\]]*/\s*\])';
69
 
70
+ const REGEX_BETWEEN_PARAGRAPH = '<p[^<]*>(?:[^<]*<(?!/?p(\s+[^>]*)?>)[^>]+(\s+[^>]*)?>)*[^<]*((?:\[\s*crayon[^\]]*\].*?\[\s*/\s*crayon\s*\])|(?:\[\s*crayon[^\]]*/\s*\]))(?:[^<]*<(?!/?p(\s+[^>]*)?>)[^>]+(\s+[^>]*)?>)*[^<]*</p[^<]*>';
71
  const REGEX_BETWEEN_PARAGRAPH_SIMPLE = '(<p(?:\s+[^>]*)?>)(.*?)(</p(?:\s+[^>]*)?>)';
 
 
72
 
73
+ // For [crayon-id/]
74
+ const REGEX_BR_BEFORE = '#<\s*br\s*/?\s*>\s*(\[\s*crayon-\w+\])#msi';
75
+ const REGEX_BR_AFTER = '#(\[\s*crayon-\w+\])\s*<\s*br\s*/?\s*>#msi';
76
+
77
+ const REGEX_ID = '#(?<!\$)\[\s*crayon#mi';
78
+ //const REGEX_WITH_ID = '#(\[\s*crayon-\w+)\b([^\]]*["\'])(\s*/?\s*\])#mi';
79
+ const REGEX_WITH_ID = '#\[\s*(crayon-\w+)\b[^\]]*\s*/\s*\]#mi';
80
 
81
  const MODE_NORMAL = 0, MODE_JUST_CODE = 1, MODE_PLAIN_CODE = 2;
82
 
85
  private function __construct() {}
86
 
87
  public static function regex() {
88
+ return '#(?<!\$)(?:'. self::REGEX_CLOSED .'|'. self::REGEX_TAG .')(?!\$)#msi';
89
  }
90
 
91
  public static function regex_with_id($id) {
92
+ return '#\[\s*(crayon-'.$id.')\b[^\]]*\]#msi';
93
+ //return '#(?<!\$)(?:(?:\[\s*crayon-'.$id.'\b[^\]]*/\s*\])|(?:\[\s*crayon-'.$id.'\b[^\]]*\][\r\n]*?.*?[\r\n]*?\[\s*/\s*crayon\s*\]))(?!\$)#msi';
94
  }
95
 
96
  public static function regex_no_capture() {
97
+ return '#(?<!\$)(?:'. self::REGEX_CLOSED_NO_CAPTURE .'|'. self::REGEX_TAG_NO_CAPTURE .')(?!\$)#msi';
98
  }
99
 
100
  /**
107
  // Load attributes from shortcode
108
  $allowed_atts = array('url' => NULL, 'lang' => NULL, 'title' => NULL, 'mark' => NULL, 'inline' => NULL);
109
  $filtered_atts = shortcode_atts($allowed_atts, $atts);
 
110
 
111
  // Clean attributes
112
  $keys = array_keys($filtered_atts);
113
  for ($i = 0; $i < count($keys); $i++) {
114
  $key = $keys[$i];
115
+ $value = $filtered_atts[$key];
116
+ if ($value !== NULL) {
117
+ $filtered_atts[$key] = trim(strip_tags($value));
118
+ }
119
  }
120
 
121
  // Contains all other attributes not found in allowed, used to override global settings
124
  $extra_attr = array_diff_key($atts, $allowed_atts);
125
  $extra_attr = CrayonSettings::smart_settings($extra_attr);
126
  }
127
+ $url = $lang = $title = $mark = $inline = '';
128
  extract($filtered_atts);
129
 
130
  $crayon = self::instance($extra_attr, $id);
131
 
132
  // Set URL
133
+ $crayon->url($url);
134
+ $crayon->code($content);
 
 
 
 
 
135
  // Set attributes, should be set after URL to allow language auto detection
136
  $crayon->language($lang);
137
  $crayon->title($title);
138
  $crayon->marked($mark);
139
+
140
  $crayon->is_inline($inline);
141
 
142
  // Determine if we should highlight
166
 
167
  /* Uses the main query */
168
  public static function wp() {
169
+ CrayonLog::debug('wp (global)');
170
+
171
  global $wp_the_query;
172
  $posts = $wp_the_query->posts;
173
  self::the_posts($posts);
177
  // Will contain captured crayons and altered $wp_content
178
  $capture = array('capture' => array(), 'content' => $wp_content, 'has_captured' => FALSE);
179
 
180
+ CrayonLog::debug('capture for id ' . $wp_id . ' len ' . strlen($wp_content));
 
 
 
 
 
 
 
 
 
 
181
 
182
  // Convert <pre> tags to crayon tags, if needed
183
  if (CrayonGlobalSettings::val(CrayonSettings::CAPTURE_PRE)) {
184
  // XXX This will fail if <pre></pre> is used inside another <pre></pre>
185
+ $wp_content = preg_replace_callback('#(?<!\$)<\s*pre(?=(?:([^>]*)\bclass\s*=\s*(["\'])(.*?)\2([^>]*))?)([^>]*)>(.*?)<\s*/\s*pre\s*>#msi', 'CrayonWP::pre_tag', $wp_content);
186
  }
187
 
188
  // Convert mini [php][/php] tags to crayon tags, if needed
189
  if (CrayonGlobalSettings::val(CrayonSettings::CAPTURE_MINI_TAG)) {
190
+ $wp_content = preg_replace('#(?<!\$)\[\s*('.self::$alias_regex.')\b([^\]]*)\](.*?)\[\s*/\s*(?:\1)\s*\](?!\$)#msi', '[crayon lang="\1" \2]\3[/crayon]', $wp_content);
191
+ $wp_content = preg_replace('#(?<!\$)\[\s*('.self::$alias_regex.')\b([^\]]*)/\s*\](?!\$)#msi', '[crayon lang="\1" \2 /]', $wp_content);
192
  }
193
 
194
  // Convert inline {php}{/php} tags to crayon tags, if needed
195
  if (CrayonGlobalSettings::val(CrayonSettings::INLINE_TAG)) {
196
+ $wp_content = preg_replace('#(?<!\$)\{\s*('.self::$alias_regex.')\b([^\}]*)\}(.*?)\{/(?:\1)\}(?!\$)#msi', '[crayon lang="\1" inline="true" \2]\3[/crayon]', $wp_content);
197
+ // Convert <span class="crayon-inline"> tags to inline crayon tags
198
+ $wp_content = preg_replace_callback('#(?<!\$)<\s*span([^>]*)\bclass\s*=\s*(["\'])(.*?)\2([^>]*)>(.*?)<\s*/\s*span\s*>#msi', 'CrayonWP::span_tag', $wp_content);
199
  }
200
 
201
  // Convert [plain] tags into <pre><code></code></pre>, if needed
202
  if (CrayonGlobalSettings::val(CrayonSettings::PLAIN_TAG)) {
203
+ $wp_content = preg_replace_callback('#(?<!\$)\[\s*plain\s*\](.*?)\[\s*/\s*plain\s*\]#msi', 'CrayonFormatter::plain_code', $wp_content);
204
  }
205
 
206
  // Convert `` backquote tags into <code></code>, if needed
207
  if (CrayonGlobalSettings::val(CrayonSettings::BACKQUOTE)) {
208
+ $wp_content = preg_replace('#(?<!\\\\)`([^`]*)`#msi', '<code>$1</code>', $wp_content);
209
  }
210
 
211
  // Add IDs to the Crayons
212
+ CrayonLog::debug('capture adding id ' . $wp_id . ' , now has len ' . strlen($wp_content));
213
  $wp_content = preg_replace_callback(self::REGEX_ID, 'CrayonWP::add_crayon_id', $wp_content);
214
+ CrayonLog::debug('capture added id ' . $wp_id . ' : ' . strlen($wp_content));
215
 
216
  // Only include if a post exists with Crayon tag
217
  preg_match_all(self::regex(), $wp_content, $matches);
218
 
219
  // We need to escape ignored Crayons, since they won't be captured
220
+ $wp_content = self::crayon_remove_ignore($wp_content);
221
+ CrayonLog::debug('capture ignore for id ' . $wp_id . ' : ' . strlen($capture['content']) . ' vs ' . strlen($wp_content));
222
 
223
  if ( count($matches[0]) != 0 ) {
224
+
225
  // Crayons found! Load settings first to ensure global settings loaded
226
  CrayonSettingsWP::load_settings();
227
  $capture['has_captured'] = TRUE;
228
 
229
+ CrayonLog::debug('CAPTURED FOR ID ' . $wp_id);
230
+
231
  $full_matches = $matches[0];
232
  $closed_ids = $matches[1];
233
  $closed_atts = $matches[2];
250
 
251
  // Capture attributes
252
  preg_match_all('#([^="\'\s]+)[\t ]*=[\t ]*("|\')(.*?)\2#', $atts, $att_matches);
 
253
  $atts_array = array();
254
  if ( count($att_matches[0]) != 0 ) {
255
  for ($j = 0; $j < count($att_matches[1]); $j++) {
291
  $font_id = CrayonFonts::DEFAULT_FONT;
292
  }
293
  }
294
+
295
  // If font is now valid, change the array
296
  if ($font/* != NULL && $font_id != CrayonFonts::DEFAULT_FONT*/) {
297
  $atts_array[CrayonSettings::FONT] = $font_id;
302
  $id = !empty($open_ids[$i]) ? $open_ids[$i] : $closed_ids[$i];
303
  $code = self::crayon_remove_ignore($contents[$i]);
304
  $capture['capture'][$id] = array('post_id'=>$wp_id, 'atts'=>$atts_array, 'code'=>$code);
305
+
306
+ CrayonLog::debug('capture finished for post id ' . $wp_id . ' crayon-id ' . $id . ' atts: ' . count($atts_array) . ' code: ' . strlen($code));
307
+
308
+ $is_inline = isset($atts_array['inline']) && CrayonUtil::str_to_bool($atts_array['inline'], FALSE) ? '-i' : '';
309
+ $wp_content = str_replace($full_matches[$i], '[crayon-'.$id.$is_inline.'/]', $wp_content);
310
  }
311
 
312
  }
313
 
314
+ $capture['content'] = $wp_content;
315
+
316
  return $capture;
317
  }
318
 
324
  $enqueue = FALSE;
325
  CrayonSettingsWP::load_settings(TRUE); // Load just the settings from db, for now
326
 
327
+ self::init_tags_regex();
328
+ $crayon_posts = CrayonSettingsWP::load_posts(); // Loads posts containing crayons
329
 
330
  // Search for shortcode in posts
331
  foreach ($posts as $post) {
332
+ if (!in_array($post->ID, $crayon_posts)) {
333
+ // If we get query for a page, then that page might have a template and load more posts containing Crayons
334
+ // By this state, we would be unable to enqueue anything (header already written).
335
+ if (CrayonGlobalSettings::val(CrayonSettings::SAFE_ENQUEUE) && is_page($wp_id)) {
336
+ CrayonGlobalSettings::set(CrayonSettings::ENQUEUE_THEMES, false);
337
+ CrayonGlobalSettings::set(CrayonSettings::ENQUEUE_FONTS, false);
338
+ } else {
339
+ // Only include crayon posts
340
+ continue;
341
+ }
342
+ }
343
+
344
  $id_str = strval($post->ID);
345
+
346
+ if ( isset(self::$post_captures[$id_str]) ) {
347
  // Don't capture twice
348
+ // XXX post->post_content is reset each loop, replace content
349
+ // Doing this might cause content changed by other plugins between the last loop
350
+ // to fail, so be cautious
351
+ $post->post_content = self::$post_captures[$id_str];
352
  continue;
353
  }
354
  // Capture post Crayons
355
  $captures = self::capture_crayons($post->ID, $post->post_content);
356
+ // XXX Careful not to undo changes by other plugins
357
+ // XXX Must replace to remove $ for ignored Crayons
 
 
 
358
  $post->post_content = $captures['content'];
359
+ self::$post_captures[$id_str] = $captures['content'];
360
  if ($captures['has_captured'] === TRUE) {
361
+ $enqueue = TRUE;
362
+ self::$post_queue[$id_str] = array();
363
+ foreach ($captures['capture'] as $capture_id=>$capture_content) {
364
+ self::$post_queue[$id_str][$capture_id] = $capture_content;
365
+ }
366
+ }
367
 
368
  // Search for shortcode in comments
369
  if (CrayonGlobalSettings::val(CrayonSettings::COMMENTS)) {
378
  $captures = self::capture_crayons($comment->comment_ID, $comment->comment_content);
379
  self::$comment_captures[$id_str] = $captures['content'];
380
  if ($captures['has_captured'] === TRUE) {
381
+ $enqueue = TRUE;
382
+ self::$comment_queue[$id_str] = array();
383
  foreach ($captures['capture'] as $capture_id=>$capture_content) {
384
  self::$comment_queue[$id_str][$capture_id] = $capture_content;
385
  }
392
  // Crayons have been found and we enqueue efficiently
393
  self::enqueue_resources();
394
  }
395
+
396
  return $posts;
397
  }
398
 
399
  private static function add_crayon_id($content) {
400
+ $uid = $content[0].'-'.uniqid();
401
+ CrayonLog::debug('add_crayon_id ' . $uid);
402
+ return $uid;
403
  }
404
 
405
  private static function get_crayon_id() {
412
  global $CRAYON_VERSION;
413
  wp_enqueue_style('crayon-style', plugins_url(CRAYON_STYLE, __FILE__), array(), $CRAYON_VERSION);
414
  //wp_enqueue_script('crayon-jquery', plugins_url(CRAYON_JQUERY, __FILE__), array(), $CRAYON_VERSION);
415
+ wp_enqueue_script('crayon_util_js', plugins_url(CRAYON_JS_UTIL, __FILE__), array('jquery'), $CRAYON_VERSION);
416
+ wp_enqueue_script('crayon-js', plugins_url(CRAYON_JS, __FILE__), array('jquery', 'crayon_util_js'), $CRAYON_VERSION);
417
  wp_enqueue_script('crayon-jquery-popup', plugins_url(CRAYON_JQUERY_POPUP, __FILE__), array('jquery'), $CRAYON_VERSION);
418
  self::$enqueued = TRUE;
419
  }
420
 
421
+ private static function init_tags_regex() {
422
+ if (!self::$is_tags_regex_init) {
423
+ if ( CrayonGlobalSettings::val(CrayonSettings::CAPTURE_MINI_TAG) ||
424
+ CrayonGlobalSettings::val(CrayonSettings::INLINE_TAG) ) {
425
+ $aliases = CrayonResources::langs()->ids_and_aliases();
426
+ for ($i = 0; $i < count($aliases); $i++) {
427
+ $alias = $aliases[$i];
428
+ $alias_regex = CrayonUtil::esc_hash(CrayonUtil::esc_regex($alias));
429
+ if ($i != count($aliases) - 1) {
430
+ $alias_regex .= '|';
431
+ }
432
+ self::$alias_regex .= $alias_regex;
433
+ }
434
+ }
435
+
436
+ // Add other tags
437
+ self::$tags_regex = '#(\s*\[\s*crayon\b)';
438
+ if (CrayonGlobalSettings::val(CrayonSettings::CAPTURE_MINI_TAG)) {
439
+ self::$tags_regex .= '|([\[]\s*('.self::$alias_regex.'))';
440
+ }
441
+ if (CrayonGlobalSettings::val(CrayonSettings::CAPTURE_PRE)) {
442
+ self::$tags_regex .= '|(<\s*pre\b)';
443
+ }
444
+ if (CrayonGlobalSettings::val(CrayonSettings::INLINE_TAG)) {
445
+ self::$tags_regex .= '|('.self::REGEX_INLINE_CLASS.')'.'|([\{]\s*('.self::$alias_regex.'))';
446
  }
447
+ if (CrayonGlobalSettings::val(CrayonSettings::PLAIN_TAG)) {
448
+ self::$tags_regex .= '|(\s*\[\s*plain\b)';
449
+ }
450
+ if (CrayonGlobalSettings::val(CrayonSettings::BACKQUOTE)) {
451
+ self::$tags_regex .= '|(`[^`]*`)';
452
+ }
453
+ self::$tags_regex .= '#msi';
454
+ self::$is_tags_regex_init = TRUE;
455
  }
456
  }
457
 
458
  // Add Crayon into the_content
459
  public static function the_content($the_content) {
460
+ CrayonLog::debug('the_content');
461
+
462
+ // Some themes make redundant queries and don't need extra work...
463
+ if (strlen($the_content) == 0) {
464
+ CrayonLog::debug('the_content blank');
465
+ return $the_content;
466
+ }
467
 
468
  global $post;
469
+
470
+ // Go through queued posts and find crayons
471
  $post_id = strval($post->ID);
472
 
473
  if (self::$is_excerpt) {
474
  // Remove Crayon from content if we are displaying an excerpt
475
+ $excerpt = preg_replace(self::REGEX_WITH_ID, '', $the_content);
476
  return $excerpt;
477
  }
478
 
480
  if ( array_key_exists($post_id, self::$post_queue) ) {
481
  // XXX We want the plain post content, no formatting
482
  $the_content_original = $the_content;
483
+ // Replacing may cause <p> tags to become disjoint with a <div> inside them, close and reopen them if needed
484
+ $the_content = preg_replace_callback('#' . self::REGEX_BETWEEN_PARAGRAPH_SIMPLE . '#msi', 'CrayonWP::add_paragraphs', $the_content);
 
485
  // Loop through Crayons
486
  $post_in_queue = self::$post_queue[$post_id];
487
  foreach ($post_in_queue as $id=>$v) {
495
  // Apply shortcode to the content
496
  $crayon_formatted = $crayon->output(TRUE, FALSE);
497
  }
 
 
 
 
498
  // Replace the code with the Crayon
499
+ CrayonLog::debug('the_content: id '.$post_id. ' has UID ' . $id . ' : ' . intval(stripos($the_content, $id) !== FALSE) );
500
  $the_content = CrayonUtil::preg_replace_escape_back(self::regex_with_id($id), $crayon_formatted, $the_content, 1, $count);
501
+ CrayonLog::debug('the_content: REPLACED for id '.$post_id. ' from len ' . strlen($the_content_original) . ' to ' . strlen($the_content));
502
  }
503
  }
504
 
509
  global $comment;
510
  $comment_id = strval($comment->comment_ID);
511
  // Find if this post has Crayons
512
+ if ( array_key_exists($comment_id, self::$comment_captures) ) {
513
+ // Replace with IDs now that we need to
514
+ $text = self::$comment_captures[$comment_id];
515
+ }
516
  if ( array_key_exists($comment_id, self::$comment_queue) ) {
517
  // XXX We want the plain post content, no formatting
518
  $the_content_original = $text;
519
  // Loop through Crayons
520
  $post_in_queue = self::$comment_queue[$comment_id];
 
 
521
 
522
  foreach ($post_in_queue as $id=>$v) {
523
  $atts = $v['atts'];
537
 
538
  public static function add_paragraphs($capture) {
539
  if (count($capture) != 4) {
540
+ CrayonLog::debug('add_paragraphs: 0');
541
  return $capture[0];
542
  }
543
+ $capture[2] = preg_replace('#(?:<\s*br\s*/\s*>\s*)?(\[\s*crayon-\w+/\])(?:<\s*br\s*/\s*>\s*)?#msi', '</p>$1<p>', $capture[2]);
544
+ // If [crayon appears right after <p> then we will generate <p></p>, remove all these
545
+ $paras = $capture[1].$capture[2].$capture[3];
546
+ return $paras;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
547
  }
548
 
549
  // Remove Crayons from the_excerpt
550
  public static function the_excerpt($the_excerpt) {
551
  CrayonLog::debug('excerpt');
 
552
  self::$is_excerpt = TRUE;
553
  global $post;
554
  if (!empty($post->post_excerpt)) {
559
  $the_excerpt = wpautop(wp_trim_excerpt(''));
560
  }
561
  self::$is_excerpt = FALSE;
562
+ // XXX Returning "" may cause it to default to full contents...
563
+ return $the_excerpt . ' ';
564
+ }
565
+
566
+ // Refactored, used to capture pre and span tags which have settings in class attribute
567
+ public static function class_tag($matches) {
568
+ // If class exists, atts is not captured
569
+ $pre_class = $matches[1];
570
+ $quotes = $matches[2];
571
+ $class = $matches[3];
572
+ $post_class = $matches[4];
573
+ $atts = $matches[5];
574
+ $content = $matches[6];
575
+
576
+ // If we find a crayon=false in the attributes, or a crayon[:_]false in the class, then we should not capture
577
+ $ignore_regex = '#crayon\s*=\s*(["\'])\s*(false|no|0)\s*\1#msi';
578
+ if (preg_match($ignore_regex, $atts) !== 0 ||
579
+ preg_match($ignore_regex, $class) !== 0 ) {
580
+ return $matches[0];
581
+ }
582
+
583
+ if (!empty($class)) {
584
+ // crayon-inline is turned into inline="1"
585
+ $class = preg_replace('#'.self::REGEX_INLINE_CLASS.'#mi', 'inline="1"', $class);
586
+ // "setting[:_]value" style settings in the class attribute
587
+ $class = preg_replace('#\b([A-Za-z-]+)[_:](\S+)#msi', '$1='.$quotes.'$2'.$quotes, $class);
588
+ }
589
+
590
+ // data-url is turned into url=""
591
+ if (!empty($post_class)) {
592
+ $post_class = preg_replace('#\bdata-url\s*=#mi', 'url=', $post_class);
593
+ }
594
+ if (!empty($pre_class)) {
595
+ $pre_class = preg_replace('#\bdata-url\s*=#mi', 'url=', $post_class);
596
+ }
597
+
598
+ if (!empty($class)) {
599
+ return "[crayon $pre_class $class $post_class]{$content}[/crayon]";
600
+ } else {
601
+ return "[crayon $atts]{$content}[/crayon]";
602
+ }
603
+ }
604
+
605
+ // Capture span tag and extract settings from the class attribute, if present.
606
+ public static function span_tag($matches) {
607
+ // Only use <span> tags with crayon-inline class
608
+ if (preg_match('#'.self::REGEX_INLINE_CLASS.'#mi', $matches[3])) {
609
+ // no $atts
610
+ $matches[6] = $matches[5];
611
+ $matches[5] = '';
612
+ return self::class_tag($matches);
613
+ } else {
614
+ // Don't turn regular <span>s into Crayons
615
+ return $matches[0];
616
+ }
617
+ }
618
+
619
+ // Capture pre tag and extract settings from the class attribute, if present.
620
+ public static function pre_tag($matches) {
621
+ return self::class_tag($matches);
622
  }
623
 
624
  // Check if the $[crayon]...[/crayon] notation has been used to ignore [crayon] tags within posts
625
  public static function crayon_remove_ignore($the_content) {
626
+
627
+ // $the_content = str_ireplace(array('$[crayon', 'crayon]$'), array('[crayon', 'crayon]'), $the_content);
628
+
629
+ $the_content = preg_replace('#\$(\s*\[\s*crayon)#msi', '$1', $the_content);
630
+ $the_content = preg_replace('#(crayon\s*\])\s*\$#msi', '$1', $the_content);
631
+
632
  if (CrayonGlobalSettings::val(CrayonSettings::CAPTURE_PRE)) {
633
  $the_content = str_ireplace(array('$<pre', 'pre>$'), array('<pre', 'pre>'), $the_content);
634
  }
637
  }
638
  if (CrayonGlobalSettings::val(CrayonSettings::CAPTURE_MINI_TAG) ||
639
  CrayonGlobalSettings::val(CrayonSettings::INLINE_TAG)) {
640
+ self::init_tags_regex();
641
+ $the_content = preg_replace('#\$\s*([\[\{])\s*('. self::$alias_regex .')#', '$1$2', $the_content);
642
+ $the_content = preg_replace('#('. self::$alias_regex .')\s*([\[\{])\s*\$#', '$1$2', $the_content);
643
  }
644
  if (CrayonGlobalSettings::val(CrayonSettings::BACKQUOTE)) {
645
  $the_content = str_ireplace('\\`', '`', $the_content);
652
 
653
  self::$wp_head = TRUE;
654
  if (!self::$enqueued) {
655
+ CrayonLog::debug('head: missed enqueue');
656
  // We have missed our chance to check before enqueuing. Use setting to either load always or only in the_post
657
  CrayonSettingsWP::load_settings(TRUE); // Ensure settings are loaded
658
  if (!CrayonGlobalSettings::val(CrayonSettings::EFFICIENT_ENQUEUE)) {
659
+ CrayonLog::debug('head: force enqueue');
660
  // Efficient enqueuing disabled, always load despite enqueuing or not in the_post
661
  self::enqueue_resources();
662
  }
671
  }
672
  }
673
 
674
+ public static function save_post($id, $post) {
675
+ CrayonSettingsWP::load_settings(TRUE);
676
+ if (wp_is_post_revision($id)) {
677
+ // Ignore revisions
678
+ return;
679
+ }
680
+ self::init_tags_regex();
681
+ if (preg_match(self::$tags_regex, $post->post_content)) {
682
+ CrayonSettingsWP::add_post($id);
683
+ } else {
684
+ CrayonSettingsWP::remove_post($id);
685
+ }
686
+ }
687
+
688
  public static function crayon_theme_css() {
689
  global $CRAYON_VERSION;
690
  $css = CrayonResources::themes()->get_used_css();
697
  global $CRAYON_VERSION;
698
  $css = CrayonResources::fonts()->get_used_css();
699
  foreach ($css as $font_id=>$url) {
700
+ wp_enqueue_style('crayon-font-'.$font_id, $url, array(), $CRAYON_VERSION);
 
 
701
  }
702
  }
703
 
706
  crayon_load_plugin_textdomain();
707
  }
708
 
709
+ // Scan for all posts and add crayon posts
710
+ public static function scan_posts() {
711
+ self::init_tags_regex();
712
+ $crayon_posts = array();
713
+ $query = new WP_Query(array('post_type' => 'any', 'suppress_filters' => TRUE, 'posts_per_page' => '-1'));
714
+ foreach ($query->posts as $post) {
715
+ if (preg_match(self::$tags_regex, $post->post_content)) {
716
+ $crayon_posts[] = $post->ID;
717
+ }
718
+ }
719
+ return $crayon_posts;
720
+ }
721
+
722
  public static function install() {
723
  self::update();
724
  }
728
  }
729
 
730
  public static function update() {
731
+ // Upgrade database and settings
732
  global $CRAYON_VERSION;
733
  $settings = CrayonSettingsWP::get_settings();
734
  if ($settings === NULL || !isset($settings[CrayonSettings::VERSION])) {
757
 
758
  public static function basename() {
759
  return plugin_basename(__FILE__);
760
+ }
761
+
762
+ public static function wp_load_path() {
763
+ $wp_root_path = str_replace('wp-content/plugins/' . CRAYON_DIR, '', CRAYON_ROOT_PATH);
764
+ return $wp_root_path . 'wp-load.php';
765
  }
766
 
767
  }
768
 
769
+ // Only if WP is loaded and not in admin
770
  if (defined('ABSPATH')) {
771
+ if (!is_admin()) {
772
+ register_activation_hook(__FILE__, 'CrayonWP::install');
773
+ register_deactivation_hook(__FILE__, 'CrayonWP::uninstall');
774
+ CrayonWP::update();
775
+
776
+ // Filters and Actions
777
+ add_filter('init', 'CrayonWP::init');
778
+
779
+ CrayonSettingsWP::load_settings(TRUE);
780
+ if (CrayonGlobalSettings::val(CrayonSettings::MAIN_QUERY)) {
781
+ add_action('wp', 'CrayonWP::wp', 100);
782
+ } else {
783
+ add_filter('the_posts', 'CrayonWP::the_posts', 100);
784
+ }
785
+
786
+ // XXX Some themes like to play with the content, make sure we replace after they're done
787
+ add_filter('the_content', 'CrayonWP::the_content', 100);
788
+
789
+ if (CrayonGlobalSettings::val(CrayonSettings::COMMENTS)) {
790
+ add_filter('comment_text', 'CrayonWP::comment_text', 100);
791
+ }
792
+
793
+ // We want to allow others to define excerpt length etc later, so low priority
794
+ add_filter('the_excerpt', 'CrayonWP::the_excerpt', 1);
795
+ add_filter('get_the_excerpt', 'CrayonWP::the_excerpt', 1);
796
+ add_action('template_redirect', 'CrayonWP::wp_head');
797
  } else {
798
+ // For marking a post as containing a Crayon
799
+ add_action('save_post', 'CrayonWP::save_post', 10, 2);
 
 
 
 
 
 
800
  }
 
 
 
801
  }
802
 
803
  ?>
css/admin_style.css CHANGED
@@ -146,7 +146,7 @@
146
  color: #77A000;
147
  }
148
 
149
- #crayon-preview,
150
  #crayon-log-wrapper {
151
  padding: 5px;
152
  width: 95%;
@@ -154,7 +154,7 @@
154
  clear: both;
155
  }
156
 
157
- #crayon-preview {
158
  float: none;
159
  padding: 0;
160
  }
@@ -213,4 +213,203 @@
213
  padding: 0;
214
  }
215
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
216
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
146
  color: #77A000;
147
  }
148
 
149
+ #crayon-live-preview,
150
  #crayon-log-wrapper {
151
  padding: 5px;
152
  width: 95%;
154
  clear: both;
155
  }
156
 
157
+ #crayon-live-preview {
158
  float: none;
159
  padding: 0;
160
  }
213
  padding: 0;
214
  }
215
 
216
+ /* TinyMCE */
217
+
218
+ #crayon-te-content,
219
+ #crayon-te-table {
220
+ width: 100%;
221
+ }
222
+
223
+ #crayon-te-table th,
224
+ #crayon-te-table td {
225
+ vertical-align: top;
226
+ }
227
+ #crayon-te-table .crayon-tr-center td,
228
+ #crayon-te-table .crayon-tr-center th {
229
+ vertical-align: middle;
230
+ }
231
+
232
+ #crayon-te-table .crayon-nowrap {
233
+ white-space: nowrap;
234
+ }
235
+
236
+ #crayon-url-th {
237
+ vertical-align: top !important;
238
+ padding-top: 5px;
239
+ }
240
+
241
+ .crayon-te-heading {
242
+ font-size: 14px;
243
+ font-weight: bold;
244
+ }
245
+
246
+ .crayon-te-section {
247
+ font-weight: bold;
248
+ padding: 0 10px;
249
+ }
250
+
251
+ #crayon-te-sub-section {
252
+ margin-left: 10px;
253
+ }
254
+ #crayon-te-sub-section .crayon-te-section {
255
+ font-weight: normal;
256
+ padding: 0;
257
+ }
258
+
259
+ #crayon-code {
260
+ width: 100% !important;
261
+ height: 200px;
262
+ white-space: pre;
263
+ /*white-space: nowrap;
264
+ overflow: auto;*/
265
+ }
266
+
267
+ #crayon-url {
268
+ width: 100% !important;
269
+ }
270
+
271
+ .crayon-disabled {
272
+ background: #EEE !important;
273
+ }
274
+
275
+ .wp_themeSkin span.mce_crayon_tinymce {
276
+ background: url(images/crayon_tinymce.png);
277
+ }
278
+
279
+ .mce_crayon_tinymce_highlight,
280
+ .qt_crayon_highlight {
281
+ border: 1px solid #7c9dde !important;
282
+ }
283
+
284
+ .qt_crayon_highlight {
285
+ background-image: -ms-linear-gradient(bottom,#daf2ff,white) !important;
286
+ background-image: -moz-linear-gradient(bottom,#daf2ff,white) !important;
287
+ background-image: -o-linear-gradient(bottom,#daf2ff,white) !important;
288
+ background-image: -webkit-linear-gradient(bottom,#daf2ff,white) !important;
289
+ background-image: linear-gradient(bottom,#daf2ff,white) !important;
290
+ }
291
+
292
+ .qt_crayon_highlight:hover{
293
+ background:#ddebf2 !important;
294
+ }
295
+
296
+ .mce_crayon_tinymce_highlight span.mce_crayon_tinymce,
297
+ .wp_themeSkin .mceButtonEnabled:hover span.mce_crayon_tinymce, .wp_themeSkin .mceButtonActive span.mce_crayon_tinymce {
298
+ background-position: -20px 0;
299
+ }
300
+
301
+ #crayon-te-table {
302
+ padding: 10px;
303
+ }
304
+
305
+ #crayon-te-table th {
306
+ width: 100px;
307
+ }
308
+
309
+ /*#crayon-te-table span {
310
+ margin-left: 4px;
311
+ }*/
312
+
313
+ #crayon-te-clear {
314
+ margin-left: 10px;
315
+ color: #666;
316
+ background-color: #f4f4f4;
317
+ }
318
+
319
+ #crayon-title {
320
+ width: 360px;
321
+ }
322
+
323
+ #TB_window.crayon-te-ajax {
324
+ overflow: auto !important;
325
+ }
326
+
327
+ #TB_window.crayon-te-ajax,
328
+ #TB_window.crayon-te-ajax #TB_ajaxContent,
329
+ #TB_window.crayon-te-ajax #TB_title {
330
+ width: 680px !important;
331
+ }
332
+
333
+ #TB_window.crayon-te-ajax #TB_ajaxContent {
334
+ padding: 0 !important;
335
+ margin: 0 !important;
336
+ width: 100% !important;
337
+ height: auto !important;
338
+ margin-top: 28px !important;
339
+ }
340
+
341
+ #TB_window.crayon-te-ajax #TB_title {
342
+ position: fixed !important;
343
+ }
344
+
345
+ #TB_window.crayon-te-ajax #TB_title .crayon-te-submit {
346
+ margin-top: 3px !important;
347
+ float: right !important;
348
+ }
349
+
350
+ #TB_window.crayon-te-ajax a {
351
+ color: #2587e2;
352
+ text-decoration: none;
353
+ }
354
+
355
+ #TB_window.crayon-te-ajax a:hover {
356
+ color: #499ce9;
357
+ }
358
+
359
+ .crayon-te-quote {
360
+ background: #DDD;
361
+ padding: 0 2px;
362
+ }
363
 
364
+ #crayon-te-submit-wrapper {
365
+ display: none;
366
+ }
367
+
368
+ #crayon-te-clear {
369
+ display: none;
370
+ }
371
+
372
+ .crayon-syntax-pre {
373
+ background: red;
374
+ white-space: pre;
375
+ overflow: auto;
376
+ display: block;
377
+ word-wrap: break-word;
378
+ }
379
+
380
+ .crayon-question {
381
+ padding: 1px 4px !important;
382
+ background: #83b3cb !important;
383
+ text-decoration: none !important;
384
+ color: white !important;
385
+ border-radius: 10px !important;
386
+ height: 15px !important;
387
+ width: 15px !important;
388
+ }
389
+
390
+ .crayon-setting {
391
+
392
+ }
393
+
394
+ .crayon-setting-changed,
395
+ .crayon-setting-selected {
396
+ background: #fffaad !important;
397
+ }
398
+
399
+ .crayon-question:hover {
400
+ color: white;
401
+ background: #a6d6ef;
402
+ }
403
+
404
+ #crayon-te-warning {
405
+ display: none;
406
+ }
407
+
408
+ .crayon-te-info {
409
+ padding: 5px !important;
410
+ margin: 2px 0 !important;
411
+ }
412
+
413
+ #crayon-te-submit {
414
+ margin-bottom: 5px;
415
+ }
css/images/crayon_tinymce.png ADDED
Binary file
css/scrollbar.css DELETED
@@ -1,48 +0,0 @@
1
- /* Scrollbars ====================== */
2
- ::-webkit-scrollbar {
3
- width: 21px;
4
- height: 21px;
5
- }
6
-
7
- /* Horizontal
8
- /* The scrollbar slider */
9
- ::-webkit-scrollbar-thumb:horizontal {
10
- -webkit-border-image: url(images/thumb_horizontal.png) 0 10;
11
- border-color: transparent;
12
- border-width: 0 10px;
13
- min-width: 50px;
14
- }
15
- /* The scrollbar background */
16
- ::-webkit-scrollbar-track-piece:horizontal:increment,
17
- ::-webkit-scrollbar-track-piece:horizontal:decrement {
18
- -webkit-border-image: url(images/track_horizontal.png) 0 10;
19
- border-color: transparent;
20
- }
21
- ::-webkit-scrollbar-track-piece:horizontal:decrement {
22
- border-width: 0 0 0 10px;
23
- }
24
- ::-webkit-scrollbar-track-piece:horizontal:increment {
25
- border-width: 0 10px 0 0;
26
- }
27
-
28
- /* Vertical
29
- /* The scrollbar slider */
30
- ::-webkit-scrollbar-thumb:vertical {
31
- -webkit-border-image: url(images/thumb_vertical.png) 10 0;
32
- border-color: transparent;
33
- border-width: 10px 0;
34
- min-height: 50px;
35
- }
36
- /* The scrollbar background */
37
- ::-webkit-scrollbar-track-piece:vertical:increment,
38
- ::-webkit-scrollbar-track-piece:vertical:decrement {
39
- -webkit-border-image: url(images/track_vertical.png) 10 0;
40
- border-color: transparent;
41
- }
42
- ::-webkit-scrollbar-track-piece:vertical:decrement {
43
- border-width: 10px 0 0 0;
44
- }
45
- ::-webkit-scrollbar-track-piece:vertical:increment {
46
- border-width: 0 0 10px 0;
47
- }
48
- /* End Scrollbars ================== */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
css/style.css CHANGED
@@ -42,29 +42,17 @@ coloring etc.
42
  overflow: auto;
43
  }
44
 
45
- .crayon-popup {
46
- /*position: static !important;*/
47
- }
48
-
49
- .crayon-popup .crayon-plain {
50
- display: block !important;
51
- width: 100% !important;
52
- height: 100% !important;
53
- opacity: 100 !important;
54
- position: relative !important;
55
- }
56
-
57
- .crayon-popup .crayon-main,
58
  .crayon-popup .crayon-table {
59
- /*max-width: 0;
60
  max-height: 0;
61
  display: block !important;
62
  opacity: 100 !important;
63
  margin: 0 !important;
64
  padding: 0 !important;
65
  width: 100% !important;
66
- height: auto !important;*/
67
- }
68
 
69
  .crayon-syntax,
70
  .crayon-syntax .crayon-main,
@@ -75,7 +63,8 @@ coloring etc.
75
  }
76
 
77
  .crayon-syntax-inline {
78
- margin: 0 5px;
 
79
  }
80
 
81
  .crayon-syntax .crayon-table {
@@ -86,15 +75,17 @@ coloring etc.
86
  margin-right: 0px !important;
87
  margin-bottom: 0px !important;
88
  width: auto !important;
89
- /* left margin needed for nums toggle */
90
- }
91
-
92
- .crayon-syntax td {
93
- background: none !important;
 
 
 
 
94
  vertical-align: top !important;
95
- padding: 0px !important;
96
- margin: 0px !important;
97
- border: none !important;
98
  }
99
 
100
  .crayon-syntax .crayon-invisible {
@@ -106,6 +97,20 @@ coloring etc.
106
  }
107
  /* End General ===================== */
108
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
109
  /* Line Numbers ==================== */
110
  .crayon-syntax .crayon-num {
111
  text-align: center;
@@ -118,25 +123,27 @@ coloring etc.
118
  .crayon-syntax .crayon-toolbar {
119
  position: relative;
120
  overflow: hidden;
 
121
  }
122
  .crayon-syntax .crayon-info {
123
  position: absolute;
124
  overflow: hidden;
125
  display: none;
126
  z-index: 3;
127
- min-height: 20px;
128
  padding: 0px;
129
- line-height: 20px;
 
 
130
  }
131
  .crayon-syntax .crayon-info div {
132
- padding: 4px !important;
133
  text-align: center;
134
  }
135
 
136
  .crayon-syntax .crayon-toolbar,
137
  .crayon-syntax .crayon-toolbar * {
138
- height: 20px;
139
- line-height: 20px;
140
  padding: 0px;
141
  }
142
 
@@ -151,13 +158,13 @@ coloring etc.
151
 
152
  background-repeat: no-repeat;
153
  background-position: center;
154
- height: 16px;
155
- line-height: 16px;
156
- margin: 2px 2px !important;
157
  border: none;
158
- border-radius: 5px;
159
  -webkit-border-radius: 5px;
160
- -moz-border-radius: 5px;
161
  text-decoration: none;
162
  }
163
 
@@ -214,25 +221,65 @@ coloring etc.
214
  background-image: url('images/toolbar/plus.png');
215
  background-position: center;
216
  background-repeat: no-repeat;
217
- margin: 0px 4px;
218
  float: left;
 
219
  }
220
 
221
  /* Language */
222
  .crayon-syntax .crayon-toolbar .crayon-language {
223
- padding-right: 3px !important;
224
  }
225
 
226
  /* Tools */
227
- .crayon-syntax .crayon-toolbar .crayon-tools {
228
  padding-right: 2px !important;
229
- }
230
 
231
  .crayon-syntax .crayon-title {
232
  float: left;
233
  }
234
  /* End Toolbar ===================== */
235
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
236
  /* Code ============================ */
237
  .crayon-syntax .crayon-pre,
238
  .crayon-syntax pre {
@@ -259,16 +306,39 @@ coloring etc.
259
  }
260
 
261
  /* Default Font */
262
- .crayon-syntax,
263
- .crayon-syntax * {
264
  font-family: Monaco, 'MonacoRegular', 'Courier New', monospace;
265
- font-size: 12px;
266
- line-height: 16px;
267
  font-weight: 500;
268
  }
 
 
 
 
 
 
 
269
  .crayon-syntax .crayon-num,
270
  .crayon-syntax .crayon-line {
271
- height: 16px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
272
  }
273
 
274
  .crayon-syntax .crayon-plain {
@@ -278,7 +348,6 @@ coloring etc.
278
  opacity: 0;
279
  padding: 0 5px;
280
  margin: 0px;
281
- resize: none; /* vertical */
282
  border: none;
283
  box-sizing: border-box;
284
  -webkit-box-sizing: border-box;
@@ -286,13 +355,15 @@ coloring etc.
286
  box-shadow: none;
287
  -webkit-box-shadow: none;
288
  -moz-box-shadow: none;
289
- overflow: auto;
290
  /*white-space: pre-wrap;*/
291
  white-space: pre;
 
 
 
292
  color: #000;
293
  background: #FFF;
294
- resize: none;
295
  }
 
296
  /* End Code ======================== */
297
 
298
  /* End AK Code Table ============================================= */
42
  overflow: auto;
43
  }
44
 
45
+ /*.crayon-popup .crayon-main,
 
 
 
 
 
 
 
 
 
 
 
 
46
  .crayon-popup .crayon-table {
47
+ max-width: 0;
48
  max-height: 0;
49
  display: block !important;
50
  opacity: 100 !important;
51
  margin: 0 !important;
52
  padding: 0 !important;
53
  width: 100% !important;
54
+ height: auto !important;
55
+ }*/
56
 
57
  .crayon-syntax,
58
  .crayon-syntax .crayon-main,
63
  }
64
 
65
  .crayon-syntax-inline {
66
+ margin: 0 2px;
67
+ padding: 0 2px;
68
  }
69
 
70
  .crayon-syntax .crayon-table {
75
  margin-right: 0px !important;
76
  margin-bottom: 0px !important;
77
  width: auto !important;
78
+ border-spacing: 0 !important;
79
+ border-collapse: collapse !important;
80
+ }
81
+
82
+ .crayon-syntax .crayon-table td,
83
+ .crayon-syntax .crayon-table tr {
84
+ padding: 0 !important;
85
+ border: none;
86
+ background: none;
87
  vertical-align: top !important;
88
+ margin: 0 !important;
 
 
89
  }
90
 
91
  .crayon-syntax .crayon-invisible {
97
  }
98
  /* End General ===================== */
99
 
100
+ /* Popup ========================= */
101
+ .crayon-popup {
102
+ /*position: static !important;*/
103
+ }
104
+
105
+ .crayon-popup .crayon-plain {
106
+ display: block !important;
107
+ width: 100% !important;
108
+ height: 100% !important;
109
+ opacity: 100 !important;
110
+ position: relative !important;
111
+ }
112
+ /* End Popup ========================= */
113
+
114
  /* Line Numbers ==================== */
115
  .crayon-syntax .crayon-num {
116
  text-align: center;
123
  .crayon-syntax .crayon-toolbar {
124
  position: relative;
125
  overflow: hidden;
126
+ z-index: 4;
127
  }
128
  .crayon-syntax .crayon-info {
129
  position: absolute;
130
  overflow: hidden;
131
  display: none;
132
  z-index: 3;
 
133
  padding: 0px;
134
+ /* Must be able to expand! */
135
+ min-height: 18px;
136
+ line-height: 18px;
137
  }
138
  .crayon-syntax .crayon-info div {
139
+ padding: 2px !important;
140
  text-align: center;
141
  }
142
 
143
  .crayon-syntax .crayon-toolbar,
144
  .crayon-syntax .crayon-toolbar * {
145
+ height: 18px;
146
+ line-height: 18px;
147
  padding: 0px;
148
  }
149
 
158
 
159
  background-repeat: no-repeat;
160
  background-position: center;
161
+ /*height: 16px;*/
162
+ line-height: 15px;
163
+ padding: 0px 2px !important;
164
  border: none;
165
+ /*border-radius: 5px;
166
  -webkit-border-radius: 5px;
167
+ -moz-border-radius: 5px;*/
168
  text-decoration: none;
169
  }
170
 
221
  background-image: url('images/toolbar/plus.png');
222
  background-position: center;
223
  background-repeat: no-repeat;
 
224
  float: left;
225
+ min-width: 15px;
226
  }
227
 
228
  /* Language */
229
  .crayon-syntax .crayon-toolbar .crayon-language {
230
+ padding-right: 8px !important;
231
  }
232
 
233
  /* Tools */
234
+ /*.crayon-syntax .crayon-toolbar .crayon-tools {
235
  padding-right: 2px !important;
236
+ }*/
237
 
238
  .crayon-syntax .crayon-title {
239
  float: left;
240
  }
241
  /* End Toolbar ===================== */
242
 
243
+ /* Scrollbar ======================= */
244
+ .crayon-main::-webkit-scrollbar {
245
+ height: 6px;
246
+ overflow: visible;
247
+ width: 6px;
248
+ background: #EEE;
249
+ }
250
+ .crayon-main::-webkit-scrollbar-thumb {
251
+ background-color: #CCC;
252
+ background-clip: padding-box;
253
+ border: 1px solid #AAA;
254
+ box-shadow: inset 0 0 2px #999;
255
+ min-height: 8px;
256
+ padding:0;
257
+ border-width: 1px;
258
+ }
259
+ .crayon-main::-webkit-scrollbar-button {
260
+ height: 0;
261
+ width: 0;
262
+ padding: 0px;
263
+ }
264
+ .crayon-main::-webkit-scrollbar-track {
265
+ background-clip: padding-box;
266
+ border: solid transparent;
267
+ border-width: 0 0 0 4px;
268
+ border: 1px solid #BBB;
269
+ border-right: none;
270
+ border-bottom: none;
271
+ box-shadow: inset 0 0 4px #BBB;
272
+ }
273
+ .crayon-main::-webkit-scrollbar-corner {
274
+ background: #EEE;
275
+ }
276
+ .crayon-main::-webkit-scrollbar-thumb:hover {
277
+ background: #AAA;
278
+ border: 1px solid #777;
279
+ box-shadow: inset 0 0 2px #777;
280
+ }
281
+ /* End Scrollbar =================== */
282
+
283
  /* Code ============================ */
284
  .crayon-syntax .crayon-pre,
285
  .crayon-syntax pre {
306
  }
307
 
308
  /* Default Font */
309
+ .crayon-syntax /*,
310
+ .crayon-syntax **/ {
311
  font-family: Monaco, 'MonacoRegular', 'Courier New', monospace;
 
 
312
  font-weight: 500;
313
  }
314
+ .crayon-syntax,
315
+ .crayon-syntax .crayon-nums,
316
+ .crayon-syntax .crayon-plain,
317
+ .crayon-syntax .crayon-pre {
318
+ font-size: 12px;
319
+ line-height: 15px;
320
+ }
321
  .crayon-syntax .crayon-num,
322
  .crayon-syntax .crayon-line {
323
+ height: 15px;
324
+ }
325
+
326
+ .crayon-syntax .crayon-num,
327
+ .crayon-syntax .crayon-line,
328
+ .crayon-syntax .crayon-toolbar *,
329
+ .crayon-syntax .crayon-pre * {
330
+ font-family: inherit;
331
+ font-size: inherit !important;
332
+ line-height: inherit !important;
333
+ font-weight: inherit !important;
334
+ }
335
+ .crayon-syntax .crayon-toolbar .crayon-tools,
336
+ .crayon-syntax .crayon-toolbar .crayon-tools * {
337
+ height: inherit !important;
338
+ }
339
+
340
+ .crayon-syntax .crayon-plain-wrap {
341
+
342
  }
343
 
344
  .crayon-syntax .crayon-plain {
348
  opacity: 0;
349
  padding: 0 5px;
350
  margin: 0px;
 
351
  border: none;
352
  box-sizing: border-box;
353
  -webkit-box-sizing: border-box;
355
  box-shadow: none;
356
  -webkit-box-shadow: none;
357
  -moz-box-shadow: none;
 
358
  /*white-space: pre-wrap;*/
359
  white-space: pre;
360
+ word-wrap: normal;
361
+ overflow: auto;
362
+ resize: none;
363
  color: #000;
364
  background: #FFF;
 
365
  }
366
+
367
  /* End Code ======================== */
368
 
369
  /* End AK Code Table ============================================= */
global.php CHANGED
@@ -5,6 +5,7 @@
5
  define('CRAYON_DEBUG', FALSE);
6
 
7
  // TODO remove once done
 
8
  define('CRAYON_THEME_EDITOR', false);
9
 
10
  // Constants
@@ -41,6 +42,7 @@ define('CRAYON_CSS_DIR', crayon_s('css'));
41
  define('CRAYON_JS_DIR', crayon_s('js'));
42
  define('CRAYON_TRANS_DIR', crayon_s('trans'));
43
  define('CRAYON_THEME_EDITOR_DIR', crayon_s('theme-editor'));
 
44
 
45
  // Paths
46
 
@@ -65,6 +67,11 @@ define('CRAYON_HELP_FILE', CRAYON_UTIL_PATH . 'help.htm');
65
  define('CRAYON_JQUERY_POPUP', CRAYON_JS_DIR . 'jquery.popup.js');
66
  define('CRAYON_JS', CRAYON_JS_DIR . 'crayon.js');
67
  define('CRAYON_JS_ADMIN', CRAYON_JS_DIR . 'crayon_admin.js');
 
 
 
 
 
68
  define('CRAYON_STYLE', CRAYON_CSS_DIR . 'style.css');
69
  define('CRAYON_STYLE_ADMIN', CRAYON_CSS_DIR . 'admin_style.css');
70
  define('CRAYON_LOGO', CRAYON_CSS_DIR . 'images/crayon_logo.png');
@@ -165,6 +172,10 @@ function crayon_set_info_key($key, $array, &$info) {
165
  }
166
  }
167
 
 
 
 
 
168
  // LANGUAGE TRANSLATION FUNCTIONS
169
 
170
  function crayon_load_plugin_textdomain() {
5
  define('CRAYON_DEBUG', FALSE);
6
 
7
  // TODO remove once done
8
+ define('CRAYON_TAG_EDITOR', true);
9
  define('CRAYON_THEME_EDITOR', false);
10
 
11
  // Constants
42
  define('CRAYON_JS_DIR', crayon_s('js'));
43
  define('CRAYON_TRANS_DIR', crayon_s('trans'));
44
  define('CRAYON_THEME_EDITOR_DIR', crayon_s('theme-editor'));
45
+ define('CRAYON_TAG_EDITOR_DIR', crayon_s('tag-editor'));
46
 
47
  // Paths
48
 
67
  define('CRAYON_JQUERY_POPUP', CRAYON_JS_DIR . 'jquery.popup.js');
68
  define('CRAYON_JS', CRAYON_JS_DIR . 'crayon.js');
69
  define('CRAYON_JS_ADMIN', CRAYON_JS_DIR . 'crayon_admin.js');
70
+ define('CRAYON_JS_UTIL', CRAYON_JS_DIR . 'util.js');
71
+ define('CRAYON_TE_JS', 'crayon_te.js');
72
+ define('CRAYON_TE_PHP', 'crayon_te_content.php');
73
+ define('CRAYON_TINYMCE_JS', 'crayon_tinymce.js');
74
+ define('CRAYON_QUICKTAGS_JS', 'crayon_qt.js');
75
  define('CRAYON_STYLE', CRAYON_CSS_DIR . 'style.css');
76
  define('CRAYON_STYLE_ADMIN', CRAYON_CSS_DIR . 'admin_style.css');
77
  define('CRAYON_LOGO', CRAYON_CSS_DIR . 'images/crayon_logo.png');
172
  }
173
  }
174
 
175
+ function crayon_vargs(&$var, $default) {
176
+ $var = isset($var) ? $var: $default;
177
+ }
178
+
179
  // LANGUAGE TRANSLATION FUNCTIONS
180
 
181
  function crayon_load_plugin_textdomain() {
js/crayon.js CHANGED
@@ -1,85 +1,83 @@
1
- <!--
2
  // Crayon Syntax Highlighter JavaScript
3
 
4
- // Contants
5
- if (typeof DEBUG == 'undefined') {
6
- var DEBUG = false;
7
- }
8
-
9
- if (typeof crayon_log == 'undefined') {
10
- function crayon_log(string) {
11
- if (typeof console != 'undefined' && DEBUG) {
12
- console.log(string);
13
- }
14
- }
15
- }
16
 
17
  jQuery.fn.exists = function () {
18
  return this.length !== 0;
19
- }
20
-
21
- // For those who need them (< IE 9), add support for CSS functions
22
- var isStyleFuncSupported = null;
23
- if (typeof(CSSStyleDeclaration) != 'undefined') {
24
- isStyleFuncSupported = CSSStyleDeclaration.prototype.getPropertyValue != null;
25
- if (!isStyleFuncSupported) {
26
- CSSStyleDeclaration.prototype.getPropertyValue = function(a) {
27
- return this.getAttribute(a);
28
- };
29
- CSSStyleDeclaration.prototype.setProperty = function(styleName, value, priority) {
30
- this.setAttribute(styleName,value);
31
- var priority = typeof priority != 'undefined' ? priority : '';
32
- if (priority != '') {
33
- // Add priority manually
34
- var rule = new RegExp(RegExp.escape(styleName) + '\\s*:\\s*' + RegExp.escape(value) + '(\\s*;)?', 'gmi');
35
- this.cssText = this.cssText.replace(rule, styleName + ': ' + value + ' !' + priority + ';');
36
- }
37
- }
38
- CSSStyleDeclaration.prototype.removeProperty = function(a) {
39
- return this.removeAttribute(a);
40
- }
41
- CSSStyleDeclaration.prototype.getPropertyPriority = function(styleName) {
42
- var rule = new RegExp(RegExp.escape(styleName) + '\\s*:\\s*[^\\s]*\\s*!important(\\s*;)?', 'gmi');
43
- return rule.test(this.cssText) ? 'important' : '';
44
- }
45
- }
46
- }
 
 
 
47
 
48
  // Escape regex chars with \
49
  RegExp.escape = function(text) {
50
  return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
51
- }
52
-
53
- // The style function
54
- jQuery.fn.style = function(styleName, value, priority) {
55
- // DOM node
56
- var node = this.get(0);
57
- // Ensure we have a DOM node
58
- if (typeof node == 'undefined') {
59
- return;
60
- }
61
- // CSSStyleDeclaration
62
- var style = node.style;
63
- // Getter/Setter
64
- if (typeof styleName != 'undefined') {
65
- if (typeof value != 'undefined') {
66
- // Set style property
67
- var priority = typeof priority != 'undefined' ? priority : '';
68
- style.setProperty(styleName, value, priority);
69
- } else {
70
- // Get style property
71
- return style.getPropertyValue(styleName);
72
- }
73
- } else {
74
- // Get CSSStyleDeclaration
75
- return style;
76
- }
77
- }
78
-
79
-
80
-
81
-
 
 
 
 
 
 
82
 
 
83
 
84
  var PRESSED = 'crayon-pressed';
85
  var UNPRESSED = '';
@@ -103,7 +101,6 @@ jQuery(document).ready(function() {
103
  });
104
 
105
  var CrayonSyntax = new function() {
106
-
107
  var crayon = new Object();
108
  var currUID = 0;
109
 
@@ -119,7 +116,7 @@ var CrayonSyntax = new function() {
119
  uid += getUID();
120
  }
121
  jQuery(this).attr('id', uid);
122
- crayon_log(uid);
123
 
124
  if (!make_uid(uid)) {
125
  // Already a Crayon
@@ -159,28 +156,26 @@ var CrayonSyntax = new function() {
159
  crayon[uid].time = 1;
160
 
161
  // Set plain
162
- jQuery(CRAYON_PLAIN).css('z-index', 0);
163
-
164
- // XXX Remember CSS dimensions
165
- var main_style = crayon[uid].main.style();
166
 
 
 
167
  crayon[uid].main_style = {
168
- height: main_style.height || '',
169
- max_height: main_style.maxHeight || '',
170
- min_height: main_style.minHeight || '',
171
- width: main_style.width || ''
172
- }
173
 
174
  var load_timer;
175
- var last_num_width = nums.width();
176
  var i = 0;
177
  crayon[uid].loading = true;
178
  crayon[uid].scroll_block_fix = false;
179
 
180
  // Register click events
181
- nums_button.click(function() { CrayonSyntax.toggle_nums(uid) });
182
- plain_button.click(function() { CrayonSyntax.toggle_plain(uid) });
183
- copy_button.click(function() { CrayonSyntax.copy_plain(uid) });
184
 
185
  var load_func = function() {
186
  if (main.height() < 30) {
@@ -190,9 +185,9 @@ var CrayonSyntax = new function() {
190
  reconsile_dimensions(uid);
191
 
192
  // If nums hidden by default
193
- if (nums.filter('[settings~="hide"]').length != 0) {
194
  nums_content.ready(function() {
195
- crayon_log('function' + uid);
196
  CrayonSyntax.toggle_nums(uid, true, true);
197
  });
198
  } else {
@@ -216,7 +211,7 @@ var CrayonSyntax = new function() {
216
  main.css('z-index', 1);
217
 
218
  // Disable certain features for touchscreen devices
219
- touchscreen = (jQuery(this).filter('[settings~="touchscreen"]').length != 0);
220
 
221
  // Used to hide info
222
  if (!touchscreen) {
@@ -237,24 +232,24 @@ var CrayonSyntax = new function() {
237
  }, function() {
238
  code_popup(uid);
239
  }, function() {
240
- //crayon_log('after');
241
  });
242
 
243
  plain.css('opacity', 0);
244
  // If a toolbar with mouseover was found
245
- if (toolbar.filter('[settings~="mouseover"]').length != 0 && !touchscreen) {
246
  crayon[uid].toolbar_mouseover = true;
247
 
248
  toolbar.css('margin-top', '-' + toolbar.height() + 'px');
249
  toolbar.hide();
250
  // Overlay the toolbar if needed, only if doing so will not hide the
251
  // whole code!
252
- if (toolbar.filter('[settings~="overlay"]').length != 0
253
  && main.height() > toolbar.height() * 2) {
254
  toolbar.css('position', 'absolute');
255
  toolbar.css('z-index', 2);
256
  // Hide on single click when overlayed
257
- if (toolbar.filter('[settings~="hide"]').length != 0) {
258
  main.click(function() { toolbar_toggle(uid, undefined, undefined, 0); });
259
  plain.click(function() { toolbar_toggle(uid, false, undefined, 0); });
260
  }
@@ -262,7 +257,7 @@ var CrayonSyntax = new function() {
262
  toolbar.css('z-index', 4);
263
  }
264
  // Enable delay on mouseout
265
- if (toolbar.filter('[settings~="delay"]').length != 0) {
266
  crayon[uid].toolbar_delay = 500;
267
  }
268
  // Use .hover() for chrome, but in firefox mouseover/mouseout worked best
@@ -274,21 +269,21 @@ var CrayonSyntax = new function() {
274
  }
275
  // Plain show events
276
  if (plain.length != 0 && !touchscreen) {
277
- if (plain.filter('[settings~="dblclick"]').length != 0) {
278
  main.dblclick(function() { CrayonSyntax.toggle_plain(uid); });
279
- } else if (plain.filter('[settings~="click"]').length != 0) {
280
  main.click(function() { CrayonSyntax.toggle_plain(uid); });
281
- } else if (plain.filter('[settings~="mouseover"]').length != 0) {
282
  jQuery(this).mouseenter(function() { CrayonSyntax.toggle_plain(uid, true); })
283
  .mouseleave(function() { CrayonSyntax.toggle_plain(uid, false); });
284
  nums_button.hide();
285
  }
286
- if (plain.filter('[settings~="show-plain-default"]').length != 0) {
287
  CrayonSyntax.toggle_plain(uid, true);
288
  }
289
  }
290
  // Scrollbar show events
291
- if (!touchscreen && jQuery(this).filter('[settings~="scroll-mouseover"]').length != 0) {
292
  // Disable on touchscreen devices and when set to mouseover
293
  main.css('overflow', 'hidden');
294
  plain.css('overflow', 'hidden');
@@ -296,30 +291,30 @@ var CrayonSyntax = new function() {
296
  .mouseleave(function() { toggle_scroll(uid, false); });
297
  }
298
  // Disable animations
299
- if ( jQuery(this).filter('[settings~="disable-anim"]').length != 0 ) {
300
  crayon[uid].time = 0;
301
  }
302
 
303
  // Determine if Mac
304
- crayon[uid].mac = (jQuery(this).filter('[crayon-os~="mac"]').length != 0);
305
  });
306
- }
307
 
308
  var make_uid = function(uid) {
309
- crayon_log(crayon);
310
  if (typeof crayon[uid] == 'undefined') {
311
  crayon[uid] = jQuery('#'+uid);
312
- crayon_log('make ' + uid);
313
  return true;
314
  }
315
 
316
- crayon_log('no make ' + uid);
317
  return false;
318
- }
319
 
320
  var getUID = function() {
321
  return currUID++;
322
- }
323
 
324
  var code_popup = function(uid) {
325
  if (typeof crayon[uid] == 'undefined') {
@@ -332,25 +327,25 @@ var CrayonSyntax = new function() {
332
  if (typeof settings == 'undefined') {
333
  return;
334
  }
335
- }
336
 
337
  var get_jquery_str = function(object) {
338
  return jQuery('<div>').append(object.clone()).remove().html();
339
- }
340
 
341
  var remove_css_inline = function(string) {
342
  return string.replace(/style\s*=\s*["'][^"]+["']/gmi, '');
343
- }
344
 
345
  // Get all CSS on the page as a string
346
  var get_all_css = function() {
347
- var css_str = ''
348
  css = jQuery('link[rel="stylesheet"]').each(function() {
349
  var string = get_jquery_str(jQuery(this));
350
  css_str += string;
351
  });
352
  return css_str;
353
- }
354
 
355
  this.copy_plain = function(uid, hover) {
356
  if (typeof crayon[uid] == 'undefined') {
@@ -363,12 +358,12 @@ var CrayonSyntax = new function() {
363
  toolbar_toggle(uid, true);
364
 
365
  key = crayon[uid].mac ? '\u2318' : 'CTRL';
366
- var text = crayon[uid].copy_button.attr('show_txt');
367
  text = text.replace(/%s/, key + '+C');
368
  text = text.replace(/%s/, key + '+V');
369
  crayon_info(uid, text);
370
  return false;
371
- }
372
 
373
  var crayon_info = function(uid, text, show) {
374
  if (typeof crayon[uid] == 'undefined') {
@@ -398,7 +393,7 @@ var CrayonSyntax = new function() {
398
  crayon_slide(uid, info, false);
399
  }
400
 
401
- }
402
 
403
  var crayon_is_slide_hidden = function(object) {
404
  var object_neg_height = '-' + object.height() + 'px';
@@ -407,7 +402,7 @@ var CrayonSyntax = new function() {
407
  } else {
408
  return false;
409
  }
410
- }
411
 
412
  var crayon_slide = function(uid, object, show, anim_time, hide_delay) {
413
  var object_neg_height = '-' + object.height() + 'px';
@@ -446,7 +441,7 @@ var CrayonSyntax = new function() {
446
  object.hide();
447
  });
448
  }
449
- }
450
 
451
  this.toggle_plain = function(uid, hover, select) {
452
  if (typeof crayon[uid] == 'undefined') {
@@ -455,11 +450,10 @@ var CrayonSyntax = new function() {
455
 
456
  var main = crayon[uid].main;
457
  var plain = crayon[uid].plain;
458
- var plain_button = crayon[uid].plain_button;
459
 
460
  if ( (main.is(':animated') || plain.is(':animated')) && typeof hover == 'undefined' ) {
461
  return;
462
- }
463
 
464
  reconsile_dimensions(uid);
465
 
@@ -546,7 +540,7 @@ var CrayonSyntax = new function() {
546
  // Hide toolbar if possible
547
  toolbar_toggle(uid, false);
548
  return false;
549
- }
550
 
551
  this.toggle_nums = function(uid, hide, instant) {
552
  if (typeof crayon[uid] == 'undefined') {
@@ -605,14 +599,14 @@ var CrayonSyntax = new function() {
605
  }
606
  });
607
  return false;
608
- }
609
 
610
  var fix_table_width = function(uid) {
611
  if (typeof crayon[uid] == 'undefined') {
612
  make_uid(uid);
613
  return false;
614
  }
615
- }
616
 
617
  // Convert '-10px' to -10
618
  var px_to_int = function(pixels) {
@@ -625,7 +619,7 @@ var CrayonSyntax = new function() {
625
  } else {
626
  return parseInt(result);
627
  }
628
- }
629
 
630
  var update_nums_button = function(uid) {
631
  if (typeof crayon[uid] == 'undefined' || typeof crayon[uid].nums_visible == 'undefined') {
@@ -639,7 +633,7 @@ var CrayonSyntax = new function() {
639
  crayon[uid].nums_button.removeClass(PRESSED);
640
  crayon[uid].nums_button.addClass(UNPRESSED);
641
  }
642
- }
643
 
644
  var update_plain_button = function(uid) {
645
  if (typeof crayon[uid] == 'undefined' || typeof crayon[uid].plain_visible == 'undefined') {
@@ -654,7 +648,7 @@ var CrayonSyntax = new function() {
654
  crayon[uid].plain_button.removeClass(PRESSED);
655
  crayon[uid].plain_button.addClass(UNPRESSED);
656
  }
657
- }
658
 
659
  var toolbar_toggle = function(uid, show, anim_time, hide_delay) {
660
  if (typeof crayon[uid] == 'undefined') {
@@ -663,14 +657,13 @@ var CrayonSyntax = new function() {
663
  return;
664
  }
665
  var toolbar = crayon[uid].toolbar;
666
- var delay = crayon[uid].toolbar_delay;
667
 
668
  if (typeof hide_delay == 'undefined') {
669
  hide_delay = crayon[uid].toolbar_delay;
670
  }
671
 
672
  crayon_slide(uid, toolbar, show, anim_time, hide_delay);
673
- }
674
 
675
  var toggle_scroll = function(uid, show) {
676
  if (typeof crayon[uid] == 'undefined') {
@@ -724,7 +717,7 @@ var CrayonSyntax = new function() {
724
  // Register that overflow has changed
725
  crayon[uid].scroll_changed = true;
726
  fix_scroll_blank(uid);
727
- }
728
 
729
  /* Fix weird draw error, causes blank area to appear where scrollbar once was. */
730
  var fix_scroll_blank = function(uid) {
@@ -734,13 +727,13 @@ var CrayonSyntax = new function() {
734
  crayon[uid].table.style('width', '');
735
  clearInterval(redraw);
736
  }, 10);
737
- }
738
 
739
  var reconsile_dimensions = function(uid) {
740
  // Reconsile dimensions
741
  crayon[uid].plain.height(crayon[uid].main.height());
742
  //crayon[uid].plain.width(crayon[uid].main.width());
743
- }
744
 
745
  var animt = function(x, uid) {
746
  if (x == 'fast') {
@@ -754,12 +747,11 @@ var CrayonSyntax = new function() {
754
  }
755
  }
756
  return x * crayon[uid].time;
757
- }
758
 
759
  var isNumber = function(x) {
760
  return typeof x == 'number';
761
- }
762
 
763
- }
764
 
765
- // -->
 
1
  // Crayon Syntax Highlighter JavaScript
2
 
3
+ // BEGIN AUXILIARY FUNCTIONS
 
 
 
 
 
 
 
 
 
 
 
4
 
5
  jQuery.fn.exists = function () {
6
  return this.length !== 0;
7
+ };
8
+
9
+ // This makes IE < 9 doesn't support CSSStyleDeclaration, can't use this
10
+ var CrayonSyntaxUnused = function () {
11
+ // For those who need them (< IE 9), add support for CSS functions
12
+ var isStyleFuncSupported = null;
13
+ if (typeof(CSSStyleDeclaration) != 'undefined') {
14
+ isStyleFuncSupported = CSSStyleDeclaration.prototype.getPropertyValue != null;
15
+ if (!isStyleFuncSupported) {
16
+ CSSStyleDeclaration.prototype.getPropertyValue = function(a) {
17
+ return this.getAttribute(a);
18
+ };
19
+ CSSStyleDeclaration.prototype.setProperty = function(styleName, value, priority) {
20
+ this.setAttribute(styleName,value);
21
+ var priority = typeof priority != 'undefined' ? priority : '';
22
+ if (priority != '') {
23
+ // Add priority manually
24
+ var rule = new RegExp(RegExp.escape(styleName) + '\\s*:\\s*' + RegExp.escape(value) + '(\\s*;)?', 'gmi');
25
+ this.cssText = this.cssText.replace(rule, styleName + ': ' + value + ' !' + priority + ';');
26
+ }
27
+ };
28
+ CSSStyleDeclaration.prototype.removeProperty = function(a) {
29
+ return this.removeAttribute(a);
30
+ };
31
+ CSSStyleDeclaration.prototype.getPropertyPriority = function(styleName) {
32
+ var rule = new RegExp(RegExp.escape(styleName) + '\\s*:\\s*[^\\s]*\\s*!important(\\s*;)?', 'gmi');
33
+ return rule.test(this.cssText) ? 'important' : '';
34
+ };
35
+ }
36
+ }
37
+ };
38
 
39
  // Escape regex chars with \
40
  RegExp.escape = function(text) {
41
  return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
42
+ };
43
+
44
+
45
+ var hasCSSStyleDeclaration = typeof(CSSStyleDeclaration) != 'undefined';
46
+ jQuery.fn.style = function(styleName, value, priority) {
47
+ console_log('style called');
48
+ // DOM node
49
+ var node = this.get(0);
50
+ // Ensure we have a DOM node
51
+ if (typeof node == 'undefined') {
52
+ return;
53
+ }
54
+ // CSSStyleDeclaration
55
+ var style = node.style;
56
+ // Getter/Setter
57
+ if (typeof styleName != 'undefined') {
58
+ if (typeof value != 'undefined') {
59
+ // Set style property
60
+ var priority = typeof priority != 'undefined' ? priority : '';
61
+ if (hasCSSStyleDeclaration) {
62
+ style.setProperty(styleName, value, priority);
63
+ } else {
64
+ style.styleName = value + ' ' + priority;
65
+ }
66
+ } else {
67
+ // Get style property
68
+ if (hasCSSStyleDeclaration) {
69
+ return style.getPropertyValue(styleName);
70
+ } else {
71
+ return style.styleName;
72
+ }
73
+ }
74
+ } else {
75
+ // Get CSSStyleDeclaration
76
+ return style;
77
+ }
78
+ };
79
 
80
+ // END AUXILIARY FUNCTIONS
81
 
82
  var PRESSED = 'crayon-pressed';
83
  var UNPRESSED = '';
101
  });
102
 
103
  var CrayonSyntax = new function() {
 
104
  var crayon = new Object();
105
  var currUID = 0;
106
 
116
  uid += getUID();
117
  }
118
  jQuery(this).attr('id', uid);
119
+ console_log(uid);
120
 
121
  if (!make_uid(uid)) {
122
  // Already a Crayon
156
  crayon[uid].time = 1;
157
 
158
  // Set plain
159
+ jQuery(CRAYON_PLAIN).css('z-index', 0);
 
 
 
160
 
161
+ // XXX Remember CSS dimensions
162
+ var main_style = main.style();
163
  crayon[uid].main_style = {
164
+ height: main_style && main_style.height || '',
165
+ max_height: main_style && main_style.maxHeight || '',
166
+ min_height: main_style && main_style.minHeight || '',
167
+ width: main_style && main_style.width || ''
168
+ };
169
 
170
  var load_timer;
 
171
  var i = 0;
172
  crayon[uid].loading = true;
173
  crayon[uid].scroll_block_fix = false;
174
 
175
  // Register click events
176
+ nums_button.click(function() { CrayonSyntax.toggle_nums(uid); });
177
+ plain_button.click(function() { CrayonSyntax.toggle_plain(uid); });
178
+ copy_button.click(function() { CrayonSyntax.copy_plain(uid); });
179
 
180
  var load_func = function() {
181
  if (main.height() < 30) {
185
  reconsile_dimensions(uid);
186
 
187
  // If nums hidden by default
188
+ if (nums.filter('[data-settings~="hide"]').length != 0) {
189
  nums_content.ready(function() {
190
+ console_log('function' + uid);
191
  CrayonSyntax.toggle_nums(uid, true, true);
192
  });
193
  } else {
211
  main.css('z-index', 1);
212
 
213
  // Disable certain features for touchscreen devices
214
+ touchscreen = (jQuery(this).filter('[data-settings~="touchscreen"]').length != 0);
215
 
216
  // Used to hide info
217
  if (!touchscreen) {
232
  }, function() {
233
  code_popup(uid);
234
  }, function() {
235
+ //console_log('after');
236
  });
237
 
238
  plain.css('opacity', 0);
239
  // If a toolbar with mouseover was found
240
+ if (toolbar.filter('[data-settings~="mouseover"]').length != 0 && !touchscreen) {
241
  crayon[uid].toolbar_mouseover = true;
242
 
243
  toolbar.css('margin-top', '-' + toolbar.height() + 'px');
244
  toolbar.hide();
245
  // Overlay the toolbar if needed, only if doing so will not hide the
246
  // whole code!
247
+ if (toolbar.filter('[data-settings~="overlay"]').length != 0
248
  && main.height() > toolbar.height() * 2) {
249
  toolbar.css('position', 'absolute');
250
  toolbar.css('z-index', 2);
251
  // Hide on single click when overlayed
252
+ if (toolbar.filter('[data-settings~="hide"]').length != 0) {
253
  main.click(function() { toolbar_toggle(uid, undefined, undefined, 0); });
254
  plain.click(function() { toolbar_toggle(uid, false, undefined, 0); });
255
  }
257
  toolbar.css('z-index', 4);
258
  }
259
  // Enable delay on mouseout
260
+ if (toolbar.filter('[data-settings~="delay"]').length != 0) {
261
  crayon[uid].toolbar_delay = 500;
262
  }
263
  // Use .hover() for chrome, but in firefox mouseover/mouseout worked best
269
  }
270
  // Plain show events
271
  if (plain.length != 0 && !touchscreen) {
272
+ if (plain.filter('[data-settings~="dblclick"]').length != 0) {
273
  main.dblclick(function() { CrayonSyntax.toggle_plain(uid); });
274
+ } else if (plain.filter('[data-settings~="click"]').length != 0) {
275
  main.click(function() { CrayonSyntax.toggle_plain(uid); });
276
+ } else if (plain.filter('[data-settings~="mouseover"]').length != 0) {
277
  jQuery(this).mouseenter(function() { CrayonSyntax.toggle_plain(uid, true); })
278
  .mouseleave(function() { CrayonSyntax.toggle_plain(uid, false); });
279
  nums_button.hide();
280
  }
281
+ if (plain.filter('[data-settings~="show-plain-default"]').length != 0) {
282
  CrayonSyntax.toggle_plain(uid, true);
283
  }
284
  }
285
  // Scrollbar show events
286
+ if (!touchscreen && jQuery(this).filter('[data-settings~="scroll-mouseover"]').length != 0) {
287
  // Disable on touchscreen devices and when set to mouseover
288
  main.css('overflow', 'hidden');
289
  plain.css('overflow', 'hidden');
291
  .mouseleave(function() { toggle_scroll(uid, false); });
292
  }
293
  // Disable animations
294
+ if ( jQuery(this).filter('[data-settings~="disable-anim"]').length != 0 ) {
295
  crayon[uid].time = 0;
296
  }
297
 
298
  // Determine if Mac
299
+ crayon[uid].mac = (jQuery(this).hasClass('crayon-os-mac').length != 0);
300
  });
301
+ };
302
 
303
  var make_uid = function(uid) {
304
+ console_log(crayon);
305
  if (typeof crayon[uid] == 'undefined') {
306
  crayon[uid] = jQuery('#'+uid);
307
+ console_log('make ' + uid);
308
  return true;
309
  }
310
 
311
+ console_log('no make ' + uid);
312
  return false;
313
+ };
314
 
315
  var getUID = function() {
316
  return currUID++;
317
+ };
318
 
319
  var code_popup = function(uid) {
320
  if (typeof crayon[uid] == 'undefined') {
327
  if (typeof settings == 'undefined') {
328
  return;
329
  }
330
+ };
331
 
332
  var get_jquery_str = function(object) {
333
  return jQuery('<div>').append(object.clone()).remove().html();
334
+ };
335
 
336
  var remove_css_inline = function(string) {
337
  return string.replace(/style\s*=\s*["'][^"]+["']/gmi, '');
338
+ };
339
 
340
  // Get all CSS on the page as a string
341
  var get_all_css = function() {
342
+ var css_str = '';
343
  css = jQuery('link[rel="stylesheet"]').each(function() {
344
  var string = get_jquery_str(jQuery(this));
345
  css_str += string;
346
  });
347
  return css_str;
348
+ };
349
 
350
  this.copy_plain = function(uid, hover) {
351
  if (typeof crayon[uid] == 'undefined') {
358
  toolbar_toggle(uid, true);
359
 
360
  key = crayon[uid].mac ? '\u2318' : 'CTRL';
361
+ var text = crayon[uid].copy_button.attr('data-text');
362
  text = text.replace(/%s/, key + '+C');
363
  text = text.replace(/%s/, key + '+V');
364
  crayon_info(uid, text);
365
  return false;
366
+ };
367
 
368
  var crayon_info = function(uid, text, show) {
369
  if (typeof crayon[uid] == 'undefined') {
393
  crayon_slide(uid, info, false);
394
  }
395
 
396
+ };
397
 
398
  var crayon_is_slide_hidden = function(object) {
399
  var object_neg_height = '-' + object.height() + 'px';
402
  } else {
403
  return false;
404
  }
405
+ };
406
 
407
  var crayon_slide = function(uid, object, show, anim_time, hide_delay) {
408
  var object_neg_height = '-' + object.height() + 'px';
441
  object.hide();
442
  });
443
  }
444
+ };
445
 
446
  this.toggle_plain = function(uid, hover, select) {
447
  if (typeof crayon[uid] == 'undefined') {
450
 
451
  var main = crayon[uid].main;
452
  var plain = crayon[uid].plain;
 
453
 
454
  if ( (main.is(':animated') || plain.is(':animated')) && typeof hover == 'undefined' ) {
455
  return;
456
+ }
457
 
458
  reconsile_dimensions(uid);
459
 
540
  // Hide toolbar if possible
541
  toolbar_toggle(uid, false);
542
  return false;
543
+ };
544
 
545
  this.toggle_nums = function(uid, hide, instant) {
546
  if (typeof crayon[uid] == 'undefined') {
599
  }
600
  });
601
  return false;
602
+ };
603
 
604
  var fix_table_width = function(uid) {
605
  if (typeof crayon[uid] == 'undefined') {
606
  make_uid(uid);
607
  return false;
608
  }
609
+ };
610
 
611
  // Convert '-10px' to -10
612
  var px_to_int = function(pixels) {
619
  } else {
620
  return parseInt(result);
621
  }
622
+ };
623
 
624
  var update_nums_button = function(uid) {
625
  if (typeof crayon[uid] == 'undefined' || typeof crayon[uid].nums_visible == 'undefined') {
633
  crayon[uid].nums_button.removeClass(PRESSED);
634
  crayon[uid].nums_button.addClass(UNPRESSED);
635
  }
636
+ };
637
 
638
  var update_plain_button = function(uid) {
639
  if (typeof crayon[uid] == 'undefined' || typeof crayon[uid].plain_visible == 'undefined') {
648
  crayon[uid].plain_button.removeClass(PRESSED);
649
  crayon[uid].plain_button.addClass(UNPRESSED);
650
  }
651
+ };
652
 
653
  var toolbar_toggle = function(uid, show, anim_time, hide_delay) {
654
  if (typeof crayon[uid] == 'undefined') {
657
  return;
658
  }
659
  var toolbar = crayon[uid].toolbar;
 
660
 
661
  if (typeof hide_delay == 'undefined') {
662
  hide_delay = crayon[uid].toolbar_delay;
663
  }
664
 
665
  crayon_slide(uid, toolbar, show, anim_time, hide_delay);
666
+ };
667
 
668
  var toggle_scroll = function(uid, show) {
669
  if (typeof crayon[uid] == 'undefined') {
717
  // Register that overflow has changed
718
  crayon[uid].scroll_changed = true;
719
  fix_scroll_blank(uid);
720
+ };
721
 
722
  /* Fix weird draw error, causes blank area to appear where scrollbar once was. */
723
  var fix_scroll_blank = function(uid) {
727
  crayon[uid].table.style('width', '');
728
  clearInterval(redraw);
729
  }, 10);
730
+ };
731
 
732
  var reconsile_dimensions = function(uid) {
733
  // Reconsile dimensions
734
  crayon[uid].plain.height(crayon[uid].main.height());
735
  //crayon[uid].plain.width(crayon[uid].main.width());
736
+ };
737
 
738
  var animt = function(x, uid) {
739
  if (x == 'fast') {
747
  }
748
  }
749
  return x * crayon[uid].time;
750
+ };
751
 
752
  var isNumber = function(x) {
753
  return typeof x == 'number';
754
+ };
755
 
756
+ };
757
 
 
js/crayon_admin.js CHANGED
@@ -1,58 +1,46 @@
1
- <!--
2
  // Crayon Syntax Highlighter Admin JavaScript
3
 
4
- if (typeof DEBUG == 'undefined') {
5
- var DEBUG = false;
6
- }
7
-
8
- if (typeof crayon_log == 'undefined') {
9
- function crayon_log(string) {
10
- if (typeof console != 'undefined' && DEBUG) {
11
- console.log(string);
12
- }
13
- }
14
- }
15
-
16
- // Not used, # is left unencoded
17
- function crayon_escape(string) {
18
- if (typeof encodeURIComponent == 'function') {
19
- return encodeURIComponent(string);
20
- } else if (typeof escape != 'function') {
21
- return escape(string);
22
- } else {
23
- return string;
24
- }
25
- }
26
-
27
- jQuery(document).ready(function() {
28
- crayon_log('admin loaded');
29
- CrayonSyntaxAdmin.init();
30
- });
31
-
32
  var CrayonSyntaxAdmin = new function() {
33
 
34
  // Preview
35
- var preview, preview_cbox, preview_url, preview_height, preview_timer, preview_delay_timer, preview_get;
36
  // The DOM object ids that trigger a preview update
37
  var preview_obj_names = [];
38
  // The jQuery objects for these objects
39
  var preview_objs = [];
40
  var preview_last_values = [];
41
  // Alignment
42
- var align_drop, float;
43
  // Toolbar
44
- var overlay, toolbar;
45
  // Error
46
- var msg_cbox, msg;
47
  // Log
48
- var log_button, log_text, log;
49
 
50
- var main_wrap, theme_editor_wrap, editor_url, theme_editor_button;
51
  var theme_editor_loaded = false;
52
  var theme_editor_loading = false;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
53
 
54
  this.init = function() {
55
- crayon_log('admin init');
56
 
57
  // Wraps
58
  main_wrap = jQuery('#crayon-main-wrap');
@@ -77,36 +65,40 @@ var CrayonSyntaxAdmin = new function() {
77
  });
78
 
79
  // Preview
80
- preview = jQuery('#crayon-preview');
 
81
  preview_url = preview.attr('url');
82
- preview_cbox = jQuery('#preview');
83
- preview_register();
84
- preview.ready(function() {
85
- preview_toggle();
86
- });
 
 
87
  preview_cbox.change(function() { preview_toggle(); });
 
88
 
89
  // Alignment
90
- align_drop = jQuery('#h_align');
91
- float = jQuery('#crayon-float');
92
  align_drop.change(function() { float_toggle(); });
93
  align_drop.ready(function() { float_toggle(); });
94
 
95
  // Custom Error
96
- msg_cbox = jQuery('#error_msg_show');
97
- msg = jQuery('#error_msg');
98
  toggle_error();
99
  msg_cbox.change(function() { toggle_error(); });
100
 
101
  // Toolbar
102
- overlay = jQuery('#toolbar_overlay');
103
- toolbar = jQuery('#toolbar');
104
  toggle_toolbar();
105
  toolbar.change(function() { toggle_toolbar(); });
106
 
107
  // Copy
108
- plain = jQuery('#plain');
109
- copy = jQuery('#crayon-copy-check');
110
  plain.change(function() {
111
  if (plain.is(':checked')) {
112
  copy.show();
@@ -132,16 +124,15 @@ var CrayonSyntaxAdmin = new function() {
132
  log_button.val(text);
133
  });
134
 
135
-
136
- }
137
 
138
  /* Whenever a control changes preview */
139
  var preview_update = function() {
140
- crayon_log('preview_update');
141
  preview_get = '?';
142
  var val = 0;
143
  var obj;
144
- for (i = 0; i < preview_obj_names.length; i++) {
145
  obj = preview_objs[i];
146
  if (obj.attr('type') == 'checkbox') {
147
  val = obj.is(':checked');
@@ -167,30 +158,23 @@ var CrayonSyntaxAdmin = new function() {
167
 
168
  // Load Preview
169
  jQuery.get(preview_url + preview_get, function(data) {
170
- //crayon_log(data);
171
  preview.html(data);
172
  // Important! Calls the crayon.js init
173
  CrayonSyntax.init();
174
  });
175
- }
176
-
177
- var bool_to_int = function(bool) {
178
- if (bool == true) {
179
- return 1;
180
- } else {
181
- return 0;
182
- }
183
- }
184
 
185
  var preview_toggle = function() {
186
- crayon_log('preview_toggle');
187
  if ( preview_cbox.is(':checked') ) {
188
  preview.show();
 
189
  preview_update();
190
  } else {
191
  preview.hide();
 
192
  }
193
- }
194
 
195
  var float_toggle = function() {
196
  if ( align_drop.val() != 0 ) {
@@ -198,7 +182,7 @@ var CrayonSyntaxAdmin = new function() {
198
  } else {
199
  float.hide();
200
  }
201
- }
202
 
203
  // List of callbacks
204
  var preview_callback;
@@ -209,55 +193,55 @@ var CrayonSyntaxAdmin = new function() {
209
 
210
  // Register all event handlers for preview objects
211
  var preview_register = function() {
212
- crayon_log('preview_register');
213
- var obj;
214
  preview_get = '?';
215
 
216
  // Instant callback
217
  preview_callback = function() {
218
  preview_update();
219
- }
220
 
221
  // Checks if the text input is changed, if so, runs the callback with given event
222
  preview_txt_change = function(callback, event) {
223
- //crayon_log('checking if changed');
224
  var obj = event.target;
225
  var last = preview_last_values[obj.id];
226
- //crayon_log('last' + preview_last_values[obj.id]);
227
 
228
  if (obj.value != last) {
229
- //crayon_log('changed');
230
  // Update last value to current
231
  preview_last_values[obj.id] = obj.value;
232
  // Run callback with event
233
  callback(event);
234
  }
235
- }
236
 
237
  // Only updates when text is changed
238
  preview_txt_callback = function(event) {
239
- //crayon_log('txt callback');
240
  preview_txt_change(preview_update, event);
241
- }
242
 
243
  // Only updates when text is changed, but callback
244
  preview_txt_callback_delayed = function(event) {
245
- //crayon_log('txt delayed');
246
-
247
  preview_txt_change(function() {
248
  clearInterval(preview_delay_timer);
249
  preview_delay_timer = setInterval(function() {
250
- //crayon_log('delayed update');
251
  preview_update();
252
  clearInterval(preview_delay_timer);
253
  }, 500);
254
  }, event);
255
- }
256
 
257
  // Retreive preview objects
258
  jQuery('[crayon-preview="1"]').each(function(i) {
259
  var obj = jQuery(this);
260
- preview_obj_names[i] = obj.attr('id');
 
 
 
261
  preview_objs[i] = obj;
262
  // To capture key up events when typing
263
  if (obj.attr('type') == 'text') {
@@ -269,7 +253,7 @@ var CrayonSyntaxAdmin = new function() {
269
  obj.change(preview_callback);
270
  }
271
  });
272
- }
273
 
274
  var toggle_error = function() {
275
  if ( msg_cbox.is(':checked') ) {
@@ -277,7 +261,7 @@ var CrayonSyntaxAdmin = new function() {
277
  } else {
278
  msg.hide();
279
  }
280
- }
281
 
282
  var toggle_toolbar = function() {
283
  if ( toolbar.val() == 0 ) {
@@ -285,24 +269,24 @@ var CrayonSyntaxAdmin = new function() {
285
  } else {
286
  overlay.hide();
287
  }
288
- }
289
 
290
  this.show_langs = function(url) {
291
  // jQuery('#show-lang').hide();
292
  jQuery.get(url, function(data) {
293
  // jQuery('#lang-info').show();
294
- jQuery('#lang-info').html(data);
295
  });
296
  return false;
297
- }
298
 
299
  this.get_vars = function() {
300
  var vars = {};
301
- var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) {
302
  vars[key] = value;
303
  });
304
  return vars;
305
- }
306
 
307
  // Changing wrap views
308
  this.show_main = function() {
@@ -310,7 +294,7 @@ var CrayonSyntaxAdmin = new function() {
310
  main_wrap.show();
311
  jQuery(window).scrollTop(0);
312
  return false;
313
- }
314
 
315
  this.show_theme_editor_now = function() {
316
  main_wrap.hide();
@@ -319,7 +303,7 @@ var CrayonSyntaxAdmin = new function() {
319
 
320
  theme_editor_loading = false;
321
  theme_editor_button.html(theme_editor_button.attr('loaded'));
322
- }
323
 
324
  this.show_theme_editor = function() {
325
  if (theme_editor_loading) {
@@ -355,8 +339,6 @@ var CrayonSyntaxAdmin = new function() {
355
  this.show_theme_editor_now();
356
  }
357
  return false;
358
- }
359
 
360
- }
361
-
362
- //-->
 
1
  // Crayon Syntax Highlighter Admin JavaScript
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  var CrayonSyntaxAdmin = new function() {
4
 
5
  // Preview
6
+ var preview = preview_info = preview_cbox = preview_url = preview_delay_timer = preview_get = null;
7
  // The DOM object ids that trigger a preview update
8
  var preview_obj_names = [];
9
  // The jQuery objects for these objects
10
  var preview_objs = [];
11
  var preview_last_values = [];
12
  // Alignment
13
+ var align_drop = float = null;
14
  // Toolbar
15
+ var overlay = toolbar = null;
16
  // Error
17
+ var msg_cbox = msg = null;
18
  // Log
19
+ var log_button = log_text = null;
20
 
21
+ var main_wrap = theme_editor_wrap = editor_url = theme_editor_button = null;
22
  var theme_editor_loaded = false;
23
  var theme_editor_loading = false;
24
+
25
+ var settings = CrayonSyntaxSettings;
26
+ var me = this;
27
+
28
+ this.cssElem = function(id) {
29
+ return jQuery(this.addPrefixToID(id));
30
+ };
31
+
32
+ // Used in Tag Editor
33
+ this.addPrefixToID = function(id) {
34
+ return id.replace(/^([#.])?(.*)$/, '$1'+settings.prefix+'$2');
35
+ };
36
+
37
+ this.removePrefixFromID = function(id) {
38
+ var re = new RegExp('^[#.]?'+settings.prefix, 'i');
39
+ return id.replace(re,'');
40
+ };
41
 
42
  this.init = function() {
43
+ console_log('admin init');
44
 
45
  // Wraps
46
  main_wrap = jQuery('#crayon-main-wrap');
65
  });
66
 
67
  // Preview
68
+ preview = jQuery('#crayon-live-preview');
69
+ preview_info = jQuery('#crayon-preview-info');
70
  preview_url = preview.attr('url');
71
+ preview_cbox = me.cssElem('#preview');
72
+ if (preview.length != 0) {
73
+ // Preview not needed in Tag Editor
74
+ preview_register();
75
+ preview.ready(function() {
76
+ preview_toggle();
77
+ });
78
  preview_cbox.change(function() { preview_toggle(); });
79
+ }
80
 
81
  // Alignment
82
+ align_drop = me.cssElem('#h-align');
83
+ float = jQuery('#crayon-subsection-float');
84
  align_drop.change(function() { float_toggle(); });
85
  align_drop.ready(function() { float_toggle(); });
86
 
87
  // Custom Error
88
+ msg_cbox = me.cssElem('#error-msg-show');
89
+ msg = me.cssElem('#error-msg');
90
  toggle_error();
91
  msg_cbox.change(function() { toggle_error(); });
92
 
93
  // Toolbar
94
+ overlay = jQuery('#crayon-subsection-toolbar');
95
+ toolbar = me.cssElem('#toolbar');
96
  toggle_toolbar();
97
  toolbar.change(function() { toggle_toolbar(); });
98
 
99
  // Copy
100
+ plain = me.cssElem('#plain');
101
+ copy = jQuery('#crayon-subsection-copy-check');
102
  plain.change(function() {
103
  if (plain.is(':checked')) {
104
  copy.show();
124
  log_button.val(text);
125
  });
126
 
127
+ };
 
128
 
129
  /* Whenever a control changes preview */
130
  var preview_update = function() {
131
+ // console_log('preview_update');
132
  preview_get = '?';
133
  var val = 0;
134
  var obj;
135
+ for (var i = 0; i < preview_obj_names.length; i++) {
136
  obj = preview_objs[i];
137
  if (obj.attr('type') == 'checkbox') {
138
  val = obj.is(':checked');
158
 
159
  // Load Preview
160
  jQuery.get(preview_url + preview_get, function(data) {
 
161
  preview.html(data);
162
  // Important! Calls the crayon.js init
163
  CrayonSyntax.init();
164
  });
165
+ };
 
 
 
 
 
 
 
 
166
 
167
  var preview_toggle = function() {
168
+ // console_log('preview_toggle');
169
  if ( preview_cbox.is(':checked') ) {
170
  preview.show();
171
+ preview_info.show();
172
  preview_update();
173
  } else {
174
  preview.hide();
175
+ preview_info.hide();
176
  }
177
+ };
178
 
179
  var float_toggle = function() {
180
  if ( align_drop.val() != 0 ) {
182
  } else {
183
  float.hide();
184
  }
185
+ };
186
 
187
  // List of callbacks
188
  var preview_callback;
193
 
194
  // Register all event handlers for preview objects
195
  var preview_register = function() {
196
+ // console_log('preview_register');
 
197
  preview_get = '?';
198
 
199
  // Instant callback
200
  preview_callback = function() {
201
  preview_update();
202
+ };
203
 
204
  // Checks if the text input is changed, if so, runs the callback with given event
205
  preview_txt_change = function(callback, event) {
206
+ //console_log('checking if changed');
207
  var obj = event.target;
208
  var last = preview_last_values[obj.id];
209
+ //console_log('last' + preview_last_values[obj.id]);
210
 
211
  if (obj.value != last) {
212
+ //console_log('changed');
213
  // Update last value to current
214
  preview_last_values[obj.id] = obj.value;
215
  // Run callback with event
216
  callback(event);
217
  }
218
+ };
219
 
220
  // Only updates when text is changed
221
  preview_txt_callback = function(event) {
222
+ //console_log('txt callback');
223
  preview_txt_change(preview_update, event);
224
+ };
225
 
226
  // Only updates when text is changed, but callback
227
  preview_txt_callback_delayed = function(event) {
 
 
228
  preview_txt_change(function() {
229
  clearInterval(preview_delay_timer);
230
  preview_delay_timer = setInterval(function() {
231
+ //console_log('delayed update');
232
  preview_update();
233
  clearInterval(preview_delay_timer);
234
  }, 500);
235
  }, event);
236
+ };
237
 
238
  // Retreive preview objects
239
  jQuery('[crayon-preview="1"]').each(function(i) {
240
  var obj = jQuery(this);
241
+ var id = obj.attr('id');
242
+ // XXX Remove prefix
243
+ id = me.removePrefixFromID(id);
244
+ preview_obj_names[i] = id;
245
  preview_objs[i] = obj;
246
  // To capture key up events when typing
247
  if (obj.attr('type') == 'text') {
253
  obj.change(preview_callback);
254
  }
255
  });
256
+ };
257
 
258
  var toggle_error = function() {
259
  if ( msg_cbox.is(':checked') ) {
261
  } else {
262
  msg.hide();
263
  }
264
+ };
265
 
266
  var toggle_toolbar = function() {
267
  if ( toolbar.val() == 0 ) {
269
  } else {
270
  overlay.hide();
271
  }
272
+ };
273
 
274
  this.show_langs = function(url) {
275
  // jQuery('#show-lang').hide();
276
  jQuery.get(url, function(data) {
277
  // jQuery('#lang-info').show();
278
+ jQuery('#crayon-subsection-lang-info').html(data);
279
  });
280
  return false;
281
+ };
282
 
283
  this.get_vars = function() {
284
  var vars = {};
285
+ window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) {
286
  vars[key] = value;
287
  });
288
  return vars;
289
+ };
290
 
291
  // Changing wrap views
292
  this.show_main = function() {
294
  main_wrap.show();
295
  jQuery(window).scrollTop(0);
296
  return false;
297
+ };
298
 
299
  this.show_theme_editor_now = function() {
300
  main_wrap.hide();
303
 
304
  theme_editor_loading = false;
305
  theme_editor_button.html(theme_editor_button.attr('loaded'));
306
+ };
307
 
308
  this.show_theme_editor = function() {
309
  if (theme_editor_loading) {
339
  this.show_theme_editor_now();
340
  }
341
  return false;
342
+ };
343
 
344
+ };
 
 
js/util.js ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ if (typeof CrayonTagEditorSettings == 'undefined') {
2
+ // WP may have already added it
3
+ CrayonTagEditorSettings = {};
4
+ }
5
+
6
+ RegExp.prototype.execAll = function(string) {
7
+ var matches = [];
8
+ var match = null;
9
+ while ( (match = this.exec(string)) != null ) {
10
+ var matchArray = [];
11
+ for (var i in match) {
12
+ if (parseInt(i) == i) {
13
+ matchArray.push(match[i]);
14
+ }
15
+ }
16
+ matches.push(matchArray);
17
+ }
18
+ return matches;
19
+ };
20
+
21
+ var CRAYON_DEBUG = false;
22
+
23
+ function console_log(string) {
24
+ if (typeof console != 'undefined' && CRAYON_DEBUG) {
25
+ console.log(string);
26
+ }
27
+ }
28
+
29
+ //# is left unencoded
30
+ function crayon_escape(string) {
31
+ if (typeof encodeURIComponent == 'function') {
32
+ return encodeURIComponent(string);
33
+ } else if (typeof escape != 'function') {
34
+ return escape(string);
35
+ } else {
36
+ return string;
37
+ }
38
+ }
39
+
40
+ function crayon_decode_html(str) {
41
+ return String(str)
42
+ .replace(/&amp;/g, '&')
43
+ .replace(/&lt;/g, '<')
44
+ .replace(/&gt;/g, '>');
45
+ }
46
+
47
+ function crayon_encode_html(str) {
48
+ return String(str)
49
+ .replace(/&/g, '&amp;')
50
+ .replace(/</g, '&lt;')
51
+ .replace(/>/g, '&gt;');
52
+ }
53
+
54
+ //http://stackoverflow.com/questions/2360655/jquery-event-handlers-always-execute-in-order-they-were-bound-any-way-around-t
55
+
56
+ //[name] is the name of the event "click", "mouseover", ..
57
+ //same as you'd pass it to bind()
58
+ //[fn] is the handler function
59
+ jQuery.fn.bindFirst = function(name, fn) {
60
+ // bind as you normally would
61
+ // don't want to miss out on any jQuery magic
62
+ this.bind(name, fn);
63
+
64
+ // Thanks to a comment by @Martin, adding support for
65
+ // namespaced events too.
66
+ var handlers = this.data('events')[name.split('.')[0]];
67
+ // take out the handler we just inserted from the end
68
+ var handler = handlers.pop();
69
+ // move it at the beginning
70
+ handlers.splice(0, 0, handler);
71
+ };
langs/abap/abap.txt ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ### ABAP LANGUAGE ###
2
+
3
+ # ELEMENT_NAME [optional-css-class] REGULAR_EXPRESSION
4
+
5
+ NAME ABAP
6
+ VERSION 1.8.4
7
+
8
+ COMMENT (^\s*\*.*?$)|(".*?$)
9
+ STRING ('.*?')|(`.*?`)
10
+
11
+ RESERVED \b(?alt:reserved.txt)\b
12
+
13
+ ENTITY \b\w+(?=\([^\)]*\))
14
+ STATEMENT \b(?alt:statement.txt)\b
15
+ OPERATOR (?alt:operator.txt)
16
+ CONSTANT (?default)
17
+ SYMBOL (?default)
langs/abap/operator.txt ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (
2
+ )
3
+ {
4
+ }
5
+ [
6
+ ]
7
+ +
8
+ -
9
+ *
10
+ /
11
+ !
12
+ %
13
+ ^
14
+ &
15
+ :
16
+ .
17
+ >=
18
+ <=
19
+ <
20
+ >
21
+ =
22
+ ?=
langs/abap/reserved.txt ADDED
@@ -0,0 +1,404 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ scientific_with_leading_zero
2
+ scale_preserving_scientific
3
+ class_constructor
4
+ extended_monetary
5
+ count_any_not_of
6
+ cx_dynamic_check
7
+ scale_preserving
8
+ substring_before
9
+ concat_lines_of
10
+ cx_static_check
11
+ exception-table
12
+ find_any_not_of
13
+ parameter-table
14
+ right-specified
15
+ sign_as_postfix
16
+ substring_after
17
+ col_background
18
+ implementation
19
+ left-justified
20
+ substring_from
21
+ error_message
22
+ output-length
23
+ value-request
24
+ col_negative
25
+ col_positive
26
+ count_any_of
27
+ display-mode
28
+ errormessage
29
+ filter-table
30
+ help-request
31
+ no-extension
32
+ no-scrolling
33
+ no-topofpage
34
+ on change of
35
+ redefinition
36
+ shortdump-id
37
+ substring_to
38
+ transporting
39
+ user-command
40
+ with-heading
41
+ abbreviated
42
+ col_heading
43
+ destination
44
+ engineering
45
+ environment
46
+ find_any_of
47
+ immediately
48
+ intensified
49
+ no-grouping
50
+ non-unicode
51
+ responsible
52
+ shift_right
53
+ title-lines
54
+ trace-table
55
+ activation
56
+ attributes
57
+ col_normal
58
+ components
59
+ dd/mm/yyyy
60
+ deallocate
61
+ decfloat16
62
+ decfloat34
63
+ definition
64
+ department
65
+ descending
66
+ disconnect
67
+ exceptions
68
+ first-line
69
+ from_mixed
70
+ head-lines
71
+ index-line
72
+ line-count
73
+ message-id
74
+ mm/dd/yyyy
75
+ no-display
76
+ no-heading
77
+ obligatory
78
+ performing
79
+ pushbutton
80
+ queue-only
81
+ returncode
82
+ rightspace
83
+ scientific
84
+ shift_left
85
+ statusinfo
86
+ submatches
87
+ table_line
88
+ trace-file
89
+ with-title
90
+ appending
91
+ ascending
92
+ assigning
93
+ col_group
94
+ col_total
95
+ comparing
96
+ condition
97
+ csequence
98
+ dangerous
99
+ end-lines
100
+ excluding
101
+ exporting
102
+ importing
103
+ including
104
+ increment
105
+ leftspace
106
+ line-size
107
+ numofchar
108
+ quickinfo
109
+ read-only
110
+ receiving
111
+ reference
112
+ replacing
113
+ resumable
114
+ returning
115
+ rightplus
116
+ requested
117
+ scrolling
118
+ structure
119
+ substring
120
+ timestamp
121
+ top-lines
122
+ xsequence
123
+ abstract
124
+ allocate
125
+ assigned
126
+ backward
127
+ centered
128
+ changing
129
+ char_off
130
+ circular
131
+ creating
132
+ critical
133
+ currency
134
+ database
135
+ datainfo
136
+ dbmaxlen
137
+ dd/mm/yy
138
+ decfloat
139
+ decimals
140
+ deferred
141
+ distance
142
+ distinct
143
+ encoding
144
+ exponent
145
+ find_end
146
+ harmless
147
+ language
148
+ leftplus
149
+ major-id
150
+ minor-id
151
+ mm/dd/yy
152
+ modifier
153
+ monetary
154
+ no-title
155
+ optional
156
+ pos_high
157
+ priority
158
+ received
159
+ receiver
160
+ supplied
161
+ timezone
162
+ to_lower
163
+ to_mixed
164
+ to_upper
165
+ between
166
+ bit-and
167
+ bit-not
168
+ bit-set
169
+ bit-xor
170
+ byte-ca
171
+ byte-cn
172
+ byte-co
173
+ byte-cs
174
+ byte-na
175
+ byte-ns
176
+ calling
177
+ casting
178
+ charlen
179
+ col_key
180
+ comment
181
+ context
182
+ country
183
+ current
184
+ cx_root
185
+ default
186
+ exclude
187
+ filters
188
+ forward
189
+ friends
190
+ help-id
191
+ hotspot
192
+ initial
193
+ inverse
194
+ matches
195
+ no-gaps
196
+ no-sign
197
+ no-zero
198
+ numeric
199
+ objects
200
+ options
201
+ pos_low
202
+ raising
203
+ results
204
+ rescale
205
+ reverse
206
+ seconds
207
+ segment
208
+ varying
209
+ version
210
+ warning
211
+ xstring
212
+ xstrlen
213
+ accept
214
+ bit-or
215
+ blocks
216
+ bounds
217
+ center
218
+ client
219
+ column
220
+ copies
221
+ ddmmyy
222
+ escape
223
+ exists
224
+ filter
225
+ giving
226
+ handle
227
+ having
228
+ layout
229
+ length
230
+ medium
231
+ memory
232
+ module
233
+ mmddyy
234
+ no-gap
235
+ number
236
+ occurs
237
+ offset
238
+ option
239
+ output
240
+ others
241
+ public
242
+ result
243
+ repeat
244
+ screen
245
+ simple
246
+ single
247
+ source
248
+ stable
249
+ static
250
+ string
251
+ strlen
252
+ subkey
253
+ switch
254
+ unique
255
+ values
256
+ yymmdd
257
+ alias
258
+ align
259
+ boolc
260
+ boolx
261
+ bound
262
+ boxed
263
+ clike
264
+ close
265
+ color
266
+ count
267
+ dummy
268
+ equiv
269
+ exact
270
+ field
271
+ final
272
+ floor
273
+ index
274
+ inner
275
+ inout
276
+ log10
277
+ level
278
+ lines
279
+ lower
280
+ match
281
+ nodes
282
+ pages
283
+ range
284
+ regex
285
+ reset
286
+ right
287
+ round
288
+ short
289
+ space
290
+ spots
291
+ state
292
+ style
293
+ super
294
+ table
295
+ times
296
+ title
297
+ trunc
298
+ under
299
+ using
300
+ utf-8
301
+ valid
302
+ value
303
+ where
304
+ width
305
+ acos
306
+ area
307
+ asin
308
+ atan
309
+ ceil
310
+ cmax
311
+ cmin
312
+ cosh
313
+ date
314
+ font
315
+ frac
316
+ from
317
+ high
318
+ hold
319
+ incl
320
+ into
321
+ join
322
+ kind
323
+ late
324
+ left
325
+ like
326
+ line
327
+ load
328
+ long
329
+ mail
330
+ mode
331
+ name
332
+ next
333
+ nmax
334
+ nmin
335
+ null
336
+ only
337
+ open
338
+ page
339
+ part
340
+ rows
341
+ sign
342
+ sinh
343
+ size
344
+ some
345
+ sqrt
346
+ tanh
347
+ then
348
+ time
349
+ type
350
+ unit
351
+ vary
352
+ with
353
+ word
354
+ zero
355
+ all
356
+ and
357
+ any
358
+ avg
359
+ cnt
360
+ cpi
361
+ cos
362
+ div
363
+ exp
364
+ for
365
+ ids
366
+ iso
367
+ key
368
+ low
369
+ lpi
370
+ max
371
+ min
372
+ mod
373
+ not
374
+ off
375
+ out
376
+ pad
377
+ sin
378
+ tan
379
+ tab
380
+ yes
381
+ as
382
+ bt
383
+ by
384
+ ca
385
+ cn
386
+ co
387
+ cp
388
+ cs
389
+ eq
390
+ ge
391
+ gt
392
+ id
393
+ in
394
+ is
395
+ le
396
+ lt
397
+ nb
398
+ ne
399
+ no
400
+ of
401
+ or
402
+ to
403
+ o
404
+ z
langs/abap/statement.txt ADDED
@@ -0,0 +1,670 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ using selection-sets of program
2
+ preserving identifier escaping
3
+ without further secondary keys
4
+ receive results from function
5
+ at next application statement
6
+ corresponding fields of table
7
+ ignoring structure boundaries
8
+ keeping logical unit of work
9
+ with further secondary keys
10
+ ignoring conversion errors
11
+ with explicit enhancements
12
+ with implicit enhancements
13
+ with inactive enhancements
14
+ scan and check abap-source
15
+ with current switchstates
16
+ generate subroutine-pool
17
+ leave to list-processing
18
+ set left scroll-boundary
19
+ accepting duplicate keys
20
+ enhancement options into
21
+ exporting list to memory
22
+ no standard page heading
23
+ skipping byte-order mark
24
+ with precompiled headers
25
+ without selection-screen
26
+ syntax-check for program
27
+ call customer subscreen
28
+ corresponding fields of
29
+ environment time format
30
+ keeping directory entry
31
+ new list identification
32
+ end-enhancement-section
33
+ syntax-check for dynpro
34
+ call customer-function
35
+ fixed-point arithmetic
36
+ transporting no fields
37
+ using selection-screen
38
+ with list tokenization
39
+ multiply-corresponding
40
+ subtract-corresponding
41
+ call selection-screen
42
+ leave list-processing
43
+ set run time analyzer
44
+ and skip first screen
45
+ begin of tabbed block
46
+ during line-selection
47
+ in legacy binary mode
48
+ no database selection
49
+ non-unique sorted key
50
+ reduced functionality
51
+ replacement character
52
+ shared memory enabled
53
+ with windows linefeed
54
+ leave to transaction
55
+ accepting truncation
56
+ and return to screen
57
+ archiving parameters
58
+ begin of common part
59
+ daylight saving time
60
+ implementations from
61
+ include program from
62
+ on radiobutton group
63
+ on value-request for
64
+ renaming with suffix
65
+ via selection-screen
66
+ with byte-order mark
67
+ with free selections
68
+ with native linefeed
69
+ with selection-table
70
+ without spool dynpro
71
+ divide-corresponding
72
+ verification-message
73
+ at selection-screen
74
+ call transformation
75
+ exit from step-loop
76
+ adjacent duplicates
77
+ at cursor-selection
78
+ end of tabbed block
79
+ first occurrence of
80
+ in char-to-hex mode
81
+ in legacy text mode
82
+ on help-request for
83
+ option class-coding
84
+ preferred parameter
85
+ using selection-set
86
+ with non-unique key
87
+ with smart linefeed
88
+ enhancement-section
89
+ assign table field
90
+ convert time stamp
91
+ set extended check
92
+ set run time clock
93
+ as search patterns
94
+ dataset expiration
95
+ dynamic selections
96
+ end of common part
97
+ frame program from
98
+ from number format
99
+ in background task
100
+ in background unit
101
+ into sortable code
102
+ maximum width into
103
+ not at end of mode
104
+ radiobutton groups
105
+ replacement length
106
+ replacement offset
107
+ using no edit mask
108
+ with unix linefeed
109
+ move-corresponding
110
+ start-of-selection
111
+ protected section
112
+ at line-selection
113
+ describe distance
114
+ accepting padding
115
+ all other columns
116
+ defining database
117
+ deleting trailing
118
+ execute procedure
119
+ for all instances
120
+ in character mode
121
+ include structure
122
+ option syncpoints
123
+ radiobutton group
124
+ replacement count
125
+ respecting blanks
126
+ standard table of
127
+ starting new task
128
+ structure default
129
+ add-corresponding
130
+ end-of-definition
131
+ enhancement-point
132
+ assign component
133
+ call transaction
134
+ import directory
135
+ insert text-pool
136
+ set user-command
137
+ truncate dataset
138
+ all blob columns
139
+ all clob columns
140
+ as separate unit
141
+ begin of version
142
+ by kernel module
143
+ bypassing buffer
144
+ client specified
145
+ create protected
146
+ current position
147
+ deleting leading
148
+ enhancement into
149
+ field value into
150
+ init destination
151
+ main table field
152
+ matchcode object
153
+ no intervals off
154
+ no-extension off
155
+ open for package
156
+ replacement line
157
+ spool parameters
158
+ to number format
159
+ unicode enabling
160
+ with header line
161
+ end-of-selection
162
+ selection-screen
163
+ on chain-request
164
+ on value-request
165
+ scan abap-source
166
+ private section
167
+ at user-command
168
+ move percentage
169
+ raise exception
170
+ refresh control
171
+ set blank lines
172
+ set update task
173
+ suppress dialog
174
+ as person table
175
+ at exit-command
176
+ begin of screen
177
+ compression off
178
+ default program
179
+ directory entry
180
+ field selection
181
+ for all entries
182
+ from logfile id
183
+ hashed table of
184
+ inheriting from
185
+ initial line of
186
+ line value from
187
+ line value into
188
+ number of lines
189
+ number of pages
190
+ of current page
191
+ on exit-command
192
+ package section
193
+ respecting case
194
+ sorted table of
195
+ statements into
196
+ structures into
197
+ using edit mask
198
+ with type-pools
199
+ with unique key
200
+ authority-check
201
+ load-of-program
202
+ on help-request
203
+ generate dynpro
204
+ generate report
205
+ include methods
206
+ loop at screen
207
+ public section
208
+ delete dataset
209
+ describe field
210
+ describe table
211
+ export nametab
212
+ get time stamp
213
+ appendage type
214
+ begin of block
215
+ code page hint
216
+ code page into
217
+ compression on
218
+ create package
219
+ create private
220
+ default screen
221
+ display offset
222
+ end of version
223
+ extension type
224
+ from code page
225
+ get connection
226
+ global friends
227
+ in binary mode
228
+ in remote task
229
+ in update task
230
+ including gaps
231
+ internal table
232
+ list authority
233
+ lob handle for
234
+ maximum length
235
+ no end of line
236
+ non-unique key
237
+ obligatory off
238
+ on end of task
239
+ receive buffer
240
+ reference into
241
+ sap cover page
242
+ standard table
243
+ type tableview
244
+ visible length
245
+ whenever found
246
+ with table key
247
+ with test code
248
+ endenhancement
249
+ initialization
250
+ interface-pool
251
+ call subscreen
252
+ on chain-input
253
+ import nametab
254
+ select-options
255
+ call function
256
+ close dataset
257
+ create object
258
+ describe list
259
+ exit from sql
260
+ export dynpro
261
+ get parameter
262
+ get pf-status
263
+ get reference
264
+ insert report
265
+ leave program
266
+ modify screen
267
+ read textpool
268
+ rollback work
269
+ set hold data
270
+ set parameter
271
+ set pf-status
272
+ actual length
273
+ before output
274
+ before unwind
275
+ begin of line
276
+ binary search
277
+ create public
278
+ end of screen
279
+ final methods
280
+ for appending
281
+ from database
282
+ ignoring case
283
+ in background
284
+ include bound
285
+ keep in spool
286
+ keywords from
287
+ little endian
288
+ local friends
289
+ messages into
290
+ nesting level
291
+ option coding
292
+ option expand
293
+ overflow into
294
+ ref to object
295
+ shared buffer
296
+ shared memory
297
+ to first page
298
+ to lower case
299
+ to upper case
300
+ type tabstrip
301
+ valid between
302
+ with analysis
303
+ with comments
304
+ with includes
305
+ with linefeed
306
+ without trmac
307
+ class-methods
308
+ function-pool
309
+ print-control
310
+ import dynpro
311
+ field-symbols
312
+ close cursor
313
+ convert date
314
+ convert text
315
+ get property
316
+ get run time
317
+ leave screen
318
+ open dataset
319
+ read dataset
320
+ set language
321
+ set property
322
+ set titlebar
323
+ according to
324
+ archive mode
325
+ as subscreen
326
+ color yellow
327
+ display like
328
+ end of block
329
+ field format
330
+ for event of
331
+ from context
332
+ function key
333
+ hashed table
334
+ in byte mode
335
+ in text mode
336
+ include into
337
+ include type
338
+ initial line
339
+ initial size
340
+ keeping task
341
+ list dataset
342
+ match length
343
+ match offset
344
+ message into
345
+ no intervals
346
+ option class
347
+ options from
348
+ package size
349
+ program from
350
+ program type
351
+ separated by
352
+ sorted table
353
+ to code page
354
+ to last page
355
+ to last line
356
+ to sap spool
357
+ using screen
358
+ with pragmas
359
+ class-events
360
+ endinterface
361
+ field-groups
362
+ syntax-check
363
+ syntax-trace
364
+ call dialog
365
+ call method
366
+ call screen
367
+ commit work
368
+ create data
369
+ delete from
370
+ free memory
371
+ get dataset
372
+ modify line
373
+ open cursor
374
+ raise event
375
+ read report
376
+ set country
377
+ set dataset
378
+ set handler
379
+ after input
380
+ all methods
381
+ area handle
382
+ as checkbox
383
+ at position
384
+ backup into
385
+ binary mode
386
+ color black
387
+ color green
388
+ data buffer
389
+ data values
390
+ default key
391
+ end of file
392
+ end of line
393
+ endian into
394
+ for columns
395
+ for testing
396
+ frame entry
397
+ from screen
398
+ index table
399
+ left margin
400
+ levels into
401
+ line format
402
+ locator for
403
+ match count
404
+ next cursor
405
+ offset into
406
+ on rollback
407
+ primary key
408
+ ref to data
409
+ result into
410
+ search fkeq
411
+ search fkge
412
+ search gkeq
413
+ search gkge
414
+ send buffer
415
+ starting at
416
+ table field
417
+ tokens into
418
+ value check
419
+ break-point
420
+ concatenate
421
+ editor-call
422
+ end-of-file
423
+ end-of-page
424
+ endfunction
425
+ enhancement
426
+ new-section
427
+ top-of-page
428
+ load report
429
+ system-call
430
+ system-exit
431
+ get cursor
432
+ get locale
433
+ read table
434
+ set cursor
435
+ set locale
436
+ set margin
437
+ set screen
438
+ wait until
439
+ wait up to
440
+ all fields
441
+ and return
442
+ as listbox
443
+ big endian
444
+ color blue
445
+ color pink
446
+ connect to
447
+ cover page
448
+ cover text
449
+ for output
450
+ for select
451
+ for update
452
+ from table
453
+ in program
454
+ left outer
455
+ lower case
456
+ match line
457
+ object key
458
+ of program
459
+ reader for
460
+ risk level
461
+ section of
462
+ time stamp
463
+ to context
464
+ upper case
465
+ valid from
466
+ with frame
467
+ writer for
468
+ class-pool
469
+ endprovide
470
+ interfaces
471
+ on request
472
+ class-data
473
+ parameters
474
+ type-pools
475
+ at end of
476
+ call badi
477
+ read line
478
+ any table
479
+ as symbol
480
+ as window
481
+ code page
482
+ color red
483
+ edit mask
484
+ ending at
485
+ for field
486
+ for input
487
+ for lines
488
+ for table
489
+ line into
490
+ line page
491
+ list name
492
+ memory id
493
+ no dialog
494
+ no fields
495
+ on commit
496
+ on end of
497
+ print off
498
+ sorted by
499
+ text mode
500
+ time zone
501
+ to column
502
+ using key
503
+ with hold
504
+ with null
505
+ word into
506
+ endmethod
507
+ endmodule
508
+ endselect
509
+ infotypes
510
+ interface
511
+ log-point
512
+ translate
513
+ type-pool
514
+ constants
515
+ at first
516
+ exec sql
517
+ get badi
518
+ get time
519
+ and mark
520
+ and wait
521
+ begin of
522
+ for high
523
+ for node
524
+ for user
525
+ group by
526
+ if found
527
+ in group
528
+ in table
529
+ lines of
530
+ modif id
531
+ no flush
532
+ on block
533
+ order by
534
+ print on
535
+ range of
536
+ table of
537
+ with key
538
+ condense
539
+ endclass
540
+ function
541
+ multiply
542
+ new-line
543
+ new-page
544
+ position
545
+ subtract
546
+ transfer
547
+ endchain
548
+ on input
549
+ continue
550
+ endcatch
551
+ endwhile
552
+ controls
553
+ at last
554
+ loop at
555
+ get bit
556
+ set bit
557
+ as icon
558
+ as line
559
+ as text
560
+ for low
561
+ line of
562
+ of page
563
+ to line
564
+ to page
565
+ via job
566
+ aliases
567
+ collect
568
+ compute
569
+ endexec
570
+ endform
571
+ extract
572
+ include
573
+ maximum
574
+ message
575
+ methods
576
+ minimum
577
+ overlay
578
+ perform
579
+ program
580
+ provide
581
+ refresh
582
+ replace
583
+ reserve
584
+ summary
585
+ summing
586
+ process
587
+ cleanup
588
+ endcase
589
+ endloop
590
+ statics
591
+ at new
592
+ end of
593
+ ref to
594
+ append
595
+ assign
596
+ define
597
+ delete
598
+ demand
599
+ detail
600
+ divide
601
+ export
602
+ events
603
+ format
604
+ import
605
+ insert
606
+ method
607
+ modify
608
+ reject
609
+ report
610
+ scroll
611
+ search
612
+ select
613
+ submit
614
+ supply
615
+ unpack
616
+ update
617
+ window
618
+ assert
619
+ elseif
620
+ endtry
621
+ resume
622
+ return
623
+ fields
624
+ ranges
625
+ tables
626
+ up to
627
+ clear
628
+ class
629
+ endon
630
+ fetch
631
+ input
632
+ leave
633
+ raise
634
+ shift
635
+ split
636
+ uline
637
+ write
638
+ chain
639
+ catch
640
+ check
641
+ endat
642
+ endif
643
+ enddo
644
+ retry
645
+ while
646
+ local
647
+ types
648
+ find
649
+ form
650
+ free
651
+ hide
652
+ move
653
+ pack
654
+ skip
655
+ sort
656
+ case
657
+ else
658
+ exit
659
+ loop
660
+ stop
661
+ when
662
+ data
663
+ add
664
+ get
665
+ put
666
+ sum
667
+ try
668
+ at
669
+ do
670
+ if
langs/css/css.txt CHANGED
@@ -3,19 +3,19 @@
3
  # ELEMENT_NAME [optional-css-class] REGULAR_EXPRESSION
4
 
5
  NAME CSS
6
- VERSION 1.8.0
7
 
8
  COMMENT (/\*.*?\*/)
9
  STRING (?default)
10
  NOTATION \@[\w-]+
11
 
12
- # For the <script> tag
13
  ATT_STR:STRING (((?<!\\)".*?(?<!\\)")|((?<!\\)'.*?(?<!\\)'))
14
  TAG (</?\s*[^<\s>]+\s*>?)|(\s*>)
15
  ATTR:ENTITY [\w-]+(?=\s*=\s*["'])
16
 
17
  SELECTOR:KEYWORD [^\s\;\{\}][^\;\{\}]*(?=\{)
18
- PROPERTY:ENTITY \b[A-Za-z_][\w-]*(?=\s*:)
19
  IMP:CONSTANT !important
20
  VALUE:IDENTIFIER [^\s\{\}\;\:\!\(\)]+
21
  SYMBOL (?default)
3
  # ELEMENT_NAME [optional-css-class] REGULAR_EXPRESSION
4
 
5
  NAME CSS
6
+ VERSION 1.9.0
7
 
8
  COMMENT (/\*.*?\*/)
9
  STRING (?default)
10
  NOTATION \@[\w-]+
11
 
12
+ # For the <style> tag
13
  ATT_STR:STRING (((?<!\\)".*?(?<!\\)")|((?<!\\)'.*?(?<!\\)'))
14
  TAG (</?\s*[^<\s>]+\s*>?)|(\s*>)
15
  ATTR:ENTITY [\w-]+(?=\s*=\s*["'])
16
 
17
  SELECTOR:KEYWORD [^\s\;\{\}][^\;\{\}]*(?=\{)
18
+ PROPERTY:ENTITY [\w-]+(?=\s*:)
19
  IMP:CONSTANT !important
20
  VALUE:IDENTIFIER [^\s\{\}\;\:\!\(\)]+
21
  SYMBOL (?default)
langs/scheme/entity.txt ADDED
@@ -0,0 +1,168 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ### any entity with '?' has to be added to scheme.txt separately to be escaped properly
2
+ ### any entity with '!' has to be added to scheme.txt separately, although '!' need not be escaped
3
+ scheme-report-environment
4
+ interaction-environment
5
+ call-with-output-file
6
+ with-input-from-file
7
+ call-with-input-file
8
+ with-output-to-file
9
+ current-output-port
10
+ current-input-port
11
+ close-output-port
12
+ open-output-file
13
+ null-environment
14
+ make-rectangular
15
+ close-input-port
16
+ # char-whitespace?
17
+ # char-upper-case?
18
+ # char-lower-case?
19
+ # char-alphabetic?
20
+ call-with-values
21
+ open-input-file
22
+ transcript-off
23
+ symbol->string
24
+ string->symbol
25
+ string->number
26
+ number->string
27
+ inexact->exact
28
+ exact->inexact
29
+ vector-length
30
+ transcript-on
31
+ string-length
32
+ string-append
33
+ integer->char
34
+ # char-numeric?
35
+ char->integer
36
+ char-downcase
37
+ vector->list
38
+ # vector-fill!
39
+ string->list
40
+ # string-fill!
41
+ # string-ci>=?
42
+ # string-ci<=?
43
+ # output-port?
44
+ list->vector
45
+ list->string
46
+ # vector-set!
47
+ # string-set!
48
+ string-copy
49
+ # string-ci>?
50
+ # string-ci=?
51
+ # string-ci<?
52
+ rationalize
53
+ make-vector
54
+ make-string
55
+ # input-port?
56
+ # eof-object?
57
+ denominator
58
+ char-upcase
59
+ # char-ready?
60
+ write-char
61
+ vector-ref
62
+ string-ref
63
+ quasiquote
64
+ # procedure?
65
+ make-polar
66
+ # char-ci>=?
67
+ # char-ci<=?
68
+ substring
69
+ # string>=?
70
+ # string<=?
71
+ remainder
72
+ real-part
73
+ read-char
74
+ # rational?
75
+ # positive?
76
+ peek-char
77
+ numerator
78
+ # negative?
79
+ magnitude
80
+ list-tail
81
+ imag-part
82
+ # char-ci>?
83
+ # char-ci=?
84
+ # char-ci<?
85
+ truncate
86
+ # string>?
87
+ # string=?
88
+ # string<?
89
+ # set-cdr!
90
+ # set-car!
91
+ quotient
92
+ list-ref
93
+ # integer?
94
+ # inexact?
95
+ # complex?
96
+ # boolean?
97
+ # symbol?
98
+ # string?
99
+ reverse
100
+ # number?
101
+ newline
102
+ display
103
+ # char>=?
104
+ # char<=?
105
+ ceiling
106
+ vector
107
+ values
108
+ string
109
+ modulo
110
+ member
111
+ length
112
+ # exact?
113
+ # equal?
114
+ # char>?
115
+ # char=?
116
+ # char<?
117
+ cddddr
118
+ cdddar
119
+ append
120
+ # zero?
121
+ write
122
+ round
123
+ # real?
124
+ quote
125
+ # port?
126
+ # pair?
127
+ # null?
128
+ # list?
129
+ force
130
+ floor
131
+ # even?
132
+ # char?
133
+ assoc
134
+ apply
135
+ angle
136
+ sqrt
137
+ # set!
138
+ read
139
+ # odd?
140
+ memv
141
+ memq
142
+ load
143
+ list
144
+ expt
145
+ eval
146
+ # eqv?
147
+ cons
148
+ cadr
149
+ caar
150
+ atan
151
+ assv
152
+ assq
153
+ asin
154
+ acos
155
+ tan
156
+ sin
157
+ not
158
+ min
159
+ max
160
+ log
161
+ lcm
162
+ gcd
163
+ exp
164
+ # eq?
165
+ cos
166
+ cdr
167
+ car
168
+ abs
langs/scheme/keyword.txt ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ call-with-current-continuation
2
+ call-with-output-file
3
+ call-with-input-file
4
+ letrec-syntax
5
+ define-syntax
6
+ syntax-rules
7
+ dynamic-wind
8
+ let-syntax
9
+ for-each
10
+ letrec
11
+ lambda
12
+ define
13
+ delay
14
+ begin
15
+ # let* ; the * can not be escaped?
16
+ else
17
+ cond
18
+ case
19
+ map
20
+ let
21
+ and
22
+ or
23
+ if
24
+ do
langs/scheme/scheme.txt ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ### SCHEME LANGUAGE ###
2
+
3
+ # https://github.com/harry75369/crayon-syntax-highlighter-langs
4
+
5
+ # ELEMENT_NAME [optional-css-class] REGULAR_EXPRESSION
6
+
7
+ NAME Scheme
8
+ VERSION 1.8.4
9
+
10
+ SUPER_COMMENT:COMMENT [sc] !.*?$
11
+
12
+ COMMENT (;[^\r\n]*)|(#\|.*\|#)
13
+ STRING ((?<!\\)".*?(?<!\\)")|(#\\.)
14
+
15
+ KEYWORD (let\*)|(\b(?alt:keyword.txt)\b)
16
+
17
+ ENTITY (char-whitespace\?)|(char-upper-case\?)|(char-lower-case\?)|(char-alphabetic\?)|(char-numeric\?)|(vector-fill!)|(string-fill!)|(string-ci>=\?)|(string-ci<=\?)|(output-port\?)|(vector-set!)|(string-set!)|(string-ci>\?)|(string-ci=\?)|(string-ci<\?)|(input-port\?)|(eof-object\?)|(char-ready\?)|(procedure\?)|(char-ci>=\?)|(char-ci<=\?)|(string>=\?)|(string<=\?)|(rational\?)|(positive\?)|(negative\?)|(char-ci>\?)|(char-ci=\?)|(char-ci<\?)|(string>\?)|(string=\?)|(string<\?)|(set-cdr!)|(set-car!)|(integer\?)|(inexact\?)|(complex\?)|(boolean\?)|(symbol\?)|(string\?)|(number\?)|(char>=\?)|(char<=\?)|(exact\?)|(equal\?)|(char>\?)|(char=\?)|(char<\?)|(zero\?)|(real\?)|(port\?)|(pair\?)|(null\?)|(list\?)|(even\?)|(char\?)|(set!)|(odd\?)|(eqv\?)|(eq\?)||(\b(?alt:entity.txt)\b)
18
+
19
+ CONSTANT (\.\d+)|(\d+\.)|(\d+\.\d+)|(#t)|(#f)
20
+ IDENTIFIER \b[\w\d`\^~<=>|_\-,;:!\?/\.\(\)\[\]\{\}@\$\*\\&#%\+]+\b
21
+ OPERATOR (?default)
22
+
23
+
langs/xhtml/xhtml.txt CHANGED
@@ -5,14 +5,15 @@
5
  NAME XHTML
6
  VERSION 1.8.0
7
 
8
- COMMENT \<!--.*?--\>
 
 
9
  ATT_STR:STRING (((?<!\\)".*?(?<!\\)")|((?<!\\)'.*?(?<!\\)'))
10
  NOTATION <!.*?>
11
 
12
  HTML_TAG:RESERVED (</?\s*[^<\s>]+\s*>?)|(\s*/?>)
13
 
14
  ATTR:ENTITY [\w-]+(?=\s*=\s*["'])
15
- TEXT:IDENTIFIER (?<=\>)[^\<\>]*(?=\<)
16
  OPERATOR (?default)
17
  SYMBOL (?default)
18
 
5
  NAME XHTML
6
  VERSION 1.8.0
7
 
8
+ COMMENT \<!--.*?--\>
9
+ # !!! Text containing "" are not strings
10
+ TEXT:IDENTIFIER (?<=\>)[^\<\>]*(?=\<)
11
  ATT_STR:STRING (((?<!\\)".*?(?<!\\)")|((?<!\\)'.*?(?<!\\)'))
12
  NOTATION <!.*?>
13
 
14
  HTML_TAG:RESERVED (</?\s*[^<\s>]+\s*>?)|(\s*/?>)
15
 
16
  ATTR:ENTITY [\w-]+(?=\s*=\s*["'])
 
17
  OPERATOR (?default)
18
  SYMBOL (?default)
19
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://bit.ly/crayondonate
4
  Tags: syntax highlighter, syntax, highlighter, highlighting, crayon, code highlighter
5
  Requires at least: 3.0
6
  Tested up to: 3.3.1
7
- Stable tag: 1.8.2
8
 
9
  Syntax Highlighter supporting multiple languages, themes, fonts, highlighting from a URL, local file or post text.
10
 
@@ -15,6 +15,7 @@ It can highlight from a URL, a local file or Wordpress post text. Crayon makes i
15
  custom language elements with regular expressions.
16
  It also supports some neat features like:
17
 
 
18
  * Toggled plain code
19
  * Toggled line numbers
20
  * Copy/paste code
@@ -24,9 +25,10 @@ It also supports some neat features like:
24
  * <a href="http://ak.net84.net/projects/mini-tags-in-crayon/" target="_blank">Mini Tags</a> like [php][/php]
25
  * <a href="http://bit.ly/yFafFL" target="_blank">Inline Tags</a> floating in sentences
26
  * Crayons in comments
27
- * `Backquotes` become &lt;code&gt;
28
- * Plain Tag ([plain]...[/plain]) for quick &lt;pre&gt;&lt;code&gt;...&lt;/code&gt;&lt;/pre&gt;
29
- * &lt;pre&gt; tag support
 
30
  * Mobile/touchscreen device detection
31
  * Mouse event interaction (showing plain code on double click, toolbar on mouseover)
32
  * Tab sizes
@@ -41,12 +43,19 @@ It also supports some neat features like:
41
  * Dimensions, margins, alignment and CSS floating
42
  * Extensive error logging
43
 
 
 
 
 
 
 
44
  **Supported Languages**
45
 
46
  Languages are defined in language files using Regular Expressions to capture elements.
47
  See http://ak.net84.net/projects/crayon-language-file-specification/ to learn how to make your own.
48
 
49
  * Default Langauge (one size fits all, highlights generic code)
 
50
  * ActionScript
51
  * Apache
52
  * AutoIt
@@ -65,23 +74,19 @@ See http://ak.net84.net/projects/crayon-language-file-specification/ to learn ho
65
  * PowerShell
66
  * Python
67
  * Ruby
 
68
  * Shell (Unix)
69
  * Visual Basic
70
  * YAML
71
  * Others will be added when requested
72
 
73
- Live Demo: <a href="http://bit.ly/poKNqs" target="_blank">http://bit.ly/poKNqs</a>
74
-
75
- Short How-To: <a href="http://ak.net84.net/projects/crayon-syntax-highlighter/" target="_blank">http://ak.net84.net/projects/crayon-syntax-highlighter/</a>
76
-
77
- Please Thank Me With <a href="http://ak.net84.net/files/donate.php" target="_blank">Coffee</a>!
78
-
79
  **International Languages**
80
 
81
- * Chinese (Simplified, thanks to <a href="http://smerpup.com/" target="_blank">Dezhi Liu</a>)
82
  * French
83
  * German (thanks to <a href="http://www.technologyblog.de/" target="_blank">Stephan Knau&szlig;</a>)
84
  * Italian
 
85
  * Spanish
86
  * Japanese (thanks to <a href="https://twitter.com/#!/west_323" target="_blank">@west_323</a>)
87
  * Russian (thanks to <a href="http://simplelib.com" target="_blank">Minimus</a> & <a href="http://atlocal.net/" target="_blank">Di_Skyer</a>)
@@ -92,40 +97,66 @@ Please Thank Me With <a href="http://ak.net84.net/files/donate.php" target="_bla
92
 
93
  These are helpful for discovering new features.
94
 
 
95
  * <a href="http://ak.net84.net/projects/mixed-language-highlighting-in-crayon/" target="_blank">Mixed Language Highlighting in Crayon</a>
96
  * <a href="http://ak.net84.net/projects/mini-tags-in-crayon/" target="_blank">Mini Tags And Plain Tags In Crayon</a>
97
  * <a href="http://ak.net84.net/crayon/inline-crayons/" target="_blank">Inline Tags</a>
98
  * <a href="http://ak.net84.net/projects/enqueuing-themes-and-fonts-in-crayon/" target="_blank">Enqueuing Themes and Fonts in Crayon</a>
99
 
 
 
 
 
 
 
 
 
 
100
  **Planned Features**
101
 
102
- * Visual Editor Support
103
  * Theme Editor
104
 
105
  == Installation ==
106
 
107
- Download the .zip of the plugin and extract the contents. Upload it to the Wordpress plugin directory and activate the plugin.
108
- You can change settings and view help under <strong>Settings > Crayon</strong> in the Wordpress Admin.
 
 
 
109
 
110
  == Frequently Asked Questions ==
111
 
112
- = How do I use this thing? =
 
 
 
 
113
 
114
  <code>[crayon lang="php"] your code [/crayon]</code>
115
  <code>[crayon url="http://example.com/code.txt" /]</code>
116
- <code>[crayon url="/local-path-defined-in-settings/code.java" /]</code>
117
 
118
  You can use &lt;pre&gt;:
119
 
120
- <code>&lt;pre lang="php"&gt; your code &lt;/crayon&gt;</code>
 
 
 
 
121
 
122
  You can also use Mini Tags:
123
 
124
  <code>[php theme="twilight"]your code[/php]</code>
125
 
126
- Please see the contextual help under <strong>Settings > Crayon</strong> for quick info about languages, themes, etc.
127
 
128
- = I need help, now! =
 
 
 
 
 
 
129
 
130
  Contact me at http://twitter.com/crayonsyntax or crayon.syntax@gmail.com.
131
 
@@ -134,8 +165,50 @@ Contact me at http://twitter.com/crayonsyntax or crayon.syntax@gmail.com.
134
  1. Classic theme.
135
  2. Twilight theme.
136
  3. Mixed Language Highlighting.
 
137
 
138
  == Changelog ==
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
139
 
140
  = 1.8.3 =
141
  * Added inline support for Crayons using the inline="true" attribute or even cooler with {php}...{/php} style tags.
@@ -471,14 +544,20 @@ http://wordpress.org/support/topic/plugin-crayon-syntax-highlighter-this-plugin-
471
 
472
  == Upgrade Notice ==
473
 
474
- Make sure to upgrade to the latest release when possible, I usually fix bugs on the day and add new features quickly.
475
 
476
  == Donations ==
477
 
478
- Thanks to all those who donate to my project!
479
 
480
- * Nick Weisser (http://www.openstream.ch/), Switzerland
481
- * Perry Bonewell (http://pointatthemoon.co.uk/), United Kingdom
482
- * Andrew McDonnell (http://blog.oldcomputerjunk.net/), Australia
483
- * Waimanu Solutions (http://daveblog.waimanu.web44.net/), USA
 
484
  * Greg Pettit (http://blog.monkey-house.ca/), Canada
 
 
 
 
 
4
  Tags: syntax highlighter, syntax, highlighter, highlighting, crayon, code highlighter
5
  Requires at least: 3.0
6
  Tested up to: 3.3.1
7
+ Stable tag: trunk
8
 
9
  Syntax Highlighter supporting multiple languages, themes, fonts, highlighting from a URL, local file or post text.
10
 
15
  custom language elements with regular expressions.
16
  It also supports some neat features like:
17
 
18
+ * <a href="http://bit.ly/H3xW3D" target="_blank">Tag Editor</a> in both Visual & HTML editors
19
  * Toggled plain code
20
  * Toggled line numbers
21
  * Copy/paste code
25
  * <a href="http://ak.net84.net/projects/mini-tags-in-crayon/" target="_blank">Mini Tags</a> like [php][/php]
26
  * <a href="http://bit.ly/yFafFL" target="_blank">Inline Tags</a> floating in sentences
27
  * Crayons in comments
28
+ * &#96;Backquotes&#96; become &lt;code&gt;
29
+ * &lt;pre&gt; tag support, option to use <code>setting-value</code> in the class attribute
30
+ * Valid HTML 5 markup
31
+ * <a href="http://bit.ly/H3xW3D" target="_blank">Visual & HTML editor compatible</a>
32
  * Mobile/touchscreen device detection
33
  * Mouse event interaction (showing plain code on double click, toolbar on mouseover)
34
  * Tab sizes
43
  * Dimensions, margins, alignment and CSS floating
44
  * Extensive error logging
45
 
46
+ **Links**
47
+
48
+ * Live Demo: <a href="http://bit.ly/poKNqs" target="_blank">http://bit.ly/poKNqs</a>
49
+ * Short How-To: <a href="http://ak.net84.net/projects/crayon-syntax-highlighter/" target="_blank">http://ak.net84.net/projects/crayon-syntax-highlighter/</a>
50
+ * Please Thank Me With <a href="http://bit.ly/crayondonate" target="_blank">Coffee</a>!
51
+
52
  **Supported Languages**
53
 
54
  Languages are defined in language files using Regular Expressions to capture elements.
55
  See http://ak.net84.net/projects/crayon-language-file-specification/ to learn how to make your own.
56
 
57
  * Default Langauge (one size fits all, highlights generic code)
58
+ * ABAP
59
  * ActionScript
60
  * Apache
61
  * AutoIt
74
  * PowerShell
75
  * Python
76
  * Ruby
77
+ * Scheme (thanks to <a href="https://github.com/harry75369" target="_blank">https://github.com/harry75369</a>)
78
  * Shell (Unix)
79
  * Visual Basic
80
  * YAML
81
  * Others will be added when requested
82
 
 
 
 
 
 
 
83
  **International Languages**
84
 
85
+ * Chinese (Simplified, thanks to <a href="http://smerpup.com/" target="_blank">Dezhi Liu</a> & <a href="http://neverno.me/" target="_blank">Jash Yin</a>)
86
  * French
87
  * German (thanks to <a href="http://www.technologyblog.de/" target="_blank">Stephan Knau&szlig;</a>)
88
  * Italian
89
+ * Lithuanian (thanks to <a href="http://www.host1free.com" target="_blank">Vincent G</a>)
90
  * Spanish
91
  * Japanese (thanks to <a href="https://twitter.com/#!/west_323" target="_blank">@west_323</a>)
92
  * Russian (thanks to <a href="http://simplelib.com" target="_blank">Minimus</a> & <a href="http://atlocal.net/" target="_blank">Di_Skyer</a>)
97
 
98
  These are helpful for discovering new features.
99
 
100
+ * <a href="http://ak.net84.net/projects/crayon-tag-editor/" target="_blank">Crayon Tag Editor</a>
101
  * <a href="http://ak.net84.net/projects/mixed-language-highlighting-in-crayon/" target="_blank">Mixed Language Highlighting in Crayon</a>
102
  * <a href="http://ak.net84.net/projects/mini-tags-in-crayon/" target="_blank">Mini Tags And Plain Tags In Crayon</a>
103
  * <a href="http://ak.net84.net/crayon/inline-crayons/" target="_blank">Inline Tags</a>
104
  * <a href="http://ak.net84.net/projects/enqueuing-themes-and-fonts-in-crayon/" target="_blank">Enqueuing Themes and Fonts in Crayon</a>
105
 
106
+ **The Press**
107
+
108
+ A handful of articles from others written about Crayon, thanks guys!
109
+
110
+ * <a href="http://blog.boxedpages.net/2012/03/15/abap-syntaxhighlighting-in-wordpress/" target="_blank">ABAP Syntax Highlighting in WordPress (German)</a>
111
+ * <a href="http://infodrug.ru/wordpress/kak-krasivo-vstavit-programmnyj-kod-v-wordpress-podsvetka-sintaksisa.html" target="_blank">Crayon Syntax Highlighter (Russian)</a>
112
+ * <a href="http://n-wp.ru/11513" target="_blank">Crayon Syntax Highlighter (also Russian)</a>
113
+ * <a href="http://kampungtoys.com/tag/crayon-syntax-highlighter/" target="_blank">How To Post Source Code</a>
114
+
115
  **Planned Features**
116
 
 
117
  * Theme Editor
118
 
119
  == Installation ==
120
 
121
+ * Download the .zip of the plugin and extract the contents.
122
+ * Upload it to the Wordpress plugin directory and activate the plugin.
123
+ * Even easier, just go to <strong>Plugins > Add New</strong> and search for "Crayon".
124
+ * You can change settings and view help under <strong>Settings > Crayon</strong> in the Wordpress Admin.
125
+ * Make sure your theme either manually specifies jQuery, or uses the version shipped with Wordpress (recommended). You should NOT print out jQuery manually in the header as a script tag. <a href="http://wordpress.stackexchange.com/questions/1535/how-to-dequeue-a-script" target="_blank">Enqueueing it in Wordpresss</a> will prevent duplicate jQuery includes (also bad) and will allow other scripts to be placed AFTER jQuery in the head tag so they can use it. If you're uncertain, just let Wordpress handle it and remove any jQuery script tags you find in your theme's header.php.
126
 
127
  == Frequently Asked Questions ==
128
 
129
+ = How do I use the Tag Editor? =
130
+
131
+ The <a href="http://bit.ly/H3xW3D" target="_blank">Tag Editor</a> provides a dialog box to add Crayons easily.
132
+
133
+ = How do I use it manually? =
134
 
135
  <code>[crayon lang="php"] your code [/crayon]</code>
136
  <code>[crayon url="http://example.com/code.txt" /]</code>
137
+ <code>[crayon url="/relative-path-added-to-local-path-defined-in-settings/code.java" /]</code>
138
 
139
  You can use &lt;pre&gt;:
140
 
141
+ <code>&lt;pre lang="php"&gt; your code &lt;/pre&gt;</code>
142
+
143
+ You can use an HTML5 compliant &lt;pre&gt; (recommended):
144
+
145
+ <code>&lt;pre class="lang:php mark:1-4,3" title="some title"&gt; your code &lt;/pre&gt;</code>
146
 
147
  You can also use Mini Tags:
148
 
149
  <code>[php theme="twilight"]your code[/php]</code>
150
 
151
+ <code>[php url="https://raw.github.com/somefile.php" /]</code>
152
 
153
+ Please see the <a href="http://ak.net84.net/projects/crayon-syntax-highlighter/" target="_blank">documentation</a> for more details.
154
+
155
+ = Why are the controls not working? =
156
+
157
+ Make sure that jQuery is included in your theme (see Installation).
158
+
159
+ = Support =
160
 
161
  Contact me at http://twitter.com/crayonsyntax or crayon.syntax@gmail.com.
162
 
165
  1. Classic theme.
166
  2. Twilight theme.
167
  3. Mixed Language Highlighting.
168
+ 4. Tag Editor.
169
 
170
  == Changelog ==
171
+
172
+ = 1.9.0 =
173
+ * This update is the biggest update yet - highly recommended for all users.
174
+ * Added a brand new Tag Editor in the Visual Editor toolbar! <strong>Greatly</strong> simplifies adding code to posts in the Visual Editor. You can also switch between Visual and HTML modes to verify your code before posting!
175
+ * Added ability to decode HTML entities, so now you can use &lt;, &gt; etc. in the Visual Editor. But if you need indentation etc, you'll want to use the HTML editor for posts with Crayons. You can also use decode="yes/no/true/false" to set this for an individual Crayon.
176
+ * Added ability to decode attributes, which is enabled by default to avoid seeing encoded strings in the title, and also to allow encoded angle/square brackets in the title that would otherwise clash with the Crayon tag brackets if left unencoded.
177
+ * Added ability to use the class attribute in &lt;pre&gt; tags for specifying settings like url, mark, lang, toolbar and all other valid settings like in a normal [crayon] tag. This will ensure your &lt;pre&gt; tags remain valid XHTML markup even with Crayon disabled.
178
+ * Added ability to specify hyphen-separated-values in the class attribute of a &lt;pre&gt; tag to make them look like actual class selectors. E.g. &lt;pre class="lang-objc toolbar-false"&gt;...&lt;/pre&gt;. The setting name is made up of letters and hyphens ONLY, the value is whatever is left between the last hyphen and the next whitespace character.
179
+ * Added Scheme language thanks to https://github.com/harry75369
180
+ * Added ABAP language with help from Christian Fein
181
+ * Added a new setting: crayon="false/no/0" as an attribute or crayon:false in the class tag of a &lt;pre&gt;. This will ignore the &lt;pre&gt; tag and not turn it into a Crayon for those rare cases you don't want to use the plugin.
182
+ * Improved the method of finding posts with Crayons - now it will search through all posts for Crayons and save the ids in the options db. When the_posts is called, it won't need to do any extra searching on page loading and will already know which post has Crayons. Like before, pages which might use page templates will turn off enqueuing of fonts and themes to ensure they are always printed.
183
+ * Overriden Language File elements are now put first in the CSS class name, so the extended element can override in a theme
184
+ * Prevented capturing Crayons in the admin
185
+ * Crayons now use HTML5 valid markup
186
+ * I'm still sticking to the wrap="off" for no-wrapping preformatted styling - CSS doesn't do the trick yet: http://stackoverflow.com/questions/657795/how-remove-wordwrap-from-textarea
187
+ * Improved ajax handling
188
+ * Cleaned up the settings screen
189
+ * Line numbers now use UID in id to avoid duplicates
190
+ * Crayon CSS updated to use inline styles and never use style tags in the body
191
+ * Simplified the toolbar buttons to suit the minimalistic design of the rest of Crayon. It'll look badass with an inset shadow in a future theme...
192
+ * Plain tags are now just &lt;pre&gt; tags and don't contain the inline code tag since they are block tags.
193
+ * Fixed a MAJOR bug preventing previously captured Crayons from being applied to post content!
194
+ * Fixed a bug causing case insensitive Boolean settings to fail at times
195
+ * Fixed a bug causing a [crayon ... /] tags to be recognised as [c ... /] tags (added a \b)
196
+ * Fixed a bug preventing highlight="false" from working
197
+ * Fixed a bug preventing mouse events for showing plain code when toolbar is always hidden
198
+ * Fixed a bug preventing smart enqueuing from detecting if a Crayon was present before enqueuing resources.
199
+ * Fixed a bug causing inline tags to be surround in &lt;p&gt; tags
200
+ * Fixed a bug causing toolbar=1 to be regarded as toolbar=false from legacy settings
201
+ * Fixed a bug causing content to be specified but not formatted for URLs with no code given
202
+ * Fixed removing $ in font of ignored crayons like $&lt;pre...
203
+ * Fixed js .style bugs in < IE 9
204
+ * Cleaned up code for specifying attributes, NULL attributes are not passed as empty strings anymore.
205
+ * The log looks cleaner now
206
+ * Now crayons are replaced with [crayon-id/] in posts before being replaced with the actual Crayon
207
+ * If js ever fails to load, it won't affect styling, just functionality
208
+ * Added ability to use closed Mini Tags like [php ... \] when you're just giving a URL
209
+ * Added lenient spaces for closed tags
210
+ * Fixed element content text in XHTML to avoid capturing "" as strings
211
+ * Added Lithuanian translation thanks to <a href="http://www.host1free.com" target="_blank">Vincent G</a>
212
 
213
  = 1.8.3 =
214
  * Added inline support for Crayons using the inline="true" attribute or even cooler with {php}...{/php} style tags.
544
 
545
  == Upgrade Notice ==
546
 
547
+ Make sure to upgrade to the latest release when possible to ensure you avoid bugs others have found and enjoy new features.
548
 
549
  == Donations ==
550
 
551
+ Thanks to all those who donate to my project, your support keeps the Crayons going!
552
 
553
+ * Aliseya Wright, (http://blog.xoxothemes.com/), USA
554
+ * Jeremy Worboys (http://complexcompulsions.com/), Australia
555
+ * Steve McGough, Spider Creations, LLC. (http://spidercreations.net/), USA
556
+ * eSnipe, Inc. (http://esnipe.com/), USA
557
+ * Gerald Drouillard (http://www.drouillard.biz/), USA
558
  * Greg Pettit (http://blog.monkey-house.ca/), Canada
559
+ * Waimanu Solutions (http://daveblog.waimanu.web44.net/), USA
560
+ * Andrew McDonnell (http://blog.oldcomputerjunk.net/), Australia
561
+ * Perry Bonewell (http://pointatthemoon.co.uk/), United Kingdom
562
+ * Nick Weisser (http://www.openstream.ch/), Switzerland
563
+
screenshot-4.png ADDED
Binary file
themes/classic/classic.css CHANGED
@@ -110,14 +110,14 @@ Author URI: http://ak.net84.net/
110
  }
111
  .crayon-theme-classic a.crayon-button:hover,
112
  .crayon-theme-classic a.crayon-button.crayon-pressed:hover {
113
- background-color: #F2F2F2;
114
  color: #666;
115
  }
116
  /* :active MUST come after :hover */
117
  .crayon-theme-classic a.crayon-button.crayon-pressed,
118
  .crayon-theme-classic a.crayon-button.crayon-pressed:active,
119
  .crayon-theme-classic a.crayon-button:active {
120
- background-color: #BBB;
121
  color: #FFF;
122
  }
123
 
110
  }
111
  .crayon-theme-classic a.crayon-button:hover,
112
  .crayon-theme-classic a.crayon-button.crayon-pressed:hover {
113
+ background-color: #EEE;
114
  color: #666;
115
  }
116
  /* :active MUST come after :hover */
117
  .crayon-theme-classic a.crayon-button.crayon-pressed,
118
  .crayon-theme-classic a.crayon-button.crayon-pressed:active,
119
  .crayon-theme-classic a.crayon-button:active {
120
+ background-color: #BCBCBC;
121
  color: #FFF;
122
  }
123
 
themes/neon/neon.css CHANGED
@@ -17,7 +17,7 @@ Author URI: http://ak.net84.net/
17
  /* Inline Style */
18
  .crayon-theme-neon-inline {
19
  border: 1px solid #333 !important;
20
- background: #4d4d4d !important;
21
  }
22
 
23
  .crayon-theme-neon span {
@@ -122,14 +122,14 @@ Author URI: http://ak.net84.net/
122
  }
123
  .crayon-theme-neon a.crayon-button:hover,
124
  .crayon-theme-neon a.crayon-button.crayon-pressed:hover {
125
- background-color: #ddd;
126
  color: #666;
127
  }
128
  /* :active MUST come after :hover */
129
  .crayon-theme-neon a.crayon-button.crayon-pressed,
130
  .crayon-theme-neon a.crayon-button.crayon-pressed:active,
131
  .crayon-theme-neon a.crayon-button:active {
132
- background-color: #777;
133
  color: #ccc;
134
  }
135
  /* End Code Style ================== */
17
  /* Inline Style */
18
  .crayon-theme-neon-inline {
19
  border: 1px solid #333 !important;
20
+ background: #333 !important;
21
  }
22
 
23
  .crayon-theme-neon span {
122
  }
123
  .crayon-theme-neon a.crayon-button:hover,
124
  .crayon-theme-neon a.crayon-button.crayon-pressed:hover {
125
+ background-color: #ccc;
126
  color: #666;
127
  }
128
  /* :active MUST come after :hover */
129
  .crayon-theme-neon a.crayon-button.crayon-pressed,
130
  .crayon-theme-neon a.crayon-button.crayon-pressed:active,
131
  .crayon-theme-neon a.crayon-button:active {
132
+ background-color: #999;
133
  color: #ccc;
134
  }
135
  /* End Code Style ================== */
themes/twilight/twilight.css CHANGED
@@ -17,7 +17,7 @@ Author URI: http://ak.net84.net/
17
  /* Inline Style */
18
  .crayon-theme-twilight-inline {
19
  border: 1px solid #333 !important;
20
- background: #4d4d4d !important;
21
  }
22
 
23
  .crayon-theme-twilight span {
@@ -118,14 +118,14 @@ Author URI: http://ak.net84.net/
118
  }
119
  .crayon-theme-twilight a.crayon-button:hover,
120
  .crayon-theme-twilight a.crayon-button.crayon-pressed:hover {
121
- background-color: #ddd;
122
  color: #666;
123
  }
124
  /* :active MUST come after :hover */
125
  .crayon-theme-twilight a.crayon-button.crayon-pressed,
126
  .crayon-theme-twilight a.crayon-button.crayon-pressed:active,
127
  .crayon-theme-twilight a.crayon-button:active {
128
- background-color: #777;
129
  color: #ccc;
130
  }
131
  /* End Code Style ================== */
17
  /* Inline Style */
18
  .crayon-theme-twilight-inline {
19
  border: 1px solid #333 !important;
20
+ background: #333 !important;
21
  }
22
 
23
  .crayon-theme-twilight span {
118
  }
119
  .crayon-theme-twilight a.crayon-button:hover,
120
  .crayon-theme-twilight a.crayon-button.crayon-pressed:hover {
121
+ background-color: #ccc;
122
  color: #666;
123
  }
124
  /* :active MUST come after :hover */
125
  .crayon-theme-twilight a.crayon-button.crayon-pressed,
126
  .crayon-theme-twilight a.crayon-button.crayon-pressed:active,
127
  .crayon-theme-twilight a.crayon-button:active {
128
+ background-color: #999;
129
  color: #ccc;
130
  }
131
  /* End Code Style ================== */
trans/codestyling-localization-lt_LT.mo ADDED
Binary file
trans/codestyling-localization-lt_LT.po ADDED
@@ -0,0 +1,1028 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: CodeStyling Localization v1.99.6\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2008-08-25 03:13+0100\n"
6
+ "PO-Revision-Date: 2012-04-02 11:22-0800\n"
7
+ "Last-Translator: \n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: German\n"
14
+ "X-Poedit-Country: GERMANY\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
17
+ "X-Textdomain-Support: yes\n"
18
+ "X-Poedit-SearchPath-0: .\n"
19
+
20
+ #@ codestyling-localization
21
+ #: codestyling-localization.php:2104
22
+ #: codestyling-localization.php:2158
23
+ #: codestyling-localization.php:2657
24
+ msgid "&laquo; Previous"
25
+ msgstr "&laquo; ankstesnis"
26
+
27
+ #@ codestyling-localization
28
+ #: codestyling-localization.php:2028
29
+ #: codestyling-localization.php:2033
30
+ #: codestyling-localization.php:2281
31
+ msgid "-n.a.-"
32
+ msgstr "-nepasiekiamas-"
33
+
34
+ #@ codestyling-localization
35
+ #: codestyling-localization.php:1451
36
+ #: codestyling-localization.php:1487
37
+ #: codestyling-localization.php:2009
38
+ #, php-format
39
+ msgid "<strong>%d</strong> Language"
40
+ msgid_plural "<strong>%d</strong> Languages"
41
+ msgstr[0] "<strong>%d</strong> Kalba"
42
+ msgstr[1] "<strong>%d</strong> Kalbos"
43
+
44
+ #@ codestyling-localization
45
+ #: codestyling-localization.php:2581
46
+ msgid "Access Error"
47
+ msgstr "Prieigos klaida"
48
+
49
+ #@ codestyling-localization
50
+ #: codestyling-localization.php:2014
51
+ #: codestyling-localization.php:2148
52
+ msgid "Actions"
53
+ msgstr "Veiksmai"
54
+
55
+ #@ codestyling-localization
56
+ #: codestyling-localization.php:2007
57
+ #: codestyling-localization.php:2234
58
+ msgid "Add New Language"
59
+ msgstr "Pridėti Naują Kalbą"
60
+
61
+ #@ codestyling-localization
62
+ #: codestyling-localization.php:1221
63
+ msgid "Affected Total Files"
64
+ msgstr "Iš viso Paveikta Rinkmenų"
65
+
66
+ #@ codestyling-localization
67
+ #: codestyling-localization.php:1841
68
+ msgid "All Translations"
69
+ msgstr "Visi Vertimai"
70
+
71
+ #@ codestyling-localization
72
+ #: codestyling-localization.php:1982
73
+ msgid "Available Directories:"
74
+ msgstr "Prieinami Katalogai:"
75
+
76
+ #@ codestyling-localization
77
+ #: codestyling-localization.php:2328
78
+ msgid "Confirm Delete Language"
79
+ msgstr "Patvirtinti Kalbos Ištrynimą"
80
+
81
+ #@ codestyling-localization
82
+ #: codestyling-localization.php:2717
83
+ msgid "Copy"
84
+ msgstr "Kopijuoti"
85
+
86
+ #@ codestyling-localization
87
+ #: codestyling-localization.php:1082
88
+ msgid "Creation-Date"
89
+ msgstr "Sukūrimo Data"
90
+
91
+ #@ codestyling-localization
92
+ #: codestyling-localization.php:2047
93
+ #: codestyling-localization.php:2293
94
+ msgid "Delete"
95
+ msgstr "Ištrinti"
96
+
97
+ #@ codestyling-localization
98
+ #: codestyling-localization.php:1886
99
+ #: codestyling-localization.php:1918
100
+ #: codestyling-localization.php:1963
101
+ msgid "Description"
102
+ msgstr "Aprašymas"
103
+
104
+ #@ codestyling-localization
105
+ #: codestyling-localization.php:2038
106
+ #: codestyling-localization.php:2285
107
+ #: codestyling-localization.php:2716
108
+ msgid "Edit"
109
+ msgstr "Redaguoti"
110
+
111
+ #@ codestyling-localization
112
+ #: codestyling-localization.php:2173
113
+ #: codestyling-localization.php:3036
114
+ msgid "Edit Catalog Entry"
115
+ msgstr "Redaguoti Katalogo Įrašą"
116
+
117
+ #@ codestyling-localization
118
+ #: codestyling-localization.php:2852
119
+ msgid "Examples: <small>Please refer to official Perl regular expression descriptions</small>"
120
+ msgstr "Pavyzdžiai: <small>Prašome remtis oficliais įprastinių Perl išraiškų aprašais</small>"
121
+
122
+ #@ codestyling-localization
123
+ #: codestyling-localization.php:2088
124
+ msgid "Expression Result"
125
+ msgstr "Išraiškos Rezultatas"
126
+
127
+ #@ codestyling-localization
128
+ #: codestyling-localization.php:2850
129
+ msgid "Expression:"
130
+ msgstr "Išraiška:"
131
+
132
+ #@ codestyling-localization
133
+ #: codestyling-localization.php:2848
134
+ msgid "Extended Expression Search"
135
+ msgstr "Išplėsta Išraiškos Paieška"
136
+
137
+ #@ codestyling-localization
138
+ #: codestyling-localization.php:2063
139
+ #: codestyling-localization.php:2460
140
+ #: codestyling-localization.php:3130
141
+ msgid "File:"
142
+ msgstr "Rinkmena:"
143
+
144
+ #@ codestyling-localization
145
+ #: codestyling-localization.php:2683
146
+ msgid "Files:"
147
+ msgstr "Rinkmenos:"
148
+
149
+ #@ codestyling-localization
150
+ #: codestyling-localization.php:2117
151
+ msgid "Infos"
152
+ msgstr "Informacija"
153
+
154
+ #@ codestyling-localization
155
+ #: codestyling-localization.php:2012
156
+ msgid "Language"
157
+ msgstr "Kalba"
158
+
159
+ #@ codestyling-localization
160
+ #: codestyling-localization.php:1216
161
+ msgid "Language Target"
162
+ msgstr "Kalbos Tikslas"
163
+
164
+ #@ codestyling-localization
165
+ #: codestyling-localization.php:1887
166
+ msgid "Languages"
167
+ msgstr "Kalbos"
168
+
169
+ #@ codestyling-localization
170
+ #: codestyling-localization.php:1086
171
+ msgid "Last-Translator"
172
+ msgstr "Galutinis-Vertėjas"
173
+
174
+ #@ codestyling-localization
175
+ #: codestyling-localization.php:2022
176
+ #: codestyling-localization.php:2273
177
+ msgid "Locale"
178
+ msgstr "Lokalė"
179
+
180
+ #@ codestyling-localization
181
+ #: codestyling-localization.php:1817
182
+ msgid "Localization"
183
+ msgstr "Lokalizacija"
184
+
185
+ #@ codestyling-localization
186
+ #: codestyling-localization.php:1829
187
+ msgid "Manage Language Files"
188
+ msgstr "Tvarkyti Kalbos Rinkmenas"
189
+
190
+ #@ codestyling-localization
191
+ #: codestyling-localization.php:2109
192
+ #: codestyling-localization.php:2163
193
+ #: codestyling-localization.php:2664
194
+ msgid "Next &raquo;"
195
+ msgstr "Kitas &raquo;"
196
+
197
+ #@ codestyling-localization
198
+ #: codestyling-localization.php:2121
199
+ #: codestyling-localization.php:3081
200
+ msgid "Original:"
201
+ msgstr "Originalas:"
202
+
203
+ #@ codestyling-localization
204
+ #: codestyling-localization.php:2092
205
+ msgid "Page Size"
206
+ msgstr "Puslapio Dydis"
207
+
208
+ #@ codestyling-localization
209
+ #: codestyling-localization.php:2013
210
+ msgid "Permissions"
211
+ msgstr "Leidimai"
212
+
213
+ #@ codestyling-localization
214
+ #: codestyling-localization.php:1234
215
+ msgid "Please standby, files presently being scanned ..."
216
+ msgstr "Prašome ramiai palaukti, rinkmenos šiuo metu yra skenuojamos ..."
217
+
218
+ #@ codestyling-localization
219
+ #: codestyling-localization.php:2152
220
+ msgid "Please wait, file content presently being loaded ..."
221
+ msgstr "Prašome palaukti, šiuo metu keliamas rinkmenų turinys ..."
222
+
223
+ #@ codestyling-localization
224
+ #: codestyling-localization.php:389
225
+ msgid "Plugin"
226
+ msgstr "Papildinys"
227
+
228
+ #@ codestyling-localization
229
+ #: codestyling-localization.php:1852
230
+ msgid "Plugins"
231
+ msgstr "Papildiniai"
232
+
233
+ #@ codestyling-localization
234
+ #: codestyling-localization.php:3070
235
+ msgid "Plural Index Calculation:"
236
+ msgstr "Dauginis Indekso Skaičiavimas:"
237
+
238
+ #@ codestyling-localization
239
+ #: codestyling-localization.php:2701
240
+ #: codestyling-localization.php:2704
241
+ #: codestyling-localization.php:3043
242
+ #: codestyling-localization.php:3046
243
+ #: codestyling-localization.php:3049
244
+ #: codestyling-localization.php:3054
245
+ msgid "Plural Index Result ="
246
+ msgstr "Dauginis Indekso Rezultatas ="
247
+
248
+ #@ codestyling-localization
249
+ #: codestyling-localization.php:2697
250
+ #: codestyling-localization.php:3068
251
+ msgid "Plural:"
252
+ msgstr "Daugiareikšmis:"
253
+
254
+ #@ codestyling-localization
255
+ #: codestyling-localization.php:1078
256
+ #: codestyling-localization.php:1212
257
+ msgid "Project-Id-Version"
258
+ msgstr "Projekto-Identifikacijos-Versija"
259
+
260
+ #@ codestyling-localization
261
+ #: codestyling-localization.php:2041
262
+ #: codestyling-localization.php:2044
263
+ #: codestyling-localization.php:2287
264
+ #: codestyling-localization.php:2290
265
+ msgid "Rescan"
266
+ msgstr "Peržvelgti iš naujo"
267
+
268
+ #@ codestyling-localization
269
+ #: codestyling-localization.php:2397
270
+ msgid "Rescanning PHP Source Files"
271
+ msgstr "Pirminės PHP Rinkmenosi Peržvelgiamos iš naujo"
272
+
273
+ #@ codestyling-localization
274
+ #: codestyling-localization.php:3074
275
+ #: codestyling-localization.php:3091
276
+ msgid "Save"
277
+ msgstr "Įrašyti"
278
+
279
+ #@ codestyling-localization
280
+ #: codestyling-localization.php:3075
281
+ #: codestyling-localization.php:3092
282
+ msgid "Save & Next »"
283
+ msgstr "Įrašyti ir Tęsti »"
284
+
285
+ #@ codestyling-localization
286
+ #: codestyling-localization.php:1226
287
+ msgid "Scanning Progress"
288
+ msgstr "Peržiūrėjimo Eiga"
289
+
290
+ #@ codestyling-localization
291
+ #: codestyling-localization.php:2857
292
+ msgid "Search"
293
+ msgstr "Ieškoti"
294
+
295
+ #@ codestyling-localization
296
+ #: codestyling-localization.php:2087
297
+ msgid "Search Result"
298
+ msgstr "Rezultato Paieška"
299
+
300
+ #@ codestyling-localization
301
+ #: codestyling-localization.php:1569
302
+ msgid "Server Restrictions: Changing file rights is not permitted."
303
+ msgstr "Serverio Apribojimai: Rinkmenos teisių keitimas neleidžiamas."
304
+
305
+ #@ codestyling-localization
306
+ #: codestyling-localization.php:2697
307
+ #: codestyling-localization.php:3066
308
+ msgid "Singular:"
309
+ msgstr "Vienareikšmis:"
310
+
311
+ #@ codestyling-localization
312
+ #: codestyling-localization.php:1627
313
+ msgid "Sorry, Google Translation is not available."
314
+ msgstr "Atsiprašome, Google Vertimas neįmanomas."
315
+
316
+ #@ codestyling-localization
317
+ #: codestyling-localization.php:1914
318
+ #: codestyling-localization.php:1959
319
+ msgid "State"
320
+ msgstr "Būsena"
321
+
322
+ #@ codestyling-localization
323
+ #: codestyling-localization.php:1903
324
+ msgid "Textdomain"
325
+ msgstr "Teksto nuoroda"
326
+
327
+ #@ codestyling-localization
328
+ #: codestyling-localization.php:1972
329
+ msgid "The original US version doesn't contain the language directory."
330
+ msgstr "Nenurodytas originalios US versijos kalbos katalogas"
331
+
332
+ #@ codestyling-localization
333
+ #: codestyling-localization.php:664
334
+ msgid "Theme"
335
+ msgstr "Apipavidalinimas"
336
+
337
+ #@ codestyling-localization
338
+ #: codestyling-localization.php:1855
339
+ msgid "Themes"
340
+ msgstr "Apipavidalinimai"
341
+
342
+ #@ codestyling-localization
343
+ #: codestyling-localization.php:2061
344
+ msgid "Translate Language File"
345
+ msgstr "Išversti Kalbos Rinkmeną"
346
+
347
+ #@ codestyling-localization
348
+ #: codestyling-localization.php:2136
349
+ #: codestyling-localization.php:3084
350
+ #: codestyling-localization.php:3086
351
+ msgid "Translation:"
352
+ msgstr "Vertimas:"
353
+
354
+ #@ codestyling-localization
355
+ #: codestyling-localization.php:1885
356
+ msgid "Type"
357
+ msgstr "Tipas"
358
+
359
+ #@ codestyling-localization
360
+ #: codestyling-localization.php:1910
361
+ #: codestyling-localization.php:1955
362
+ msgid "Version"
363
+ msgstr "Versija"
364
+
365
+ #@ codestyling-localization
366
+ #: codestyling-localization.php:342
367
+ #: codestyling-localization.php:1844
368
+ msgid "WordPress"
369
+ msgstr "WordPress"
370
+
371
+ #@ codestyling-localization
372
+ #: codestyling-localization.php:1817
373
+ msgid "WordPress Localization"
374
+ msgstr "WordPress Lokalizacija"
375
+
376
+ #@ codestyling-localization
377
+ #: codestyling-localization.php:1136
378
+ #, php-format
379
+ msgid "You are about to delete <strong>%s</strong> from \"<strong>%s</strong>\" permanently.<br/>Are you sure you wish to delete these files?"
380
+ msgstr "Jūs ketinate negrįžtamai ištrinti <strong>%s</strong> iš \"<strong>%s</strong>\".<br/> Ar Jūs esate įsitikinęs, jog tikrai norite ištrinti šias rinkmenas?"
381
+
382
+ #@ codestyling-localization
383
+ #: codestyling-localization.php:320
384
+ msgid "You do not have permission to manage translation files."
385
+ msgstr "Jūs neturite leidimo tvarkyti vertimo rinkmenų."
386
+
387
+ #@ codestyling-localization
388
+ #: codestyling-localization.php:1752
389
+ msgid "You do not have the permission to choose the translation file directory<br/>Please upload at least one language file (*.mo|*.po) or an empty template file (*.pot) at the appropriated folder using FTP."
390
+ msgstr "Jūs neturite leidimo pasirinkti vertimo rinkmenos katalogo.<br/> Įkelkite bent vieną kalbos rinkmeną (*. mo | *. po) arba tuščią šablono rinkmeną(*. pot) į reikiamą katalogą naudojančią FTP duomenų saugyklą."
391
+
392
+ #@ codestyling-localization
393
+ #: codestyling-localization.php:1443
394
+ #, php-format
395
+ msgid "You do not have the permission to create the file '%s'."
396
+ msgstr "Jūs neturite leidimo rinkmenai '%s' kurti."
397
+
398
+ #@ codestyling-localization
399
+ #: codestyling-localization.php:1474
400
+ #: codestyling-localization.php:1475
401
+ #, php-format
402
+ msgid "You do not have the permission to delete the file '%s'."
403
+ msgstr "Jūs neturite leidimo rinkmenai '%s' ištrinti."
404
+
405
+ #@ codestyling-localization
406
+ #: codestyling-localization.php:1572
407
+ #, php-format
408
+ msgid "You do not have the permission to modify the file rights for a not existing file '%s'."
409
+ msgstr "Jūs neturite leidimo keisti neegzistuojančios rinkmenos '%s' teisių."
410
+
411
+ #@ codestyling-localization
412
+ #: codestyling-localization.php:1552
413
+ #: codestyling-localization.php:1657
414
+ #: codestyling-localization.php:1672
415
+ #, php-format
416
+ msgid "You do not have the permission to read the file '%s'."
417
+ msgstr "Jūs neturite leidimo rinkmenos '%s' skaitymui."
418
+
419
+ #@ codestyling-localization
420
+ #: codestyling-localization.php:1546
421
+ #: codestyling-localization.php:1644
422
+ #: codestyling-localization.php:1712
423
+ #, php-format
424
+ msgid "You do not have the permission to write to the file '%s'."
425
+ msgstr "Jūs neturite leidimo rinkmenos '%s' rašymui."
426
+
427
+ #@ codestyling-localization
428
+ #: codestyling-localization.php:348
429
+ #: codestyling-localization.php:398
430
+ #: codestyling-localization.php:580
431
+ #: codestyling-localization.php:669
432
+ #: codestyling-localization.php:828
433
+ #: codestyling-localization.php:869
434
+ #: codestyling-localization.php:1896
435
+ #: codestyling-localization.php:1897
436
+ msgid "activated"
437
+ msgstr "suaktyvintas"
438
+
439
+ #@ codestyling-localization
440
+ #: codestyling-localization.php:135
441
+ msgid "actual"
442
+ msgstr "dabartinis"
443
+
444
+ #@ codestyling-localization
445
+ #: codestyling-localization.php:1952
446
+ msgid "by"
447
+ msgstr "pagal"
448
+
449
+ #@ codestyling-localization
450
+ #: codestyling-localization.php:2174
451
+ msgid "close"
452
+ msgstr "užverti"
453
+
454
+ #@ codestyling-localization
455
+ #: codestyling-localization.php:1125
456
+ msgid "create po-file"
457
+ msgstr "sukurti .po rinkmeną"
458
+
459
+ #@ codestyling-localization
460
+ #: codestyling-localization.php:398
461
+ #: codestyling-localization.php:669
462
+ #: codestyling-localization.php:828
463
+ #: codestyling-localization.php:869
464
+ msgid "deactivated"
465
+ msgstr "deaktyvuotas"
466
+
467
+ #@ codestyling-localization
468
+ #: codestyling-localization.php:1904
469
+ msgid "defined by constant"
470
+ msgstr "apibrėžtas konstanta"
471
+
472
+ #@ codestyling-localization
473
+ #: codestyling-localization.php:1137
474
+ msgid "delete files"
475
+ msgstr "ištrinti rinkmenas"
476
+
477
+ #@ codestyling-localization
478
+ #: codestyling-localization.php:2423
479
+ #: codestyling-localization.php:2448
480
+ #: codestyling-localization.php:2465
481
+ msgid "finished"
482
+ msgstr "baigta"
483
+
484
+ #@ codestyling-localization
485
+ #: codestyling-localization.php:2075
486
+ msgid "generate mo-file"
487
+ msgstr "generuoti .mo rinkmeną"
488
+
489
+ #@ codestyling-localization
490
+ #: codestyling-localization.php:370
491
+ #: codestyling-localization.php:495
492
+ #: codestyling-localization.php:510
493
+ #: codestyling-localization.php:521
494
+ #: codestyling-localization.php:536
495
+ #: codestyling-localization.php:636
496
+ #: codestyling-localization.php:734
497
+ #: codestyling-localization.php:849
498
+ #: codestyling-localization.php:893
499
+ #: codestyling-localization.php:1460
500
+ #: codestyling-localization.php:1541
501
+ #: codestyling-localization.php:1580
502
+ #: codestyling-localization.php:1719
503
+ #: includes/class-translationfile.php:789
504
+ msgid "m/d/Y H:i:s"
505
+ msgstr "m/d/Y H:i:s"
506
+
507
+ #@ codestyling-localization
508
+ #: codestyling-localization.php:2125
509
+ #: codestyling-localization.php:2140
510
+ msgid "non case-sensitive"
511
+ msgstr "nesvarbu didžiosios ar mažosios raidės"
512
+
513
+ #@ codestyling-localization
514
+ #: codestyling-localization.php:1977
515
+ #: codestyling-localization.php:1998
516
+ msgid "or create the missing directory using FTP Access as:"
517
+ msgstr "arba sukurti trūkstamą katalogą naudojant FTP failų saugyklos Prieigą:"
518
+
519
+ #@ codestyling-localization
520
+ #: codestyling-localization.php:135
521
+ msgid "required"
522
+ msgstr "privalomas"
523
+
524
+ #@ codestyling-localization
525
+ #: codestyling-localization.php:1234
526
+ msgid "scan now"
527
+ msgstr "peržvelgti dabar"
528
+
529
+ #@ codestyling-localization
530
+ #: codestyling-localization.php:2156
531
+ msgid "scroll to top"
532
+ msgstr "slinkti į viršų"
533
+
534
+ #@ codestyling-localization
535
+ #: codestyling-localization.php:3043
536
+ #: codestyling-localization.php:3046
537
+ #: codestyling-localization.php:3086
538
+ msgid "translate with Google API"
539
+ msgstr "išversti su Google API"
540
+
541
+ #@ codestyling-localization
542
+ #: codestyling-localization.php:1974
543
+ msgid "try to create the WordPress language directory"
544
+ msgstr "pamėginkite sukurti WordPress kalbos katalogą"
545
+
546
+ #@ codestyling-localization
547
+ #: codestyling-localization.php:2063
548
+ #: codestyling-localization.php:2076
549
+ #: includes/class-translationfile.php:789
550
+ msgid "unknown"
551
+ msgstr "nežinomas"
552
+
553
+ #@ codestyling-localization
554
+ #: codestyling-localization.php:3073
555
+ #: codestyling-localization.php:3090
556
+ msgid "« Save & Previous"
557
+ msgstr "« Išsaugoti ir Ankstesnis"
558
+
559
+ #@ codestyling-localization
560
+ #: codestyling-localization.php:571
561
+ msgid "μ Plugin"
562
+ msgstr "μ Papildinys"
563
+
564
+ #@ codestyling-localization
565
+ #: codestyling-localization.php:1848
566
+ msgid "μ Plugins"
567
+ msgstr "μ Papildiniai"
568
+
569
+ #@ codestyling-localization
570
+ #: codestyling-localization.php:2076
571
+ msgid "last written:"
572
+ msgstr "paskutinį kartą parašyta:"
573
+
574
+ #@ codestyling-localization
575
+ #: codestyling-localization.php:2080
576
+ msgid "Total"
577
+ msgstr "Iš viso"
578
+
579
+ #@ codestyling-localization
580
+ #: codestyling-localization.php:2081
581
+ msgid "Plural"
582
+ msgstr "Daugiareikšmis"
583
+
584
+ #@ codestyling-localization
585
+ #: codestyling-localization.php:2082
586
+ #: codestyling-localization.php:2693
587
+ msgid "Context"
588
+ msgstr "Kontekstas"
589
+
590
+ #@ codestyling-localization
591
+ #: codestyling-localization.php:2083
592
+ msgid "Not translated"
593
+ msgstr "Neišversta"
594
+
595
+ #@ codestyling-localization
596
+ #: codestyling-localization.php:2084
597
+ msgid "Comments"
598
+ msgstr "Komentarai"
599
+
600
+ #@ codestyling-localization
601
+ #: codestyling-localization.php:2085
602
+ #: codestyling-localization.php:2675
603
+ msgid "Code Hint"
604
+ msgstr "Programos Kodo Patarimas"
605
+
606
+ #@ codestyling-localization
607
+ #: codestyling-localization.php:2674
608
+ msgid "Comment"
609
+ msgstr "Komentaras"
610
+
611
+ #@ codestyling-localization
612
+ #: codestyling-localization.php:2068
613
+ msgid "<b>Hint:</b> The extended feature for textdomain separation shows at dropdown box <i>Textdomain</i> the pre-selected primary textdomain."
614
+ msgstr "<b>Patarimas:</b> Išplėstinė ypatybė teksto adreso atskyrimui rodoma išskleidžiamajame langelyje <i>Textdomain</i> parinktas pirminis teksto adresas."
615
+
616
+ #@ codestyling-localization
617
+ #: codestyling-localization.php:2069
618
+ msgid "All other additional contained textdomains occur at the source but will not be used, if not explicitely supported by this component!"
619
+ msgstr "Visi kiti papildomi pateikti teksto adresai veikia pirminėje reikšmėje, bet nebus naudojami, jeigu nebus aiškiai palaikomi šio komponento!"
620
+
621
+ #@ codestyling-localization
622
+ #: codestyling-localization.php:2070
623
+ msgid "Please contact the author, if some of the non primary textdomain based phrases will not show up translated at the required position!"
624
+ msgstr "Jeigu kuri nors iš nepirminių teksto adresų frazių neatsiras reikiamoje vietoje, prašome susisiekti su autoriumi!"
625
+
626
+ #@ codestyling-localization
627
+ #: codestyling-localization.php:2071
628
+ msgid "The Textdomain <i><b>default</b></i> always stands for the WordPress main language file, this could be either intentionally or accidentally!"
629
+ msgstr "Teksto adresas <b><i>default</i></b> visuomet rodomas pagal pirminę WordPress kalbos rinkmeną. Tai gali nutikti ir nustatant tikslingai ir netyčia!"
630
+
631
+ #@ codestyling-localization
632
+ #: codestyling-localization.php:2074
633
+ msgid "Textdomain:"
634
+ msgstr "Teksto adresas:"
635
+
636
+ #@ codestyling-localization
637
+ #: includes/js-help-perlreg.php:4
638
+ msgctxt "pcre"
639
+ msgid "Component"
640
+ msgstr "Komponentas"
641
+
642
+ #@ codestyling-localization
643
+ #: includes/js-help-perlreg.php:5
644
+ msgctxt "pcre"
645
+ msgid "Example"
646
+ msgstr "Pavyzdys"
647
+
648
+ #@ codestyling-localization
649
+ #: includes/js-help-perlreg.php:6
650
+ msgctxt "pcre"
651
+ msgid "Description"
652
+ msgstr "Aprašas"
653
+
654
+ #@ codestyling-localization
655
+ #: includes/js-help-perlreg.php:12
656
+ #: includes/js-help-perlreg.php:17
657
+ #: includes/js-help-perlreg.php:22
658
+ #: includes/js-help-perlreg.php:27
659
+ #: includes/js-help-perlreg.php:32
660
+ #: includes/js-help-perlreg.php:37
661
+ #: includes/js-help-perlreg.php:42
662
+ #: includes/js-help-perlreg.php:47
663
+ #: includes/js-help-perlreg.php:52
664
+ #: includes/js-help-perlreg.php:112
665
+ #: includes/js-help-perlreg.php:117
666
+ #: includes/js-help-perlreg.php:122
667
+ #: includes/js-help-perlreg.php:127
668
+ msgctxt "pcre"
669
+ msgid "out"
670
+ msgstr "išvestis"
671
+
672
+ #@ codestyling-localization
673
+ #: includes/js-help-perlreg.php:13
674
+ msgctxt "pcre"
675
+ msgid "matches \"out\", but also \"timeout\", \"outbreak\", \"Route\" and \"gouty\"."
676
+ msgstr "atitinka \"out\", taip pat \"timeout\", \"outbreak\", \"Route\" ir \"gouty\"."
677
+
678
+ #@ codestyling-localization
679
+ #: includes/js-help-perlreg.php:18
680
+ msgctxt "pcre"
681
+ msgid "matches \"out\" at start of string like \"out\", \"outbreak\", as long as this are the first words at string."
682
+ msgstr "atitinka \"out\" pradžioje eilutės, pavyzdžiui \"out\", \"outbreak\", tol, kol tai yra pirmieji žodžiai eilutėje."
683
+
684
+ #@ codestyling-localization
685
+ #: includes/js-help-perlreg.php:23
686
+ msgctxt "pcre"
687
+ msgid "matches \"out\" at end of string like \"out\", \"timeout\" and \"burnout\" as long as this are the last words at string."
688
+ msgstr "atitinka \"out\" eilutės pabaigoje, kaip \"out\", \"timeout\" ir \"burnout\" tol, kol tai yra paskutinieji eilutės žodžiai."
689
+
690
+ #@ codestyling-localization
691
+ #: includes/js-help-perlreg.php:28
692
+ msgctxt "pcre"
693
+ msgid "matches \"ou\", \"out\", \"outt\" and \"outttttt\", the char prior to asterisk can be repeated 0 to unlimited times."
694
+ msgstr "atitinka \"ou\", \"out\", \"outt\" ir \"outttttt\", asterisk ženklų pirmenybė gali būti kartojama nuo 0 iki begalybės kartų."
695
+
696
+ #@ codestyling-localization
697
+ #: includes/js-help-perlreg.php:33
698
+ msgctxt "pcre"
699
+ msgid "matches \"outt\" and \"outttt\", the char prior to plus char have to be repeated at least one time or more often."
700
+ msgstr "atitinka \"outt\" ir \"outttt\", ženklų pirmenybė prieš pridėtinius ženklus gali būti kartojama bent vieną kartą arba dažniau."
701
+
702
+ #@ codestyling-localization
703
+ #: includes/js-help-perlreg.php:38
704
+ msgctxt "pcre"
705
+ msgid "matches \"rout\" and \"gout\", any char can be placed at this position."
706
+ msgstr "atitinka \"rout\" ir \"gout\", šioje vietoje gali būti įrašytas bet koks ženklas."
707
+
708
+ #@ codestyling-localization
709
+ #: includes/js-help-perlreg.php:43
710
+ msgctxt "pcre"
711
+ msgid "matches \"timeout\" and \"Fallout\", any char sequence at this position. Is a combination of any char and 1 but upto many times."
712
+ msgstr "atitinka \"timeout\" ir \"Fallout\", bet kokia ženklų seka šioje vietoje. Bet kokių ženklų derinys gali būti naudojamas daug kartų."
713
+
714
+ #@ codestyling-localization
715
+ #: includes/js-help-perlreg.php:48
716
+ msgctxt "pcre"
717
+ msgid "matches \"out\" as single word. \\b means word break."
718
+ msgstr "atitinka \"out\", kaip vienintėlis žodis. \\b suprantamas kaip žodžio skirtukas."
719
+
720
+ #@ codestyling-localization
721
+ #: includes/js-help-perlreg.php:53
722
+ msgctxt "pcre"
723
+ msgid "matches \"out\" only inside words, like \"Route\" or \"gouty\". \\B means not word break."
724
+ msgstr "atitinka \"out\" tik vidinėse žodžių dalyse, kaip \"Route\" arba \"gouty\". \\B nereiškia žodžio skirtuko."
725
+
726
+ #@ codestyling-localization
727
+ #: includes/js-help-perlreg.php:58
728
+ msgctxt "pcre"
729
+ msgid "matches any number. \\d means a numerical digit (0 to 9)"
730
+ msgstr "atitinka bet kokį skaičių. \\d nurodo skaitinę reikšmę (nuo 0 iki 9) "
731
+
732
+ #@ codestyling-localization
733
+ #: includes/js-help-perlreg.php:63
734
+ msgctxt "pcre"
735
+ msgid "matches \"-out\" at \"3-out\", any non number."
736
+ msgstr "atitinka \"-out\" prie \"3-out\", bet koks ne skaičius."
737
+
738
+ #@ codestyling-localization
739
+ #: includes/js-help-perlreg.php:68
740
+ msgctxt "pcre"
741
+ msgid "matches form feed char."
742
+ msgstr "atitinka perdavimo formos simbolį."
743
+
744
+ #@ codestyling-localization
745
+ #: includes/js-help-perlreg.php:73
746
+ msgctxt "pcre"
747
+ msgid "matches line feed char."
748
+ msgstr "atitinka eilutės perdavimo simoblį."
749
+
750
+ #@ codestyling-localization
751
+ #: includes/js-help-perlreg.php:78
752
+ msgctxt "pcre"
753
+ msgid "matches carriage return char."
754
+ msgstr "atitinka grįžimo į eilutės pradžią simbolį."
755
+
756
+ #@ codestyling-localization
757
+ #: includes/js-help-perlreg.php:83
758
+ msgctxt "pcre"
759
+ msgid "matches tabulator char."
760
+ msgstr "atitinka tabuliatoriaus simbolį."
761
+
762
+ #@ codestyling-localization
763
+ #: includes/js-help-perlreg.php:88
764
+ msgctxt "pcre"
765
+ msgid "matches vertical tabulator char."
766
+ msgstr "atitinka vertikalaus tabuliatoriaus simbolį."
767
+
768
+ #@ codestyling-localization
769
+ #: includes/js-help-perlreg.php:93
770
+ msgctxt "pcre"
771
+ msgid "matches any kind of whitespace and space char."
772
+ msgstr "atitinka visus tarpų ir tuščios vietos simbolius."
773
+
774
+ #@ codestyling-localization
775
+ #: includes/js-help-perlreg.php:98
776
+ msgctxt "pcre"
777
+ msgid "matches any char, that is not a whitespace char."
778
+ msgstr "atitinka bet kurį simbolį, kuris nėra tarpo simbolis."
779
+
780
+ #@ codestyling-localization
781
+ #: includes/js-help-perlreg.php:103
782
+ msgctxt "pcre"
783
+ msgid "matches any alphanumerical char and underscore (typical for programming syntax)."
784
+ msgstr "atitinka bet kurį skaitinį arba raidinį ženklą ir pabraukimo brūkšnį (tipiška progravimo sintaksei)."
785
+
786
+ #@ codestyling-localization
787
+ #: includes/js-help-perlreg.php:108
788
+ msgctxt "pcre"
789
+ msgid "matches any char, that is not alphanumerical char and underscore (typical for illegal char detection at programming)."
790
+ msgstr "atitinka bet kurį simbolį, kuris neturi skaitinės arba raidinės reikšmės ir nėra pabraukimo brūkšnys."
791
+
792
+ #@ codestyling-localization
793
+ #: includes/js-help-perlreg.php:113
794
+ msgctxt "pcre"
795
+ msgid "matches \"out\" and remembers matches internally. Upto 9 brackets are allowed per expression."
796
+ msgstr "atitinka \"out\" ir įsimena atitikimus vidinėje atmintyje. Reiškinyje leidžiami ne daugiau nei 9 suskliaudimai."
797
+
798
+ #@ codestyling-localization
799
+ #: includes/js-help-perlreg.php:118
800
+ msgctxt "pcre"
801
+ msgid "matches \"aus\" as often it is contained at string. The match positions will be stored internally as array."
802
+ msgstr "atitinka \"aus\" visuomet, kai tik jis egzistuoja eilutėje. Atitinkimo pozicijos bus laikomos viduje kaip masyvas."
803
+
804
+ #@ codestyling-localization
805
+ #: includes/js-help-perlreg.php:123
806
+ msgctxt "pcre"
807
+ msgid "matches \"out\", \"Out\" and \"OUT\", not case-sensitive match."
808
+ msgstr "atitinka \"out\", \"Out\" ir \"OUT\", nesvarbu didžiosios ar mažosios raidės."
809
+
810
+ #@ codestyling-localization
811
+ #: includes/js-help-perlreg.php:128
812
+ msgctxt "pcre"
813
+ msgid "matches \"out\", as ofter occurs (g) and also non case-sensitive."
814
+ msgstr "atitinka \"out\", dėl dažnai pasitaikančio ryšio, taip pat nesvarbu kokios raidės naudojamos - didžiosios ar mažosios."
815
+
816
+ #@ codestyling-localization
817
+ #: codestyling-localization.php:664
818
+ msgid "Childtheme"
819
+ msgstr "Pošablonis"
820
+
821
+ #@ codestyling-localization
822
+ #: codestyling-localization.php:671
823
+ msgid "child theme of"
824
+ msgstr "Pošalbonis nuo"
825
+
826
+ #@ codestyling-localization
827
+ #: codestyling-localization.php:819
828
+ msgid "BuddyPress"
829
+ msgstr "\"BuddyPress\""
830
+
831
+ #@ codestyling-localization
832
+ #: codestyling-localization.php:864
833
+ msgid "bbPress"
834
+ msgstr "\"bbPress\""
835
+
836
+ #@ codestyling-localization
837
+ #: codestyling-localization.php:1993
838
+ msgid "The original bbPress component doesn't contain a language directory."
839
+ msgstr "Originalus bbPress komponentas savyje neturi kalbos katalogo."
840
+
841
+ #@ codestyling-localization
842
+ #: codestyling-localization.php:1995
843
+ msgid "try to create the bbPress language directory"
844
+ msgstr "pamėginkite sukurti bbPress kalbos katalogą"
845
+
846
+ #@ codestyling-localization
847
+ #: codestyling-localization.php:1732
848
+ msgid "You do not have the permission to create a new Language File Path.<br/>Please create the appropriated path using your FTP access."
849
+ msgstr "Jūs neturite leidimo naujos Kalbos Rinkmenos Adreso kūrimui. <br/>Sukurkite naują priskirtą kelią, naudodamiesi FTP duomenų saugyklos prieiga."
850
+
851
+ #@ codestyling-localization
852
+ #: codestyling-localization.php:693
853
+ msgid "<strong>Loading Issue: </strong>Author is using <em>load_textdomain</em> instead of <em>load_theme_textdomain</em> or <em>load_child_theme_textdomain</em> function. This may break behavior of WordPress, because some filters and actions won't be executed anymore. Please contact the Author about that."
854
+ msgstr "<strong>Įkėlimo problema: </strong>Autorius naudoja <em>load_textdomain</em> vietoje <em>load_theme_textdomain</em> arba <em>load_child_theme_textdomain</em> funkcijos. Tai gali sutrikdyti WordPress darbą, kadangi kai kurie filtrai ir veiksmai nebegalės būti panaudoti/atlikti dar kartą. Dėl šio neskalndumo, susisiekite su autoriumi."
855
+
856
+ #@ codestyling-localization
857
+ #: codestyling-localization.php:744
858
+ #, php-format
859
+ msgid "<strong>Naming Issue: </strong>Author uses unsupported language file naming convention! Instead of example <em>de_DE.po</em> the non theme standard version <em>%s</em> has been used. If you translate this Theme, only renamed language files will be working!"
860
+ msgstr "<strong>Įvardijimo problema: </strong>Autorius naudoja nesuprantamą kalbos rinkmenos sutartinį žymėjimą! Vietoje pavyzdžio <em>de_DE.po</em> buvo panaudota standartinė išskirtinai neapipavidalinta versija <em>%s</em>. Jeigu mėginate išversti šio apipavidalinimo tekstą, tik pervadintos kalbos rinkmenos bus veiksnios."
861
+
862
+ #@ codestyling-localization
863
+ #: codestyling-localization.php:1858
864
+ #: codestyling-localization.php:1924
865
+ msgid "Compatibility"
866
+ msgstr "Suderinamumas"
867
+
868
+ #@ codestyling-localization
869
+ #: codestyling-localization.php:431
870
+ msgid "<strong>Loading Issue: </strong>Author is using <em>load_textdomain</em> instead of <em>load_plugin_textdomain</em> function. This may break behavior of WordPress, because some filters and actions won't be executed anymore. Please contact the Author about that."
871
+ msgstr "<strong>Įkėlimo problema: </strong>Autorius naudoja <em>load_textdomain</em> vietoje <em>load_plugin_textdomain</em> funkcijos. Tai gali sutrikdyti WordPress darbą, kadangi kai kurie filtrai ir veiksmai nebegalės būti panaudoti/atlikti dar kartą. Dėl šio neskalndumo, susisiekite su autoriumi."
872
+
873
+ #@ codestyling-localization
874
+ #: codestyling-localization.php:805
875
+ msgid "<strong>WooThemes Issue: </strong>The Author is known for not supporting a translatable backend. Please expect only translations for frontend or contact the Author for support!"
876
+ msgstr "<strong>Woo Apipavidalinimo problema:</strong> Autorius nesuteikia vidinės pusės vertinių galimybės. Palaikomi tik išorinės pusės (sąsajos) vertimai. Jeigu reikalinga pagalba, susisiekite su autoriumi."
877
+
878
+ #@ codestyling-localization
879
+ #: codestyling-localization.php:1865
880
+ msgid "You like it?"
881
+ msgstr "Patinka šis papildinys?"
882
+
883
+ #@ codestyling-localization
884
+ #: codestyling-localization.php:1938
885
+ msgid "Memory Warning"
886
+ msgstr "Įspėjimas dėl Atminties būsenos"
887
+
888
+ #@ codestyling-localization
889
+ #: codestyling-localization.php:1939
890
+ msgid "Since WordPress 3.x version it may require at least <strong>58MB</strong> PHP memory_limit! The reason is still unclear but it doesn't freeze anymore. Instead a error message will be shown and the scanning process aborts while reaching your limits."
891
+ msgstr "Nuo WordPress 3.x versijos reikalinga minimum <strong>58 megabaitai</strong> PHP atminties. To priežastis nėra galutinai aiški, tačiau veikimo sutrikimų nebepastebėta. Vietoje klaidos žinutės, peržiūros procesas bus nutrauktas, kuomet atminties limitas pasiektas."
892
+
893
+ #@ codestyling-localization
894
+ #: codestyling-localization.php:1945
895
+ msgid "Language Folder"
896
+ msgstr "Kalbos Aplankas"
897
+
898
+ #@ codestyling-localization
899
+ #: codestyling-localization.php:1946
900
+ msgid "The translation file folder is ambiguous, please select by clicking the appropriated language file folder or ask the Author about!"
901
+ msgstr "Vertimo rinkmenos aplankas neturi vienos aiškios prasmės. Spragteldami pasirinkite tinkamą kalbos rinkmenos aplanką, arba pagalbos kreipkitės į Autorių!"
902
+
903
+ #@ codestyling-localization
904
+ #: codestyling-localization.php:3065
905
+ #: codestyling-localization.php:3080
906
+ msgid "Access Keys:"
907
+ msgstr "Prieigos Raktai:"
908
+
909
+ #@ codestyling-localization
910
+ #. translators: plugin header field 'Name'
911
+ #: codestyling-localization.php:0
912
+ msgid "CodeStyling Localization"
913
+ msgstr "CodeStyling Localization"
914
+
915
+ #@ codestyling-localization
916
+ #. translators: plugin header field 'PluginURI'
917
+ #: codestyling-localization.php:0
918
+ msgid "http://www.code-styling.de/english/development/wordpress-plugin-codestyling-localization-en"
919
+ msgstr "http://www.code-styling.de/english/development/wordpress-plugin-codestyling-localization-en"
920
+
921
+ #@ codestyling-localization
922
+ #. translators: plugin header field 'Description'
923
+ #: codestyling-localization.php:0
924
+ msgid "Now you can freely manage, edit and modify your WordPress language translation files (*.po / *.mo) as usual. You won't need any additional editor have been installed. Also supports WPMU plugins, if WPMU versions has been detected."
925
+ msgstr "Nuo šiol Jūs galite nevaržomai tvarkyti, redaguoti ir keisti savo WordPress kalbos vertimų rinkmenas (*.po / *.mo), kaip esate įpratęs. Nereikalingas jokio kito redaktoriaus įdiegimas. Taip pat palaikomi WPMU papildiniai, jeigu įmanoma aptikti reikiamą WPMU versiją."
926
+
927
+ #@ codestyling-localization
928
+ #. translators: plugin header field 'Author'
929
+ #: codestyling-localization.php:0
930
+ msgid "Heiko Rabe"
931
+ msgstr "Heiko Rabe"
932
+
933
+ #@ codestyling-localization
934
+ #. translators: plugin header field 'AuthorURI'
935
+ #: codestyling-localization.php:0
936
+ msgid "http://www.code-styling.de/english/"
937
+ msgstr "http://www.code-styling.de/english/"
938
+
939
+ #@ codestyling-localization
940
+ #: codestyling-localization.php:473
941
+ msgid "<strong>Full Encryped PHP Code: </strong>This plugin consists out of encryped code will be <strong>eval</strong>'d at runtime! It can't be checked against exploitable code pieces. That's why it will become potential target of hidden intrusion."
942
+ msgstr "<strong>Pilnai užšifruotas PHP kodas:</strong> Šis papildinys susideda iš užšifruoto kodo <strong>apskaičiuoto</strong> paleidimo metu! Jis negali būti dar kartą sutikrintas su šiuo metu veikiančiais šifro fragmentais. Štai kodėl tai gali tapti potencialiu slapto įsibrovimo taikiniu."
943
+
944
+ #@ codestyling-localization
945
+ #: codestyling-localization.php:478
946
+ msgid "<strong>Textdomain definition: </strong>This plugin provides a textdomain definition at plugin header fields but seems not to load any translation file. If it doesn't show your translation, please contact the plugin Author."
947
+ msgstr "<strong>Teksto adreso apibrėžimas:</strong> Šis papildinys suteikia galimybę aprašyti teksto adresą papildinio puslapinės antraštės laukeliuose, bet neįkelia jokios vertimo rinkmenos. Jeigu Jums reikalingas vertimas nerodomas, susisiekite su papildinio Autoriumi."
948
+
949
+ #@ codestyling-localization
950
+ #: codestyling-localization.php:1861
951
+ #: codestyling-localization.php:1931
952
+ msgid "Security Risk"
953
+ msgstr "Saugumo Pavojus"
954
+
955
+ #@ codestyling-localization
956
+ #: codestyling-localization.php:2086
957
+ msgid "Trailing Space"
958
+ msgstr "Galinis Tarpas"
959
+
960
+ #@ codestyling-localization
961
+ #: codestyling-localization.php:1605
962
+ msgid "Your translation file doesn't support the <em>multiple textdomains in one translation file</em> extension.<br/>Please re-scan the related source files at the overview page to enable this feature."
963
+ msgstr "Jūsų vertimo rinkmena nepalaiko <em>daugybės teksto adresų vienoje vertimų rinkmenoje</em> plėtinio. <br/> Kad suaktyvinti šią ypatybę, iš naujo peržvelkite susijusias pirmines rinkmenas apžvalgos puslapyje."
964
+
965
+ #@ codestyling-localization
966
+ #: codestyling-localization.php:1831
967
+ msgid "enable low memory mode"
968
+ msgstr "suaktyvinti silpnos atminties būseną"
969
+
970
+ #@ codestyling-localization
971
+ #: codestyling-localization.php:1832
972
+ msgid "If your Installation is running under low remaining memory conditions, you will face the memory limit error during scan process or opening catalog content. If you hitting your limit, you can enable this special mode. This will try to perform the actions in a slightly different way but that will lead to a considerably slower response times but nevertheless gives no warranty, that it will solve your memory related problems at all cases."
973
+ msgstr "Jeigu Jūsų Įdiegimo darbai vyksta silpnos atminties būsenoje, peržvelgimo arba katalogo atvėrimo procesų metu, pasitaikys atminties limito klaida. Pasiekęs šią ribą, galite suaktyvinti specialų rėžimą. Bus bandoma atlikti reikiamus veiksmus kitokiais būdais, tačiau tai nulems gerokai prastesnius reakcijos laikus. Bet kuriu atveju, garantijos, jog tai išspręs su serverio atmintimi susijusias problemas nėra."
974
+
975
+ #@ codestyling-localization
976
+ #: codestyling-localization.php:2061
977
+ msgid "back to overview page &raquo;"
978
+ msgstr "grįžti į apžvalgos puslapį &raquo;"
979
+
980
+ #@ codestyling-localization
981
+ #: codestyling-localization.php:2453
982
+ #, php-format
983
+ msgid "You are trying to rescan files which expands above your PHP Memory Limit at %s MB during the analysis.<br/>Please enable the <em>low memory mode</em> for scanning this component."
984
+ msgstr "Jūs bandote iš naujo peržiūrėti rinkmenas, kurios viršija jūsų PHP Atminties Limitą %s megabaitais, analizės metu<br/> Suaktyvinkite <em>silpnos atminties rėžimą</em>, kad galėtume peržiūrėti šį komponentą."
985
+
986
+ #@ codestyling-localization
987
+ #: codestyling-localization.php:2614
988
+ #, php-format
989
+ msgid "You are trying to open a translation catalog which expands above your PHP Memory Limit at %s MB during read.<br/>Please enable the <em>low memory mode</em> for opening this components catalog."
990
+ msgstr "Jūs bandote atverti vertimo katalogą, kuris viršija Jūsų PHP Atminties Limitą %s megabaitais nuskaitymo metu. <br/>Suaktyvinkite <em>silpnos atminties rėžimą</em>, kad galėtume peržiūrėti šio katalogo komponentus."
991
+
992
+ #@ codestyling-localization
993
+ #: codestyling-localization.php:506
994
+ #: codestyling-localization.php:532
995
+ msgid "<strong>Textdomain definition: </strong>There are problems to find the used textdomain. It has been taken from existing translation files. If it doesn't work with your install, please contact the Author of this plugin."
996
+ msgstr "<strong>Tekstinio adreso aprašymas:</strong> Atsirado problemų, ieškant panaudoto teksto adreso. Panaudota informacija iš jau sukurtų vertimų rinkmenų. Jeigu kyla problemų diegiant, susisiekite su šio papildinio Autoriumi."
997
+
998
+ #@ codestyling-localization
999
+ #: codestyling-localization.php:1705
1000
+ msgid "You are trying to create an empty mo-file without any translations. This is not possible, please translate at least one entry."
1001
+ msgstr "Jūs bandote sukurti tuščią .mo rinkmeną be jokių vertimų. Tai neįmanoma! Išverskite bent vieną elementą."
1002
+
1003
+ #@ codestyling-localization
1004
+ #: codestyling-localization.php:1836
1005
+ msgid "Attention:"
1006
+ msgstr "Dėmesio:"
1007
+
1008
+ #@ codestyling-localization
1009
+ #: codestyling-localization.php:1836
1010
+ msgid "You have a running version of WP e-Commerce and it has been programmed to deactivate the javascript library prototype.js at each WordPress backend page! I did a work arround that, in case of issues read my article: <a href=\"http://www.code-styling.de/english/wp-e-commerce-breaks-intentionally-other-plugins-or-themes\">WP e-Commerce breaks intentionally other Plugins or Themes</a>"
1011
+ msgstr "Dabar aktyviai veikianti WordPress e-Komercijos versija sukurta taip, jog kiekvieno WordPress puslapio vidinėje pusėje JavaScript prototipų biblioteka yra deaktyvuojama! Autorius tai padarė, kad būtų išvengtos įvairiausios problemos. Plačiau skaitykite: <a href=\"http://www.code-styling.de/english/wp-e-commerce-breaks-intentionally-other-plugins-or-themes\">WordPress e-Komercijos sprendimas specialiai nutraukia kitų papildinių ir apipavidalinimų veiklą</a>"
1012
+
1013
+ #@ codestyling-localization
1014
+ #. translators: plugin header field 'Version'
1015
+ #: codestyling-localization.php:0
1016
+ msgid "1.99.14"
1017
+ msgstr "1.99.14"
1018
+
1019
+ #@ codestyling-localization
1020
+ #: codestyling-localization.php:699
1021
+ msgid "<strong>Textdomain Naming Issue: </strong>Author uses a variable to load the textdomain. It will be assumed to be equal to theme name now."
1022
+ msgstr "<strong>Teksto Adreso Įvardijimo problema:</strong> Autorius naudoja kintamają teksto adreso įkrovimui. Tai nuo šiol bus prilygintas apipavidilinimo pavadinimui."
1023
+
1024
+ #@ codestyling-localization
1025
+ #: codestyling-localization.php:798
1026
+ msgid "<strong>Textdomain Naming Issue: </strong>Author uses a variable to define the textdomain constant. It will be assumed to be equal to theme name now."
1027
+ msgstr "<strong>Teksto Adreso Įvardijimo problema:</strong> Autorius naudoja kintamają teksto adreso konstantos apibrėžimui. Tai nuo šiol bus prilyginta apipavidilinimo pavadinimui."
1028
+
trans/crayon-syntax-highlighter-de_DE.mo CHANGED
Binary file
trans/crayon-syntax-highlighter-de_DE.po CHANGED
@@ -19,436 +19,437 @@ msgstr ""
19
  "X-Poedit-SearchPath-0: ..\n"
20
  "X-Textdomain-Support: yes"
21
 
22
- #: crayon_settings.class.php:135
23
- #: crayon_settings.class.php:139
24
  #@ crayon-syntax-highlighter
25
  msgid "Max"
26
  msgstr "Max"
27
 
28
- #: crayon_settings.class.php:135
29
- #: crayon_settings.class.php:139
30
  #@ crayon-syntax-highlighter
31
  msgid "Min"
32
  msgstr "Min"
33
 
34
- #: crayon_settings.class.php:135
35
- #: crayon_settings.class.php:139
36
  #@ crayon-syntax-highlighter
37
  msgid "Static"
38
  msgstr "Fix"
39
 
40
- #: crayon_settings.class.php:137
41
- #: crayon_settings.class.php:141
42
- #: crayon_settings_wp.class.php:461
43
- #: crayon_settings_wp.class.php:470
44
- #: crayon_settings_wp.class.php:581
45
  #@ crayon-syntax-highlighter
46
  msgid "Pixels"
47
  msgstr "Pixels"
48
 
49
- #: crayon_settings.class.php:137
50
- #: crayon_settings.class.php:141
51
  #@ crayon-syntax-highlighter
52
  msgid "Percent"
53
  msgstr "Prozent"
54
 
55
- #: crayon_settings.class.php:150
56
  #@ crayon-syntax-highlighter
57
  msgid "None"
58
  msgstr "Keine"
59
 
60
- #: crayon_settings.class.php:150
61
  #@ crayon-syntax-highlighter
62
  msgid "Left"
63
  msgstr "Links"
64
 
65
- #: crayon_settings.class.php:150
66
  #@ crayon-syntax-highlighter
67
  msgid "Center"
68
  msgstr "Mitte"
69
 
70
- #: crayon_settings.class.php:150
71
  #@ crayon-syntax-highlighter
72
  msgid "Right"
73
  msgstr "Rechts"
74
 
75
- #: crayon_settings.class.php:152
76
- #: crayon_settings.class.php:174
77
  #@ crayon-syntax-highlighter
78
  msgid "On MouseOver"
79
  msgstr "Bei MouseOver"
80
 
81
- #: crayon_settings.class.php:152
82
- #: crayon_settings.class.php:158
83
  #@ crayon-syntax-highlighter
84
  msgid "Always"
85
  msgstr "Immer"
86
 
87
- #: crayon_settings.class.php:152
88
- #: crayon_settings.class.php:158
89
  #@ crayon-syntax-highlighter
90
  msgid "Never"
91
  msgstr "Nie"
92
 
93
- #: crayon_settings.class.php:158
94
  #@ crayon-syntax-highlighter
95
  msgid "When Found"
96
  msgstr "Wenn gefunden"
97
 
98
- #: crayon_settings.class.php:174
99
  #@ crayon-syntax-highlighter
100
  msgid "On Double Click"
101
  msgstr "Bei Doppelklick"
102
 
103
- #: crayon_settings.class.php:174
104
  #@ crayon-syntax-highlighter
105
  msgid "On Single Click"
106
  msgstr "Bei Mausklick"
107
 
108
- #: crayon_settings.class.php:182
109
  #@ crayon-syntax-highlighter
110
  msgid "An error has occurred. Please try again later."
111
  msgstr "Ein Fehler ist aufgetreten. Bitte versuchen Sie es später erneut."
112
 
113
- #: crayon_settings_wp.class.php:39
114
- #: crayon_settings_wp.class.php:82
115
- #: crayon_settings_wp.class.php:713
 
116
  #@ crayon-syntax-highlighter
117
  msgid "Settings"
118
  msgstr "Einstellungen"
119
 
120
- #: crayon_settings_wp.class.php:73
121
  #@ crayon-syntax-highlighter
122
  msgid "You do not have sufficient permissions to access this page."
123
  msgstr "Sie verfügen nicht über ausreichende Berechtigungen um diese Seite zu betreten."
124
 
125
- #: crayon_settings_wp.class.php:94
126
  #@ crayon-syntax-highlighter
127
  msgid "Save Changes"
128
  msgstr "Änderungen speichern"
129
 
130
- #: crayon_settings_wp.class.php:100
131
  #@ crayon-syntax-highlighter
132
  msgid "Reset Settings"
133
  msgstr "Einstellungen zurücksetzen"
134
 
135
- #: crayon_settings_wp.class.php:438
136
  #@ crayon-syntax-highlighter
137
  msgid "Height"
138
  msgstr "Höhe"
139
 
140
- #: crayon_settings_wp.class.php:444
141
  #@ crayon-syntax-highlighter
142
  msgid "Width"
143
  msgstr "Breite"
144
 
145
- #: crayon_settings_wp.class.php:450
146
  #@ crayon-syntax-highlighter
147
  msgid "Top Margin"
148
  msgstr "Oberer Rand"
149
 
150
- #: crayon_settings_wp.class.php:451
151
  #@ crayon-syntax-highlighter
152
  msgid "Bottom Margin"
153
  msgstr "Unterer Rand"
154
 
155
- #: crayon_settings_wp.class.php:452
156
- #: crayon_settings_wp.class.php:457
157
  #@ crayon-syntax-highlighter
158
  msgid "Left Margin"
159
  msgstr "Linker Rand"
160
 
161
- #: crayon_settings_wp.class.php:453
162
- #: crayon_settings_wp.class.php:457
163
  #@ crayon-syntax-highlighter
164
  msgid "Right Margin"
165
  msgstr "Rechter Rand"
166
 
167
- #: crayon_settings_wp.class.php:463
168
  #@ crayon-syntax-highlighter
169
  msgid "Horizontal Alignment"
170
  msgstr "Horizontale Ausrichtung"
171
 
172
- #: crayon_settings_wp.class.php:466
173
  #@ crayon-syntax-highlighter
174
  msgid "Allow floating elements to surround Crayon"
175
  msgstr "Crayon in Floating Elemente einbetten"
176
 
177
- #: crayon_settings_wp.class.php:474
178
  #@ crayon-syntax-highlighter
179
  msgid "Display the Toolbar"
180
  msgstr "Symbolleiste anzeigen"
181
 
182
- #: crayon_settings_wp.class.php:477
183
  #@ crayon-syntax-highlighter
184
  msgid "Overlay the toolbar on code rather than push it down when possible"
185
  msgstr "Versuchen mit Symbolleiste Code zu überlagern statt zu verschieben"
186
 
187
- #: crayon_settings_wp.class.php:478
188
  #@ crayon-syntax-highlighter
189
  msgid "Toggle the toolbar on single click when it is overlayed"
190
  msgstr "Symbolleiste mit Klick umschalten wenn als Overlay"
191
 
192
- #: crayon_settings_wp.class.php:479
193
  #@ crayon-syntax-highlighter
194
  msgid "Delay hiding the toolbar on MouseOut"
195
  msgstr "Nach MouseOut Symbolleiste verzögert ausblenden"
196
 
197
- #: crayon_settings_wp.class.php:481
198
  #@ crayon-syntax-highlighter
199
  msgid "Display the title when provided"
200
  msgstr "Titel anzeigen wenn vorhanden"
201
 
202
- #: crayon_settings_wp.class.php:482
203
  #@ crayon-syntax-highlighter
204
  msgid "Display the language"
205
  msgstr "Anzeige der Sprache"
206
 
207
- #: crayon_settings_wp.class.php:487
208
  #@ crayon-syntax-highlighter
209
  msgid "Display striped code lines"
210
  msgstr "Anzeige gestreifte Codezeilen"
211
 
212
- #: crayon_settings_wp.class.php:488
213
  #@ crayon-syntax-highlighter
214
  msgid "Enable line marking for important lines"
215
  msgstr "wichtige Zeilen markieren"
216
 
217
- #: crayon_settings_wp.class.php:489
218
  #@ crayon-syntax-highlighter
219
  msgid "Display line numbers by default"
220
  msgstr "Zeilennummern standardmäßig anzeigen"
221
 
222
- #: crayon_settings_wp.class.php:490
223
  #@ crayon-syntax-highlighter
224
  msgid "Enable line number toggling"
225
  msgstr "Zeilennummern umschaltbar"
226
 
227
- #: crayon_settings_wp.class.php:491
228
  #@ crayon-syntax-highlighter
229
  msgid "Start line numbers from"
230
  msgstr "Erste Zeilennummer"
231
 
232
- #: crayon_settings_wp.class.php:501
233
  #@ crayon-syntax-highlighter
234
  msgid "When no language is provided, use the fallback"
235
  msgstr "Wenn keine Sprache festgelegt wird als Standard verwenden"
236
 
237
- #: crayon_settings_wp.class.php:509
238
  #@ crayon-syntax-highlighter
239
  msgid "Parsing was successful"
240
  msgstr "Laden erfolgreich"
241
 
242
- #: crayon_settings_wp.class.php:509
243
  #@ crayon-syntax-highlighter
244
  msgid "Parsing was unsuccessful"
245
  msgstr "Laden fehlgeschlagen"
246
 
247
- #: crayon_settings_wp.class.php:515
248
  #, php-format
249
  #@ crayon-syntax-highlighter
250
  msgid "The selected language with id %s could not be loaded"
251
  msgstr "Die gewählte Sprache mit der id %s konnte nicht geladen werden"
252
 
253
- #: crayon_settings_wp.class.php:519
254
  #@ crayon-syntax-highlighter
255
  msgid "Show Languages"
256
  msgstr "Zeige Sprachen"
257
 
258
- #: crayon_settings_wp.class.php:556
259
  #@ crayon-syntax-highlighter
260
  msgid "Enable Live Preview"
261
  msgstr "Live-Vorschau aktivieren"
262
 
263
- #: crayon_settings_wp.class.php:561
264
  #, php-format
265
  #@ crayon-syntax-highlighter
266
  msgid "The selected theme with id %s could not be loaded"
267
  msgstr "Das gewählte Theme mit id %s konnte nicht geladen werden"
268
 
269
- #: crayon_settings_wp.class.php:579
270
  #@ crayon-syntax-highlighter
271
  msgid "Custom Font Size"
272
  msgstr "Benutzerdefinierte Schriftgröße"
273
 
274
- #: crayon_settings_wp.class.php:584
275
  #, php-format
276
  #@ crayon-syntax-highlighter
277
  msgid "The selected font with id %s could not be loaded"
278
  msgstr "Die ausgewählte Schrift mit der id %s konnte nicht geladen werden"
279
 
280
- #: crayon_settings_wp.class.php:591
281
  #@ crayon-syntax-highlighter
282
  msgid "Enable plain code view and display"
283
  msgstr "Unformatierte Code-Ansicht ermöglichen"
284
 
285
- #: crayon_settings_wp.class.php:596
286
  #@ crayon-syntax-highlighter
287
  msgid "Enable code copy/paste"
288
  msgstr "Code kopieren/einfügen ermöglichen"
289
 
290
- #: crayon_settings_wp.class.php:598
291
  #@ crayon-syntax-highlighter
292
  msgid "Enable opening code in a window"
293
  msgstr "Code in neuem Fenster anzeigbar machen"
294
 
295
- #: crayon_settings_wp.class.php:600
296
  #@ crayon-syntax-highlighter
297
  msgid "Tab size in spaces"
298
  msgstr "Anzahl Leerzeichen für Tabulator"
299
 
300
- #: crayon_settings_wp.class.php:602
301
  #@ crayon-syntax-highlighter
302
  msgid "Remove whitespace surrounding the shortcode content"
303
  msgstr "Leerzeichen um den Shortcode Inhalt entfernen"
304
 
305
- #: crayon_settings_wp.class.php:618
306
  #@ crayon-syntax-highlighter
307
  msgid "When loading local files and a relative path is given for the URL, use the absolute path"
308
  msgstr "Wenn beim Laden von lokalen Dateien ein relativer Pfad für die URL angegeben ist den absoluten Pfad verwenden"
309
 
310
- #: crayon_settings_wp.class.php:625
311
  #@ crayon-syntax-highlighter
312
  msgid "Clear the cache used to store remote code requests"
313
  msgstr "Cache für Remote Code Requests leeren"
314
 
315
- #: crayon_settings_wp.class.php:627
316
  #@ crayon-syntax-highlighter
317
  msgid "Clear Now"
318
  msgstr "Jetzt löschen"
319
 
320
- #: crayon_settings_wp.class.php:632
321
  #@ crayon-syntax-highlighter
322
  msgid "Disable mouse gestures for touchscreen devices (eg. MouseOver)"
323
  msgstr "Deaktiviere Mausgesten für Touchscreen-Geräte (z.B. MouseOver)"
324
 
325
- #: crayon_settings_wp.class.php:633
326
  #@ crayon-syntax-highlighter
327
  msgid "Disable animations"
328
  msgstr "Deaktiviere Animationen"
329
 
330
- #: crayon_settings_wp.class.php:634
331
  #@ crayon-syntax-highlighter
332
  msgid "Disable runtime stats"
333
  msgstr "Deaktiviere Laufzeit Statistiken"
334
 
335
- #: crayon_settings_wp.class.php:641
336
  #@ crayon-syntax-highlighter
337
  msgid "Log errors for individual Crayons"
338
  msgstr "Protokolliere Fehler für individuelle Crayons"
339
 
340
- #: crayon_settings_wp.class.php:642
341
  #@ crayon-syntax-highlighter
342
  msgid "Log system-wide errors"
343
  msgstr "Protokolliere systemweite Fehler"
344
 
345
- #: crayon_settings_wp.class.php:643
346
  #@ crayon-syntax-highlighter
347
  msgid "Display custom message for errors"
348
  msgstr "Benutzerdefinierte Meldungen für Fehler anzeigen"
349
 
350
- #: crayon_settings_wp.class.php:655
351
  #@ crayon-syntax-highlighter
352
  msgid "Show Log"
353
  msgstr "Protokoll anzeigen"
354
 
355
- #: crayon_settings_wp.class.php:657
356
  #@ crayon-syntax-highlighter
357
  msgid "Clear Log"
358
  msgstr "Protokoll löschen"
359
 
360
- #: crayon_settings_wp.class.php:658
361
  #@ crayon-syntax-highlighter
362
  msgid "Email Admin"
363
  msgstr "E-Mail Admin"
364
 
365
- #: crayon_settings_wp.class.php:660
366
  #@ crayon-syntax-highlighter
367
  msgid "Email Developer"
368
  msgstr "E-Mail Entwickler"
369
 
370
- #: crayon_settings_wp.class.php:676
371
  #@ crayon-syntax-highlighter
372
  msgid "Version"
373
  msgstr "Version"
374
 
375
- #: crayon_settings_wp.class.php:678
376
  #@ crayon-syntax-highlighter
377
  msgid "Developer"
378
  msgstr "Entwickler"
379
 
380
- #: crayon_settings_wp.class.php:701
381
  #@ crayon-syntax-highlighter
382
  msgid "The result of innumerable hours of hard work over many months. It's an ongoing project, keep me motivated!"
383
  msgstr "Crayon ist das Ergebnis unzähliger Stunden harter Arbeit über viele Monate hinweg. Das Plugin wird laufend weiterentwickelt. Schreib mir wenn es Dir gefällt!"
384
 
385
- #: crayon_settings_wp.class.php:553
386
  #, php-format
387
  #@ crayon-syntax-highlighter
388
  msgid "Change the %1$sfallback language%2$s to change the sample code. Lines 5-7 are marked."
389
  msgstr "Ändern Sie die %1$sStandard Sprache%2$s um den Beispielcode zu ändern. Zeilen 5-7 sind markiert."
390
 
391
- #: crayon_settings.class.php:106
392
  #@ crayon-syntax-highlighter
393
  msgid "Hourly"
394
  msgstr "Stündlich"
395
 
396
- #: crayon_settings.class.php:106
397
  #@ crayon-syntax-highlighter
398
  msgid "Daily"
399
  msgstr "Täglich"
400
 
401
- #: crayon_settings.class.php:107
402
  #@ crayon-syntax-highlighter
403
  msgid "Weekly"
404
  msgstr "Wöchentlich"
405
 
406
- #: crayon_settings.class.php:107
407
  #@ crayon-syntax-highlighter
408
  msgid "Monthly"
409
  msgstr "Monatlich"
410
 
411
- #: crayon_settings.class.php:108
412
  #@ crayon-syntax-highlighter
413
  msgid "Immediately"
414
  msgstr "Sofort"
415
 
416
- #: crayon_settings_wp.class.php:424
417
  #@ crayon-syntax-highlighter
418
  msgid "Crayon Help"
419
  msgstr "Crayon Hilfe"
420
 
421
- #: crayon_settings_wp.class.php:628
422
  #@ crayon-syntax-highlighter
423
  msgid "Attempt to load Crayon's CSS and JavaScript only when needed"
424
  msgstr "Versuchen Crayon CSS und JavaScript nur bei Bedarf zu laden"
425
 
426
- #: crayon_settings_wp.class.php:621
427
  #@ crayon-syntax-highlighter
428
  msgid "Followed by your relative URL."
429
  msgstr "Gefolgt von Ihrer relativen URL."
430
 
431
- #: crayon_settings_wp.class.php:662
432
  #@ crayon-syntax-highlighter
433
  msgid "The log is currently empty."
434
  msgstr "Das Protokoll ist derzeit leer."
435
 
436
- #: crayon_settings_wp.class.php:664
437
  #@ crayon-syntax-highlighter
438
  msgid "The log file exists and is writable."
439
  msgstr "Die Protokolldatei existiert und ist beschreibbar."
440
 
441
- #: crayon_settings_wp.class.php:664
442
  #@ crayon-syntax-highlighter
443
  msgid "The log file exists and is not writable."
444
  msgstr "Die Protokolldatei existiert und ist nicht beschreibbar."
445
 
446
- #: crayon_settings_wp.class.php:666
447
  #@ crayon-syntax-highlighter
448
  msgid "The log file does not exist and is not writable."
449
  msgstr "Die Protokolldatei existiert nicht und ist nicht schreibbar."
450
 
451
- #: crayon_settings_wp.class.php:508
452
  #, php-format
453
  #@ crayon-syntax-highlighter
454
  msgid "%d language has been detected."
@@ -456,57 +457,42 @@ msgid_plural "%d languages have been detected."
456
  msgstr[0] "%d Sprache wurde erkannt."
457
  msgstr[1] "%d Sprachen wurden erkannt."
458
 
459
- #: crayon_settings_wp.class.php:612
460
  #@ crayon-syntax-highlighter
461
  msgid "Capture &lt;pre&gt; tags as Crayons"
462
  msgstr "&lt;pre&gt; tags wie Crayons behandeln"
463
 
464
- #: crayon_settings_wp.class.php:558
465
- #: crayon_settings_wp.class.php:587
466
- #: crayon_settings_wp.class.php:603
467
- #: crayon_settings_wp.class.php:608
468
- #: crayon_settings_wp.class.php:609
469
- #: crayon_settings_wp.class.php:610
470
- #: crayon_settings_wp.class.php:611
471
- #: crayon_settings_wp.class.php:612
472
- #: crayon_settings_wp.class.php:613
473
- #: crayon_settings_wp.class.php:628
474
- #: crayon_settings_wp.class.php:629
475
- #@ crayon-syntax-highlighter
476
- msgid "Learn More"
477
- msgstr "Erfahren Sie mehr"
478
-
479
- #: crayon_settings_wp.class.php:604
480
  #@ crayon-syntax-highlighter
481
  msgid "Show Mixed Language Icon (+)"
482
  msgstr "Zeige gemischte Sprachen Symbol (+)"
483
 
484
- #: crayon_settings_wp.class.php:603
485
  #@ crayon-syntax-highlighter
486
  msgid "Allow Mixed Language Highlighting with delimiters and tags."
487
  msgstr "Erlaube Hervorhebung gemischter Sprachen mit Trennzeichen und Tags."
488
 
489
- #: crayon_settings_wp.class.php:608
490
  #@ crayon-syntax-highlighter
491
  msgid "Capture Mini Tags like [php][/php] as Crayons."
492
  msgstr "Mini Tags wie [php][/php] als Crayons behandeln."
493
 
494
- #: crayon_settings_wp.class.php:613
495
  #@ crayon-syntax-highlighter
496
  msgid "Enable [plain][/plain] tag."
497
  msgstr "Aktiviere [plain][/plain] Tag."
498
 
499
- #: crayon_settings.class.php:174
500
  #@ crayon-syntax-highlighter
501
  msgid "Disable Mouse Events"
502
  msgstr "Mausereignisse deaktivieren"
503
 
504
- #: crayon_settings_wp.class.php:594
505
  #@ crayon-syntax-highlighter
506
  msgid "Enable plain code toggling"
507
  msgstr "Umschaltung auf unformatierte Anzeige ermöglichen"
508
 
509
- #: crayon_settings_wp.class.php:595
510
  #@ crayon-syntax-highlighter
511
  msgid "Show the plain code by default"
512
  msgstr "Unformatierten Code standardmäßig anzeigen"
@@ -541,114 +527,115 @@ msgstr ""
541
  msgid "Supports multiple languages, themes, highlighting from a URL, local file or post text."
542
  msgstr "Unterstützt mehrere Sprachen und Themes. Hervorhebung von Code aus einer URL, lokalen Datei oder Artikeltext."
543
 
544
- #: crayon_settings_wp.class.php:717
545
  #@ crayon-syntax-highlighter
546
  msgid "Donate"
547
  msgstr "Spenden"
548
 
549
- #: crayon_settings_wp.class.php:219
550
  #@ crayon-syntax-highlighter
551
  msgid "General"
552
  msgstr "Allgemein"
553
 
554
- #: crayon_settings_wp.class.php:220
555
  #@ crayon-syntax-highlighter
556
  msgid "Theme"
557
  msgstr "Theme"
558
 
559
- #: crayon_settings_wp.class.php:221
560
  #@ crayon-syntax-highlighter
561
  msgid "Font"
562
  msgstr "Schriftart"
563
 
564
- #: crayon_settings_wp.class.php:222
565
  #@ crayon-syntax-highlighter
566
  msgid "Metrics"
567
  msgstr "Layout"
568
 
569
- #: crayon_settings_wp.class.php:223
570
  #@ crayon-syntax-highlighter
571
  msgid "Toolbar"
572
  msgstr "Symbolleiste"
573
 
574
- #: crayon_settings_wp.class.php:224
575
  #@ crayon-syntax-highlighter
576
  msgid "Lines"
577
  msgstr "Zeilen"
578
 
579
- #: crayon_settings_wp.class.php:225
 
580
  #@ crayon-syntax-highlighter
581
  msgid "Code"
582
  msgstr "Code"
583
 
584
- #: crayon_settings_wp.class.php:227
585
  #@ crayon-syntax-highlighter
586
  msgid "Languages"
587
  msgstr "Sprachen"
588
 
589
- #: crayon_settings_wp.class.php:228
590
  #@ crayon-syntax-highlighter
591
  msgid "Files"
592
  msgstr "Dateien"
593
 
594
- #: crayon_settings_wp.class.php:229
595
  #@ crayon-syntax-highlighter
596
  msgid "Misc"
597
  msgstr "Sonstiges"
598
 
599
- #: crayon_settings_wp.class.php:232
600
  #@ crayon-syntax-highlighter
601
  msgid "Debug"
602
  msgstr "Debuggen"
603
 
604
- #: crayon_settings_wp.class.php:233
605
  #@ crayon-syntax-highlighter
606
  msgid "Errors"
607
  msgstr "Fehler"
608
 
609
- #: crayon_settings_wp.class.php:234
610
  #@ crayon-syntax-highlighter
611
  msgid "Log"
612
  msgstr "Protokoll"
613
 
614
- #: crayon_settings_wp.class.php:237
615
  #@ crayon-syntax-highlighter
616
  msgid "About"
617
  msgstr "Über"
618
 
619
- #: crayon_settings_wp.class.php:558
620
  #@ crayon-syntax-highlighter
621
  msgid "Enqueue themes in the header (more efficient)."
622
  msgstr "Themes im Header laden (effizienter)."
623
 
624
- #: crayon_settings_wp.class.php:587
625
  #@ crayon-syntax-highlighter
626
  msgid "Enqueue fonts in the header (more efficient)."
627
  msgstr "Schriftarten im Header laden (effizienter)."
628
 
629
- #: crayon_settings_wp.class.php:549
630
  #@ crayon-syntax-highlighter
631
  msgid "Loading..."
632
  msgstr "Lade..."
633
 
634
- #: crayon_settings_wp.class.php:549
635
- #: crayon_settings_wp.class.php:715
636
  #: util/theme-editor/editor.php:14
637
  #@ crayon-syntax-highlighter
638
  msgid "Theme Editor"
639
  msgstr "Thema Editor"
640
 
641
- #: crayon_settings_wp.class.php:599
642
  #@ crayon-syntax-highlighter
643
  msgid "Always display scrollbars"
644
  msgstr "Immer Scrollbalken anzeigen"
645
 
646
- #: crayon_settings_wp.class.php:629
647
  #@ crayon-syntax-highlighter
648
  msgid "Disable enqueuing for page templates that may contain The Loop."
649
  msgstr "Deaktiviere Laden im Header für Themes die The Loop verwenden"
650
 
651
- #: crayon_settings_wp.class.php:631
652
  #@ crayon-syntax-highlighter
653
  msgid "Load Crayons only from the main Wordpress query"
654
  msgstr "Crayons nur aus der main Wordpress query laden"
@@ -658,80 +645,219 @@ msgstr "Crayons nur aus der main Wordpress query laden"
658
  msgid "Back To Settings"
659
  msgstr "Zurück zu Einstellungen"
660
 
661
- #: crayon_settings_wp.class.php:679
662
  #@ crayon-syntax-highlighter
663
  msgid "Translators"
664
  msgstr "Übersetzer"
665
 
666
- #: crayon_formatter.class.php:270
667
  #@ crayon-syntax-highlighter
668
  msgid "Toggle Plain Code"
669
  msgstr "Unformatierte Code-Ansicht"
670
 
671
- #: crayon_formatter.class.php:272
672
  #@ crayon-syntax-highlighter
673
  msgid "Copy Plain Code"
674
  msgstr "Unformatierten Code kopieren"
675
 
676
- #: crayon_formatter.class.php:278
677
  #@ crayon-syntax-highlighter
678
  msgid "Open Code In New Window"
679
  msgstr "Code in einem neuen Fenster anzeigen"
680
 
681
- #: crayon_formatter.class.php:281
682
  #@ crayon-syntax-highlighter
683
  msgid "Toggle Line Numbers"
684
  msgstr "Zeilennummern"
685
 
686
- #: crayon_formatter.class.php:288
687
  #@ crayon-syntax-highlighter
688
  msgid "Contains Mixed Languages"
689
  msgstr "Enthält verschiedene Sprachen"
690
 
691
- #: crayon_settings_wp.class.php:655
692
  #@ crayon-syntax-highlighter
693
  msgid "Hide Log"
694
  msgstr "Protokoll ausblenden"
695
 
696
- #: crayon_formatter.class.php:272
697
  #, php-format
698
  #@ crayon-syntax-highlighter
699
  msgid "Press %s to Copy, %s to Paste"
700
  msgstr "Drücken Sie %s zum Kopieren, %s zum Einfügen"
701
 
702
- #: crayon_settings_wp.class.php:226
703
  #@ crayon-syntax-highlighter
704
  msgid "Tags"
705
  msgstr "Tags"
706
 
707
- #: crayon_settings_wp.class.php:468
708
  #@ crayon-syntax-highlighter
709
  msgid "Inline Margin"
710
  msgstr "Inline Rand"
711
 
712
- #: crayon_settings_wp.class.php:609
713
  #@ crayon-syntax-highlighter
714
  msgid "Capture Inline Tags like {php}{/php} inside sentences."
715
  msgstr "Tags wie {php} {/php} innerhalb Sätzen erkennen."
716
 
717
- #: crayon_settings_wp.class.php:611
718
  #@ crayon-syntax-highlighter
719
  msgid "Capture `backquotes` as &lt;code&gt;"
720
  msgstr "`backquotes` als &lt;code&gt; behandeln"
721
 
722
- #: crayon_settings_wp.class.php:630
723
  #@ crayon-syntax-highlighter
724
  msgid "Allow Crayons inside comments"
725
  msgstr "Crayons innerhalb von Kommentaren erlauben"
726
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
727
  #. translators: plugin header field 'Version'
728
  #: crayon_wp.class.php:0
729
  #@ crayon-syntax-highlighter
730
- msgid "1.8.2"
731
  msgstr ""
732
 
733
- #: crayon_settings_wp.class.php:610
734
  #@ crayon-syntax-highlighter
735
- msgid "Wrap Inline Tags"
736
- msgstr "Inline-Tags umbrechen"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
737
 
19
  "X-Poedit-SearchPath-0: ..\n"
20
  "X-Textdomain-Support: yes"
21
 
22
+ #: crayon_settings.class.php:150
23
+ #: crayon_settings.class.php:154
24
  #@ crayon-syntax-highlighter
25
  msgid "Max"
26
  msgstr "Max"
27
 
28
+ #: crayon_settings.class.php:150
29
+ #: crayon_settings.class.php:154
30
  #@ crayon-syntax-highlighter
31
  msgid "Min"
32
  msgstr "Min"
33
 
34
+ #: crayon_settings.class.php:150
35
+ #: crayon_settings.class.php:154
36
  #@ crayon-syntax-highlighter
37
  msgid "Static"
38
  msgstr "Fix"
39
 
40
+ #: crayon_settings.class.php:152
41
+ #: crayon_settings.class.php:156
42
+ #: crayon_settings_wp.class.php:540
43
+ #: crayon_settings_wp.class.php:549
44
+ #: crayon_settings_wp.class.php:648
45
  #@ crayon-syntax-highlighter
46
  msgid "Pixels"
47
  msgstr "Pixels"
48
 
49
+ #: crayon_settings.class.php:152
50
+ #: crayon_settings.class.php:156
51
  #@ crayon-syntax-highlighter
52
  msgid "Percent"
53
  msgstr "Prozent"
54
 
55
+ #: crayon_settings.class.php:165
56
  #@ crayon-syntax-highlighter
57
  msgid "None"
58
  msgstr "Keine"
59
 
60
+ #: crayon_settings.class.php:165
61
  #@ crayon-syntax-highlighter
62
  msgid "Left"
63
  msgstr "Links"
64
 
65
+ #: crayon_settings.class.php:165
66
  #@ crayon-syntax-highlighter
67
  msgid "Center"
68
  msgstr "Mitte"
69
 
70
+ #: crayon_settings.class.php:165
71
  #@ crayon-syntax-highlighter
72
  msgid "Right"
73
  msgstr "Rechts"
74
 
75
+ #: crayon_settings.class.php:167
76
+ #: crayon_settings.class.php:189
77
  #@ crayon-syntax-highlighter
78
  msgid "On MouseOver"
79
  msgstr "Bei MouseOver"
80
 
81
+ #: crayon_settings.class.php:167
82
+ #: crayon_settings.class.php:173
83
  #@ crayon-syntax-highlighter
84
  msgid "Always"
85
  msgstr "Immer"
86
 
87
+ #: crayon_settings.class.php:167
88
+ #: crayon_settings.class.php:173
89
  #@ crayon-syntax-highlighter
90
  msgid "Never"
91
  msgstr "Nie"
92
 
93
+ #: crayon_settings.class.php:173
94
  #@ crayon-syntax-highlighter
95
  msgid "When Found"
96
  msgstr "Wenn gefunden"
97
 
98
+ #: crayon_settings.class.php:189
99
  #@ crayon-syntax-highlighter
100
  msgid "On Double Click"
101
  msgstr "Bei Doppelklick"
102
 
103
+ #: crayon_settings.class.php:189
104
  #@ crayon-syntax-highlighter
105
  msgid "On Single Click"
106
  msgstr "Bei Mausklick"
107
 
108
+ #: crayon_settings.class.php:197
109
  #@ crayon-syntax-highlighter
110
  msgid "An error has occurred. Please try again later."
111
  msgstr "Ein Fehler ist aufgetreten. Bitte versuchen Sie es später erneut."
112
 
113
+ #: crayon_settings_wp.class.php:44
114
+ #: crayon_settings_wp.class.php:118
115
+ #: crayon_settings_wp.class.php:800
116
+ #: util/tag-editor/crayon_te_content.php:114
117
  #@ crayon-syntax-highlighter
118
  msgid "Settings"
119
  msgstr "Einstellungen"
120
 
121
+ #: crayon_settings_wp.class.php:99
122
  #@ crayon-syntax-highlighter
123
  msgid "You do not have sufficient permissions to access this page."
124
  msgstr "Sie verfügen nicht über ausreichende Berechtigungen um diese Seite zu betreten."
125
 
126
+ #: crayon_settings_wp.class.php:130
127
  #@ crayon-syntax-highlighter
128
  msgid "Save Changes"
129
  msgstr "Änderungen speichern"
130
 
131
+ #: crayon_settings_wp.class.php:136
132
  #@ crayon-syntax-highlighter
133
  msgid "Reset Settings"
134
  msgstr "Einstellungen zurücksetzen"
135
 
136
+ #: crayon_settings_wp.class.php:517
137
  #@ crayon-syntax-highlighter
138
  msgid "Height"
139
  msgstr "Höhe"
140
 
141
+ #: crayon_settings_wp.class.php:523
142
  #@ crayon-syntax-highlighter
143
  msgid "Width"
144
  msgstr "Breite"
145
 
146
+ #: crayon_settings_wp.class.php:529
147
  #@ crayon-syntax-highlighter
148
  msgid "Top Margin"
149
  msgstr "Oberer Rand"
150
 
151
+ #: crayon_settings_wp.class.php:530
152
  #@ crayon-syntax-highlighter
153
  msgid "Bottom Margin"
154
  msgstr "Unterer Rand"
155
 
156
+ #: crayon_settings_wp.class.php:531
157
+ #: crayon_settings_wp.class.php:536
158
  #@ crayon-syntax-highlighter
159
  msgid "Left Margin"
160
  msgstr "Linker Rand"
161
 
162
+ #: crayon_settings_wp.class.php:532
163
+ #: crayon_settings_wp.class.php:536
164
  #@ crayon-syntax-highlighter
165
  msgid "Right Margin"
166
  msgstr "Rechter Rand"
167
 
168
+ #: crayon_settings_wp.class.php:542
169
  #@ crayon-syntax-highlighter
170
  msgid "Horizontal Alignment"
171
  msgstr "Horizontale Ausrichtung"
172
 
173
+ #: crayon_settings_wp.class.php:545
174
  #@ crayon-syntax-highlighter
175
  msgid "Allow floating elements to surround Crayon"
176
  msgstr "Crayon in Floating Elemente einbetten"
177
 
178
+ #: crayon_settings_wp.class.php:555
179
  #@ crayon-syntax-highlighter
180
  msgid "Display the Toolbar"
181
  msgstr "Symbolleiste anzeigen"
182
 
183
+ #: crayon_settings_wp.class.php:558
184
  #@ crayon-syntax-highlighter
185
  msgid "Overlay the toolbar on code rather than push it down when possible"
186
  msgstr "Versuchen mit Symbolleiste Code zu überlagern statt zu verschieben"
187
 
188
+ #: crayon_settings_wp.class.php:559
189
  #@ crayon-syntax-highlighter
190
  msgid "Toggle the toolbar on single click when it is overlayed"
191
  msgstr "Symbolleiste mit Klick umschalten wenn als Overlay"
192
 
193
+ #: crayon_settings_wp.class.php:560
194
  #@ crayon-syntax-highlighter
195
  msgid "Delay hiding the toolbar on MouseOut"
196
  msgstr "Nach MouseOut Symbolleiste verzögert ausblenden"
197
 
198
+ #: crayon_settings_wp.class.php:562
199
  #@ crayon-syntax-highlighter
200
  msgid "Display the title when provided"
201
  msgstr "Titel anzeigen wenn vorhanden"
202
 
203
+ #: crayon_settings_wp.class.php:563
204
  #@ crayon-syntax-highlighter
205
  msgid "Display the language"
206
  msgstr "Anzeige der Sprache"
207
 
208
+ #: crayon_settings_wp.class.php:570
209
  #@ crayon-syntax-highlighter
210
  msgid "Display striped code lines"
211
  msgstr "Anzeige gestreifte Codezeilen"
212
 
213
+ #: crayon_settings_wp.class.php:571
214
  #@ crayon-syntax-highlighter
215
  msgid "Enable line marking for important lines"
216
  msgstr "wichtige Zeilen markieren"
217
 
218
+ #: crayon_settings_wp.class.php:572
219
  #@ crayon-syntax-highlighter
220
  msgid "Display line numbers by default"
221
  msgstr "Zeilennummern standardmäßig anzeigen"
222
 
223
+ #: crayon_settings_wp.class.php:573
224
  #@ crayon-syntax-highlighter
225
  msgid "Enable line number toggling"
226
  msgstr "Zeilennummern umschaltbar"
227
 
228
+ #: crayon_settings_wp.class.php:574
229
  #@ crayon-syntax-highlighter
230
  msgid "Start line numbers from"
231
  msgstr "Erste Zeilennummer"
232
 
233
+ #: crayon_settings_wp.class.php:584
234
  #@ crayon-syntax-highlighter
235
  msgid "When no language is provided, use the fallback"
236
  msgstr "Wenn keine Sprache festgelegt wird als Standard verwenden"
237
 
238
+ #: crayon_settings_wp.class.php:591
239
  #@ crayon-syntax-highlighter
240
  msgid "Parsing was successful"
241
  msgstr "Laden erfolgreich"
242
 
243
+ #: crayon_settings_wp.class.php:591
244
  #@ crayon-syntax-highlighter
245
  msgid "Parsing was unsuccessful"
246
  msgstr "Laden fehlgeschlagen"
247
 
248
+ #: crayon_settings_wp.class.php:597
249
  #, php-format
250
  #@ crayon-syntax-highlighter
251
  msgid "The selected language with id %s could not be loaded"
252
  msgstr "Die gewählte Sprache mit der id %s konnte nicht geladen werden"
253
 
254
+ #: crayon_settings_wp.class.php:601
255
  #@ crayon-syntax-highlighter
256
  msgid "Show Languages"
257
  msgstr "Zeige Sprachen"
258
 
259
+ #: crayon_settings_wp.class.php:629
260
  #@ crayon-syntax-highlighter
261
  msgid "Enable Live Preview"
262
  msgstr "Live-Vorschau aktivieren"
263
 
264
+ #: crayon_settings_wp.class.php:634
265
  #, php-format
266
  #@ crayon-syntax-highlighter
267
  msgid "The selected theme with id %s could not be loaded"
268
  msgstr "Das gewählte Theme mit id %s konnte nicht geladen werden"
269
 
270
+ #: crayon_settings_wp.class.php:646
271
  #@ crayon-syntax-highlighter
272
  msgid "Custom Font Size"
273
  msgstr "Benutzerdefinierte Schriftgröße"
274
 
275
+ #: crayon_settings_wp.class.php:651
276
  #, php-format
277
  #@ crayon-syntax-highlighter
278
  msgid "The selected font with id %s could not be loaded"
279
  msgstr "Die ausgewählte Schrift mit der id %s konnte nicht geladen werden"
280
 
281
+ #: crayon_settings_wp.class.php:662
282
  #@ crayon-syntax-highlighter
283
  msgid "Enable plain code view and display"
284
  msgstr "Unformatierte Code-Ansicht ermöglichen"
285
 
286
+ #: crayon_settings_wp.class.php:667
287
  #@ crayon-syntax-highlighter
288
  msgid "Enable code copy/paste"
289
  msgstr "Code kopieren/einfügen ermöglichen"
290
 
291
+ #: crayon_settings_wp.class.php:669
292
  #@ crayon-syntax-highlighter
293
  msgid "Enable opening code in a window"
294
  msgstr "Code in neuem Fenster anzeigbar machen"
295
 
296
+ #: crayon_settings_wp.class.php:671
297
  #@ crayon-syntax-highlighter
298
  msgid "Tab size in spaces"
299
  msgstr "Anzahl Leerzeichen für Tabulator"
300
 
301
+ #: crayon_settings_wp.class.php:680
302
  #@ crayon-syntax-highlighter
303
  msgid "Remove whitespace surrounding the shortcode content"
304
  msgstr "Leerzeichen um den Shortcode Inhalt entfernen"
305
 
306
+ #: crayon_settings_wp.class.php:699
307
  #@ crayon-syntax-highlighter
308
  msgid "When loading local files and a relative path is given for the URL, use the absolute path"
309
  msgstr "Wenn beim Laden von lokalen Dateien ein relativer Pfad für die URL angegeben ist den absoluten Pfad verwenden"
310
 
311
+ #: crayon_settings_wp.class.php:712
312
  #@ crayon-syntax-highlighter
313
  msgid "Clear the cache used to store remote code requests"
314
  msgstr "Cache für Remote Code Requests leeren"
315
 
316
+ #: crayon_settings_wp.class.php:714
317
  #@ crayon-syntax-highlighter
318
  msgid "Clear Now"
319
  msgstr "Jetzt löschen"
320
 
321
+ #: crayon_settings_wp.class.php:719
322
  #@ crayon-syntax-highlighter
323
  msgid "Disable mouse gestures for touchscreen devices (eg. MouseOver)"
324
  msgstr "Deaktiviere Mausgesten für Touchscreen-Geräte (z.B. MouseOver)"
325
 
326
+ #: crayon_settings_wp.class.php:720
327
  #@ crayon-syntax-highlighter
328
  msgid "Disable animations"
329
  msgstr "Deaktiviere Animationen"
330
 
331
+ #: crayon_settings_wp.class.php:721
332
  #@ crayon-syntax-highlighter
333
  msgid "Disable runtime stats"
334
  msgstr "Deaktiviere Laufzeit Statistiken"
335
 
336
+ #: crayon_settings_wp.class.php:728
337
  #@ crayon-syntax-highlighter
338
  msgid "Log errors for individual Crayons"
339
  msgstr "Protokolliere Fehler für individuelle Crayons"
340
 
341
+ #: crayon_settings_wp.class.php:729
342
  #@ crayon-syntax-highlighter
343
  msgid "Log system-wide errors"
344
  msgstr "Protokolliere systemweite Fehler"
345
 
346
+ #: crayon_settings_wp.class.php:730
347
  #@ crayon-syntax-highlighter
348
  msgid "Display custom message for errors"
349
  msgstr "Benutzerdefinierte Meldungen für Fehler anzeigen"
350
 
351
+ #: crayon_settings_wp.class.php:742
352
  #@ crayon-syntax-highlighter
353
  msgid "Show Log"
354
  msgstr "Protokoll anzeigen"
355
 
356
+ #: crayon_settings_wp.class.php:744
357
  #@ crayon-syntax-highlighter
358
  msgid "Clear Log"
359
  msgstr "Protokoll löschen"
360
 
361
+ #: crayon_settings_wp.class.php:745
362
  #@ crayon-syntax-highlighter
363
  msgid "Email Admin"
364
  msgstr "E-Mail Admin"
365
 
366
+ #: crayon_settings_wp.class.php:747
367
  #@ crayon-syntax-highlighter
368
  msgid "Email Developer"
369
  msgstr "E-Mail Entwickler"
370
 
371
+ #: crayon_settings_wp.class.php:763
372
  #@ crayon-syntax-highlighter
373
  msgid "Version"
374
  msgstr "Version"
375
 
376
+ #: crayon_settings_wp.class.php:765
377
  #@ crayon-syntax-highlighter
378
  msgid "Developer"
379
  msgstr "Entwickler"
380
 
381
+ #: crayon_settings_wp.class.php:788
382
  #@ crayon-syntax-highlighter
383
  msgid "The result of innumerable hours of hard work over many months. It's an ongoing project, keep me motivated!"
384
  msgstr "Crayon ist das Ergebnis unzähliger Stunden harter Arbeit über viele Monate hinweg. Das Plugin wird laufend weiterentwickelt. Schreib mir wenn es Dir gefällt!"
385
 
386
+ #: crayon_settings_wp.class.php:625
387
  #, php-format
388
  #@ crayon-syntax-highlighter
389
  msgid "Change the %1$sfallback language%2$s to change the sample code. Lines 5-7 are marked."
390
  msgstr "Ändern Sie die %1$sStandard Sprache%2$s um den Beispielcode zu ändern. Zeilen 5-7 sind markiert."
391
 
392
+ #: crayon_settings.class.php:138
393
  #@ crayon-syntax-highlighter
394
  msgid "Hourly"
395
  msgstr "Stündlich"
396
 
397
+ #: crayon_settings.class.php:138
398
  #@ crayon-syntax-highlighter
399
  msgid "Daily"
400
  msgstr "Täglich"
401
 
402
+ #: crayon_settings.class.php:139
403
  #@ crayon-syntax-highlighter
404
  msgid "Weekly"
405
  msgstr "Wöchentlich"
406
 
407
+ #: crayon_settings.class.php:139
408
  #@ crayon-syntax-highlighter
409
  msgid "Monthly"
410
  msgstr "Monatlich"
411
 
412
+ #: crayon_settings.class.php:140
413
  #@ crayon-syntax-highlighter
414
  msgid "Immediately"
415
  msgstr "Sofort"
416
 
417
+ #: crayon_settings_wp.class.php:502
418
  #@ crayon-syntax-highlighter
419
  msgid "Crayon Help"
420
  msgstr "Crayon Hilfe"
421
 
422
+ #: crayon_settings_wp.class.php:715
423
  #@ crayon-syntax-highlighter
424
  msgid "Attempt to load Crayon's CSS and JavaScript only when needed"
425
  msgstr "Versuchen Crayon CSS und JavaScript nur bei Bedarf zu laden"
426
 
427
+ #: crayon_settings_wp.class.php:702
428
  #@ crayon-syntax-highlighter
429
  msgid "Followed by your relative URL."
430
  msgstr "Gefolgt von Ihrer relativen URL."
431
 
432
+ #: crayon_settings_wp.class.php:749
433
  #@ crayon-syntax-highlighter
434
  msgid "The log is currently empty."
435
  msgstr "Das Protokoll ist derzeit leer."
436
 
437
+ #: crayon_settings_wp.class.php:751
438
  #@ crayon-syntax-highlighter
439
  msgid "The log file exists and is writable."
440
  msgstr "Die Protokolldatei existiert und ist beschreibbar."
441
 
442
+ #: crayon_settings_wp.class.php:751
443
  #@ crayon-syntax-highlighter
444
  msgid "The log file exists and is not writable."
445
  msgstr "Die Protokolldatei existiert und ist nicht beschreibbar."
446
 
447
+ #: crayon_settings_wp.class.php:753
448
  #@ crayon-syntax-highlighter
449
  msgid "The log file does not exist and is not writable."
450
  msgstr "Die Protokolldatei existiert nicht und ist nicht schreibbar."
451
 
452
+ #: crayon_settings_wp.class.php:590
453
  #, php-format
454
  #@ crayon-syntax-highlighter
455
  msgid "%d language has been detected."
457
  msgstr[0] "%d Sprache wurde erkannt."
458
  msgstr[1] "%d Sprachen wurden erkannt."
459
 
460
+ #: crayon_settings_wp.class.php:693
461
  #@ crayon-syntax-highlighter
462
  msgid "Capture &lt;pre&gt; tags as Crayons"
463
  msgstr "&lt;pre&gt; tags wie Crayons behandeln"
464
 
465
+ #: crayon_settings_wp.class.php:684
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
466
  #@ crayon-syntax-highlighter
467
  msgid "Show Mixed Language Icon (+)"
468
  msgstr "Zeige gemischte Sprachen Symbol (+)"
469
 
470
+ #: crayon_settings_wp.class.php:682
471
  #@ crayon-syntax-highlighter
472
  msgid "Allow Mixed Language Highlighting with delimiters and tags."
473
  msgstr "Erlaube Hervorhebung gemischter Sprachen mit Trennzeichen und Tags."
474
 
475
+ #: crayon_settings_wp.class.php:689
476
  #@ crayon-syntax-highlighter
477
  msgid "Capture Mini Tags like [php][/php] as Crayons."
478
  msgstr "Mini Tags wie [php][/php] als Crayons behandeln."
479
 
480
+ #: crayon_settings_wp.class.php:694
481
  #@ crayon-syntax-highlighter
482
  msgid "Enable [plain][/plain] tag."
483
  msgstr "Aktiviere [plain][/plain] Tag."
484
 
485
+ #: crayon_settings.class.php:189
486
  #@ crayon-syntax-highlighter
487
  msgid "Disable Mouse Events"
488
  msgstr "Mausereignisse deaktivieren"
489
 
490
+ #: crayon_settings_wp.class.php:665
491
  #@ crayon-syntax-highlighter
492
  msgid "Enable plain code toggling"
493
  msgstr "Umschaltung auf unformatierte Anzeige ermöglichen"
494
 
495
+ #: crayon_settings_wp.class.php:666
496
  #@ crayon-syntax-highlighter
497
  msgid "Show the plain code by default"
498
  msgstr "Unformatierten Code standardmäßig anzeigen"
527
  msgid "Supports multiple languages, themes, highlighting from a URL, local file or post text."
528
  msgstr "Unterstützt mehrere Sprachen und Themes. Hervorhebung von Code aus einer URL, lokalen Datei oder Artikeltext."
529
 
530
+ #: crayon_settings_wp.class.php:804
531
  #@ crayon-syntax-highlighter
532
  msgid "Donate"
533
  msgstr "Spenden"
534
 
535
+ #: crayon_settings_wp.class.php:300
536
  #@ crayon-syntax-highlighter
537
  msgid "General"
538
  msgstr "Allgemein"
539
 
540
+ #: crayon_settings_wp.class.php:301
541
  #@ crayon-syntax-highlighter
542
  msgid "Theme"
543
  msgstr "Theme"
544
 
545
+ #: crayon_settings_wp.class.php:302
546
  #@ crayon-syntax-highlighter
547
  msgid "Font"
548
  msgstr "Schriftart"
549
 
550
+ #: crayon_settings_wp.class.php:303
551
  #@ crayon-syntax-highlighter
552
  msgid "Metrics"
553
  msgstr "Layout"
554
 
555
+ #: crayon_settings_wp.class.php:304
556
  #@ crayon-syntax-highlighter
557
  msgid "Toolbar"
558
  msgstr "Symbolleiste"
559
 
560
+ #: crayon_settings_wp.class.php:305
561
  #@ crayon-syntax-highlighter
562
  msgid "Lines"
563
  msgstr "Zeilen"
564
 
565
+ #: crayon_settings_wp.class.php:306
566
+ #: util/tag-editor/crayon_te_content.php:87
567
  #@ crayon-syntax-highlighter
568
  msgid "Code"
569
  msgstr "Code"
570
 
571
+ #: crayon_settings_wp.class.php:308
572
  #@ crayon-syntax-highlighter
573
  msgid "Languages"
574
  msgstr "Sprachen"
575
 
576
+ #: crayon_settings_wp.class.php:309
577
  #@ crayon-syntax-highlighter
578
  msgid "Files"
579
  msgstr "Dateien"
580
 
581
+ #: crayon_settings_wp.class.php:311
582
  #@ crayon-syntax-highlighter
583
  msgid "Misc"
584
  msgstr "Sonstiges"
585
 
586
+ #: crayon_settings_wp.class.php:314
587
  #@ crayon-syntax-highlighter
588
  msgid "Debug"
589
  msgstr "Debuggen"
590
 
591
+ #: crayon_settings_wp.class.php:315
592
  #@ crayon-syntax-highlighter
593
  msgid "Errors"
594
  msgstr "Fehler"
595
 
596
+ #: crayon_settings_wp.class.php:316
597
  #@ crayon-syntax-highlighter
598
  msgid "Log"
599
  msgstr "Protokoll"
600
 
601
+ #: crayon_settings_wp.class.php:319
602
  #@ crayon-syntax-highlighter
603
  msgid "About"
604
  msgstr "Über"
605
 
606
+ #: crayon_settings_wp.class.php:631
607
  #@ crayon-syntax-highlighter
608
  msgid "Enqueue themes in the header (more efficient)."
609
  msgstr "Themes im Header laden (effizienter)."
610
 
611
+ #: crayon_settings_wp.class.php:657
612
  #@ crayon-syntax-highlighter
613
  msgid "Enqueue fonts in the header (more efficient)."
614
  msgstr "Schriftarten im Header laden (effizienter)."
615
 
616
+ #: crayon_settings_wp.class.php:620
617
  #@ crayon-syntax-highlighter
618
  msgid "Loading..."
619
  msgstr "Lade..."
620
 
621
+ #: crayon_settings_wp.class.php:620
622
+ #: crayon_settings_wp.class.php:802
623
  #: util/theme-editor/editor.php:14
624
  #@ crayon-syntax-highlighter
625
  msgid "Theme Editor"
626
  msgstr "Thema Editor"
627
 
628
+ #: crayon_settings_wp.class.php:670
629
  #@ crayon-syntax-highlighter
630
  msgid "Always display scrollbars"
631
  msgstr "Immer Scrollbalken anzeigen"
632
 
633
+ #: crayon_settings_wp.class.php:716
634
  #@ crayon-syntax-highlighter
635
  msgid "Disable enqueuing for page templates that may contain The Loop."
636
  msgstr "Deaktiviere Laden im Header für Themes die The Loop verwenden"
637
 
638
+ #: crayon_settings_wp.class.php:718
639
  #@ crayon-syntax-highlighter
640
  msgid "Load Crayons only from the main Wordpress query"
641
  msgstr "Crayons nur aus der main Wordpress query laden"
645
  msgid "Back To Settings"
646
  msgstr "Zurück zu Einstellungen"
647
 
648
+ #: crayon_settings_wp.class.php:766
649
  #@ crayon-syntax-highlighter
650
  msgid "Translators"
651
  msgstr "Übersetzer"
652
 
653
+ #: crayon_formatter.class.php:264
654
  #@ crayon-syntax-highlighter
655
  msgid "Toggle Plain Code"
656
  msgstr "Unformatierte Code-Ansicht"
657
 
658
+ #: crayon_formatter.class.php:266
659
  #@ crayon-syntax-highlighter
660
  msgid "Copy Plain Code"
661
  msgstr "Unformatierten Code kopieren"
662
 
663
+ #: crayon_formatter.class.php:268
664
  #@ crayon-syntax-highlighter
665
  msgid "Open Code In New Window"
666
  msgstr "Code in einem neuen Fenster anzeigen"
667
 
668
+ #: crayon_formatter.class.php:271
669
  #@ crayon-syntax-highlighter
670
  msgid "Toggle Line Numbers"
671
  msgstr "Zeilennummern"
672
 
673
+ #: crayon_formatter.class.php:277
674
  #@ crayon-syntax-highlighter
675
  msgid "Contains Mixed Languages"
676
  msgstr "Enthält verschiedene Sprachen"
677
 
678
+ #: crayon_settings_wp.class.php:742
679
  #@ crayon-syntax-highlighter
680
  msgid "Hide Log"
681
  msgstr "Protokoll ausblenden"
682
 
683
+ #: crayon_formatter.class.php:266
684
  #, php-format
685
  #@ crayon-syntax-highlighter
686
  msgid "Press %s to Copy, %s to Paste"
687
  msgstr "Drücken Sie %s zum Kopieren, %s zum Einfügen"
688
 
689
+ #: crayon_settings_wp.class.php:307
690
  #@ crayon-syntax-highlighter
691
  msgid "Tags"
692
  msgstr "Tags"
693
 
694
+ #: crayon_settings_wp.class.php:547
695
  #@ crayon-syntax-highlighter
696
  msgid "Inline Margin"
697
  msgstr "Inline Rand"
698
 
699
+ #: crayon_settings_wp.class.php:690
700
  #@ crayon-syntax-highlighter
701
  msgid "Capture Inline Tags like {php}{/php} inside sentences."
702
  msgstr "Tags wie {php} {/php} innerhalb Sätzen erkennen."
703
 
704
+ #: crayon_settings_wp.class.php:692
705
  #@ crayon-syntax-highlighter
706
  msgid "Capture `backquotes` as &lt;code&gt;"
707
  msgstr "`backquotes` als &lt;code&gt; behandeln"
708
 
709
+ #: crayon_settings_wp.class.php:717
710
  #@ crayon-syntax-highlighter
711
  msgid "Allow Crayons inside comments"
712
  msgstr "Crayons innerhalb von Kommentaren erlauben"
713
 
714
+ #: crayon_settings_wp.class.php:691
715
+ #@ crayon-syntax-highlighter
716
+ msgid "Wrap Inline Tags"
717
+ msgstr "Inline-Tags umbrechen"
718
+
719
+ #: crayon_settings_wp.class.php:310
720
+ #@ crayon-syntax-highlighter
721
+ msgid "Tag Editor"
722
+ msgstr ""
723
+
724
+ #: crayon_settings_wp.class.php:631
725
+ #: crayon_settings_wp.class.php:657
726
+ #: crayon_settings_wp.class.php:682
727
+ #: crayon_settings_wp.class.php:689
728
+ #: crayon_settings_wp.class.php:690
729
+ #: crayon_settings_wp.class.php:691
730
+ #: crayon_settings_wp.class.php:692
731
+ #: crayon_settings_wp.class.php:693
732
+ #: crayon_settings_wp.class.php:694
733
+ #: crayon_settings_wp.class.php:708
734
+ #: crayon_settings_wp.class.php:715
735
+ #: crayon_settings_wp.class.php:716
736
+ #@ crayon-syntax-highlighter
737
+ msgid "?"
738
+ msgstr ""
739
+
740
+ #: crayon_settings_wp.class.php:676
741
+ #@ crayon-syntax-highlighter
742
+ msgid "Decode HTML entities in code"
743
+ msgstr "HTML entities im code decodieren"
744
+
745
+ #: crayon_settings_wp.class.php:678
746
+ #@ crayon-syntax-highlighter
747
+ msgid "Decode HTML entities in attributes"
748
+ msgstr "HTML entities in Attributen decodieren"
749
+
750
+ #: crayon_settings_wp.class.php:706
751
+ #, php-format
752
+ #@ crayon-syntax-highlighter
753
+ msgid "Use %s to separate setting names from values in the &lt;pre&gt; class attribute"
754
+ msgstr "Mit %s in den &lt;pre&gt; class Attributen die Schlüsselworte der Optionen von den Werten trennen"
755
+
756
  #. translators: plugin header field 'Version'
757
  #: crayon_wp.class.php:0
758
  #@ crayon-syntax-highlighter
759
+ msgid "_1.9.0b6"
760
  msgstr ""
761
 
762
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:57
763
  #@ crayon-syntax-highlighter
764
+ msgid "Add Crayon Code"
765
+ msgstr "Crayon code einfügen"
766
+
767
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:58
768
+ #@ crayon-syntax-highlighter
769
+ msgid "Edit Crayon Code"
770
+ msgstr "Crayon code bearbeiten"
771
+
772
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:59
773
+ #@ crayon-syntax-highlighter
774
+ msgid "Add"
775
+ msgstr "Einfügen"
776
+
777
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:60
778
+ #@ crayon-syntax-highlighter
779
+ msgid "Save"
780
+ msgstr "Speichern"
781
+
782
+ #: util/tag-editor/crayon_te_content.php:65
783
+ #@ crayon-syntax-highlighter
784
+ msgid "Title"
785
+ msgstr "Titel"
786
+
787
+ #: util/tag-editor/crayon_te_content.php:67
788
+ #@ crayon-syntax-highlighter
789
+ msgid "A short description"
790
+ msgstr "kurze Beschreibung"
791
+
792
+ #: util/tag-editor/crayon_te_content.php:70
793
+ #@ crayon-syntax-highlighter
794
+ msgid "Inline"
795
+ msgstr ""
796
+
797
+ #: util/tag-editor/crayon_te_content.php:75
798
+ #@ crayon-syntax-highlighter
799
+ msgid "Language"
800
+ msgstr "Sprache"
801
+
802
+ #: util/tag-editor/crayon_te_content.php:78
803
+ #@ crayon-syntax-highlighter
804
+ msgid "Marked Lines"
805
+ msgstr "Markierte Zeilen"
806
+
807
+ #: util/tag-editor/crayon_te_content.php:79
808
+ #@ crayon-syntax-highlighter
809
+ msgid "(e.g. 1,2,3-5)"
810
+ msgstr "(z.B. 1,2,3-5)"
811
+
812
+ #: util/tag-editor/crayon_te_content.php:82
813
+ #@ crayon-syntax-highlighter
814
+ msgid "Disable Highlighting"
815
+ msgstr "Hervorhebung abschalten"
816
+
817
+ #: util/tag-editor/crayon_te_content.php:87
818
+ #@ crayon-syntax-highlighter
819
+ msgid "Clear"
820
+ msgstr "Löschen"
821
+
822
+ #: util/tag-editor/crayon_te_content.php:88
823
+ #@ crayon-syntax-highlighter
824
+ msgid "Paste your code here, or type it in manually."
825
+ msgstr "Code hier einfügen oder eingeben"
826
+
827
+ #: util/tag-editor/crayon_te_content.php:91
828
+ #@ crayon-syntax-highlighter
829
+ msgid "URL"
830
+ msgstr "URL"
831
+
832
+ #: util/tag-editor/crayon_te_content.php:93
833
+ #@ crayon-syntax-highlighter
834
+ msgid "Relative local path or absolute URL"
835
+ msgstr "Relativer lokaler Pfad oder absoluter URL"
836
+
837
+ #: util/tag-editor/crayon_te_content.php:96
838
+ #@ crayon-syntax-highlighter
839
+ msgid "If the URL fails to load, the code above will be shown instead. If no code exists, an error is shown."
840
+ msgstr "Wenn der URL nicht geladen werden kann wird der Code aus dem oberen Feld angezeigt. Ohne Code erfolgt eine Fehlermeldung."
841
+
842
+ #: util/tag-editor/crayon_te_content.php:98
843
+ #, php-format
844
+ #@ crayon-syntax-highlighter
845
+ msgid "If a relative local path is given it will be appended to %s - which is defined in %sCrayon &gt; Settings &gt; Files%s."
846
+ msgstr "Ein relativer Pfad wird an %s angehängt. Die Adresse ist in %sCrayon &gt; Einstellungen %gt; Dateien%s definiert."
847
+
848
+ #: util/tag-editor/crayon_te_content.php:117
849
+ #@ crayon-syntax-highlighter
850
+ msgid "Change the following settings to override their global values."
851
+ msgstr "Änderungen an den folgenden Einstellungen ersetzen die globalen Werte."
852
+
853
+ #: util/tag-editor/crayon_te_content.php:119
854
+ #@ crayon-syntax-highlighter
855
+ msgid "Only changes (shown yellow) are applied."
856
+ msgstr "Nur (gelb hervorgehobene) Änderungen werden zum crayon hinzugefügt."
857
+
858
+ #: util/tag-editor/crayon_te_content.php:121
859
+ #, php-format
860
+ #@ crayon-syntax-highlighter
861
+ msgid "Future changes to the global settings under %sCrayon &gt; Settings%s won't affect overridden settings."
862
+ msgstr "Zukünftige Änderungen der globalen Einstellungen unter %sCrayon &gt; Einstellungen%s ändern nicht die hier gemachten Einstellungen."
863
 
trans/crayon-syntax-highlighter-fr_FR.po CHANGED
@@ -19,411 +19,412 @@ msgstr ""
19
  "X-Poedit-SearchPath-0: .\n"
20
  "X-Textdomain-Support: yes"
21
 
22
- #: crayon_settings.class.php:135
23
- #: crayon_settings.class.php:139
24
  #@ crayon-syntax-highlighter
25
  msgid "Max"
26
  msgstr "Max"
27
 
28
- #: crayon_settings.class.php:135
29
- #: crayon_settings.class.php:139
30
  #@ crayon-syntax-highlighter
31
  msgid "Min"
32
  msgstr "Min"
33
 
34
- #: crayon_settings.class.php:135
35
- #: crayon_settings.class.php:139
36
  #@ crayon-syntax-highlighter
37
  msgid "Static"
38
  msgstr "Statique"
39
 
40
- #: crayon_settings.class.php:137
41
- #: crayon_settings.class.php:141
42
- #: crayon_settings_wp.class.php:461
43
- #: crayon_settings_wp.class.php:470
44
- #: crayon_settings_wp.class.php:581
45
  #@ crayon-syntax-highlighter
46
  msgid "Pixels"
47
  msgstr "Pixels"
48
 
49
- #: crayon_settings.class.php:137
50
- #: crayon_settings.class.php:141
51
  #@ crayon-syntax-highlighter
52
  msgid "Percent"
53
  msgstr "Pour cent"
54
 
55
- #: crayon_settings.class.php:150
56
  #@ crayon-syntax-highlighter
57
  msgid "None"
58
  msgstr "Aucun"
59
 
60
- #: crayon_settings.class.php:150
61
  #@ crayon-syntax-highlighter
62
  msgid "Left"
63
  msgstr "Gauche"
64
 
65
- #: crayon_settings.class.php:150
66
  #@ crayon-syntax-highlighter
67
  msgid "Center"
68
  msgstr "Centre"
69
 
70
- #: crayon_settings.class.php:150
71
  #@ crayon-syntax-highlighter
72
  msgid "Right"
73
  msgstr "Droite"
74
 
75
- #: crayon_settings.class.php:152
76
- #: crayon_settings.class.php:174
77
  #@ crayon-syntax-highlighter
78
  msgid "On MouseOver"
79
  msgstr "Sur MouseOver"
80
 
81
- #: crayon_settings.class.php:152
82
- #: crayon_settings.class.php:158
83
  #@ crayon-syntax-highlighter
84
  msgid "Always"
85
  msgstr "Toujours"
86
 
87
- #: crayon_settings.class.php:152
88
- #: crayon_settings.class.php:158
89
  #@ crayon-syntax-highlighter
90
  msgid "Never"
91
  msgstr "Jamais"
92
 
93
- #: crayon_settings.class.php:158
94
  #@ crayon-syntax-highlighter
95
  msgid "When Found"
96
  msgstr "Une fois trouvé"
97
 
98
- #: crayon_settings.class.php:174
99
  #@ crayon-syntax-highlighter
100
  msgid "On Double Click"
101
  msgstr "Le double-clic"
102
 
103
- #: crayon_settings.class.php:174
104
  #@ crayon-syntax-highlighter
105
  msgid "On Single Click"
106
  msgstr "Le Single Cliquez"
107
 
108
- #: crayon_settings.class.php:182
109
  #@ crayon-syntax-highlighter
110
  msgid "An error has occurred. Please try again later."
111
  msgstr "Une erreur s'est produite. S'il vous plaît essayez de nouveau plus tard."
112
 
113
- #: crayon_settings_wp.class.php:39
114
- #: crayon_settings_wp.class.php:82
115
- #: crayon_settings_wp.class.php:713
 
116
  #@ crayon-syntax-highlighter
117
  msgid "Settings"
118
  msgstr "Réglages"
119
 
120
- #: crayon_settings_wp.class.php:73
121
  #@ crayon-syntax-highlighter
122
  msgid "You do not have sufficient permissions to access this page."
123
  msgstr "Vous n'avez pas les autorisations suffisantes pour accéder à cette page."
124
 
125
- #: crayon_settings_wp.class.php:94
126
  #@ crayon-syntax-highlighter
127
  msgid "Save Changes"
128
  msgstr "Enregistrer les modifications"
129
 
130
- #: crayon_settings_wp.class.php:100
131
  #@ crayon-syntax-highlighter
132
  msgid "Reset Settings"
133
  msgstr "Réinitialiser les paramètres"
134
 
135
- #: crayon_settings_wp.class.php:438
136
  #@ crayon-syntax-highlighter
137
  msgid "Height"
138
  msgstr "Hauteur"
139
 
140
- #: crayon_settings_wp.class.php:444
141
  #@ crayon-syntax-highlighter
142
  msgid "Width"
143
  msgstr "Largeur"
144
 
145
- #: crayon_settings_wp.class.php:450
146
  #@ crayon-syntax-highlighter
147
  msgid "Top Margin"
148
  msgstr "Marge supérieure"
149
 
150
- #: crayon_settings_wp.class.php:451
151
  #@ crayon-syntax-highlighter
152
  msgid "Bottom Margin"
153
  msgstr "La marge du bas"
154
 
155
- #: crayon_settings_wp.class.php:452
156
- #: crayon_settings_wp.class.php:457
157
  #@ crayon-syntax-highlighter
158
  msgid "Left Margin"
159
  msgstr "Marge de gauche"
160
 
161
- #: crayon_settings_wp.class.php:453
162
- #: crayon_settings_wp.class.php:457
163
  #@ crayon-syntax-highlighter
164
  msgid "Right Margin"
165
  msgstr "Marge droite"
166
 
167
- #: crayon_settings_wp.class.php:463
168
  #@ crayon-syntax-highlighter
169
  msgid "Horizontal Alignment"
170
  msgstr "Alignement horizontal"
171
 
172
- #: crayon_settings_wp.class.php:466
173
  #@ crayon-syntax-highlighter
174
  msgid "Allow floating elements to surround Crayon"
175
  msgstr "Autoriser des éléments flottants pour encercler Crayon"
176
 
177
- #: crayon_settings_wp.class.php:474
178
  #@ crayon-syntax-highlighter
179
  msgid "Display the Toolbar"
180
  msgstr "Afficher la barre d'outils"
181
 
182
- #: crayon_settings_wp.class.php:477
183
  #@ crayon-syntax-highlighter
184
  msgid "Overlay the toolbar on code rather than push it down when possible"
185
  msgstr "Superposition de la barre d'outils sur le code plutôt que de le pousser vers le bas si possible"
186
 
187
- #: crayon_settings_wp.class.php:478
188
  #@ crayon-syntax-highlighter
189
  msgid "Toggle the toolbar on single click when it is overlayed"
190
  msgstr "Basculer la barre d'outils sur simple clic quand il est superposé"
191
 
192
- #: crayon_settings_wp.class.php:479
193
  #@ crayon-syntax-highlighter
194
  msgid "Delay hiding the toolbar on MouseOut"
195
  msgstr "Retard cacher la barre d'outils sur le MouseOut"
196
 
197
- #: crayon_settings_wp.class.php:481
198
  #@ crayon-syntax-highlighter
199
  msgid "Display the title when provided"
200
  msgstr "Afficher le titre lorsqu'il est fourni"
201
 
202
- #: crayon_settings_wp.class.php:482
203
  #@ crayon-syntax-highlighter
204
  msgid "Display the language"
205
  msgstr "Affichage de la langue"
206
 
207
- #: crayon_settings_wp.class.php:487
208
  #@ crayon-syntax-highlighter
209
  msgid "Display striped code lines"
210
  msgstr "Affichage des lignes de code rayée"
211
 
212
- #: crayon_settings_wp.class.php:488
213
  #@ crayon-syntax-highlighter
214
  msgid "Enable line marking for important lines"
215
  msgstr "Activer la ligne de marquage des lignes importantes"
216
 
217
- #: crayon_settings_wp.class.php:489
218
  #@ crayon-syntax-highlighter
219
  msgid "Display line numbers by default"
220
  msgstr "Afficher les numéros de ligne par défaut"
221
 
222
- #: crayon_settings_wp.class.php:490
223
  #@ crayon-syntax-highlighter
224
  msgid "Enable line number toggling"
225
  msgstr "Activer basculer le numéro de ligne"
226
 
227
- #: crayon_settings_wp.class.php:491
228
  #@ crayon-syntax-highlighter
229
  msgid "Start line numbers from"
230
  msgstr "Démarrer à partir des numéros de ligne"
231
 
232
- #: crayon_settings_wp.class.php:501
233
  #@ crayon-syntax-highlighter
234
  msgid "When no language is provided, use the fallback"
235
  msgstr "Lorsque aucune langue n'est fourni, utilisez le repli"
236
 
237
- #: crayon_settings_wp.class.php:509
238
  #@ crayon-syntax-highlighter
239
  msgid "Parsing was successful"
240
  msgstr "Parsing a réussi"
241
 
242
- #: crayon_settings_wp.class.php:509
243
  #@ crayon-syntax-highlighter
244
  msgid "Parsing was unsuccessful"
245
  msgstr "Parsing a échoué"
246
 
247
- #: crayon_settings_wp.class.php:515
248
  #, php-format
249
  #@ crayon-syntax-highlighter
250
  msgid "The selected language with id %s could not be loaded"
251
  msgstr "La langue sélectionnée avec id %s ne pouvait pas être chargé"
252
 
253
- #: crayon_settings_wp.class.php:519
254
  #@ crayon-syntax-highlighter
255
  msgid "Show Languages"
256
  msgstr "Voir langues"
257
 
258
- #: crayon_settings_wp.class.php:556
259
  #@ crayon-syntax-highlighter
260
  msgid "Enable Live Preview"
261
  msgstr "Activer l'aperçu en direct"
262
 
263
- #: crayon_settings_wp.class.php:561
264
  #, php-format
265
  #@ crayon-syntax-highlighter
266
  msgid "The selected theme with id %s could not be loaded"
267
  msgstr "Le thème choisi avec id %s ne pouvait pas être chargé"
268
 
269
- #: crayon_settings_wp.class.php:579
270
  #@ crayon-syntax-highlighter
271
  msgid "Custom Font Size"
272
  msgstr "Taille du texte personnalisé"
273
 
274
- #: crayon_settings_wp.class.php:584
275
  #, php-format
276
  #@ crayon-syntax-highlighter
277
  msgid "The selected font with id %s could not be loaded"
278
  msgstr "La police sélectionnée avec id %s ne pouvait pas être chargé"
279
 
280
- #: crayon_settings_wp.class.php:591
281
  #@ crayon-syntax-highlighter
282
  msgid "Enable plain code view and display"
283
  msgstr "Activer le mode code clair et d'affichage"
284
 
285
- #: crayon_settings_wp.class.php:596
286
  #@ crayon-syntax-highlighter
287
  msgid "Enable code copy/paste"
288
  msgstr "Activer copiez le code/coller"
289
 
290
- #: crayon_settings_wp.class.php:598
291
  #@ crayon-syntax-highlighter
292
  msgid "Enable opening code in a window"
293
  msgstr "Activer code d'ouverture dans une fenêtre"
294
 
295
- #: crayon_settings_wp.class.php:600
296
  #@ crayon-syntax-highlighter
297
  msgid "Tab size in spaces"
298
  msgstr "Taille des tabulations dans les espaces"
299
 
300
- #: crayon_settings_wp.class.php:602
301
  #@ crayon-syntax-highlighter
302
  msgid "Remove whitespace surrounding the shortcode content"
303
  msgstr "Enlevez les espaces entourant le contenu shortcode"
304
 
305
- #: crayon_settings_wp.class.php:618
306
  #@ crayon-syntax-highlighter
307
  msgid "When loading local files and a relative path is given for the URL, use the absolute path"
308
  msgstr "Lors du chargement des fichiers locaux et un chemin relatif est donné pour l'URL, utilisez le chemin absolu"
309
 
310
- #: crayon_settings_wp.class.php:625
311
  #@ crayon-syntax-highlighter
312
  msgid "Clear the cache used to store remote code requests"
313
  msgstr "Vider le cache utilisé pour stocker les demandes de code à distance"
314
 
315
- #: crayon_settings_wp.class.php:627
316
  #@ crayon-syntax-highlighter
317
  msgid "Clear Now"
318
  msgstr "Effacer maintenant"
319
 
320
- #: crayon_settings_wp.class.php:632
321
  #@ crayon-syntax-highlighter
322
  msgid "Disable mouse gestures for touchscreen devices (eg. MouseOver)"
323
  msgstr "Désactiver les gestes de souris pour les appareils à écran tactile (ex. MouseOver)"
324
 
325
- #: crayon_settings_wp.class.php:633
326
  #@ crayon-syntax-highlighter
327
  msgid "Disable animations"
328
  msgstr "Désactiver les animations"
329
 
330
- #: crayon_settings_wp.class.php:634
331
  #@ crayon-syntax-highlighter
332
  msgid "Disable runtime stats"
333
  msgstr "Désactiver l'exécution stats"
334
 
335
- #: crayon_settings_wp.class.php:641
336
  #@ crayon-syntax-highlighter
337
  msgid "Log errors for individual Crayons"
338
  msgstr "Connexion pour les erreurs individuelles Crayons"
339
 
340
- #: crayon_settings_wp.class.php:642
341
  #@ crayon-syntax-highlighter
342
  msgid "Log system-wide errors"
343
  msgstr "Connexion échelle du système des erreurs"
344
 
345
- #: crayon_settings_wp.class.php:643
346
  #@ crayon-syntax-highlighter
347
  msgid "Display custom message for errors"
348
  msgstr "Afficher un message personnalisé pour les erreurs"
349
 
350
- #: crayon_settings_wp.class.php:655
351
  #@ crayon-syntax-highlighter
352
  msgid "Show Log"
353
  msgstr "Afficher le journal"
354
 
355
- #: crayon_settings_wp.class.php:657
356
  #@ crayon-syntax-highlighter
357
  msgid "Clear Log"
358
  msgstr "Effacer le journal"
359
 
360
- #: crayon_settings_wp.class.php:658
361
  #@ crayon-syntax-highlighter
362
  msgid "Email Admin"
363
  msgstr "Admin Email"
364
 
365
- #: crayon_settings_wp.class.php:660
366
  #@ crayon-syntax-highlighter
367
  msgid "Email Developer"
368
  msgstr "Développeur Email"
369
 
370
- #: crayon_settings_wp.class.php:676
371
  #@ crayon-syntax-highlighter
372
  msgid "Version"
373
  msgstr "Version"
374
 
375
- #: crayon_settings_wp.class.php:678
376
  #@ crayon-syntax-highlighter
377
  msgid "Developer"
378
  msgstr "Développeur"
379
 
380
- #: crayon_settings_wp.class.php:701
381
  #@ crayon-syntax-highlighter
382
  msgid "The result of innumerable hours of hard work over many months. It's an ongoing project, keep me motivated!"
383
  msgstr "Le résultat de nombreuses heures de dur labeur sur plusieurs mois. C'est un projet en cours, me garder motivé!"
384
 
385
- #: crayon_settings_wp.class.php:553
386
  #, php-format
387
  #@ crayon-syntax-highlighter
388
  msgid "Change the %1$sfallback language%2$s to change the sample code. Lines 5-7 are marked."
389
  msgstr "Changer la %1$slangue de repli%2$s pour changer le code d'échantillon. Lignes 5-7 sont marquées."
390
 
391
- #: crayon_settings.class.php:106
392
  #@ crayon-syntax-highlighter
393
  msgid "Hourly"
394
  msgstr "Horaires"
395
 
396
- #: crayon_settings.class.php:106
397
  #@ crayon-syntax-highlighter
398
  msgid "Daily"
399
  msgstr "Daily"
400
 
401
- #: crayon_settings.class.php:107
402
  #@ crayon-syntax-highlighter
403
  msgid "Weekly"
404
  msgstr "Hebdomadaire"
405
 
406
- #: crayon_settings.class.php:107
407
  #@ crayon-syntax-highlighter
408
  msgid "Monthly"
409
  msgstr "Mensuel"
410
 
411
- #: crayon_settings.class.php:108
412
  #@ crayon-syntax-highlighter
413
  msgid "Immediately"
414
  msgstr "Immédiatement"
415
 
416
- #: crayon_settings_wp.class.php:424
417
  #@ crayon-syntax-highlighter
418
  msgid "Crayon Help"
419
  msgstr "Aide Crayon"
420
 
421
- #: crayon_settings_wp.class.php:628
422
  #@ crayon-syntax-highlighter
423
  msgid "Attempt to load Crayon's CSS and JavaScript only when needed"
424
  msgstr "Tentative de chargement CSS Crayon et JavaScript seulement quand c'est nécessaire"
425
 
426
- #: crayon_settings_wp.class.php:508
427
  #, php-format
428
  #@ crayon-syntax-highlighter
429
  msgid "%d language has been detected."
@@ -431,82 +432,67 @@ msgid_plural "%d languages have been detected."
431
  msgstr[0] "%d la langue a été détectée."
432
  msgstr[1] "%d langues ont été détectés."
433
 
434
- #: crayon_settings_wp.class.php:621
435
  #@ crayon-syntax-highlighter
436
  msgid "Followed by your relative URL."
437
  msgstr "Suivi de votre URL relative."
438
 
439
- #: crayon_settings_wp.class.php:662
440
  #@ crayon-syntax-highlighter
441
  msgid "The log is currently empty."
442
  msgstr "Le journal est actuellement vide."
443
 
444
- #: crayon_settings_wp.class.php:664
445
  #@ crayon-syntax-highlighter
446
  msgid "The log file exists and is writable."
447
  msgstr "Le fichier journal existe et est accessible en écriture."
448
 
449
- #: crayon_settings_wp.class.php:664
450
  #@ crayon-syntax-highlighter
451
  msgid "The log file exists and is not writable."
452
  msgstr "Le fichier journal existe et n'est pas accessible en écriture."
453
 
454
- #: crayon_settings_wp.class.php:666
455
  #@ crayon-syntax-highlighter
456
  msgid "The log file does not exist and is not writable."
457
  msgstr "Le fichier journal n'existe pas et n'est pas modifiable."
458
 
459
- #: crayon_settings_wp.class.php:612
460
  #@ crayon-syntax-highlighter
461
  msgid "Capture &lt;pre&gt; tags as Crayons"
462
  msgstr "Capturez balises &lt;pre&gt; que Crayons"
463
 
464
- #: crayon_settings_wp.class.php:558
465
- #: crayon_settings_wp.class.php:587
466
- #: crayon_settings_wp.class.php:603
467
- #: crayon_settings_wp.class.php:608
468
- #: crayon_settings_wp.class.php:609
469
- #: crayon_settings_wp.class.php:610
470
- #: crayon_settings_wp.class.php:611
471
- #: crayon_settings_wp.class.php:612
472
- #: crayon_settings_wp.class.php:613
473
- #: crayon_settings_wp.class.php:628
474
- #: crayon_settings_wp.class.php:629
475
- #@ crayon-syntax-highlighter
476
- msgid "Learn More"
477
- msgstr "En savoir plus"
478
-
479
- #: crayon_settings_wp.class.php:604
480
  #@ crayon-syntax-highlighter
481
  msgid "Show Mixed Language Icon (+)"
482
  msgstr "Afficher l'icône Langue mixte (+)"
483
 
484
- #: crayon_settings_wp.class.php:603
485
  #@ crayon-syntax-highlighter
486
  msgid "Allow Mixed Language Highlighting with delimiters and tags."
487
  msgstr "Autoriser Soulignant langue mélangée avec des délimiteurs et des tags."
488
 
489
- #: crayon_settings_wp.class.php:608
490
  #@ crayon-syntax-highlighter
491
  msgid "Capture Mini Tags like [php][/php] as Crayons."
492
  msgstr "Capturez Balises Mini tels que [php][/php] Crayons."
493
 
494
- #: crayon_settings_wp.class.php:613
495
  #@ crayon-syntax-highlighter
496
  msgid "Enable [plain][/plain] tag."
497
  msgstr "Activer tag [plain][/plain]."
498
 
499
- #: crayon_settings.class.php:174
500
  #@ crayon-syntax-highlighter
501
  msgid "Disable Mouse Events"
502
  msgstr "Désactiver les événements souris"
503
 
504
- #: crayon_settings_wp.class.php:594
505
  #@ crayon-syntax-highlighter
506
  msgid "Enable plain code toggling"
507
  msgstr "Activer le code basculer plaine"
508
 
509
- #: crayon_settings_wp.class.php:595
510
  #@ crayon-syntax-highlighter
511
  msgid "Show the plain code by default"
512
  msgstr "Montrer le code brut par défaut"
@@ -541,119 +527,120 @@ msgstr ""
541
  msgid "http://ak.net84.net/"
542
  msgstr ""
543
 
544
- #: crayon_settings_wp.class.php:717
545
  #@ crayon-syntax-highlighter
546
  msgid "Donate"
547
  msgstr "Faire un don"
548
 
549
- #: crayon_settings_wp.class.php:219
550
  #@ crayon-syntax-highlighter
551
  msgid "General"
552
  msgstr "Général"
553
 
554
- #: crayon_settings_wp.class.php:220
555
  #@ crayon-syntax-highlighter
556
  msgid "Theme"
557
  msgstr "Theme"
558
 
559
- #: crayon_settings_wp.class.php:221
560
  #@ crayon-syntax-highlighter
561
  msgid "Font"
562
  msgstr "Son"
563
 
564
- #: crayon_settings_wp.class.php:222
565
  #@ crayon-syntax-highlighter
566
  msgid "Metrics"
567
  msgstr "Mesures"
568
 
569
- #: crayon_settings_wp.class.php:223
570
  #@ crayon-syntax-highlighter
571
  msgid "Toolbar"
572
  msgstr "Barre d'outils"
573
 
574
- #: crayon_settings_wp.class.php:224
575
  #@ crayon-syntax-highlighter
576
  msgid "Lines"
577
  msgstr "Lignes"
578
 
579
- #: crayon_settings_wp.class.php:225
 
580
  #@ crayon-syntax-highlighter
581
  msgid "Code"
582
  msgstr "Code"
583
 
584
- #: crayon_settings_wp.class.php:227
585
  #@ crayon-syntax-highlighter
586
  msgid "Languages"
587
  msgstr "Langues"
588
 
589
- #: crayon_settings_wp.class.php:228
590
  #@ crayon-syntax-highlighter
591
  msgid "Files"
592
  msgstr "Fichiers"
593
 
594
- #: crayon_settings_wp.class.php:229
595
  #@ crayon-syntax-highlighter
596
  msgid "Misc"
597
  msgstr "Divers"
598
 
599
- #: crayon_settings_wp.class.php:232
600
  #@ crayon-syntax-highlighter
601
  msgid "Debug"
602
  msgstr "Débogage"
603
 
604
- #: crayon_settings_wp.class.php:233
605
  #@ crayon-syntax-highlighter
606
  msgid "Errors"
607
  msgstr "Erreurs"
608
 
609
- #: crayon_settings_wp.class.php:234
610
  #@ crayon-syntax-highlighter
611
  msgid "Log"
612
  msgstr "Connexion"
613
 
614
- #: crayon_settings_wp.class.php:237
615
  #@ crayon-syntax-highlighter
616
  msgid "About"
617
  msgstr "À propos"
618
 
619
- #: crayon_settings_wp.class.php:558
620
  #@ crayon-syntax-highlighter
621
  msgid "Enqueue themes in the header (more efficient)."
622
  msgstr "Enqueue thèmes dans l'en-tête (plus efficace)."
623
 
624
- #: crayon_settings_wp.class.php:587
625
  #@ crayon-syntax-highlighter
626
  msgid "Enqueue fonts in the header (more efficient)."
627
  msgstr "Enqueue polices de caractères dans l'en-tête (plus efficace)."
628
 
629
- #: crayon_settings_wp.class.php:549
630
  #@ crayon-syntax-highlighter
631
  msgid "Loading..."
632
  msgstr "Chargement..."
633
 
634
- #: crayon_settings_wp.class.php:549
635
- #: crayon_settings_wp.class.php:715
636
  #: util/theme-editor/editor.php:14
637
  #@ crayon-syntax-highlighter
638
  msgid "Theme Editor"
639
  msgstr "Éditeur de thème"
640
 
641
- #: crayon_settings_wp.class.php:599
642
  #@ crayon-syntax-highlighter
643
  msgid "Always display scrollbars"
644
  msgstr "Toujours afficher les barres de défilement"
645
 
646
- #: crayon_settings_wp.class.php:629
647
  #@ crayon-syntax-highlighter
648
  msgid "Disable enqueuing for page templates that may contain The Loop."
649
  msgstr "Désactiver enqueuing pour les modèles de page qui peut contenir la boucle."
650
 
651
- #: crayon_settings_wp.class.php:631
652
  #@ crayon-syntax-highlighter
653
  msgid "Load Crayons only from the main Wordpress query"
654
  msgstr "Crayons Charge seulement de la requête principale Wordpress"
655
 
656
- #: crayon_settings_wp.class.php:679
657
  #@ crayon-syntax-highlighter
658
  msgid "Translators"
659
  msgstr "Traducteurs"
@@ -663,75 +650,183 @@ msgstr "Traducteurs"
663
  msgid "Back To Settings"
664
  msgstr "Retour aux réglages"
665
 
666
- #: crayon_formatter.class.php:270
667
  #@ crayon-syntax-highlighter
668
  msgid "Toggle Plain Code"
669
  msgstr "Basculer code plaine"
670
 
671
- #: crayon_formatter.class.php:272
672
  #@ crayon-syntax-highlighter
673
  msgid "Copy Plain Code"
674
  msgstr "Copier le code ordinaire"
675
 
676
- #: crayon_formatter.class.php:278
677
  #@ crayon-syntax-highlighter
678
  msgid "Open Code In New Window"
679
  msgstr "Code dans la nouvelle fenêtre"
680
 
681
- #: crayon_formatter.class.php:281
682
  #@ crayon-syntax-highlighter
683
  msgid "Toggle Line Numbers"
684
  msgstr "Numéros de ligne Basculer"
685
 
686
- #: crayon_formatter.class.php:288
687
  #@ crayon-syntax-highlighter
688
  msgid "Contains Mixed Languages"
689
  msgstr "Contient un mélange de langues"
690
 
691
- #: crayon_settings_wp.class.php:655
692
  #@ crayon-syntax-highlighter
693
  msgid "Hide Log"
694
  msgstr "Cacher Connexion"
695
 
696
- #: crayon_formatter.class.php:272
697
  #, php-format
698
  #@ crayon-syntax-highlighter
699
  msgid "Press %s to Copy, %s to Paste"
700
  msgstr "Presse %s à Copier, Coller à %s"
701
 
702
- #: crayon_settings_wp.class.php:226
703
  #@ crayon-syntax-highlighter
704
  msgid "Tags"
705
  msgstr "Mots-clés"
706
 
707
- #: crayon_settings_wp.class.php:468
708
  #@ crayon-syntax-highlighter
709
  msgid "Inline Margin"
710
  msgstr "Marge en ligne"
711
 
712
- #: crayon_settings_wp.class.php:609
713
  #@ crayon-syntax-highlighter
714
  msgid "Capture Inline Tags like {php}{/php} inside sentences."
715
  msgstr "Capturez Mots Inline comme {php} {/php} à l'intérieur des phrases."
716
 
717
- #: crayon_settings_wp.class.php:611
718
  #@ crayon-syntax-highlighter
719
  msgid "Capture `backquotes` as &lt;code&gt;"
720
  msgstr "Capturez `apostrophes inverses` as &lt;code&gt;"
721
 
722
- #: crayon_settings_wp.class.php:630
723
  #@ crayon-syntax-highlighter
724
  msgid "Allow Crayons inside comments"
725
  msgstr "Permettez-Crayons à l'intérieur de commentaires"
726
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
727
  #. translators: plugin header field 'Version'
728
  #: crayon_wp.class.php:0
729
  #@ crayon-syntax-highlighter
730
- msgid "1.8.2"
731
  msgstr ""
732
 
733
- #: crayon_settings_wp.class.php:610
734
  #@ crayon-syntax-highlighter
735
- msgid "Wrap Inline Tags"
736
- msgstr "Wrap Balises Inline"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
737
 
19
  "X-Poedit-SearchPath-0: .\n"
20
  "X-Textdomain-Support: yes"
21
 
22
+ #: crayon_settings.class.php:149
23
+ #: crayon_settings.class.php:153
24
  #@ crayon-syntax-highlighter
25
  msgid "Max"
26
  msgstr "Max"
27
 
28
+ #: crayon_settings.class.php:149
29
+ #: crayon_settings.class.php:153
30
  #@ crayon-syntax-highlighter
31
  msgid "Min"
32
  msgstr "Min"
33
 
34
+ #: crayon_settings.class.php:149
35
+ #: crayon_settings.class.php:153
36
  #@ crayon-syntax-highlighter
37
  msgid "Static"
38
  msgstr "Statique"
39
 
40
+ #: crayon_settings.class.php:151
41
+ #: crayon_settings.class.php:155
42
+ #: crayon_settings_wp.class.php:517
43
+ #: crayon_settings_wp.class.php:526
44
+ #: crayon_settings_wp.class.php:625
45
  #@ crayon-syntax-highlighter
46
  msgid "Pixels"
47
  msgstr "Pixels"
48
 
49
+ #: crayon_settings.class.php:151
50
+ #: crayon_settings.class.php:155
51
  #@ crayon-syntax-highlighter
52
  msgid "Percent"
53
  msgstr "Pour cent"
54
 
55
+ #: crayon_settings.class.php:164
56
  #@ crayon-syntax-highlighter
57
  msgid "None"
58
  msgstr "Aucun"
59
 
60
+ #: crayon_settings.class.php:164
61
  #@ crayon-syntax-highlighter
62
  msgid "Left"
63
  msgstr "Gauche"
64
 
65
+ #: crayon_settings.class.php:164
66
  #@ crayon-syntax-highlighter
67
  msgid "Center"
68
  msgstr "Centre"
69
 
70
+ #: crayon_settings.class.php:164
71
  #@ crayon-syntax-highlighter
72
  msgid "Right"
73
  msgstr "Droite"
74
 
75
+ #: crayon_settings.class.php:166
76
+ #: crayon_settings.class.php:188
77
  #@ crayon-syntax-highlighter
78
  msgid "On MouseOver"
79
  msgstr "Sur MouseOver"
80
 
81
+ #: crayon_settings.class.php:166
82
+ #: crayon_settings.class.php:172
83
  #@ crayon-syntax-highlighter
84
  msgid "Always"
85
  msgstr "Toujours"
86
 
87
+ #: crayon_settings.class.php:166
88
+ #: crayon_settings.class.php:172
89
  #@ crayon-syntax-highlighter
90
  msgid "Never"
91
  msgstr "Jamais"
92
 
93
+ #: crayon_settings.class.php:172
94
  #@ crayon-syntax-highlighter
95
  msgid "When Found"
96
  msgstr "Une fois trouvé"
97
 
98
+ #: crayon_settings.class.php:188
99
  #@ crayon-syntax-highlighter
100
  msgid "On Double Click"
101
  msgstr "Le double-clic"
102
 
103
+ #: crayon_settings.class.php:188
104
  #@ crayon-syntax-highlighter
105
  msgid "On Single Click"
106
  msgstr "Le Single Cliquez"
107
 
108
+ #: crayon_settings.class.php:196
109
  #@ crayon-syntax-highlighter
110
  msgid "An error has occurred. Please try again later."
111
  msgstr "Une erreur s'est produite. S'il vous plaît essayez de nouveau plus tard."
112
 
113
+ #: crayon_settings_wp.class.php:41
114
+ #: crayon_settings_wp.class.php:111
115
+ #: crayon_settings_wp.class.php:783
116
+ #: util/tag-editor/crayon_te_content.php:101
117
  #@ crayon-syntax-highlighter
118
  msgid "Settings"
119
  msgstr "Réglages"
120
 
121
+ #: crayon_settings_wp.class.php:95
122
  #@ crayon-syntax-highlighter
123
  msgid "You do not have sufficient permissions to access this page."
124
  msgstr "Vous n'avez pas les autorisations suffisantes pour accéder à cette page."
125
 
126
+ #: crayon_settings_wp.class.php:123
127
  #@ crayon-syntax-highlighter
128
  msgid "Save Changes"
129
  msgstr "Enregistrer les modifications"
130
 
131
+ #: crayon_settings_wp.class.php:129
132
  #@ crayon-syntax-highlighter
133
  msgid "Reset Settings"
134
  msgstr "Réinitialiser les paramètres"
135
 
136
+ #: crayon_settings_wp.class.php:494
137
  #@ crayon-syntax-highlighter
138
  msgid "Height"
139
  msgstr "Hauteur"
140
 
141
+ #: crayon_settings_wp.class.php:500
142
  #@ crayon-syntax-highlighter
143
  msgid "Width"
144
  msgstr "Largeur"
145
 
146
+ #: crayon_settings_wp.class.php:506
147
  #@ crayon-syntax-highlighter
148
  msgid "Top Margin"
149
  msgstr "Marge supérieure"
150
 
151
+ #: crayon_settings_wp.class.php:507
152
  #@ crayon-syntax-highlighter
153
  msgid "Bottom Margin"
154
  msgstr "La marge du bas"
155
 
156
+ #: crayon_settings_wp.class.php:508
157
+ #: crayon_settings_wp.class.php:513
158
  #@ crayon-syntax-highlighter
159
  msgid "Left Margin"
160
  msgstr "Marge de gauche"
161
 
162
+ #: crayon_settings_wp.class.php:509
163
+ #: crayon_settings_wp.class.php:513
164
  #@ crayon-syntax-highlighter
165
  msgid "Right Margin"
166
  msgstr "Marge droite"
167
 
168
+ #: crayon_settings_wp.class.php:519
169
  #@ crayon-syntax-highlighter
170
  msgid "Horizontal Alignment"
171
  msgstr "Alignement horizontal"
172
 
173
+ #: crayon_settings_wp.class.php:522
174
  #@ crayon-syntax-highlighter
175
  msgid "Allow floating elements to surround Crayon"
176
  msgstr "Autoriser des éléments flottants pour encercler Crayon"
177
 
178
+ #: crayon_settings_wp.class.php:532
179
  #@ crayon-syntax-highlighter
180
  msgid "Display the Toolbar"
181
  msgstr "Afficher la barre d'outils"
182
 
183
+ #: crayon_settings_wp.class.php:535
184
  #@ crayon-syntax-highlighter
185
  msgid "Overlay the toolbar on code rather than push it down when possible"
186
  msgstr "Superposition de la barre d'outils sur le code plutôt que de le pousser vers le bas si possible"
187
 
188
+ #: crayon_settings_wp.class.php:536
189
  #@ crayon-syntax-highlighter
190
  msgid "Toggle the toolbar on single click when it is overlayed"
191
  msgstr "Basculer la barre d'outils sur simple clic quand il est superposé"
192
 
193
+ #: crayon_settings_wp.class.php:537
194
  #@ crayon-syntax-highlighter
195
  msgid "Delay hiding the toolbar on MouseOut"
196
  msgstr "Retard cacher la barre d'outils sur le MouseOut"
197
 
198
+ #: crayon_settings_wp.class.php:539
199
  #@ crayon-syntax-highlighter
200
  msgid "Display the title when provided"
201
  msgstr "Afficher le titre lorsqu'il est fourni"
202
 
203
+ #: crayon_settings_wp.class.php:540
204
  #@ crayon-syntax-highlighter
205
  msgid "Display the language"
206
  msgstr "Affichage de la langue"
207
 
208
+ #: crayon_settings_wp.class.php:547
209
  #@ crayon-syntax-highlighter
210
  msgid "Display striped code lines"
211
  msgstr "Affichage des lignes de code rayée"
212
 
213
+ #: crayon_settings_wp.class.php:548
214
  #@ crayon-syntax-highlighter
215
  msgid "Enable line marking for important lines"
216
  msgstr "Activer la ligne de marquage des lignes importantes"
217
 
218
+ #: crayon_settings_wp.class.php:549
219
  #@ crayon-syntax-highlighter
220
  msgid "Display line numbers by default"
221
  msgstr "Afficher les numéros de ligne par défaut"
222
 
223
+ #: crayon_settings_wp.class.php:550
224
  #@ crayon-syntax-highlighter
225
  msgid "Enable line number toggling"
226
  msgstr "Activer basculer le numéro de ligne"
227
 
228
+ #: crayon_settings_wp.class.php:551
229
  #@ crayon-syntax-highlighter
230
  msgid "Start line numbers from"
231
  msgstr "Démarrer à partir des numéros de ligne"
232
 
233
+ #: crayon_settings_wp.class.php:561
234
  #@ crayon-syntax-highlighter
235
  msgid "When no language is provided, use the fallback"
236
  msgstr "Lorsque aucune langue n'est fourni, utilisez le repli"
237
 
238
+ #: crayon_settings_wp.class.php:568
239
  #@ crayon-syntax-highlighter
240
  msgid "Parsing was successful"
241
  msgstr "Parsing a réussi"
242
 
243
+ #: crayon_settings_wp.class.php:568
244
  #@ crayon-syntax-highlighter
245
  msgid "Parsing was unsuccessful"
246
  msgstr "Parsing a échoué"
247
 
248
+ #: crayon_settings_wp.class.php:574
249
  #, php-format
250
  #@ crayon-syntax-highlighter
251
  msgid "The selected language with id %s could not be loaded"
252
  msgstr "La langue sélectionnée avec id %s ne pouvait pas être chargé"
253
 
254
+ #: crayon_settings_wp.class.php:578
255
  #@ crayon-syntax-highlighter
256
  msgid "Show Languages"
257
  msgstr "Voir langues"
258
 
259
+ #: crayon_settings_wp.class.php:606
260
  #@ crayon-syntax-highlighter
261
  msgid "Enable Live Preview"
262
  msgstr "Activer l'aperçu en direct"
263
 
264
+ #: crayon_settings_wp.class.php:611
265
  #, php-format
266
  #@ crayon-syntax-highlighter
267
  msgid "The selected theme with id %s could not be loaded"
268
  msgstr "Le thème choisi avec id %s ne pouvait pas être chargé"
269
 
270
+ #: crayon_settings_wp.class.php:623
271
  #@ crayon-syntax-highlighter
272
  msgid "Custom Font Size"
273
  msgstr "Taille du texte personnalisé"
274
 
275
+ #: crayon_settings_wp.class.php:628
276
  #, php-format
277
  #@ crayon-syntax-highlighter
278
  msgid "The selected font with id %s could not be loaded"
279
  msgstr "La police sélectionnée avec id %s ne pouvait pas être chargé"
280
 
281
+ #: crayon_settings_wp.class.php:639
282
  #@ crayon-syntax-highlighter
283
  msgid "Enable plain code view and display"
284
  msgstr "Activer le mode code clair et d'affichage"
285
 
286
+ #: crayon_settings_wp.class.php:644
287
  #@ crayon-syntax-highlighter
288
  msgid "Enable code copy/paste"
289
  msgstr "Activer copiez le code/coller"
290
 
291
+ #: crayon_settings_wp.class.php:646
292
  #@ crayon-syntax-highlighter
293
  msgid "Enable opening code in a window"
294
  msgstr "Activer code d'ouverture dans une fenêtre"
295
 
296
+ #: crayon_settings_wp.class.php:648
297
  #@ crayon-syntax-highlighter
298
  msgid "Tab size in spaces"
299
  msgstr "Taille des tabulations dans les espaces"
300
 
301
+ #: crayon_settings_wp.class.php:657
302
  #@ crayon-syntax-highlighter
303
  msgid "Remove whitespace surrounding the shortcode content"
304
  msgstr "Enlevez les espaces entourant le contenu shortcode"
305
 
306
+ #: crayon_settings_wp.class.php:676
307
  #@ crayon-syntax-highlighter
308
  msgid "When loading local files and a relative path is given for the URL, use the absolute path"
309
  msgstr "Lors du chargement des fichiers locaux et un chemin relatif est donné pour l'URL, utilisez le chemin absolu"
310
 
311
+ #: crayon_settings_wp.class.php:695
312
  #@ crayon-syntax-highlighter
313
  msgid "Clear the cache used to store remote code requests"
314
  msgstr "Vider le cache utilisé pour stocker les demandes de code à distance"
315
 
316
+ #: crayon_settings_wp.class.php:697
317
  #@ crayon-syntax-highlighter
318
  msgid "Clear Now"
319
  msgstr "Effacer maintenant"
320
 
321
+ #: crayon_settings_wp.class.php:702
322
  #@ crayon-syntax-highlighter
323
  msgid "Disable mouse gestures for touchscreen devices (eg. MouseOver)"
324
  msgstr "Désactiver les gestes de souris pour les appareils à écran tactile (ex. MouseOver)"
325
 
326
+ #: crayon_settings_wp.class.php:703
327
  #@ crayon-syntax-highlighter
328
  msgid "Disable animations"
329
  msgstr "Désactiver les animations"
330
 
331
+ #: crayon_settings_wp.class.php:704
332
  #@ crayon-syntax-highlighter
333
  msgid "Disable runtime stats"
334
  msgstr "Désactiver l'exécution stats"
335
 
336
+ #: crayon_settings_wp.class.php:711
337
  #@ crayon-syntax-highlighter
338
  msgid "Log errors for individual Crayons"
339
  msgstr "Connexion pour les erreurs individuelles Crayons"
340
 
341
+ #: crayon_settings_wp.class.php:712
342
  #@ crayon-syntax-highlighter
343
  msgid "Log system-wide errors"
344
  msgstr "Connexion échelle du système des erreurs"
345
 
346
+ #: crayon_settings_wp.class.php:713
347
  #@ crayon-syntax-highlighter
348
  msgid "Display custom message for errors"
349
  msgstr "Afficher un message personnalisé pour les erreurs"
350
 
351
+ #: crayon_settings_wp.class.php:725
352
  #@ crayon-syntax-highlighter
353
  msgid "Show Log"
354
  msgstr "Afficher le journal"
355
 
356
+ #: crayon_settings_wp.class.php:727
357
  #@ crayon-syntax-highlighter
358
  msgid "Clear Log"
359
  msgstr "Effacer le journal"
360
 
361
+ #: crayon_settings_wp.class.php:728
362
  #@ crayon-syntax-highlighter
363
  msgid "Email Admin"
364
  msgstr "Admin Email"
365
 
366
+ #: crayon_settings_wp.class.php:730
367
  #@ crayon-syntax-highlighter
368
  msgid "Email Developer"
369
  msgstr "Développeur Email"
370
 
371
+ #: crayon_settings_wp.class.php:746
372
  #@ crayon-syntax-highlighter
373
  msgid "Version"
374
  msgstr "Version"
375
 
376
+ #: crayon_settings_wp.class.php:748
377
  #@ crayon-syntax-highlighter
378
  msgid "Developer"
379
  msgstr "Développeur"
380
 
381
+ #: crayon_settings_wp.class.php:771
382
  #@ crayon-syntax-highlighter
383
  msgid "The result of innumerable hours of hard work over many months. It's an ongoing project, keep me motivated!"
384
  msgstr "Le résultat de nombreuses heures de dur labeur sur plusieurs mois. C'est un projet en cours, me garder motivé!"
385
 
386
+ #: crayon_settings_wp.class.php:602
387
  #, php-format
388
  #@ crayon-syntax-highlighter
389
  msgid "Change the %1$sfallback language%2$s to change the sample code. Lines 5-7 are marked."
390
  msgstr "Changer la %1$slangue de repli%2$s pour changer le code d'échantillon. Lignes 5-7 sont marquées."
391
 
392
+ #: crayon_settings.class.php:120
393
  #@ crayon-syntax-highlighter
394
  msgid "Hourly"
395
  msgstr "Horaires"
396
 
397
+ #: crayon_settings.class.php:120
398
  #@ crayon-syntax-highlighter
399
  msgid "Daily"
400
  msgstr "Daily"
401
 
402
+ #: crayon_settings.class.php:121
403
  #@ crayon-syntax-highlighter
404
  msgid "Weekly"
405
  msgstr "Hebdomadaire"
406
 
407
+ #: crayon_settings.class.php:121
408
  #@ crayon-syntax-highlighter
409
  msgid "Monthly"
410
  msgstr "Mensuel"
411
 
412
+ #: crayon_settings.class.php:122
413
  #@ crayon-syntax-highlighter
414
  msgid "Immediately"
415
  msgstr "Immédiatement"
416
 
417
+ #: crayon_settings_wp.class.php:479
418
  #@ crayon-syntax-highlighter
419
  msgid "Crayon Help"
420
  msgstr "Aide Crayon"
421
 
422
+ #: crayon_settings_wp.class.php:698
423
  #@ crayon-syntax-highlighter
424
  msgid "Attempt to load Crayon's CSS and JavaScript only when needed"
425
  msgstr "Tentative de chargement CSS Crayon et JavaScript seulement quand c'est nécessaire"
426
 
427
+ #: crayon_settings_wp.class.php:567
428
  #, php-format
429
  #@ crayon-syntax-highlighter
430
  msgid "%d language has been detected."
432
  msgstr[0] "%d la langue a été détectée."
433
  msgstr[1] "%d langues ont été détectés."
434
 
435
+ #: crayon_settings_wp.class.php:679
436
  #@ crayon-syntax-highlighter
437
  msgid "Followed by your relative URL."
438
  msgstr "Suivi de votre URL relative."
439
 
440
+ #: crayon_settings_wp.class.php:732
441
  #@ crayon-syntax-highlighter
442
  msgid "The log is currently empty."
443
  msgstr "Le journal est actuellement vide."
444
 
445
+ #: crayon_settings_wp.class.php:734
446
  #@ crayon-syntax-highlighter
447
  msgid "The log file exists and is writable."
448
  msgstr "Le fichier journal existe et est accessible en écriture."
449
 
450
+ #: crayon_settings_wp.class.php:734
451
  #@ crayon-syntax-highlighter
452
  msgid "The log file exists and is not writable."
453
  msgstr "Le fichier journal existe et n'est pas accessible en écriture."
454
 
455
+ #: crayon_settings_wp.class.php:736
456
  #@ crayon-syntax-highlighter
457
  msgid "The log file does not exist and is not writable."
458
  msgstr "Le fichier journal n'existe pas et n'est pas modifiable."
459
 
460
+ #: crayon_settings_wp.class.php:670
461
  #@ crayon-syntax-highlighter
462
  msgid "Capture &lt;pre&gt; tags as Crayons"
463
  msgstr "Capturez balises &lt;pre&gt; que Crayons"
464
 
465
+ #: crayon_settings_wp.class.php:661
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
466
  #@ crayon-syntax-highlighter
467
  msgid "Show Mixed Language Icon (+)"
468
  msgstr "Afficher l'icône Langue mixte (+)"
469
 
470
+ #: crayon_settings_wp.class.php:659
471
  #@ crayon-syntax-highlighter
472
  msgid "Allow Mixed Language Highlighting with delimiters and tags."
473
  msgstr "Autoriser Soulignant langue mélangée avec des délimiteurs et des tags."
474
 
475
+ #: crayon_settings_wp.class.php:666
476
  #@ crayon-syntax-highlighter
477
  msgid "Capture Mini Tags like [php][/php] as Crayons."
478
  msgstr "Capturez Balises Mini tels que [php][/php] Crayons."
479
 
480
+ #: crayon_settings_wp.class.php:671
481
  #@ crayon-syntax-highlighter
482
  msgid "Enable [plain][/plain] tag."
483
  msgstr "Activer tag [plain][/plain]."
484
 
485
+ #: crayon_settings.class.php:188
486
  #@ crayon-syntax-highlighter
487
  msgid "Disable Mouse Events"
488
  msgstr "Désactiver les événements souris"
489
 
490
+ #: crayon_settings_wp.class.php:642
491
  #@ crayon-syntax-highlighter
492
  msgid "Enable plain code toggling"
493
  msgstr "Activer le code basculer plaine"
494
 
495
+ #: crayon_settings_wp.class.php:643
496
  #@ crayon-syntax-highlighter
497
  msgid "Show the plain code by default"
498
  msgstr "Montrer le code brut par défaut"
527
  msgid "http://ak.net84.net/"
528
  msgstr ""
529
 
530
+ #: crayon_settings_wp.class.php:787
531
  #@ crayon-syntax-highlighter
532
  msgid "Donate"
533
  msgstr "Faire un don"
534
 
535
+ #: crayon_settings_wp.class.php:249
536
  #@ crayon-syntax-highlighter
537
  msgid "General"
538
  msgstr "Général"
539
 
540
+ #: crayon_settings_wp.class.php:250
541
  #@ crayon-syntax-highlighter
542
  msgid "Theme"
543
  msgstr "Theme"
544
 
545
+ #: crayon_settings_wp.class.php:251
546
  #@ crayon-syntax-highlighter
547
  msgid "Font"
548
  msgstr "Son"
549
 
550
+ #: crayon_settings_wp.class.php:252
551
  #@ crayon-syntax-highlighter
552
  msgid "Metrics"
553
  msgstr "Mesures"
554
 
555
+ #: crayon_settings_wp.class.php:253
556
  #@ crayon-syntax-highlighter
557
  msgid "Toolbar"
558
  msgstr "Barre d'outils"
559
 
560
+ #: crayon_settings_wp.class.php:254
561
  #@ crayon-syntax-highlighter
562
  msgid "Lines"
563
  msgstr "Lignes"
564
 
565
+ #: crayon_settings_wp.class.php:255
566
+ #: util/tag-editor/crayon_te_content.php:87
567
  #@ crayon-syntax-highlighter
568
  msgid "Code"
569
  msgstr "Code"
570
 
571
+ #: crayon_settings_wp.class.php:257
572
  #@ crayon-syntax-highlighter
573
  msgid "Languages"
574
  msgstr "Langues"
575
 
576
+ #: crayon_settings_wp.class.php:258
577
  #@ crayon-syntax-highlighter
578
  msgid "Files"
579
  msgstr "Fichiers"
580
 
581
+ #: crayon_settings_wp.class.php:260
582
  #@ crayon-syntax-highlighter
583
  msgid "Misc"
584
  msgstr "Divers"
585
 
586
+ #: crayon_settings_wp.class.php:263
587
  #@ crayon-syntax-highlighter
588
  msgid "Debug"
589
  msgstr "Débogage"
590
 
591
+ #: crayon_settings_wp.class.php:264
592
  #@ crayon-syntax-highlighter
593
  msgid "Errors"
594
  msgstr "Erreurs"
595
 
596
+ #: crayon_settings_wp.class.php:265
597
  #@ crayon-syntax-highlighter
598
  msgid "Log"
599
  msgstr "Connexion"
600
 
601
+ #: crayon_settings_wp.class.php:268
602
  #@ crayon-syntax-highlighter
603
  msgid "About"
604
  msgstr "À propos"
605
 
606
+ #: crayon_settings_wp.class.php:608
607
  #@ crayon-syntax-highlighter
608
  msgid "Enqueue themes in the header (more efficient)."
609
  msgstr "Enqueue thèmes dans l'en-tête (plus efficace)."
610
 
611
+ #: crayon_settings_wp.class.php:634
612
  #@ crayon-syntax-highlighter
613
  msgid "Enqueue fonts in the header (more efficient)."
614
  msgstr "Enqueue polices de caractères dans l'en-tête (plus efficace)."
615
 
616
+ #: crayon_settings_wp.class.php:597
617
  #@ crayon-syntax-highlighter
618
  msgid "Loading..."
619
  msgstr "Chargement..."
620
 
621
+ #: crayon_settings_wp.class.php:597
622
+ #: crayon_settings_wp.class.php:785
623
  #: util/theme-editor/editor.php:14
624
  #@ crayon-syntax-highlighter
625
  msgid "Theme Editor"
626
  msgstr "Éditeur de thème"
627
 
628
+ #: crayon_settings_wp.class.php:647
629
  #@ crayon-syntax-highlighter
630
  msgid "Always display scrollbars"
631
  msgstr "Toujours afficher les barres de défilement"
632
 
633
+ #: crayon_settings_wp.class.php:699
634
  #@ crayon-syntax-highlighter
635
  msgid "Disable enqueuing for page templates that may contain The Loop."
636
  msgstr "Désactiver enqueuing pour les modèles de page qui peut contenir la boucle."
637
 
638
+ #: crayon_settings_wp.class.php:701
639
  #@ crayon-syntax-highlighter
640
  msgid "Load Crayons only from the main Wordpress query"
641
  msgstr "Crayons Charge seulement de la requête principale Wordpress"
642
 
643
+ #: crayon_settings_wp.class.php:749
644
  #@ crayon-syntax-highlighter
645
  msgid "Translators"
646
  msgstr "Traducteurs"
650
  msgid "Back To Settings"
651
  msgstr "Retour aux réglages"
652
 
653
+ #: crayon_formatter.class.php:264
654
  #@ crayon-syntax-highlighter
655
  msgid "Toggle Plain Code"
656
  msgstr "Basculer code plaine"
657
 
658
+ #: crayon_formatter.class.php:266
659
  #@ crayon-syntax-highlighter
660
  msgid "Copy Plain Code"
661
  msgstr "Copier le code ordinaire"
662
 
663
+ #: crayon_formatter.class.php:268
664
  #@ crayon-syntax-highlighter
665
  msgid "Open Code In New Window"
666
  msgstr "Code dans la nouvelle fenêtre"
667
 
668
+ #: crayon_formatter.class.php:271
669
  #@ crayon-syntax-highlighter
670
  msgid "Toggle Line Numbers"
671
  msgstr "Numéros de ligne Basculer"
672
 
673
+ #: crayon_formatter.class.php:277
674
  #@ crayon-syntax-highlighter
675
  msgid "Contains Mixed Languages"
676
  msgstr "Contient un mélange de langues"
677
 
678
+ #: crayon_settings_wp.class.php:725
679
  #@ crayon-syntax-highlighter
680
  msgid "Hide Log"
681
  msgstr "Cacher Connexion"
682
 
683
+ #: crayon_formatter.class.php:266
684
  #, php-format
685
  #@ crayon-syntax-highlighter
686
  msgid "Press %s to Copy, %s to Paste"
687
  msgstr "Presse %s à Copier, Coller à %s"
688
 
689
+ #: crayon_settings_wp.class.php:256
690
  #@ crayon-syntax-highlighter
691
  msgid "Tags"
692
  msgstr "Mots-clés"
693
 
694
+ #: crayon_settings_wp.class.php:524
695
  #@ crayon-syntax-highlighter
696
  msgid "Inline Margin"
697
  msgstr "Marge en ligne"
698
 
699
+ #: crayon_settings_wp.class.php:667
700
  #@ crayon-syntax-highlighter
701
  msgid "Capture Inline Tags like {php}{/php} inside sentences."
702
  msgstr "Capturez Mots Inline comme {php} {/php} à l'intérieur des phrases."
703
 
704
+ #: crayon_settings_wp.class.php:669
705
  #@ crayon-syntax-highlighter
706
  msgid "Capture `backquotes` as &lt;code&gt;"
707
  msgstr "Capturez `apostrophes inverses` as &lt;code&gt;"
708
 
709
+ #: crayon_settings_wp.class.php:700
710
  #@ crayon-syntax-highlighter
711
  msgid "Allow Crayons inside comments"
712
  msgstr "Permettez-Crayons à l'intérieur de commentaires"
713
 
714
+ #: crayon_settings_wp.class.php:668
715
+ #@ crayon-syntax-highlighter
716
+ msgid "Wrap Inline Tags"
717
+ msgstr "Wrap Balises Inline"
718
+
719
+ #: crayon_settings_wp.class.php:259
720
+ #@ crayon-syntax-highlighter
721
+ msgid "Tag Editor"
722
+ msgstr ""
723
+
724
+ #: crayon_settings_wp.class.php:608
725
+ #: crayon_settings_wp.class.php:634
726
+ #: crayon_settings_wp.class.php:659
727
+ #: crayon_settings_wp.class.php:666
728
+ #: crayon_settings_wp.class.php:667
729
+ #: crayon_settings_wp.class.php:668
730
+ #: crayon_settings_wp.class.php:669
731
+ #: crayon_settings_wp.class.php:670
732
+ #: crayon_settings_wp.class.php:671
733
+ #: crayon_settings_wp.class.php:687
734
+ #: crayon_settings_wp.class.php:698
735
+ #: crayon_settings_wp.class.php:699
736
+ #@ crayon-syntax-highlighter
737
+ msgid "?"
738
+ msgstr ""
739
+
740
+ #: crayon_settings_wp.class.php:653
741
+ #@ crayon-syntax-highlighter
742
+ msgid "Decode HTML entities in code"
743
+ msgstr ""
744
+
745
+ #: crayon_settings_wp.class.php:655
746
+ #@ crayon-syntax-highlighter
747
+ msgid "Decode HTML entities in attributes"
748
+ msgstr ""
749
+
750
+ #: crayon_settings_wp.class.php:684
751
+ #, php-format
752
+ #@ crayon-syntax-highlighter
753
+ msgid "Use %s to separate setting names from values in the &lt;pre&gt; class attribute"
754
+ msgstr ""
755
+
756
  #. translators: plugin header field 'Version'
757
  #: crayon_wp.class.php:0
758
  #@ crayon-syntax-highlighter
759
+ msgid "1.8.3"
760
  msgstr ""
761
 
762
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:51
763
  #@ crayon-syntax-highlighter
764
+ msgid "Add Crayon Code"
765
+ msgstr ""
766
+
767
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:52
768
+ #@ crayon-syntax-highlighter
769
+ msgid "Edit Crayon Code"
770
+ msgstr ""
771
+
772
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:53
773
+ #@ crayon-syntax-highlighter
774
+ msgid "Add"
775
+ msgstr ""
776
+
777
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:54
778
+ #@ crayon-syntax-highlighter
779
+ msgid "Save"
780
+ msgstr ""
781
+
782
+ #: util/tag-editor/crayon_te_content.php:65
783
+ #@ crayon-syntax-highlighter
784
+ msgid "Title"
785
+ msgstr ""
786
+
787
+ #: util/tag-editor/crayon_te_content.php:70
788
+ #@ crayon-syntax-highlighter
789
+ msgid "Inline"
790
+ msgstr ""
791
+
792
+ #: util/tag-editor/crayon_te_content.php:75
793
+ #@ crayon-syntax-highlighter
794
+ msgid "Language"
795
+ msgstr ""
796
+
797
+ #: util/tag-editor/crayon_te_content.php:78
798
+ #@ crayon-syntax-highlighter
799
+ msgid "Marked Lines"
800
+ msgstr ""
801
+
802
+ #: util/tag-editor/crayon_te_content.php:82
803
+ #@ crayon-syntax-highlighter
804
+ msgid "Disable Highlighting"
805
+ msgstr ""
806
+
807
+ #: util/tag-editor/crayon_te_content.php:87
808
+ #@ crayon-syntax-highlighter
809
+ msgid "Clear"
810
+ msgstr ""
811
+
812
+ #: util/tag-editor/crayon_te_content.php:88
813
+ #@ crayon-syntax-highlighter
814
+ msgid "Paste your code here, or type it in manually."
815
+ msgstr ""
816
+
817
+ #: util/tag-editor/crayon_te_content.php:104
818
+ #@ crayon-syntax-highlighter
819
+ msgid "Change the following settings to override their global values."
820
+ msgstr ""
821
+
822
+ #: util/tag-editor/crayon_te_content.php:106
823
+ #@ crayon-syntax-highlighter
824
+ msgid "Only changes (shown yellow) are applied."
825
+ msgstr ""
826
+
827
+ #: util/tag-editor/crayon_te_content.php:108
828
+ #, php-format
829
+ #@ crayon-syntax-highlighter
830
+ msgid "Future changes to the global settings under %sCrayon > Settings%s won't affect overridden settings."
831
+ msgstr ""
832
 
trans/crayon-syntax-highlighter-ja.mo CHANGED
Binary file
trans/crayon-syntax-highlighter-ja.po CHANGED
@@ -2,9 +2,9 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Crayon Syntax Highlighter v1.6.3\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: \n"
6
- "PO-Revision-Date: 2012-03-08 20:53+1000\n"
7
- "Last-Translator: \n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -13,725 +13,850 @@ msgstr ""
13
  "X-Poedit-Language: Japanese\n"
14
  "X-Poedit-Country: JAPAN\n"
15
  "X-Poedit-SourceCharset: utf-8\n"
16
- "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
17
  "X-Poedit-Basepath: ../\n"
18
- "X-Poedit-Bookmarks: \n"
19
  "X-Poedit-SearchPath-0: .\n"
20
- "X-Textdomain-Support: yes"
21
 
22
- #: crayon_settings.class.php:106
23
- #@ crayon-syntax-highlighter
24
- msgid "Hourly"
25
- msgstr "毎時間"
26
-
27
- #: crayon_settings.class.php:106
28
- #@ crayon-syntax-highlighter
29
- msgid "Daily"
30
- msgstr "毎日"
31
-
32
- #: crayon_settings.class.php:107
33
- #@ crayon-syntax-highlighter
34
- msgid "Weekly"
35
- msgstr "毎週"
36
-
37
- #: crayon_settings.class.php:107
38
- #@ crayon-syntax-highlighter
39
- msgid "Monthly"
40
- msgstr "毎月"
41
-
42
- #: crayon_settings.class.php:108
43
- #@ crayon-syntax-highlighter
44
- msgid "Immediately"
45
- msgstr "直後に"
46
-
47
- #: crayon_settings.class.php:135
48
- #: crayon_settings.class.php:139
49
- #@ crayon-syntax-highlighter
50
  msgid "Max"
51
  msgstr "最大"
52
 
53
- #: crayon_settings.class.php:135
54
- #: crayon_settings.class.php:139
55
- #@ crayon-syntax-highlighter
56
  msgid "Min"
57
  msgstr "最小"
58
 
59
- #: crayon_settings.class.php:135
60
- #: crayon_settings.class.php:139
61
- #@ crayon-syntax-highlighter
62
  msgid "Static"
63
  msgstr "固定"
64
 
65
- #: crayon_settings.class.php:137
66
- #: crayon_settings.class.php:141
67
- #: crayon_settings_wp.class.php:461
68
- #: crayon_settings_wp.class.php:470
69
- #: crayon_settings_wp.class.php:581
70
- #@ crayon-syntax-highlighter
71
  msgid "Pixels"
72
  msgstr "ピクセル"
73
 
74
- #: crayon_settings.class.php:137
75
- #: crayon_settings.class.php:141
76
- #@ crayon-syntax-highlighter
77
  msgid "Percent"
78
  msgstr "パーセント"
79
 
80
- #: crayon_settings.class.php:150
81
- #@ crayon-syntax-highlighter
82
  msgid "None"
83
  msgstr "なし"
84
 
85
- #: crayon_settings.class.php:150
86
- #@ crayon-syntax-highlighter
87
  msgid "Left"
88
  msgstr "左"
89
 
90
- #: crayon_settings.class.php:150
91
- #@ crayon-syntax-highlighter
92
  msgid "Center"
93
  msgstr "中央"
94
 
95
- #: crayon_settings.class.php:150
96
- #@ crayon-syntax-highlighter
97
  msgid "Right"
98
  msgstr "右"
99
 
100
- #: crayon_settings.class.php:152
101
- #: crayon_settings.class.php:174
102
- #@ crayon-syntax-highlighter
103
  msgid "On MouseOver"
104
  msgstr "マウスオーバー時"
105
 
106
- #: crayon_settings.class.php:152
107
- #: crayon_settings.class.php:158
108
- #@ crayon-syntax-highlighter
109
  msgid "Always"
110
  msgstr "常に表示"
111
 
112
- #: crayon_settings.class.php:152
113
- #: crayon_settings.class.php:158
114
- #@ crayon-syntax-highlighter
115
  msgid "Never"
116
  msgstr "表示しない"
117
 
118
- #: crayon_settings.class.php:158
119
- #@ crayon-syntax-highlighter
120
  msgid "When Found"
121
  msgstr "言語が判明した場合"
122
 
123
- #: crayon_settings.class.php:174
124
- #@ crayon-syntax-highlighter
125
  msgid "On Double Click"
126
  msgstr "ダブルクリック時"
127
 
128
- #: crayon_settings.class.php:174
129
- #@ crayon-syntax-highlighter
130
  msgid "On Single Click"
131
  msgstr "シングルクリック時"
132
 
133
- #: crayon_settings.class.php:182
134
- #@ crayon-syntax-highlighter
135
  msgid "An error has occurred. Please try again later."
136
  msgstr "エラーが発生しました。後でもう一度やり直してください。"
137
 
138
- #: crayon_settings_wp.class.php:39
139
- #: crayon_settings_wp.class.php:82
140
- #: crayon_settings_wp.class.php:713
141
- #@ crayon-syntax-highlighter
 
142
  msgid "Settings"
143
  msgstr "設定"
144
 
145
- #: crayon_settings_wp.class.php:73
146
- #@ crayon-syntax-highlighter
147
  msgid "You do not have sufficient permissions to access this page."
148
  msgstr "このページにアクセスするための十分な権限(パーミッション)がありません。"
149
 
150
- #: crayon_settings_wp.class.php:94
151
- #@ crayon-syntax-highlighter
152
  msgid "Save Changes"
153
  msgstr "変更を保存"
154
 
155
- #: crayon_settings_wp.class.php:100
156
- #@ crayon-syntax-highlighter
157
  msgid "Reset Settings"
158
  msgstr "リセット"
159
 
160
- #: crayon_settings_wp.class.php:424
161
- #@ crayon-syntax-highlighter
162
- msgid "Crayon Help"
163
- msgstr "Crayon ヘルプ"
164
-
165
- #: crayon_settings_wp.class.php:438
166
- #@ crayon-syntax-highlighter
167
  msgid "Height"
168
  msgstr "高さ"
169
 
170
- #: crayon_settings_wp.class.php:444
171
- #@ crayon-syntax-highlighter
172
  msgid "Width"
173
  msgstr "横幅"
174
 
175
- #: crayon_settings_wp.class.php:450
176
- #@ crayon-syntax-highlighter
177
  msgid "Top Margin"
178
  msgstr "上余白"
179
 
180
- #: crayon_settings_wp.class.php:451
181
- #@ crayon-syntax-highlighter
182
  msgid "Bottom Margin"
183
  msgstr "下余白"
184
 
185
- #: crayon_settings_wp.class.php:452
186
- #: crayon_settings_wp.class.php:457
187
- #@ crayon-syntax-highlighter
188
  msgid "Left Margin"
189
  msgstr "左余白"
190
 
191
- #: crayon_settings_wp.class.php:453
192
- #: crayon_settings_wp.class.php:457
193
- #@ crayon-syntax-highlighter
194
  msgid "Right Margin"
195
  msgstr "右余白"
196
 
197
- #: crayon_settings_wp.class.php:463
198
- #@ crayon-syntax-highlighter
199
  msgid "Horizontal Alignment"
200
  msgstr "回り込み"
201
 
202
- #: crayon_settings_wp.class.php:466
203
- #@ crayon-syntax-highlighter
204
  msgid "Allow floating elements to surround Crayon"
205
  msgstr "周りのfloat要素の回り込みを許可"
206
 
207
- #: crayon_settings_wp.class.php:474
208
- #@ crayon-syntax-highlighter
209
  msgid "Display the Toolbar"
210
  msgstr "ツールバーの表示"
211
 
212
- #: crayon_settings_wp.class.php:477
213
- #@ crayon-syntax-highlighter
214
  msgid "Overlay the toolbar on code rather than push it down when possible"
215
  msgstr "コードを押し下げるのではなく、コード上に重ねて表示"
216
 
217
- #: crayon_settings_wp.class.php:478
218
- #@ crayon-syntax-highlighter
219
  msgid "Toggle the toolbar on single click when it is overlayed"
220
  msgstr "重ねて表示の場合にシングルクリックでツールバーを切り替える"
221
 
222
- #: crayon_settings_wp.class.php:479
223
- #@ crayon-syntax-highlighter
224
  msgid "Delay hiding the toolbar on MouseOut"
225
  msgstr "マウスアウト時にツールバーを隠すのを遅らせる"
226
 
227
- #: crayon_settings_wp.class.php:481
228
- #@ crayon-syntax-highlighter
229
  msgid "Display the title when provided"
230
  msgstr "タイトルがある時は表示"
231
 
232
- #: crayon_settings_wp.class.php:482
233
- #@ crayon-syntax-highlighter
234
  msgid "Display the language"
235
  msgstr "ソース言語を表示"
236
 
237
- #: crayon_settings_wp.class.php:487
238
- #@ crayon-syntax-highlighter
239
  msgid "Display striped code lines"
240
  msgstr "コード行を縞模様で表示する"
241
 
242
- #: crayon_settings_wp.class.php:488
243
- #@ crayon-syntax-highlighter
244
  msgid "Enable line marking for important lines"
245
  msgstr "重要な行にマーキングを有効にする"
246
 
247
- #: crayon_settings_wp.class.php:489
248
- #@ crayon-syntax-highlighter
249
  msgid "Display line numbers by default"
250
  msgstr "デフォルトで行番号を表示"
251
 
252
- #: crayon_settings_wp.class.php:490
253
- #@ crayon-syntax-highlighter
254
  msgid "Enable line number toggling"
255
  msgstr "行番号の切り替えを有効にする"
256
 
257
- #: crayon_settings_wp.class.php:491
258
- #@ crayon-syntax-highlighter
259
  msgid "Start line numbers from"
260
  msgstr "行番号の開始数字"
261
 
262
- #: crayon_settings_wp.class.php:501
263
- #@ crayon-syntax-highlighter
264
  msgid "When no language is provided, use the fallback"
265
  msgstr "ソース言語が提供されていない場合は、代替えを使用します。"
266
 
267
- #: crayon_settings_wp.class.php:509
268
- #@ crayon-syntax-highlighter
269
  msgid "Parsing was successful"
270
  msgstr "解析が成功しました。"
271
 
272
- #: crayon_settings_wp.class.php:509
273
- #@ crayon-syntax-highlighter
274
  msgid "Parsing was unsuccessful"
275
  msgstr "解析に失敗しました。"
276
 
277
- #: crayon_settings_wp.class.php:515
 
278
  #, php-format
279
- #@ crayon-syntax-highlighter
280
  msgid "The selected language with id %s could not be loaded"
281
  msgstr "ID %s の選択したソース言語をロードできませんでした。"
282
 
283
- #: crayon_settings_wp.class.php:519
284
- #@ crayon-syntax-highlighter
285
  msgid "Show Languages"
286
  msgstr "ソース言語を表示する"
287
 
288
- #: crayon_settings_wp.class.php:556
289
- #@ crayon-syntax-highlighter
290
  msgid "Enable Live Preview"
291
  msgstr "リアルタイムのプレビューを有効にする"
292
 
293
- #: crayon_settings_wp.class.php:561
 
294
  #, php-format
295
- #@ crayon-syntax-highlighter
296
  msgid "The selected theme with id %s could not be loaded"
297
  msgstr "ID %sの選択したテーマをロードできませんでした。"
298
 
299
- #: crayon_settings_wp.class.php:579
300
- #@ crayon-syntax-highlighter
301
  msgid "Custom Font Size"
302
  msgstr "フォントサイズ指定"
303
 
304
- #: crayon_settings_wp.class.php:584
 
305
  #, php-format
306
- #@ crayon-syntax-highlighter
307
  msgid "The selected font with id %s could not be loaded"
308
  msgstr "ID %s の選択されたフォントをロードできませんでした。"
309
 
310
- #: crayon_settings_wp.class.php:591
311
- #@ crayon-syntax-highlighter
312
  msgid "Enable plain code view and display"
313
  msgstr "単純なコードビューを有効にする"
314
 
315
- #: crayon_settings_wp.class.php:596
316
- #@ crayon-syntax-highlighter
317
  msgid "Enable code copy/paste"
318
  msgstr "コードのコピー/貼り付けを有効にする"
319
 
320
- #: crayon_settings_wp.class.php:598
321
- #@ crayon-syntax-highlighter
322
  msgid "Enable opening code in a window"
323
  msgstr "新しいウインドウでコードを開くを有効にする"
324
 
325
- #: crayon_settings_wp.class.php:600
326
- #@ crayon-syntax-highlighter
327
  msgid "Tab size in spaces"
328
  msgstr "tab挿入の空白代替え数(単純コードビュー)"
329
 
330
- #: crayon_settings_wp.class.php:602
331
- #@ crayon-syntax-highlighter
332
  msgid "Remove whitespace surrounding the shortcode content"
333
  msgstr "ショートコードの内容を囲む空白の部分を削除します"
334
 
335
- #: crayon_settings_wp.class.php:618
336
- #@ crayon-syntax-highlighter
337
  msgid "When loading local files and a relative path is given for the URL, use the absolute path"
338
  msgstr "ローカルファイルのロード時と相対パスがURLに指定されている場合、絶対パスを使用します。"
339
 
340
- #: crayon_settings_wp.class.php:625
341
- #@ crayon-syntax-highlighter
342
  msgid "Clear the cache used to store remote code requests"
343
  msgstr "リモートコードリクエストで使用する為保存したキャッシュをクリアする"
344
 
345
- #: crayon_settings_wp.class.php:627
346
- #@ crayon-syntax-highlighter
347
  msgid "Clear Now"
348
  msgstr "今すぐクリア"
349
 
350
- #: crayon_settings_wp.class.php:628
351
- #@ crayon-syntax-highlighter
352
- msgid "Attempt to load Crayon's CSS and JavaScript only when needed"
353
- msgstr "必要な時だけCrayonのCSSとJavaScriptを読み込むように試みる"
354
-
355
- #: crayon_settings_wp.class.php:632
356
- #@ crayon-syntax-highlighter
357
  msgid "Disable mouse gestures for touchscreen devices (eg. MouseOver)"
358
  msgstr "タッチスクリーンデバイスに対してマウスジェスチャー(例:マウスオーバー)を無効にする"
359
 
360
- #: crayon_settings_wp.class.php:633
361
- #@ crayon-syntax-highlighter
362
  msgid "Disable animations"
363
  msgstr "アニメーションを無効にする"
364
 
365
- #: crayon_settings_wp.class.php:634
366
- #@ crayon-syntax-highlighter
367
  msgid "Disable runtime stats"
368
  msgstr "プログラム実行時の統計を無効にする"
369
 
370
- #: crayon_settings_wp.class.php:641
371
- #@ crayon-syntax-highlighter
372
  msgid "Log errors for individual Crayons"
373
  msgstr "個々設置(Crayon)のエラーを記録"
374
 
375
- #: crayon_settings_wp.class.php:642
376
- #@ crayon-syntax-highlighter
377
  msgid "Log system-wide errors"
378
  msgstr "システム全体のエラーを記録"
379
 
380
- #: crayon_settings_wp.class.php:643
381
- #@ crayon-syntax-highlighter
382
  msgid "Display custom message for errors"
383
  msgstr "カスタムエラーメッセージを表示する"
384
 
385
- #: crayon_settings_wp.class.php:655
386
- #@ crayon-syntax-highlighter
387
  msgid "Show Log"
388
  msgstr "ログを見る"
389
 
390
- #: crayon_settings_wp.class.php:657
391
- #@ crayon-syntax-highlighter
392
  msgid "Clear Log"
393
  msgstr "ログをクリア"
394
 
395
- #: crayon_settings_wp.class.php:658
396
- #@ crayon-syntax-highlighter
397
  msgid "Email Admin"
398
  msgstr "管理者にEメールを送信"
399
 
400
- #: crayon_settings_wp.class.php:660
401
- #@ crayon-syntax-highlighter
402
  msgid "Email Developer"
403
  msgstr "開発者にEメールを送信"
404
 
405
- #: crayon_settings_wp.class.php:676
406
- #@ crayon-syntax-highlighter
407
  msgid "Version"
408
  msgstr "バージョン"
409
 
410
- #: crayon_settings_wp.class.php:678
411
- #@ crayon-syntax-highlighter
412
  msgid "Developer"
413
  msgstr "開発者"
414
 
415
- #: crayon_settings_wp.class.php:701
416
- #@ crayon-syntax-highlighter
417
  msgid "The result of innumerable hours of hard work over many months. It's an ongoing project, keep me motivated!"
418
  msgstr "何カ月もにわたって数え切れないほどのハードワークの時間を費やすプロジェクトです、私にモチベーションを維持させて下さい!"
419
 
420
- #: crayon_settings_wp.class.php:553
 
421
  #, php-format
422
- #@ crayon-syntax-highlighter
423
  msgid "Change the %1$sfallback language%2$s to change the sample code. Lines 5-7 are marked."
424
  msgstr "サンプルコードを変更するには、%1$sfallback language(代替え言語)%2$sを変更て下さい。5行目から7行目はマークされます。"
425
 
426
- #: crayon_settings_wp.class.php:508
427
- #, php-format
428
- #@ crayon-syntax-highlighter
429
- msgid "%d language has been detected."
430
- msgid_plural "%d languages have been detected."
431
- msgstr[0] "%dのソース言語が検出されてます。"
432
- msgstr[1] "%dのソース言語が検出されてます。"
433
 
434
- #: crayon_settings_wp.class.php:612
435
- #@ crayon-syntax-highlighter
436
- msgid "Capture &lt;pre&gt; tags as Crayons"
437
- msgstr "Crayonsとして&lt;pre&gt;タグをキャプチャ"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
438
 
439
- #: crayon_settings_wp.class.php:621
440
- #@ crayon-syntax-highlighter
 
 
 
 
 
441
  msgid "Followed by your relative URL."
442
  msgstr "相対URLが続きます。"
443
 
444
- #: crayon_settings_wp.class.php:662
445
- #@ crayon-syntax-highlighter
446
  msgid "The log is currently empty."
447
  msgstr "ログは現在空です。"
448
 
449
- #: crayon_settings_wp.class.php:664
450
- #@ crayon-syntax-highlighter
451
  msgid "The log file exists and is writable."
452
  msgstr "ログファイルは存在し、書き込み可能です。"
453
 
454
- #: crayon_settings_wp.class.php:664
455
- #@ crayon-syntax-highlighter
456
  msgid "The log file exists and is not writable."
457
  msgstr "ログファイルは存在するが、書き込み可能ではありません。"
458
 
459
- #: crayon_settings_wp.class.php:666
460
- #@ crayon-syntax-highlighter
461
  msgid "The log file does not exist and is not writable."
462
  msgstr "ログファイルが存在しないので書き込むことが出来ません。"
463
 
464
- #: crayon_settings_wp.class.php:558
465
- #: crayon_settings_wp.class.php:587
466
- #: crayon_settings_wp.class.php:603
467
- #: crayon_settings_wp.class.php:608
468
- #: crayon_settings_wp.class.php:609
469
- #: crayon_settings_wp.class.php:610
470
- #: crayon_settings_wp.class.php:611
471
- #: crayon_settings_wp.class.php:612
472
- #: crayon_settings_wp.class.php:613
473
- #: crayon_settings_wp.class.php:628
474
- #: crayon_settings_wp.class.php:629
475
- #@ crayon-syntax-highlighter
476
- msgid "Learn More"
477
- msgstr "詳細はこちら"
478
 
479
- #: crayon_settings_wp.class.php:604
480
- #@ crayon-syntax-highlighter
 
 
 
 
 
481
  msgid "Show Mixed Language Icon (+)"
482
  msgstr "混合言語のアイコンを(+)を表示"
483
 
484
- #: crayon_settings_wp.class.php:603
485
- #@ crayon-syntax-highlighter
486
  msgid "Allow Mixed Language Highlighting with delimiters and tags."
487
  msgstr "区切り文字とタグが混合言語の強調表示を許可する。"
488
 
489
- #: crayon_settings_wp.class.php:608
490
- #@ crayon-syntax-highlighter
491
  msgid "Capture Mini Tags like [php][/php] as Crayons."
492
  msgstr "Crayonsとして[php][/php]のようなミニタグをキャプチャします。"
493
 
494
- #: crayon_settings_wp.class.php:613
495
- #@ crayon-syntax-highlighter
496
  msgid "Enable [plain][/plain] tag."
497
  msgstr "[plain][/plain]タグを有効にします。"
498
 
499
- #: crayon_settings.class.php:174
500
- #@ crayon-syntax-highlighter
501
  msgid "Disable Mouse Events"
502
  msgstr "マウスイベントを無効にする"
503
 
504
- #: crayon_settings_wp.class.php:594
505
- #@ crayon-syntax-highlighter
506
  msgid "Enable plain code toggling"
507
  msgstr "単純なコードの切り替えを有効にする"
508
 
509
- #: crayon_settings_wp.class.php:595
510
- #@ crayon-syntax-highlighter
511
  msgid "Show the plain code by default"
512
  msgstr "デフォルトでプレインコードを表示する"
513
 
 
514
  #. translators: plugin header field 'Name'
515
  #: crayon_wp.class.php:0
516
- #@ crayon-syntax-highlighter
517
  msgid "Crayon Syntax Highlighter"
518
- msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
519
 
 
520
  #. translators: plugin header field 'PluginURI'
521
  #: crayon_wp.class.php:0
522
- #@ crayon-syntax-highlighter
523
  msgid "http://ak.net84.net/projects/crayon-syntax-highlighter"
524
- msgstr ""
525
 
 
526
  #. translators: plugin header field 'Description'
527
  #: crayon_wp.class.php:0
528
- #@ crayon-syntax-highlighter
529
  msgid "Supports multiple languages, themes, highlighting from a URL, local file or post text."
530
  msgstr "URL、ローカルファイルまたはポストのテキストからハイライト複数の言語、テーマを、サポートしています。"
531
 
532
- #. translators: plugin header field 'Author'
533
- #: crayon_wp.class.php:0
534
- #@ crayon-syntax-highlighter
535
- msgid "Aram Kocharyan"
536
- msgstr ""
537
-
538
- #. translators: plugin header field 'AuthorURI'
539
- #: crayon_wp.class.php:0
540
- #@ crayon-syntax-highlighter
541
- msgid "http://ak.net84.net/"
542
- msgstr ""
543
-
544
- #: crayon_settings_wp.class.php:717
545
- #@ crayon-syntax-highlighter
546
  msgid "Donate"
547
  msgstr "寄付する"
548
 
549
- #: crayon_settings_wp.class.php:219
550
- #@ crayon-syntax-highlighter
551
  msgid "General"
552
  msgstr "一般設定"
553
 
554
- #: crayon_settings_wp.class.php:220
555
- #@ crayon-syntax-highlighter
556
  msgid "Theme"
557
  msgstr "テーマ"
558
 
559
- #: crayon_settings_wp.class.php:221
560
- #@ crayon-syntax-highlighter
561
  msgid "Font"
562
  msgstr "フォント"
563
 
564
- #: crayon_settings_wp.class.php:222
565
- #@ crayon-syntax-highlighter
566
  msgid "Metrics"
567
  msgstr "サイズ"
568
 
569
- #: crayon_settings_wp.class.php:223
570
- #@ crayon-syntax-highlighter
571
  msgid "Toolbar"
572
  msgstr "ツールバー"
573
 
574
- #: crayon_settings_wp.class.php:224
575
- #@ crayon-syntax-highlighter
576
  msgid "Lines"
577
  msgstr "行"
578
 
579
- #: crayon_settings_wp.class.php:225
580
- #@ crayon-syntax-highlighter
 
581
  msgid "Code"
582
  msgstr "コード"
583
 
584
- #: crayon_settings_wp.class.php:227
585
- #@ crayon-syntax-highlighter
586
  msgid "Languages"
587
  msgstr "プログラム言語"
588
 
589
- #: crayon_settings_wp.class.php:228
590
- #@ crayon-syntax-highlighter
591
  msgid "Files"
592
  msgstr "読込ファイル"
593
 
594
- #: crayon_settings_wp.class.php:229
595
- #@ crayon-syntax-highlighter
596
  msgid "Misc"
597
  msgstr "その他"
598
 
599
- #: crayon_settings_wp.class.php:232
600
- #@ crayon-syntax-highlighter
601
  msgid "Debug"
602
  msgstr "デバッグ"
603
 
604
- #: crayon_settings_wp.class.php:233
605
- #@ crayon-syntax-highlighter
606
  msgid "Errors"
607
  msgstr "エラー"
608
 
609
- #: crayon_settings_wp.class.php:234
610
- #@ crayon-syntax-highlighter
611
  msgid "Log"
612
  msgstr "ログファイル"
613
 
614
- #: crayon_settings_wp.class.php:237
615
- #@ crayon-syntax-highlighter
616
  msgid "About"
617
  msgstr "Crayonについて"
618
 
619
- #: crayon_settings_wp.class.php:558
620
- #@ crayon-syntax-highlighter
621
  msgid "Enqueue themes in the header (more efficient)."
622
  msgstr "ヘッダー内のエンキューテーマ(より効率的)"
623
 
624
- #: crayon_settings_wp.class.php:587
625
- #@ crayon-syntax-highlighter
626
  msgid "Enqueue fonts in the header (more efficient)."
627
  msgstr "ヘッダー内のエンキューフォント(より効率的)"
628
 
629
- #: crayon_settings_wp.class.php:549
630
- #@ crayon-syntax-highlighter
631
  msgid "Loading..."
632
  msgstr "ロード中..."
633
 
634
- #: crayon_settings_wp.class.php:549
635
- #: crayon_settings_wp.class.php:715
 
636
  #: util/theme-editor/editor.php:14
637
- #@ crayon-syntax-highlighter
638
  msgid "Theme Editor"
639
  msgstr "テーマエディタ"
640
 
641
- #: crayon_settings_wp.class.php:599
642
- #@ crayon-syntax-highlighter
643
  msgid "Always display scrollbars"
644
  msgstr "常にスクロールバーを表示する"
645
 
646
- #: crayon_settings_wp.class.php:629
647
- #@ crayon-syntax-highlighter
648
  msgid "Disable enqueuing for page templates that may contain The Loop."
649
  msgstr "ループを含む可能性のあるページテンプレートのエンキューを無効にします。"
650
 
651
- #: crayon_settings_wp.class.php:631
652
- #@ crayon-syntax-highlighter
653
  msgid "Load Crayons only from the main Wordpress query"
654
  msgstr "唯一の主要なWordpressのクエリからロードクレヨン"
655
 
656
- #: crayon_settings_wp.class.php:679
657
- #@ crayon-syntax-highlighter
658
- msgid "Translators"
659
- msgstr "翻訳者"
660
-
661
  #: util/theme-editor/editor.php:16
662
- #@ crayon-syntax-highlighter
663
  msgid "Back To Settings"
664
  msgstr "設定を戻す"
665
 
666
- #: crayon_formatter.class.php:270
667
- #@ crayon-syntax-highlighter
 
 
 
 
 
668
  msgid "Toggle Plain Code"
669
  msgstr "ハイライト表示ON/OFF"
670
 
671
- #: crayon_formatter.class.php:272
672
- #@ crayon-syntax-highlighter
673
  msgid "Copy Plain Code"
674
  msgstr "コードをコピー"
675
 
676
- #: crayon_formatter.class.php:278
677
- #@ crayon-syntax-highlighter
678
  msgid "Open Code In New Window"
679
  msgstr "新しいウィンドウでコードを開く"
680
 
681
- #: crayon_formatter.class.php:281
682
- #@ crayon-syntax-highlighter
683
  msgid "Toggle Line Numbers"
684
  msgstr "行番号ON/OFF"
685
 
686
- #: crayon_formatter.class.php:288
687
- #@ crayon-syntax-highlighter
688
  msgid "Contains Mixed Languages"
689
  msgstr "言語が混在しています"
690
 
691
- #: crayon_settings_wp.class.php:655
692
- #@ crayon-syntax-highlighter
693
  msgid "Hide Log"
694
  msgstr "ログを隠す"
695
 
696
- #: crayon_formatter.class.php:272
 
697
  #, php-format
698
- #@ crayon-syntax-highlighter
699
  msgid "Press %s to Copy, %s to Paste"
700
  msgstr "貼り付けにコピー、%sに%sを押して、"
701
 
702
- #: crayon_settings_wp.class.php:226
703
- #@ crayon-syntax-highlighter
704
  msgid "Tags"
705
  msgstr "タグ"
706
 
707
- #: crayon_settings_wp.class.php:468
708
- #@ crayon-syntax-highlighter
709
  msgid "Inline Margin"
710
  msgstr "インラインマージン"
711
 
712
- #: crayon_settings_wp.class.php:609
713
- #@ crayon-syntax-highlighter
714
  msgid "Capture Inline Tags like {php}{/php} inside sentences."
715
  msgstr "{php}{/php}文の内部でインラインタグをキャプチャします。"
716
 
717
- #: crayon_settings_wp.class.php:611
718
- #@ crayon-syntax-highlighter
719
  msgid "Capture `backquotes` as &lt;code&gt;"
720
  msgstr "の&lt;code&gt;として `バッククォート`をキャプチャする"
721
 
722
- #: crayon_settings_wp.class.php:630
723
- #@ crayon-syntax-highlighter
724
  msgid "Allow Crayons inside comments"
725
  msgstr "コメント内のクレヨンを許可する"
726
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
727
  #. translators: plugin header field 'Version'
728
  #: crayon_wp.class.php:0
729
- #@ crayon-syntax-highlighter
730
- msgid "1.8.2"
731
- msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
732
 
733
- #: crayon_settings_wp.class.php:610
734
- #@ crayon-syntax-highlighter
735
- msgid "Wrap Inline Tags"
736
- msgstr "ラップインラインタグ"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
737
 
2
  msgstr ""
3
  "Project-Id-Version: Crayon Syntax Highlighter v1.6.3\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2011-12-10 17:11+1000\n"
6
+ "PO-Revision-Date: 2012-04-01 11:03+0900\n"
7
+ "Last-Translator: Mitsumi Kudo <kudo@3samurai.com>\n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
13
  "X-Poedit-Language: Japanese\n"
14
  "X-Poedit-Country: JAPAN\n"
15
  "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
17
  "X-Poedit-Basepath: ../\n"
18
+ "X-Textdomain-Support: yes\n"
19
  "X-Poedit-SearchPath-0: .\n"
 
20
 
21
+ # @ crayon-syntax-highlighter
22
+ #: crayon_settings.class.php:150
23
+ #: crayon_settings.class.php:154
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  msgid "Max"
25
  msgstr "最大"
26
 
27
+ # @ crayon-syntax-highlighter
28
+ #: crayon_settings.class.php:150
29
+ #: crayon_settings.class.php:154
30
  msgid "Min"
31
  msgstr "最小"
32
 
33
+ # @ crayon-syntax-highlighter
34
+ #: crayon_settings.class.php:150
35
+ #: crayon_settings.class.php:154
36
  msgid "Static"
37
  msgstr "固定"
38
 
39
+ # @ crayon-syntax-highlighter
40
+ #: crayon_settings.class.php:152
41
+ #: crayon_settings.class.php:156
42
+ #: crayon_settings_wp.class.php:540
43
+ #: crayon_settings_wp.class.php:549
44
+ #: crayon_settings_wp.class.php:648
45
  msgid "Pixels"
46
  msgstr "ピクセル"
47
 
48
+ # @ crayon-syntax-highlighter
49
+ #: crayon_settings.class.php:152
50
+ #: crayon_settings.class.php:156
51
  msgid "Percent"
52
  msgstr "パーセント"
53
 
54
+ # @ crayon-syntax-highlighter
55
+ #: crayon_settings.class.php:165
56
  msgid "None"
57
  msgstr "なし"
58
 
59
+ # @ crayon-syntax-highlighter
60
+ #: crayon_settings.class.php:165
61
  msgid "Left"
62
  msgstr "左"
63
 
64
+ # @ crayon-syntax-highlighter
65
+ #: crayon_settings.class.php:165
66
  msgid "Center"
67
  msgstr "中央"
68
 
69
+ # @ crayon-syntax-highlighter
70
+ #: crayon_settings.class.php:165
71
  msgid "Right"
72
  msgstr "右"
73
 
74
+ # @ crayon-syntax-highlighter
75
+ #: crayon_settings.class.php:167
76
+ #: crayon_settings.class.php:189
77
  msgid "On MouseOver"
78
  msgstr "マウスオーバー時"
79
 
80
+ # @ crayon-syntax-highlighter
81
+ #: crayon_settings.class.php:167
82
+ #: crayon_settings.class.php:173
83
  msgid "Always"
84
  msgstr "常に表示"
85
 
86
+ # @ crayon-syntax-highlighter
87
+ #: crayon_settings.class.php:167
88
+ #: crayon_settings.class.php:173
89
  msgid "Never"
90
  msgstr "表示しない"
91
 
92
+ # @ crayon-syntax-highlighter
93
+ #: crayon_settings.class.php:173
94
  msgid "When Found"
95
  msgstr "言語が判明した場合"
96
 
97
+ # @ crayon-syntax-highlighter
98
+ #: crayon_settings.class.php:189
99
  msgid "On Double Click"
100
  msgstr "ダブルクリック時"
101
 
102
+ # @ crayon-syntax-highlighter
103
+ #: crayon_settings.class.php:189
104
  msgid "On Single Click"
105
  msgstr "シングルクリック時"
106
 
107
+ # @ crayon-syntax-highlighter
108
+ #: crayon_settings.class.php:197
109
  msgid "An error has occurred. Please try again later."
110
  msgstr "エラーが発生しました。後でもう一度やり直してください。"
111
 
112
+ # @ crayon-syntax-highlighter
113
+ #: crayon_settings_wp.class.php:44
114
+ #: crayon_settings_wp.class.php:118
115
+ #: crayon_settings_wp.class.php:800
116
+ #: util/tag-editor/crayon_te_content.php:114
117
  msgid "Settings"
118
  msgstr "設定"
119
 
120
+ # @ crayon-syntax-highlighter
121
+ #: crayon_settings_wp.class.php:99
122
  msgid "You do not have sufficient permissions to access this page."
123
  msgstr "このページにアクセスするための十分な権限(パーミッション)がありません。"
124
 
125
+ # @ crayon-syntax-highlighter
126
+ #: crayon_settings_wp.class.php:130
127
  msgid "Save Changes"
128
  msgstr "変更を保存"
129
 
130
+ # @ crayon-syntax-highlighter
131
+ #: crayon_settings_wp.class.php:136
132
  msgid "Reset Settings"
133
  msgstr "リセット"
134
 
135
+ # @ crayon-syntax-highlighter
136
+ #: crayon_settings_wp.class.php:517
 
 
 
 
 
137
  msgid "Height"
138
  msgstr "高さ"
139
 
140
+ # @ crayon-syntax-highlighter
141
+ #: crayon_settings_wp.class.php:523
142
  msgid "Width"
143
  msgstr "横幅"
144
 
145
+ # @ crayon-syntax-highlighter
146
+ #: crayon_settings_wp.class.php:529
147
  msgid "Top Margin"
148
  msgstr "上余白"
149
 
150
+ # @ crayon-syntax-highlighter
151
+ #: crayon_settings_wp.class.php:530
152
  msgid "Bottom Margin"
153
  msgstr "下余白"
154
 
155
+ # @ crayon-syntax-highlighter
156
+ #: crayon_settings_wp.class.php:531
157
+ #: crayon_settings_wp.class.php:536
158
  msgid "Left Margin"
159
  msgstr "左余白"
160
 
161
+ # @ crayon-syntax-highlighter
162
+ #: crayon_settings_wp.class.php:532
163
+ #: crayon_settings_wp.class.php:536
164
  msgid "Right Margin"
165
  msgstr "右余白"
166
 
167
+ # @ crayon-syntax-highlighter
168
+ #: crayon_settings_wp.class.php:542
169
  msgid "Horizontal Alignment"
170
  msgstr "回り込み"
171
 
172
+ # @ crayon-syntax-highlighter
173
+ #: crayon_settings_wp.class.php:545
174
  msgid "Allow floating elements to surround Crayon"
175
  msgstr "周りのfloat要素の回り込みを許可"
176
 
177
+ # @ crayon-syntax-highlighter
178
+ #: crayon_settings_wp.class.php:555
179
  msgid "Display the Toolbar"
180
  msgstr "ツールバーの表示"
181
 
182
+ # @ crayon-syntax-highlighter
183
+ #: crayon_settings_wp.class.php:558
184
  msgid "Overlay the toolbar on code rather than push it down when possible"
185
  msgstr "コードを押し下げるのではなく、コード上に重ねて表示"
186
 
187
+ # @ crayon-syntax-highlighter
188
+ #: crayon_settings_wp.class.php:559
189
  msgid "Toggle the toolbar on single click when it is overlayed"
190
  msgstr "重ねて表示の場合にシングルクリックでツールバーを切り替える"
191
 
192
+ # @ crayon-syntax-highlighter
193
+ #: crayon_settings_wp.class.php:560
194
  msgid "Delay hiding the toolbar on MouseOut"
195
  msgstr "マウスアウト時にツールバーを隠すのを遅らせる"
196
 
197
+ # @ crayon-syntax-highlighter
198
+ #: crayon_settings_wp.class.php:562
199
  msgid "Display the title when provided"
200
  msgstr "タイトルがある時は表示"
201
 
202
+ # @ crayon-syntax-highlighter
203
+ #: crayon_settings_wp.class.php:563
204
  msgid "Display the language"
205
  msgstr "ソース言語を表示"
206
 
207
+ # @ crayon-syntax-highlighter
208
+ #: crayon_settings_wp.class.php:570
209
  msgid "Display striped code lines"
210
  msgstr "コード行を縞模様で表示する"
211
 
212
+ # @ crayon-syntax-highlighter
213
+ #: crayon_settings_wp.class.php:571
214
  msgid "Enable line marking for important lines"
215
  msgstr "重要な行にマーキングを有効にする"
216
 
217
+ # @ crayon-syntax-highlighter
218
+ #: crayon_settings_wp.class.php:572
219
  msgid "Display line numbers by default"
220
  msgstr "デフォルトで行番号を表示"
221
 
222
+ # @ crayon-syntax-highlighter
223
+ #: crayon_settings_wp.class.php:573
224
  msgid "Enable line number toggling"
225
  msgstr "行番号の切り替えを有効にする"
226
 
227
+ # @ crayon-syntax-highlighter
228
+ #: crayon_settings_wp.class.php:574
229
  msgid "Start line numbers from"
230
  msgstr "行番号の開始数字"
231
 
232
+ # @ crayon-syntax-highlighter
233
+ #: crayon_settings_wp.class.php:584
234
  msgid "When no language is provided, use the fallback"
235
  msgstr "ソース言語が提供されていない場合は、代替えを使用します。"
236
 
237
+ # @ crayon-syntax-highlighter
238
+ #: crayon_settings_wp.class.php:591
239
  msgid "Parsing was successful"
240
  msgstr "解析が成功しました。"
241
 
242
+ # @ crayon-syntax-highlighter
243
+ #: crayon_settings_wp.class.php:591
244
  msgid "Parsing was unsuccessful"
245
  msgstr "解析に失敗しました。"
246
 
247
+ # @ crayon-syntax-highlighter
248
+ #: crayon_settings_wp.class.php:597
249
  #, php-format
 
250
  msgid "The selected language with id %s could not be loaded"
251
  msgstr "ID %s の選択したソース言語をロードできませんでした。"
252
 
253
+ # @ crayon-syntax-highlighter
254
+ #: crayon_settings_wp.class.php:601
255
  msgid "Show Languages"
256
  msgstr "ソース言語を表示する"
257
 
258
+ # @ crayon-syntax-highlighter
259
+ #: crayon_settings_wp.class.php:629
260
  msgid "Enable Live Preview"
261
  msgstr "リアルタイムのプレビューを有効にする"
262
 
263
+ # @ crayon-syntax-highlighter
264
+ #: crayon_settings_wp.class.php:634
265
  #, php-format
 
266
  msgid "The selected theme with id %s could not be loaded"
267
  msgstr "ID %sの選択したテーマをロードできませんでした。"
268
 
269
+ # @ crayon-syntax-highlighter
270
+ #: crayon_settings_wp.class.php:646
271
  msgid "Custom Font Size"
272
  msgstr "フォントサイズ指定"
273
 
274
+ # @ crayon-syntax-highlighter
275
+ #: crayon_settings_wp.class.php:651
276
  #, php-format
 
277
  msgid "The selected font with id %s could not be loaded"
278
  msgstr "ID %s の選択されたフォントをロードできませんでした。"
279
 
280
+ # @ crayon-syntax-highlighter
281
+ #: crayon_settings_wp.class.php:662
282
  msgid "Enable plain code view and display"
283
  msgstr "単純なコードビューを有効にする"
284
 
285
+ # @ crayon-syntax-highlighter
286
+ #: crayon_settings_wp.class.php:667
287
  msgid "Enable code copy/paste"
288
  msgstr "コードのコピー/貼り付けを有効にする"
289
 
290
+ # @ crayon-syntax-highlighter
291
+ #: crayon_settings_wp.class.php:669
292
  msgid "Enable opening code in a window"
293
  msgstr "新しいウインドウでコードを開くを有効にする"
294
 
295
+ # @ crayon-syntax-highlighter
296
+ #: crayon_settings_wp.class.php:671
297
  msgid "Tab size in spaces"
298
  msgstr "tab挿入の空白代替え数(単純コードビュー)"
299
 
300
+ # @ crayon-syntax-highlighter
301
+ #: crayon_settings_wp.class.php:680
302
  msgid "Remove whitespace surrounding the shortcode content"
303
  msgstr "ショートコードの内容を囲む空白の部分を削除します"
304
 
305
+ # @ crayon-syntax-highlighter
306
+ #: crayon_settings_wp.class.php:699
307
  msgid "When loading local files and a relative path is given for the URL, use the absolute path"
308
  msgstr "ローカルファイルのロード時と相対パスがURLに指定されている場合、絶対パスを使用します。"
309
 
310
+ # @ crayon-syntax-highlighter
311
+ #: crayon_settings_wp.class.php:712
312
  msgid "Clear the cache used to store remote code requests"
313
  msgstr "リモートコードリクエストで使用する為保存したキャッシュをクリアする"
314
 
315
+ # @ crayon-syntax-highlighter
316
+ #: crayon_settings_wp.class.php:714
317
  msgid "Clear Now"
318
  msgstr "今すぐクリア"
319
 
320
+ # @ crayon-syntax-highlighter
321
+ #: crayon_settings_wp.class.php:719
 
 
 
 
 
322
  msgid "Disable mouse gestures for touchscreen devices (eg. MouseOver)"
323
  msgstr "タッチスクリーンデバイスに対してマウスジェスチャー(例:マウスオーバー)を無効にする"
324
 
325
+ # @ crayon-syntax-highlighter
326
+ #: crayon_settings_wp.class.php:720
327
  msgid "Disable animations"
328
  msgstr "アニメーションを無効にする"
329
 
330
+ # @ crayon-syntax-highlighter
331
+ #: crayon_settings_wp.class.php:721
332
  msgid "Disable runtime stats"
333
  msgstr "プログラム実行時の統計を無効にする"
334
 
335
+ # @ crayon-syntax-highlighter
336
+ #: crayon_settings_wp.class.php:728
337
  msgid "Log errors for individual Crayons"
338
  msgstr "個々設置(Crayon)のエラーを記録"
339
 
340
+ # @ crayon-syntax-highlighter
341
+ #: crayon_settings_wp.class.php:729
342
  msgid "Log system-wide errors"
343
  msgstr "システム全体のエラーを記録"
344
 
345
+ # @ crayon-syntax-highlighter
346
+ #: crayon_settings_wp.class.php:730
347
  msgid "Display custom message for errors"
348
  msgstr "カスタムエラーメッセージを表示する"
349
 
350
+ # @ crayon-syntax-highlighter
351
+ #: crayon_settings_wp.class.php:742
352
  msgid "Show Log"
353
  msgstr "ログを見る"
354
 
355
+ # @ crayon-syntax-highlighter
356
+ #: crayon_settings_wp.class.php:744
357
  msgid "Clear Log"
358
  msgstr "ログをクリア"
359
 
360
+ # @ crayon-syntax-highlighter
361
+ #: crayon_settings_wp.class.php:745
362
  msgid "Email Admin"
363
  msgstr "管理者にEメールを送信"
364
 
365
+ # @ crayon-syntax-highlighter
366
+ #: crayon_settings_wp.class.php:747
367
  msgid "Email Developer"
368
  msgstr "開発者にEメールを送信"
369
 
370
+ # @ crayon-syntax-highlighter
371
+ #: crayon_settings_wp.class.php:763
372
  msgid "Version"
373
  msgstr "バージョン"
374
 
375
+ # @ crayon-syntax-highlighter
376
+ #: crayon_settings_wp.class.php:765
377
  msgid "Developer"
378
  msgstr "開発者"
379
 
380
+ # @ crayon-syntax-highlighter
381
+ #: crayon_settings_wp.class.php:788
382
  msgid "The result of innumerable hours of hard work over many months. It's an ongoing project, keep me motivated!"
383
  msgstr "何カ月もにわたって数え切れないほどのハードワークの時間を費やすプロジェクトです、私にモチベーションを維持させて下さい!"
384
 
385
+ # @ crayon-syntax-highlighter
386
+ #: crayon_settings_wp.class.php:625
387
  #, php-format
 
388
  msgid "Change the %1$sfallback language%2$s to change the sample code. Lines 5-7 are marked."
389
  msgstr "サンプルコードを変更するには、%1$sfallback language(代替え言語)%2$sを変更て下さい。5行目から7行目はマークされます。"
390
 
391
+ # @ crayon-syntax-highlighter
392
+ #: crayon_settings.class.php:138
393
+ msgid "Hourly"
394
+ msgstr "毎時間"
 
 
 
395
 
396
+ # @ crayon-syntax-highlighter
397
+ #: crayon_settings.class.php:138
398
+ msgid "Daily"
399
+ msgstr "毎日"
400
+
401
+ # @ crayon-syntax-highlighter
402
+ #: crayon_settings.class.php:139
403
+ msgid "Weekly"
404
+ msgstr "毎週"
405
+
406
+ # @ crayon-syntax-highlighter
407
+ #: crayon_settings.class.php:139
408
+ msgid "Monthly"
409
+ msgstr "毎月"
410
+
411
+ # @ crayon-syntax-highlighter
412
+ #: crayon_settings.class.php:140
413
+ msgid "Immediately"
414
+ msgstr "直後に"
415
+
416
+ # @ crayon-syntax-highlighter
417
+ #: crayon_settings_wp.class.php:502
418
+ msgid "Crayon Help"
419
+ msgstr "Crayon ヘルプ"
420
 
421
+ # @ crayon-syntax-highlighter
422
+ #: crayon_settings_wp.class.php:715
423
+ msgid "Attempt to load Crayon's CSS and JavaScript only when needed"
424
+ msgstr "必要な時だけCrayonのCSSとJavaScriptを読み込むように試みる"
425
+
426
+ # @ crayon-syntax-highlighter
427
+ #: crayon_settings_wp.class.php:702
428
  msgid "Followed by your relative URL."
429
  msgstr "相対URLが続きます。"
430
 
431
+ # @ crayon-syntax-highlighter
432
+ #: crayon_settings_wp.class.php:749
433
  msgid "The log is currently empty."
434
  msgstr "ログは現在空です。"
435
 
436
+ # @ crayon-syntax-highlighter
437
+ #: crayon_settings_wp.class.php:751
438
  msgid "The log file exists and is writable."
439
  msgstr "ログファイルは存在し、書き込み可能です。"
440
 
441
+ # @ crayon-syntax-highlighter
442
+ #: crayon_settings_wp.class.php:751
443
  msgid "The log file exists and is not writable."
444
  msgstr "ログファイルは存在するが、書き込み可能ではありません。"
445
 
446
+ # @ crayon-syntax-highlighter
447
+ #: crayon_settings_wp.class.php:753
448
  msgid "The log file does not exist and is not writable."
449
  msgstr "ログファイルが存在しないので書き込むことが出来ません。"
450
 
451
+ # @ crayon-syntax-highlighter
452
+ #: crayon_settings_wp.class.php:590
453
+ #, php-format
454
+ msgid "%d language has been detected."
455
+ msgid_plural "%d languages have been detected."
456
+ msgstr[0] "%dのソース言語が検出されてます。"
457
+ msgstr[1] "%dのソース言語が検出されてます。"
 
 
 
 
 
 
 
458
 
459
+ # @ crayon-syntax-highlighter
460
+ #: crayon_settings_wp.class.php:693
461
+ msgid "Capture &lt;pre&gt; tags as Crayons"
462
+ msgstr "Crayonsとして&lt;pre&gt;タグをキャプチャ"
463
+
464
+ # @ crayon-syntax-highlighter
465
+ #: crayon_settings_wp.class.php:684
466
  msgid "Show Mixed Language Icon (+)"
467
  msgstr "混合言語のアイコンを(+)を表示"
468
 
469
+ # @ crayon-syntax-highlighter
470
+ #: crayon_settings_wp.class.php:682
471
  msgid "Allow Mixed Language Highlighting with delimiters and tags."
472
  msgstr "区切り文字とタグが混合言語の強調表示を許可する。"
473
 
474
+ # @ crayon-syntax-highlighter
475
+ #: crayon_settings_wp.class.php:689
476
  msgid "Capture Mini Tags like [php][/php] as Crayons."
477
  msgstr "Crayonsとして[php][/php]のようなミニタグをキャプチャします。"
478
 
479
+ # @ crayon-syntax-highlighter
480
+ #: crayon_settings_wp.class.php:694
481
  msgid "Enable [plain][/plain] tag."
482
  msgstr "[plain][/plain]タグを有効にします。"
483
 
484
+ # @ crayon-syntax-highlighter
485
+ #: crayon_settings.class.php:189
486
  msgid "Disable Mouse Events"
487
  msgstr "マウスイベントを無効にする"
488
 
489
+ # @ crayon-syntax-highlighter
490
+ #: crayon_settings_wp.class.php:665
491
  msgid "Enable plain code toggling"
492
  msgstr "単純なコードの切り替えを有効にする"
493
 
494
+ # @ crayon-syntax-highlighter
495
+ #: crayon_settings_wp.class.php:666
496
  msgid "Show the plain code by default"
497
  msgstr "デフォルトでプレインコードを表示する"
498
 
499
+ # @ crayon-syntax-highlighter
500
  #. translators: plugin header field 'Name'
501
  #: crayon_wp.class.php:0
 
502
  msgid "Crayon Syntax Highlighter"
503
+ msgstr "Crayon Syntax Highlighter"
504
+
505
+ # @ crayon-syntax-highlighter
506
+ #. translators: plugin header field 'AuthorURI'
507
+ #: crayon_wp.class.php:0
508
+ msgid "http://ak.net84.net/"
509
+ msgstr "http://ak.net84.net/"
510
+
511
+ # @ crayon-syntax-highlighter
512
+ #. translators: plugin header field 'Author'
513
+ #: crayon_wp.class.php:0
514
+ msgid "Aram Kocharyan"
515
+ msgstr "Aram Kocharyan"
516
 
517
+ # @ crayon-syntax-highlighter
518
  #. translators: plugin header field 'PluginURI'
519
  #: crayon_wp.class.php:0
 
520
  msgid "http://ak.net84.net/projects/crayon-syntax-highlighter"
521
+ msgstr "http://ak.net84.net/projects/crayon-syntax-highlighter"
522
 
523
+ # @ crayon-syntax-highlighter
524
  #. translators: plugin header field 'Description'
525
  #: crayon_wp.class.php:0
 
526
  msgid "Supports multiple languages, themes, highlighting from a URL, local file or post text."
527
  msgstr "URL、ローカルファイルまたはポストのテキストからハイライト複数の言語、テーマを、サポートしています。"
528
 
529
+ # @ crayon-syntax-highlighter
530
+ #: crayon_settings_wp.class.php:804
 
 
 
 
 
 
 
 
 
 
 
 
531
  msgid "Donate"
532
  msgstr "寄付する"
533
 
534
+ # @ crayon-syntax-highlighter
535
+ #: crayon_settings_wp.class.php:300
536
  msgid "General"
537
  msgstr "一般設定"
538
 
539
+ # @ crayon-syntax-highlighter
540
+ #: crayon_settings_wp.class.php:301
541
  msgid "Theme"
542
  msgstr "テーマ"
543
 
544
+ # @ crayon-syntax-highlighter
545
+ #: crayon_settings_wp.class.php:302
546
  msgid "Font"
547
  msgstr "フォント"
548
 
549
+ # @ crayon-syntax-highlighter
550
+ #: crayon_settings_wp.class.php:303
551
  msgid "Metrics"
552
  msgstr "サイズ"
553
 
554
+ # @ crayon-syntax-highlighter
555
+ #: crayon_settings_wp.class.php:304
556
  msgid "Toolbar"
557
  msgstr "ツールバー"
558
 
559
+ # @ crayon-syntax-highlighter
560
+ #: crayon_settings_wp.class.php:305
561
  msgid "Lines"
562
  msgstr "行"
563
 
564
+ # @ crayon-syntax-highlighter
565
+ #: crayon_settings_wp.class.php:306
566
+ #: util/tag-editor/crayon_te_content.php:87
567
  msgid "Code"
568
  msgstr "コード"
569
 
570
+ # @ crayon-syntax-highlighter
571
+ #: crayon_settings_wp.class.php:308
572
  msgid "Languages"
573
  msgstr "プログラム言語"
574
 
575
+ # @ crayon-syntax-highlighter
576
+ #: crayon_settings_wp.class.php:309
577
  msgid "Files"
578
  msgstr "読込ファイル"
579
 
580
+ # @ crayon-syntax-highlighter
581
+ #: crayon_settings_wp.class.php:311
582
  msgid "Misc"
583
  msgstr "その他"
584
 
585
+ # @ crayon-syntax-highlighter
586
+ #: crayon_settings_wp.class.php:314
587
  msgid "Debug"
588
  msgstr "デバッグ"
589
 
590
+ # @ crayon-syntax-highlighter
591
+ #: crayon_settings_wp.class.php:315
592
  msgid "Errors"
593
  msgstr "エラー"
594
 
595
+ # @ crayon-syntax-highlighter
596
+ #: crayon_settings_wp.class.php:316
597
  msgid "Log"
598
  msgstr "ログファイル"
599
 
600
+ # @ crayon-syntax-highlighter
601
+ #: crayon_settings_wp.class.php:319
602
  msgid "About"
603
  msgstr "Crayonについて"
604
 
605
+ # @ crayon-syntax-highlighter
606
+ #: crayon_settings_wp.class.php:631
607
  msgid "Enqueue themes in the header (more efficient)."
608
  msgstr "ヘッダー内のエンキューテーマ(より効率的)"
609
 
610
+ # @ crayon-syntax-highlighter
611
+ #: crayon_settings_wp.class.php:657
612
  msgid "Enqueue fonts in the header (more efficient)."
613
  msgstr "ヘッダー内のエンキューフォント(より効率的)"
614
 
615
+ # @ crayon-syntax-highlighter
616
+ #: crayon_settings_wp.class.php:620
617
  msgid "Loading..."
618
  msgstr "ロード中..."
619
 
620
+ # @ crayon-syntax-highlighter
621
+ #: crayon_settings_wp.class.php:620
622
+ #: crayon_settings_wp.class.php:802
623
  #: util/theme-editor/editor.php:14
 
624
  msgid "Theme Editor"
625
  msgstr "テーマエディタ"
626
 
627
+ # @ crayon-syntax-highlighter
628
+ #: crayon_settings_wp.class.php:670
629
  msgid "Always display scrollbars"
630
  msgstr "常にスクロールバーを表示する"
631
 
632
+ # @ crayon-syntax-highlighter
633
+ #: crayon_settings_wp.class.php:716
634
  msgid "Disable enqueuing for page templates that may contain The Loop."
635
  msgstr "ループを含む可能性のあるページテンプレートのエンキューを無効にします。"
636
 
637
+ # @ crayon-syntax-highlighter
638
+ #: crayon_settings_wp.class.php:718
639
  msgid "Load Crayons only from the main Wordpress query"
640
  msgstr "唯一の主要なWordpressのクエリからロードクレヨン"
641
 
642
+ # @ crayon-syntax-highlighter
 
 
 
 
643
  #: util/theme-editor/editor.php:16
 
644
  msgid "Back To Settings"
645
  msgstr "設定を戻す"
646
 
647
+ # @ crayon-syntax-highlighter
648
+ #: crayon_settings_wp.class.php:766
649
+ msgid "Translators"
650
+ msgstr "翻訳者"
651
+
652
+ # @ crayon-syntax-highlighter
653
+ #: crayon_formatter.class.php:264
654
  msgid "Toggle Plain Code"
655
  msgstr "ハイライト表示ON/OFF"
656
 
657
+ # @ crayon-syntax-highlighter
658
+ #: crayon_formatter.class.php:266
659
  msgid "Copy Plain Code"
660
  msgstr "コードをコピー"
661
 
662
+ # @ crayon-syntax-highlighter
663
+ #: crayon_formatter.class.php:268
664
  msgid "Open Code In New Window"
665
  msgstr "新しいウィンドウでコードを開く"
666
 
667
+ # @ crayon-syntax-highlighter
668
+ #: crayon_formatter.class.php:271
669
  msgid "Toggle Line Numbers"
670
  msgstr "行番号ON/OFF"
671
 
672
+ # @ crayon-syntax-highlighter
673
+ #: crayon_formatter.class.php:277
674
  msgid "Contains Mixed Languages"
675
  msgstr "言語が混在しています"
676
 
677
+ # @ crayon-syntax-highlighter
678
+ #: crayon_settings_wp.class.php:742
679
  msgid "Hide Log"
680
  msgstr "ログを隠す"
681
 
682
+ # @ crayon-syntax-highlighter
683
+ #: crayon_formatter.class.php:266
684
  #, php-format
 
685
  msgid "Press %s to Copy, %s to Paste"
686
  msgstr "貼り付けにコピー、%sに%sを押して、"
687
 
688
+ # @ crayon-syntax-highlighter
689
+ #: crayon_settings_wp.class.php:307
690
  msgid "Tags"
691
  msgstr "タグ"
692
 
693
+ # @ crayon-syntax-highlighter
694
+ #: crayon_settings_wp.class.php:547
695
  msgid "Inline Margin"
696
  msgstr "インラインマージン"
697
 
698
+ # @ crayon-syntax-highlighter
699
+ #: crayon_settings_wp.class.php:690
700
  msgid "Capture Inline Tags like {php}{/php} inside sentences."
701
  msgstr "{php}{/php}文の内部でインラインタグをキャプチャします。"
702
 
703
+ # @ crayon-syntax-highlighter
704
+ #: crayon_settings_wp.class.php:692
705
  msgid "Capture `backquotes` as &lt;code&gt;"
706
  msgstr "の&lt;code&gt;として `バッククォート`をキャプチャする"
707
 
708
+ # @ crayon-syntax-highlighter
709
+ #: crayon_settings_wp.class.php:717
710
  msgid "Allow Crayons inside comments"
711
  msgstr "コメント内のクレヨンを許可する"
712
 
713
+ # @ crayon-syntax-highlighter
714
+ #: crayon_settings_wp.class.php:691
715
+ msgid "Wrap Inline Tags"
716
+ msgstr "ラップインラインタグ"
717
+
718
+ # @ crayon-syntax-highlighter
719
+ #: crayon_settings_wp.class.php:310
720
+ msgid "Tag Editor"
721
+ msgstr "タグエディタ"
722
+
723
+ # @ crayon-syntax-highlighter
724
+ #: crayon_settings_wp.class.php:631
725
+ #: crayon_settings_wp.class.php:657
726
+ #: crayon_settings_wp.class.php:682
727
+ #: crayon_settings_wp.class.php:689
728
+ #: crayon_settings_wp.class.php:690
729
+ #: crayon_settings_wp.class.php:691
730
+ #: crayon_settings_wp.class.php:692
731
+ #: crayon_settings_wp.class.php:693
732
+ #: crayon_settings_wp.class.php:694
733
+ #: crayon_settings_wp.class.php:708
734
+ #: crayon_settings_wp.class.php:715
735
+ #: crayon_settings_wp.class.php:716
736
+ msgid "?"
737
+ msgstr "?"
738
+
739
+ # @ crayon-syntax-highlighter
740
+ #: crayon_settings_wp.class.php:676
741
+ msgid "Decode HTML entities in code"
742
+ msgstr "コード内のHTMLエンティティを出力"
743
+
744
+ # @ crayon-syntax-highlighter
745
+ #: crayon_settings_wp.class.php:678
746
+ msgid "Decode HTML entities in attributes"
747
+ msgstr "属性内のHTMLエンティティを出力"
748
+
749
+ # @ crayon-syntax-highlighter
750
+ #: crayon_settings_wp.class.php:706
751
+ #, php-format
752
+ msgid "Use %s to separate setting names from values in the &lt;pre&gt; class attribute"
753
+ msgstr " &lt;pre&gt; のクラス属性の値から設定名を区切るには %s を使う。"
754
+
755
+ # @ crayon-syntax-highlighter
756
  #. translators: plugin header field 'Version'
757
  #: crayon_wp.class.php:0
758
+ msgid "_1.9.0b6"
759
+ msgstr "_1.9.0b6"
760
+
761
+ # @ crayon-syntax-highlighter
762
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:57
763
+ msgid "Add Crayon Code"
764
+ msgstr "挿入画面"
765
+
766
+ # @ crayon-syntax-highlighter
767
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:58
768
+ msgid "Edit Crayon Code"
769
+ msgstr "編集画面"
770
+
771
+ # @ crayon-syntax-highlighter
772
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:59
773
+ msgid "Add"
774
+ msgstr "挿入"
775
+
776
+ # @ crayon-syntax-highlighter
777
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:60
778
+ msgid "Save"
779
+ msgstr "更新"
780
+
781
+ # @ crayon-syntax-highlighter
782
+ #: util/tag-editor/crayon_te_content.php:65
783
+ msgid "Title"
784
+ msgstr "タイトル"
785
+
786
+ # @ crayon-syntax-highlighter
787
+ #: util/tag-editor/crayon_te_content.php:67
788
+ msgid "A short description"
789
+ msgstr "タイトルを記入"
790
+
791
+ # @ crayon-syntax-highlighter
792
+ #: util/tag-editor/crayon_te_content.php:70
793
+ msgid "Inline"
794
+ msgstr "1文章として表示"
795
+
796
+ # @ crayon-syntax-highlighter
797
+ #: util/tag-editor/crayon_te_content.php:75
798
+ msgid "Language"
799
+ msgstr "プログラム言語"
800
 
801
+ # @ crayon-syntax-highlighter
802
+ #: util/tag-editor/crayon_te_content.php:78
803
+ msgid "Marked Lines"
804
+ msgstr "マークするライン"
805
+
806
+ # @ crayon-syntax-highlighter
807
+ #: util/tag-editor/crayon_te_content.php:79
808
+ msgid "(e.g. 1,2,3-5)"
809
+ msgstr "(e.g. 1,2,3-5)"
810
+
811
+ # @ crayon-syntax-highlighter
812
+ #: util/tag-editor/crayon_te_content.php:82
813
+ msgid "Disable Highlighting"
814
+ msgstr "ハイライトを無効にする"
815
+
816
+ # @ crayon-syntax-highlighter
817
+ #: util/tag-editor/crayon_te_content.php:87
818
+ msgid "Clear"
819
+ msgstr "クリア"
820
+
821
+ # @ crayon-syntax-highlighter
822
+ #: util/tag-editor/crayon_te_content.php:88
823
+ msgid "Paste your code here, or type it in manually."
824
+ msgstr "ここに、コードを記入して下さい。"
825
+
826
+ # @ crayon-syntax-highlighter
827
+ #: util/tag-editor/crayon_te_content.php:91
828
+ msgid "URL"
829
+ msgstr "URL"
830
+
831
+ # @ crayon-syntax-highlighter
832
+ #: util/tag-editor/crayon_te_content.php:93
833
+ msgid "Relative local path or absolute URL"
834
+ msgstr "挿入するファイルへのURL"
835
+
836
+ # @ crayon-syntax-highlighter
837
+ #: util/tag-editor/crayon_te_content.php:96
838
+ msgid "If the URL fails to load, the code above will be shown instead. If no code exists, an error is shown."
839
+ msgstr "URLのロードに失敗した場合は、コード内に記入したものが代替えとして表示されます。コード内に記入が存在しない場合は、エラーが表示されます。"
840
+
841
+ # @ crayon-syntax-highlighter
842
+ #: util/tag-editor/crayon_te_content.php:98
843
+ #, php-format
844
+ msgid "If a relative local path is given it will be appended to %s - which is defined in %sCrayon &gt; Settings &gt; Files%s."
845
+ msgstr "相対的なローカルパスが指定されている場合は、 %s に追加して下さい。 - %sCrayon &gt; 設定 &gt; ファイル%sで定義されています。"
846
+
847
+ # @ crayon-syntax-highlighter
848
+ #: util/tag-editor/crayon_te_content.php:117
849
+ msgid "Change the following settings to override their global values."
850
+ msgstr "全ての設定値を上書きするには、設定メニューから変更します。"
851
+
852
+ # @ crayon-syntax-highlighter
853
+ #: util/tag-editor/crayon_te_content.php:119
854
+ msgid "Only changes (shown yellow) are applied."
855
+ msgstr "ここでの変更は、このコードのみの変更(黄色表示)として適用されます。"
856
+
857
+ # @ crayon-syntax-highlighter
858
+ #: util/tag-editor/crayon_te_content.php:121
859
+ #, php-format
860
+ msgid "Future changes to the global settings under %sCrayon &gt; Settings%s won't affect overridden settings."
861
+ msgstr "%sCrayon &gt; 設定%s で変更される将来の変更は、ここで上書きされた変更には影響されません。"
862
 
trans/crayon-syntax-highlighter-ru_RU.mo CHANGED
Binary file
trans/crayon-syntax-highlighter-ru_RU.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Crayon Syntax Highlighter\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2012-03-08 16:29+0300\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: minimus <minimus@blogcoding.ru>\n"
8
  "Language-Team: minimus <minimus@simplelib.com>\n"
@@ -19,352 +19,356 @@ msgstr ""
19
  "X-Poedit-SearchPath-0: .\n"
20
  "X-Poedit-SearchPath-1: ..\n"
21
 
22
- #: ../crayon_formatter.class.php:270
23
  msgid "Toggle Plain Code"
24
  msgstr "Включить/Отключить подсветку кода"
25
 
26
- #: ../crayon_formatter.class.php:272
27
  #, php-format
28
  msgid "Press %s to Copy, %s to Paste"
29
  msgstr "Нажмите %s для копирования, %s для вставки"
30
 
31
- #: ../crayon_formatter.class.php:272
32
  msgid "Copy Plain Code"
33
  msgstr "Копировать как текст"
34
 
35
  # @ crayon-syntax-highlighter
36
- #: ../crayon_formatter.class.php:278
37
  msgid "Open Code In New Window"
38
  msgstr "Показать код в новом окне"
39
 
40
- #: ../crayon_formatter.class.php:281
41
  msgid "Toggle Line Numbers"
42
  msgstr "Включить/Отключить нумерацию строк"
43
 
44
  # @ crayon-syntax-highlighter
45
- #: ../crayon_formatter.class.php:288
46
  msgid "Contains Mixed Languages"
47
  msgstr "Содержит коды на разных языках"
48
 
49
  # @ crayon-syntax-highlighter
50
- #: ../crayon_settings.class.php:106
51
  msgid "Hourly"
52
- msgstr "Каждый час"
53
 
54
  # @ crayon-syntax-highlighter
55
- #: ../crayon_settings.class.php:106
56
  msgid "Daily"
57
  msgstr "Ежедневно"
58
 
59
  # @ crayon-syntax-highlighter
60
- #: ../crayon_settings.class.php:107
61
  msgid "Weekly"
62
  msgstr "Еженедельно"
63
 
64
  # @ crayon-syntax-highlighter
65
- #: ../crayon_settings.class.php:107
66
  msgid "Monthly"
67
  msgstr "Ежемесячно"
68
 
69
  # @ crayon-syntax-highlighter
70
- #: ../crayon_settings.class.php:108
71
  msgid "Immediately"
72
  msgstr "Немедленно"
73
 
74
  # @ crayon-syntax-highlighter
75
- #: ../crayon_settings.class.php:135
76
- #: ../crayon_settings.class.php:139
77
  msgid "Max"
78
  msgstr "Максимум"
79
 
80
  # @ crayon-syntax-highlighter
81
- #: ../crayon_settings.class.php:135
82
- #: ../crayon_settings.class.php:139
83
  msgid "Min"
84
  msgstr "Минимум"
85
 
86
  # @ crayon-syntax-highlighter
87
- #: ../crayon_settings.class.php:135
88
- #: ../crayon_settings.class.php:139
89
  msgid "Static"
90
  msgstr "Фиксировано"
91
 
92
  # @ crayon-syntax-highlighter
93
- #: ../crayon_settings.class.php:137
94
- #: ../crayon_settings.class.php:141
95
- #: ../crayon_settings_wp.class.php:461
96
- #: ../crayon_settings_wp.class.php:470
97
- #: ../crayon_settings_wp.class.php:581
98
  msgid "Pixels"
99
- msgstr "Пиксел"
100
 
101
  # @ crayon-syntax-highlighter
102
- #: ../crayon_settings.class.php:137
103
- #: ../crayon_settings.class.php:141
104
  msgid "Percent"
105
  msgstr "Процентов"
106
 
107
  # @ crayon-syntax-highlighter
108
- #: ../crayon_settings.class.php:150
109
  msgid "None"
110
  msgstr "Нет"
111
 
112
  # @ crayon-syntax-highlighter
113
- #: ../crayon_settings.class.php:150
114
  msgid "Left"
115
  msgstr "Влево"
116
 
117
  # @ crayon-syntax-highlighter
118
- #: ../crayon_settings.class.php:150
119
  msgid "Center"
120
  msgstr "По центру"
121
 
122
  # @ crayon-syntax-highlighter
123
- #: ../crayon_settings.class.php:150
124
  msgid "Right"
125
  msgstr "Вправо"
126
 
127
  # @ crayon-syntax-highlighter
128
- #: ../crayon_settings.class.php:152
129
- #: ../crayon_settings.class.php:174
130
  msgid "On MouseOver"
131
  msgstr "При наведении мыши"
132
 
133
  # @ crayon-syntax-highlighter
134
- #: ../crayon_settings.class.php:152
135
- #: ../crayon_settings.class.php:158
136
  msgid "Always"
137
  msgstr "Всегда"
138
 
139
  # @ crayon-syntax-highlighter
140
- #: ../crayon_settings.class.php:152
141
- #: ../crayon_settings.class.php:158
142
  msgid "Never"
143
  msgstr "Никогда"
144
 
145
  # @ crayon-syntax-highlighter
146
- #: ../crayon_settings.class.php:158
147
  msgid "When Found"
148
  msgstr "Если определён"
149
 
150
  # @ crayon-syntax-highlighter
151
- #: ../crayon_settings.class.php:174
152
  msgid "On Double Click"
153
  msgstr "При двойном клике"
154
 
155
  # @ crayon-syntax-highlighter
156
- #: ../crayon_settings.class.php:174
157
  msgid "On Single Click"
158
  msgstr "При клике"
159
 
160
  # @ crayon-syntax-highlighter
161
- #: ../crayon_settings.class.php:174
162
  msgid "Disable Mouse Events"
163
  msgstr "Запретить отслеживание событий мыши"
164
 
165
  # @ crayon-syntax-highlighter
166
- #: ../crayon_settings.class.php:182
167
  msgid "An error has occurred. Please try again later."
168
  msgstr "Произошла ошибка. Попробуйте ещё раз позднее."
169
 
170
  # @ crayon-syntax-highlighter
171
- #: ../crayon_settings_wp.class.php:39
172
- #: ../crayon_settings_wp.class.php:82
173
- #: ../crayon_settings_wp.class.php:713
174
  msgid "Settings"
175
- msgstr "Параметры"
176
 
177
  # @ crayon-syntax-highlighter
178
- #: ../crayon_settings_wp.class.php:73
179
  msgid "You do not have sufficient permissions to access this page."
180
  msgstr "У вас недостаточно прав для доступа к этой странице."
181
 
182
  # @ crayon-syntax-highlighter
183
- #: ../crayon_settings_wp.class.php:94
184
  msgid "Save Changes"
185
- msgstr "Сохранить параметры"
186
 
187
  # @ crayon-syntax-highlighter
188
- #: ../crayon_settings_wp.class.php:100
189
  msgid "Reset Settings"
190
- msgstr "Параметры по умолчанию"
191
 
192
  # @ crayon-syntax-highlighter
193
- #: ../crayon_settings_wp.class.php:219
194
  msgid "General"
195
  msgstr "Основные"
196
 
197
- #: ../crayon_settings_wp.class.php:220
198
  msgid "Theme"
199
  msgstr "Тема"
200
 
201
- #: ../crayon_settings_wp.class.php:221
202
  msgid "Font"
203
  msgstr "Шрифт"
204
 
205
- #: ../crayon_settings_wp.class.php:222
206
  msgid "Metrics"
207
  msgstr "Метрики"
208
 
209
- #: ../crayon_settings_wp.class.php:223
210
  msgid "Toolbar"
211
  msgstr "Панель инструментов"
212
 
213
- #: ../crayon_settings_wp.class.php:224
214
  msgid "Lines"
215
  msgstr "Строки"
216
 
217
- #: ../crayon_settings_wp.class.php:225
218
  msgid "Code"
219
  msgstr "Код"
220
 
221
- #: ../crayon_settings_wp.class.php:226
222
  msgid "Tags"
223
  msgstr "Теги"
224
 
225
  # @ crayon-syntax-highlighter
226
- #: ../crayon_settings_wp.class.php:227
227
  msgid "Languages"
228
  msgstr "Языки"
229
 
230
- #: ../crayon_settings_wp.class.php:228
231
  msgid "Files"
232
  msgstr "Файлы"
233
 
234
- #: ../crayon_settings_wp.class.php:229
 
 
 
 
235
  msgid "Misc"
236
  msgstr "Разное"
237
 
238
- #: ../crayon_settings_wp.class.php:232
239
  msgid "Debug"
240
  msgstr "Отладка"
241
 
242
- #: ../crayon_settings_wp.class.php:233
243
  msgid "Errors"
244
  msgstr "Ошибки"
245
 
246
- #: ../crayon_settings_wp.class.php:234
247
  msgid "Log"
248
  msgstr "Журнал ошибок"
249
 
250
- #: ../crayon_settings_wp.class.php:237
251
  msgid "About"
252
  msgstr "О плагине"
253
 
254
  # @ crayon-syntax-highlighter
255
- #: ../crayon_settings_wp.class.php:424
256
  msgid "Crayon Help"
257
  msgstr "Справка Crayon"
258
 
259
  # @ crayon-syntax-highlighter
260
- #: ../crayon_settings_wp.class.php:438
261
  msgid "Height"
262
  msgstr "Высота"
263
 
264
  # @ crayon-syntax-highlighter
265
- #: ../crayon_settings_wp.class.php:444
266
  msgid "Width"
267
  msgstr "Ширина"
268
 
269
  # @ crayon-syntax-highlighter
270
- #: ../crayon_settings_wp.class.php:450
271
  msgid "Top Margin"
272
  msgstr "Верхний отступ"
273
 
274
  # @ crayon-syntax-highlighter
275
- #: ../crayon_settings_wp.class.php:451
276
  msgid "Bottom Margin"
277
  msgstr "Нижний отступ"
278
 
279
  # @ crayon-syntax-highlighter
280
- #: ../crayon_settings_wp.class.php:452
281
- #: ../crayon_settings_wp.class.php:457
282
  msgid "Left Margin"
283
  msgstr "Левый отступ"
284
 
285
  # @ crayon-syntax-highlighter
286
- #: ../crayon_settings_wp.class.php:453
287
- #: ../crayon_settings_wp.class.php:457
288
  msgid "Right Margin"
289
  msgstr "Правый отступ"
290
 
291
  # @ crayon-syntax-highlighter
292
- #: ../crayon_settings_wp.class.php:463
293
  msgid "Horizontal Alignment"
294
  msgstr "Выравнивание по горизонтали"
295
 
296
  # @ crayon-syntax-highlighter
297
- #: ../crayon_settings_wp.class.php:466
298
  msgid "Allow floating elements to surround Crayon"
299
  msgstr "Разрешить плавающий режим"
300
 
301
  # @ crayon-syntax-highlighter
302
- #: ../crayon_settings_wp.class.php:468
303
  msgid "Inline Margin"
304
  msgstr "Внутренний отступ"
305
 
306
  # @ crayon-syntax-highlighter
307
- #: ../crayon_settings_wp.class.php:474
308
  msgid "Display the Toolbar"
309
  msgstr "Показывать панель инструментов"
310
 
311
  # @ crayon-syntax-highlighter
312
- #: ../crayon_settings_wp.class.php:477
313
  msgid "Overlay the toolbar on code rather than push it down when possible"
314
  msgstr "Использовать, если возможно, наложение панели инструментов на панель кодов без смещения кодов вниз"
315
 
316
  # @ crayon-syntax-highlighter
317
- #: ../crayon_settings_wp.class.php:478
318
  msgid "Toggle the toolbar on single click when it is overlayed"
319
  msgstr "Показывать панель инструментов по клику, если она скрыта"
320
 
321
  # @ crayon-syntax-highlighter
322
- #: ../crayon_settings_wp.class.php:479
323
  msgid "Delay hiding the toolbar on MouseOut"
324
- msgstr "Задержка исчезания панели инструментов при уходе курсора мыши за пределы панели"
325
 
326
  # @ crayon-syntax-highlighter
327
- #: ../crayon_settings_wp.class.php:481
328
  msgid "Display the title when provided"
329
  msgstr "Показывать заголовок, если он задан"
330
 
331
  # @ crayon-syntax-highlighter
332
- #: ../crayon_settings_wp.class.php:482
333
  msgid "Display the language"
334
  msgstr "Показывать язык кода"
335
 
336
  # @ crayon-syntax-highlighter
337
- #: ../crayon_settings_wp.class.php:487
338
  msgid "Display striped code lines"
339
  msgstr "Использовать чередование цвета строк кода"
340
 
341
  # @ crayon-syntax-highlighter
342
- #: ../crayon_settings_wp.class.php:488
343
  msgid "Enable line marking for important lines"
344
  msgstr "Разрешить маркировку важных строк кода"
345
 
346
  # @ crayon-syntax-highlighter
347
- #: ../crayon_settings_wp.class.php:489
348
  msgid "Display line numbers by default"
349
  msgstr "Показывать нумерацию строк по умолчанию"
350
 
351
  # @ crayon-syntax-highlighter
352
- #: ../crayon_settings_wp.class.php:490
353
  msgid "Enable line number toggling"
354
  msgstr "Разрешить переключение нумерации строк"
355
 
356
  # @ crayon-syntax-highlighter
357
- #: ../crayon_settings_wp.class.php:491
358
  msgid "Start line numbers from"
359
  msgstr "Начинать нумерацию строк с"
360
 
361
  # @ crayon-syntax-highlighter
362
- #: ../crayon_settings_wp.class.php:501
363
  msgid "When no language is provided, use the fallback"
364
  msgstr "Если язык не поддерживается, использовать"
365
 
366
  # @ crayon-syntax-highlighter
367
- #: ../crayon_settings_wp.class.php:508
368
  #, php-format
369
  msgid "%d language has been detected."
370
  msgid_plural "%d languages have been detected."
@@ -373,296 +377,396 @@ msgstr[1] "Обнаружено %d языка."
373
  msgstr[2] "Обнаружено %d языков."
374
 
375
  # @ crayon-syntax-highlighter
376
- #: ../crayon_settings_wp.class.php:509
377
  msgid "Parsing was successful"
378
- msgstr "Разбор произведён успешно"
379
 
380
  # @ crayon-syntax-highlighter
381
- #: ../crayon_settings_wp.class.php:509
382
  msgid "Parsing was unsuccessful"
383
- msgstr "Разбор закончился неудачей"
384
 
385
  # @ crayon-syntax-highlighter
386
- #: ../crayon_settings_wp.class.php:515
387
  #, php-format
388
  msgid "The selected language with id %s could not be loaded"
389
  msgstr "Выбранный язык (ID %s) не загружен."
390
 
391
  # @ crayon-syntax-highlighter
392
- #: ../crayon_settings_wp.class.php:519
393
  msgid "Show Languages"
394
  msgstr "Показать языки"
395
 
396
- #: ../crayon_settings_wp.class.php:549
397
  msgid "Loading..."
398
  msgstr "Загрузка ..."
399
 
400
- #: ../crayon_settings_wp.class.php:549
401
- #: ../crayon_settings_wp.class.php:715
402
  msgid "Theme Editor"
403
  msgstr "Редактор тем оформления"
404
 
405
  # @ crayon-syntax-highlighter
406
- #: ../crayon_settings_wp.class.php:553
407
  #, php-format
408
  msgid "Change the %1$sfallback language%2$s to change the sample code. Lines 5-7 are marked."
409
- msgstr "Измените %1$sязык подсветки%2$s, чтобы изменить пример кода. Строки 5-7 отмечены."
410
 
411
  # @ crayon-syntax-highlighter
412
- #: ../crayon_settings_wp.class.php:556
413
  msgid "Enable Live Preview"
414
  msgstr "Разрешить показ примера"
415
 
416
- #: ../crayon_settings_wp.class.php:558
417
  msgid "Enqueue themes in the header (more efficient)."
418
  msgstr "Загружать темы в заголовке страницы (более эффективно)."
419
 
420
- # @ crayon-syntax-highlighter
421
- #: ../crayon_settings_wp.class.php:558
422
- #: ../crayon_settings_wp.class.php:587
423
- #: ../crayon_settings_wp.class.php:603
424
- #: ../crayon_settings_wp.class.php:608
425
- #: ../crayon_settings_wp.class.php:609
426
- #: ../crayon_settings_wp.class.php:610
427
- #: ../crayon_settings_wp.class.php:611
428
- #: ../crayon_settings_wp.class.php:612
429
- #: ../crayon_settings_wp.class.php:613
430
- #: ../crayon_settings_wp.class.php:628
431
- #: ../crayon_settings_wp.class.php:629
432
- msgid "Learn More"
433
- msgstr "Подробнее"
434
 
435
  # @ crayon-syntax-highlighter
436
- #: ../crayon_settings_wp.class.php:561
437
  #, php-format
438
  msgid "The selected theme with id %s could not be loaded"
439
  msgstr "Выбранная тема (ID %s) не загружена."
440
 
441
  # @ crayon-syntax-highlighter
442
- #: ../crayon_settings_wp.class.php:579
443
  msgid "Custom Font Size"
444
  msgstr "Пользовательский размер шрифта"
445
 
446
  # @ crayon-syntax-highlighter
447
- #: ../crayon_settings_wp.class.php:584
448
  #, php-format
449
  msgid "The selected font with id %s could not be loaded"
450
  msgstr "Выбранный шрифт (ID %s) не может быть загружен."
451
 
452
- #: ../crayon_settings_wp.class.php:587
453
  msgid "Enqueue fonts in the header (more efficient)."
454
  msgstr "Загружать шрифты в заголовке страницы (более эффективно)."
455
 
456
  # @ crayon-syntax-highlighter
457
- #: ../crayon_settings_wp.class.php:591
458
  msgid "Enable plain code view and display"
459
  msgstr "Разрешить показ кода как обычного текста"
460
 
461
  # @ crayon-syntax-highlighter
462
- #: ../crayon_settings_wp.class.php:594
463
  msgid "Enable plain code toggling"
464
  msgstr "Разрешить переключение показа кода как простого текста"
465
 
466
- #: ../crayon_settings_wp.class.php:595
467
  msgid "Show the plain code by default"
468
  msgstr "Показывать код как простой текст по умолчанию"
469
 
470
  # @ crayon-syntax-highlighter
471
- #: ../crayon_settings_wp.class.php:596
472
  msgid "Enable code copy/paste"
473
  msgstr "Разрешить копирование/вставку кода"
474
 
475
  # @ crayon-syntax-highlighter
476
- #: ../crayon_settings_wp.class.php:598
477
  msgid "Enable opening code in a window"
478
  msgstr "Разрешить показ кода в отдельном окне"
479
 
480
- #: ../crayon_settings_wp.class.php:599
481
  msgid "Always display scrollbars"
482
  msgstr "Всегда показывать полосы прокрутки"
483
 
484
  # @ crayon-syntax-highlighter
485
- #: ../crayon_settings_wp.class.php:600
486
  msgid "Tab size in spaces"
487
  msgstr "Размер табуляций в пробелах"
488
 
 
 
 
 
 
 
 
 
489
  # @ crayon-syntax-highlighter
490
- #: ../crayon_settings_wp.class.php:602
491
  msgid "Remove whitespace surrounding the shortcode content"
492
  msgstr "Удалять пробелы окружающие контент короткого кода"
493
 
494
  # @ crayon-syntax-highlighter
495
- #: ../crayon_settings_wp.class.php:603
496
  msgid "Allow Mixed Language Highlighting with delimiters and tags."
497
  msgstr "Разрешить подсветку смешанных языков."
498
 
499
  # @ crayon-syntax-highlighter
500
- #: ../crayon_settings_wp.class.php:604
501
  msgid "Show Mixed Language Icon (+)"
502
  msgstr "Показывать иконку смешанных языков (+)"
503
 
504
- #: ../crayon_settings_wp.class.php:608
505
  msgid "Capture Mini Tags like [php][/php] as Crayons."
506
  msgstr "Обрабатывать мини-теги, например [php][/php], как теги Crayon."
507
 
508
- #: ../crayon_settings_wp.class.php:609
509
  msgid "Capture Inline Tags like {php}{/php} inside sentences."
510
  msgstr "Обрабатывать строковые теги, такие как {php}{/php}, внутри предложения."
511
 
512
- #: ../crayon_settings_wp.class.php:610
513
  msgid "Wrap Inline Tags"
514
  msgstr "Обрабатывать внутристроковые теги"
515
 
516
- #: ../crayon_settings_wp.class.php:611
517
  msgid "Capture `backquotes` as &lt;code&gt;"
518
  msgstr "Обрабатывать символы `тильда` как &lt;code&gt;"
519
 
520
  # @ crayon-syntax-highlighter
521
- #: ../crayon_settings_wp.class.php:612
522
  msgid "Capture &lt;pre&gt; tags as Crayons"
523
  msgstr "Обрабатывать тег &lt;pre&gt; как код Crayon"
524
 
525
- #: ../crayon_settings_wp.class.php:613
526
  msgid "Enable [plain][/plain] tag."
527
  msgstr "Разрешить теги [plain][/plain]."
528
 
529
  # @ crayon-syntax-highlighter
530
- #: ../crayon_settings_wp.class.php:618
531
  msgid "When loading local files and a relative path is given for the URL, use the absolute path"
532
- msgstr "При загрузке локальных файлов, относительный путь к файлу вычислять относительно этого URL"
533
 
534
  # @ crayon-syntax-highlighter
535
- #: ../crayon_settings_wp.class.php:621
536
  msgid "Followed by your relative URL."
537
- msgstr "Путь будет определён относительно заданного URL."
 
 
 
 
 
538
 
539
  # @ crayon-syntax-highlighter
540
- #: ../crayon_settings_wp.class.php:625
541
  msgid "Clear the cache used to store remote code requests"
542
  msgstr "Очищать кэш используемый для хранения кодов из внешних файлов"
543
 
544
  # @ crayon-syntax-highlighter
545
- #: ../crayon_settings_wp.class.php:627
546
  msgid "Clear Now"
547
  msgstr "Очистить сейчас"
548
 
549
  # @ crayon-syntax-highlighter
550
- #: ../crayon_settings_wp.class.php:628
551
  msgid "Attempt to load Crayon's CSS and JavaScript only when needed"
552
- msgstr "Пытаться загружать таблицы стилей (CSS) и скрипты (Javascript) плагина только тогда, когда это нужно"
553
 
554
- #: ../crayon_settings_wp.class.php:629
555
  msgid "Disable enqueuing for page templates that may contain The Loop."
556
  msgstr "Отключить обработку кодов для шаблонов страниц, которые могут содержать Loop."
557
 
558
- #: ../crayon_settings_wp.class.php:630
559
  msgid "Allow Crayons inside comments"
560
  msgstr "Разрешить теги Crayon в комментариях"
561
 
562
- #: ../crayon_settings_wp.class.php:631
563
  msgid "Load Crayons only from the main Wordpress query"
564
  msgstr "Загружать Crayon только в основных запросах Wordpress"
565
 
566
  # @ crayon-syntax-highlighter
567
- #: ../crayon_settings_wp.class.php:632
568
  msgid "Disable mouse gestures for touchscreen devices (eg. MouseOver)"
569
  msgstr "Отключить распознавание жестов мышью для сенсорных экранов (например Наведение Мыши)"
570
 
571
  # @ crayon-syntax-highlighter
572
- #: ../crayon_settings_wp.class.php:633
573
  msgid "Disable animations"
574
  msgstr "Запретить анимацию"
575
 
576
  # @ crayon-syntax-highlighter
577
- #: ../crayon_settings_wp.class.php:634
578
  msgid "Disable runtime stats"
579
  msgstr "Запретить статистику выполнения"
580
 
581
  # @ crayon-syntax-highlighter
582
- #: ../crayon_settings_wp.class.php:641
583
  msgid "Log errors for individual Crayons"
584
  msgstr "Журнал ошибок для каждого кода Crayon"
585
 
586
  # @ crayon-syntax-highlighter
587
- #: ../crayon_settings_wp.class.php:642
588
  msgid "Log system-wide errors"
589
- msgstr "Журнал ошибок для системно-независимых ошибок"
590
 
591
  # @ crayon-syntax-highlighter
592
- #: ../crayon_settings_wp.class.php:643
593
  msgid "Display custom message for errors"
594
  msgstr "Показывать свое сообщение об ошибках"
595
 
596
  # @ crayon-syntax-highlighter
597
- #: ../crayon_settings_wp.class.php:655
598
  msgid "Show Log"
599
  msgstr "Показать журнал ошибок"
600
 
601
- #: ../crayon_settings_wp.class.php:655
602
  msgid "Hide Log"
603
  msgstr "Скрыть журнал"
604
 
605
  # @ crayon-syntax-highlighter
606
- #: ../crayon_settings_wp.class.php:657
607
  msgid "Clear Log"
608
  msgstr "Очистить журнал ошибок"
609
 
610
  # @ crayon-syntax-highlighter
611
- #: ../crayon_settings_wp.class.php:658
612
  msgid "Email Admin"
613
  msgstr "Сообщить администратору (e-mail)"
614
 
615
  # @ crayon-syntax-highlighter
616
- #: ../crayon_settings_wp.class.php:660
617
  msgid "Email Developer"
618
  msgstr "Сообщить разработчику (e-mail)"
619
 
620
  # @ crayon-syntax-highlighter
621
- #: ../crayon_settings_wp.class.php:662
622
  msgid "The log is currently empty."
623
  msgstr "Журнал ошибок пуст."
624
 
625
  # @ crayon-syntax-highlighter
626
- #: ../crayon_settings_wp.class.php:664
627
  msgid "The log file exists and is writable."
628
- msgstr "Файл журнала ошибок существует и в него могут заноситься записи."
629
 
630
  # @ crayon-syntax-highlighter
631
- #: ../crayon_settings_wp.class.php:664
632
  msgid "The log file exists and is not writable."
633
- msgstr "Файл журнала ошибок существует, но в него не могут заноситься записи."
634
 
635
  # @ crayon-syntax-highlighter
636
- #: ../crayon_settings_wp.class.php:666
637
  msgid "The log file does not exist and is not writable."
638
- msgstr "Файл журнала ошибок не существует и в него не могут заноситься записи."
639
 
640
  # @ crayon-syntax-highlighter
641
- #: ../crayon_settings_wp.class.php:676
642
  msgid "Version"
643
  msgstr "Версия"
644
 
645
  # @ crayon-syntax-highlighter
646
- #: ../crayon_settings_wp.class.php:678
647
  msgid "Developer"
648
  msgstr "Разработчик"
649
 
650
- #: ../crayon_settings_wp.class.php:679
651
  msgid "Translators"
652
  msgstr "Переводчики"
653
 
654
  # @ crayon-syntax-highlighter
655
- #: ../crayon_settings_wp.class.php:701
656
  msgid "The result of innumerable hours of hard work over many months. It's an ongoing project, keep me motivated!"
657
  msgstr "Результат бесчисленных часов тяжелой работы за многие месяцы. Это - текущий проект, поддержите мою мотивацию!"
658
 
659
  # @ crayon-syntax-highlighter
660
- #: ../crayon_settings_wp.class.php:717
661
  msgid "Donate"
662
- msgstr "Пожертвовать"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
663
 
664
  # @ crayon-syntax-highlighter
665
  #: ../util/theme-editor/editor.php:16
666
  msgid "Back To Settings"
667
- msgstr "Назад к параметрам"
668
 
2
  msgstr ""
3
  "Project-Id-Version: Crayon Syntax Highlighter\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2012-03-30 12:36+0300\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: minimus <minimus@blogcoding.ru>\n"
8
  "Language-Team: minimus <minimus@simplelib.com>\n"
19
  "X-Poedit-SearchPath-0: .\n"
20
  "X-Poedit-SearchPath-1: ..\n"
21
 
22
+ #: ../crayon_formatter.class.php:265
23
  msgid "Toggle Plain Code"
24
  msgstr "Включить/Отключить подсветку кода"
25
 
26
+ #: ../crayon_formatter.class.php:267
27
  #, php-format
28
  msgid "Press %s to Copy, %s to Paste"
29
  msgstr "Нажмите %s для копирования, %s для вставки"
30
 
31
+ #: ../crayon_formatter.class.php:267
32
  msgid "Copy Plain Code"
33
  msgstr "Копировать как текст"
34
 
35
  # @ crayon-syntax-highlighter
36
+ #: ../crayon_formatter.class.php:269
37
  msgid "Open Code In New Window"
38
  msgstr "Показать код в новом окне"
39
 
40
+ #: ../crayon_formatter.class.php:272
41
  msgid "Toggle Line Numbers"
42
  msgstr "Включить/Отключить нумерацию строк"
43
 
44
  # @ crayon-syntax-highlighter
45
+ #: ../crayon_formatter.class.php:278
46
  msgid "Contains Mixed Languages"
47
  msgstr "Содержит коды на разных языках"
48
 
49
  # @ crayon-syntax-highlighter
50
+ #: ../crayon_settings.class.php:138
51
  msgid "Hourly"
52
+ msgstr "Ежечасно"
53
 
54
  # @ crayon-syntax-highlighter
55
+ #: ../crayon_settings.class.php:138
56
  msgid "Daily"
57
  msgstr "Ежедневно"
58
 
59
  # @ crayon-syntax-highlighter
60
+ #: ../crayon_settings.class.php:139
61
  msgid "Weekly"
62
  msgstr "Еженедельно"
63
 
64
  # @ crayon-syntax-highlighter
65
+ #: ../crayon_settings.class.php:139
66
  msgid "Monthly"
67
  msgstr "Ежемесячно"
68
 
69
  # @ crayon-syntax-highlighter
70
+ #: ../crayon_settings.class.php:140
71
  msgid "Immediately"
72
  msgstr "Немедленно"
73
 
74
  # @ crayon-syntax-highlighter
75
+ #: ../crayon_settings.class.php:150
76
+ #: ../crayon_settings.class.php:154
77
  msgid "Max"
78
  msgstr "Максимум"
79
 
80
  # @ crayon-syntax-highlighter
81
+ #: ../crayon_settings.class.php:150
82
+ #: ../crayon_settings.class.php:154
83
  msgid "Min"
84
  msgstr "Минимум"
85
 
86
  # @ crayon-syntax-highlighter
87
+ #: ../crayon_settings.class.php:150
88
+ #: ../crayon_settings.class.php:154
89
  msgid "Static"
90
  msgstr "Фиксировано"
91
 
92
  # @ crayon-syntax-highlighter
93
+ #: ../crayon_settings.class.php:152
94
+ #: ../crayon_settings.class.php:156
95
+ #: ../crayon_settings_wp.class.php:540
96
+ #: ../crayon_settings_wp.class.php:549
97
+ #: ../crayon_settings_wp.class.php:648
98
  msgid "Pixels"
99
+ msgstr "Пикселей"
100
 
101
  # @ crayon-syntax-highlighter
102
+ #: ../crayon_settings.class.php:152
103
+ #: ../crayon_settings.class.php:156
104
  msgid "Percent"
105
  msgstr "Процентов"
106
 
107
  # @ crayon-syntax-highlighter
108
+ #: ../crayon_settings.class.php:165
109
  msgid "None"
110
  msgstr "Нет"
111
 
112
  # @ crayon-syntax-highlighter
113
+ #: ../crayon_settings.class.php:165
114
  msgid "Left"
115
  msgstr "Влево"
116
 
117
  # @ crayon-syntax-highlighter
118
+ #: ../crayon_settings.class.php:165
119
  msgid "Center"
120
  msgstr "По центру"
121
 
122
  # @ crayon-syntax-highlighter
123
+ #: ../crayon_settings.class.php:165
124
  msgid "Right"
125
  msgstr "Вправо"
126
 
127
  # @ crayon-syntax-highlighter
128
+ #: ../crayon_settings.class.php:167
129
+ #: ../crayon_settings.class.php:189
130
  msgid "On MouseOver"
131
  msgstr "При наведении мыши"
132
 
133
  # @ crayon-syntax-highlighter
134
+ #: ../crayon_settings.class.php:167
135
+ #: ../crayon_settings.class.php:173
136
  msgid "Always"
137
  msgstr "Всегда"
138
 
139
  # @ crayon-syntax-highlighter
140
+ #: ../crayon_settings.class.php:167
141
+ #: ../crayon_settings.class.php:173
142
  msgid "Never"
143
  msgstr "Никогда"
144
 
145
  # @ crayon-syntax-highlighter
146
+ #: ../crayon_settings.class.php:173
147
  msgid "When Found"
148
  msgstr "Если определён"
149
 
150
  # @ crayon-syntax-highlighter
151
+ #: ../crayon_settings.class.php:189
152
  msgid "On Double Click"
153
  msgstr "При двойном клике"
154
 
155
  # @ crayon-syntax-highlighter
156
+ #: ../crayon_settings.class.php:189
157
  msgid "On Single Click"
158
  msgstr "При клике"
159
 
160
  # @ crayon-syntax-highlighter
161
+ #: ../crayon_settings.class.php:189
162
  msgid "Disable Mouse Events"
163
  msgstr "Запретить отслеживание событий мыши"
164
 
165
  # @ crayon-syntax-highlighter
166
+ #: ../crayon_settings.class.php:197
167
  msgid "An error has occurred. Please try again later."
168
  msgstr "Произошла ошибка. Попробуйте ещё раз позднее."
169
 
170
  # @ crayon-syntax-highlighter
171
+ #: ../crayon_settings_wp.class.php:44
172
+ #: ../crayon_settings_wp.class.php:118
173
+ #: ../crayon_settings_wp.class.php:800
174
  msgid "Settings"
175
+ msgstr "Настройки"
176
 
177
  # @ crayon-syntax-highlighter
178
+ #: ../crayon_settings_wp.class.php:99
179
  msgid "You do not have sufficient permissions to access this page."
180
  msgstr "У вас недостаточно прав для доступа к этой странице."
181
 
182
  # @ crayon-syntax-highlighter
183
+ #: ../crayon_settings_wp.class.php:130
184
  msgid "Save Changes"
185
+ msgstr "Сохранить изменения"
186
 
187
  # @ crayon-syntax-highlighter
188
+ #: ../crayon_settings_wp.class.php:136
189
  msgid "Reset Settings"
190
+ msgstr "Настройки по умолчанию"
191
 
192
  # @ crayon-syntax-highlighter
193
+ #: ../crayon_settings_wp.class.php:300
194
  msgid "General"
195
  msgstr "Основные"
196
 
197
+ #: ../crayon_settings_wp.class.php:301
198
  msgid "Theme"
199
  msgstr "Тема"
200
 
201
+ #: ../crayon_settings_wp.class.php:302
202
  msgid "Font"
203
  msgstr "Шрифт"
204
 
205
+ #: ../crayon_settings_wp.class.php:303
206
  msgid "Metrics"
207
  msgstr "Метрики"
208
 
209
+ #: ../crayon_settings_wp.class.php:304
210
  msgid "Toolbar"
211
  msgstr "Панель инструментов"
212
 
213
+ #: ../crayon_settings_wp.class.php:305
214
  msgid "Lines"
215
  msgstr "Строки"
216
 
217
+ #: ../crayon_settings_wp.class.php:306
218
  msgid "Code"
219
  msgstr "Код"
220
 
221
+ #: ../crayon_settings_wp.class.php:307
222
  msgid "Tags"
223
  msgstr "Теги"
224
 
225
  # @ crayon-syntax-highlighter
226
+ #: ../crayon_settings_wp.class.php:308
227
  msgid "Languages"
228
  msgstr "Языки"
229
 
230
+ #: ../crayon_settings_wp.class.php:309
231
  msgid "Files"
232
  msgstr "Файлы"
233
 
234
+ #: ../crayon_settings_wp.class.php:310
235
+ msgid "Tag Editor"
236
+ msgstr "Редактор тегов"
237
+
238
+ #: ../crayon_settings_wp.class.php:311
239
  msgid "Misc"
240
  msgstr "Разное"
241
 
242
+ #: ../crayon_settings_wp.class.php:314
243
  msgid "Debug"
244
  msgstr "Отладка"
245
 
246
+ #: ../crayon_settings_wp.class.php:315
247
  msgid "Errors"
248
  msgstr "Ошибки"
249
 
250
+ #: ../crayon_settings_wp.class.php:316
251
  msgid "Log"
252
  msgstr "Журнал ошибок"
253
 
254
+ #: ../crayon_settings_wp.class.php:319
255
  msgid "About"
256
  msgstr "О плагине"
257
 
258
  # @ crayon-syntax-highlighter
259
+ #: ../crayon_settings_wp.class.php:502
260
  msgid "Crayon Help"
261
  msgstr "Справка Crayon"
262
 
263
  # @ crayon-syntax-highlighter
264
+ #: ../crayon_settings_wp.class.php:517
265
  msgid "Height"
266
  msgstr "Высота"
267
 
268
  # @ crayon-syntax-highlighter
269
+ #: ../crayon_settings_wp.class.php:523
270
  msgid "Width"
271
  msgstr "Ширина"
272
 
273
  # @ crayon-syntax-highlighter
274
+ #: ../crayon_settings_wp.class.php:529
275
  msgid "Top Margin"
276
  msgstr "Верхний отступ"
277
 
278
  # @ crayon-syntax-highlighter
279
+ #: ../crayon_settings_wp.class.php:530
280
  msgid "Bottom Margin"
281
  msgstr "Нижний отступ"
282
 
283
  # @ crayon-syntax-highlighter
284
+ #: ../crayon_settings_wp.class.php:531
285
+ #: ../crayon_settings_wp.class.php:536
286
  msgid "Left Margin"
287
  msgstr "Левый отступ"
288
 
289
  # @ crayon-syntax-highlighter
290
+ #: ../crayon_settings_wp.class.php:532
291
+ #: ../crayon_settings_wp.class.php:536
292
  msgid "Right Margin"
293
  msgstr "Правый отступ"
294
 
295
  # @ crayon-syntax-highlighter
296
+ #: ../crayon_settings_wp.class.php:542
297
  msgid "Horizontal Alignment"
298
  msgstr "Выравнивание по горизонтали"
299
 
300
  # @ crayon-syntax-highlighter
301
+ #: ../crayon_settings_wp.class.php:545
302
  msgid "Allow floating elements to surround Crayon"
303
  msgstr "Разрешить плавающий режим"
304
 
305
  # @ crayon-syntax-highlighter
306
+ #: ../crayon_settings_wp.class.php:547
307
  msgid "Inline Margin"
308
  msgstr "Внутренний отступ"
309
 
310
  # @ crayon-syntax-highlighter
311
+ #: ../crayon_settings_wp.class.php:555
312
  msgid "Display the Toolbar"
313
  msgstr "Показывать панель инструментов"
314
 
315
  # @ crayon-syntax-highlighter
316
+ #: ../crayon_settings_wp.class.php:558
317
  msgid "Overlay the toolbar on code rather than push it down when possible"
318
  msgstr "Использовать, если возможно, наложение панели инструментов на панель кодов без смещения кодов вниз"
319
 
320
  # @ crayon-syntax-highlighter
321
+ #: ../crayon_settings_wp.class.php:559
322
  msgid "Toggle the toolbar on single click when it is overlayed"
323
  msgstr "Показывать панель инструментов по клику, если она скрыта"
324
 
325
  # @ crayon-syntax-highlighter
326
+ #: ../crayon_settings_wp.class.php:560
327
  msgid "Delay hiding the toolbar on MouseOut"
328
+ msgstr "Задержка исчезания панели инструментов при потере фокуса мыши"
329
 
330
  # @ crayon-syntax-highlighter
331
+ #: ../crayon_settings_wp.class.php:562
332
  msgid "Display the title when provided"
333
  msgstr "Показывать заголовок, если он задан"
334
 
335
  # @ crayon-syntax-highlighter
336
+ #: ../crayon_settings_wp.class.php:563
337
  msgid "Display the language"
338
  msgstr "Показывать язык кода"
339
 
340
  # @ crayon-syntax-highlighter
341
+ #: ../crayon_settings_wp.class.php:570
342
  msgid "Display striped code lines"
343
  msgstr "Использовать чередование цвета строк кода"
344
 
345
  # @ crayon-syntax-highlighter
346
+ #: ../crayon_settings_wp.class.php:571
347
  msgid "Enable line marking for important lines"
348
  msgstr "Разрешить маркировку важных строк кода"
349
 
350
  # @ crayon-syntax-highlighter
351
+ #: ../crayon_settings_wp.class.php:572
352
  msgid "Display line numbers by default"
353
  msgstr "Показывать нумерацию строк по умолчанию"
354
 
355
  # @ crayon-syntax-highlighter
356
+ #: ../crayon_settings_wp.class.php:573
357
  msgid "Enable line number toggling"
358
  msgstr "Разрешить переключение нумерации строк"
359
 
360
  # @ crayon-syntax-highlighter
361
+ #: ../crayon_settings_wp.class.php:574
362
  msgid "Start line numbers from"
363
  msgstr "Начинать нумерацию строк с"
364
 
365
  # @ crayon-syntax-highlighter
366
+ #: ../crayon_settings_wp.class.php:584
367
  msgid "When no language is provided, use the fallback"
368
  msgstr "Если язык не поддерживается, использовать"
369
 
370
  # @ crayon-syntax-highlighter
371
+ #: ../crayon_settings_wp.class.php:590
372
  #, php-format
373
  msgid "%d language has been detected."
374
  msgid_plural "%d languages have been detected."
377
  msgstr[2] "Обнаружено %d языков."
378
 
379
  # @ crayon-syntax-highlighter
380
+ #: ../crayon_settings_wp.class.php:591
381
  msgid "Parsing was successful"
382
+ msgstr "Разбор кода произведён успешно"
383
 
384
  # @ crayon-syntax-highlighter
385
+ #: ../crayon_settings_wp.class.php:591
386
  msgid "Parsing was unsuccessful"
387
+ msgstr "Разбор кода закончился неудачей"
388
 
389
  # @ crayon-syntax-highlighter
390
+ #: ../crayon_settings_wp.class.php:597
391
  #, php-format
392
  msgid "The selected language with id %s could not be loaded"
393
  msgstr "Выбранный язык (ID %s) не загружен."
394
 
395
  # @ crayon-syntax-highlighter
396
+ #: ../crayon_settings_wp.class.php:601
397
  msgid "Show Languages"
398
  msgstr "Показать языки"
399
 
400
+ #: ../crayon_settings_wp.class.php:620
401
  msgid "Loading..."
402
  msgstr "Загрузка ..."
403
 
404
+ #: ../crayon_settings_wp.class.php:620
405
+ #: ../crayon_settings_wp.class.php:802
406
  msgid "Theme Editor"
407
  msgstr "Редактор тем оформления"
408
 
409
  # @ crayon-syntax-highlighter
410
+ #: ../crayon_settings_wp.class.php:625
411
  #, php-format
412
  msgid "Change the %1$sfallback language%2$s to change the sample code. Lines 5-7 are marked."
413
+ msgstr "Измените %1$sязык подсветки%2$s, чтобы изменить пример кода. Строки 5-7 выделены."
414
 
415
  # @ crayon-syntax-highlighter
416
+ #: ../crayon_settings_wp.class.php:629
417
  msgid "Enable Live Preview"
418
  msgstr "Разрешить показ примера"
419
 
420
+ #: ../crayon_settings_wp.class.php:631
421
  msgid "Enqueue themes in the header (more efficient)."
422
  msgstr "Загружать темы в заголовке страницы (более эффективно)."
423
 
424
+ #: ../crayon_settings_wp.class.php:631
425
+ #: ../crayon_settings_wp.class.php:657
426
+ #: ../crayon_settings_wp.class.php:682
427
+ #: ../crayon_settings_wp.class.php:689
428
+ #: ../crayon_settings_wp.class.php:690
429
+ #: ../crayon_settings_wp.class.php:691
430
+ #: ../crayon_settings_wp.class.php:692
431
+ #: ../crayon_settings_wp.class.php:693
432
+ #: ../crayon_settings_wp.class.php:694
433
+ #: ../crayon_settings_wp.class.php:708
434
+ #: ../crayon_settings_wp.class.php:715
435
+ #: ../crayon_settings_wp.class.php:716
436
+ msgid "?"
437
+ msgstr "?"
438
 
439
  # @ crayon-syntax-highlighter
440
+ #: ../crayon_settings_wp.class.php:634
441
  #, php-format
442
  msgid "The selected theme with id %s could not be loaded"
443
  msgstr "Выбранная тема (ID %s) не загружена."
444
 
445
  # @ crayon-syntax-highlighter
446
+ #: ../crayon_settings_wp.class.php:646
447
  msgid "Custom Font Size"
448
  msgstr "Пользовательский размер шрифта"
449
 
450
  # @ crayon-syntax-highlighter
451
+ #: ../crayon_settings_wp.class.php:651
452
  #, php-format
453
  msgid "The selected font with id %s could not be loaded"
454
  msgstr "Выбранный шрифт (ID %s) не может быть загружен."
455
 
456
+ #: ../crayon_settings_wp.class.php:657
457
  msgid "Enqueue fonts in the header (more efficient)."
458
  msgstr "Загружать шрифты в заголовке страницы (более эффективно)."
459
 
460
  # @ crayon-syntax-highlighter
461
+ #: ../crayon_settings_wp.class.php:662
462
  msgid "Enable plain code view and display"
463
  msgstr "Разрешить показ кода как обычного текста"
464
 
465
  # @ crayon-syntax-highlighter
466
+ #: ../crayon_settings_wp.class.php:665
467
  msgid "Enable plain code toggling"
468
  msgstr "Разрешить переключение показа кода как простого текста"
469
 
470
+ #: ../crayon_settings_wp.class.php:666
471
  msgid "Show the plain code by default"
472
  msgstr "Показывать код как простой текст по умолчанию"
473
 
474
  # @ crayon-syntax-highlighter
475
+ #: ../crayon_settings_wp.class.php:667
476
  msgid "Enable code copy/paste"
477
  msgstr "Разрешить копирование/вставку кода"
478
 
479
  # @ crayon-syntax-highlighter
480
+ #: ../crayon_settings_wp.class.php:669
481
  msgid "Enable opening code in a window"
482
  msgstr "Разрешить показ кода в отдельном окне"
483
 
484
+ #: ../crayon_settings_wp.class.php:670
485
  msgid "Always display scrollbars"
486
  msgstr "Всегда показывать полосы прокрутки"
487
 
488
  # @ crayon-syntax-highlighter
489
+ #: ../crayon_settings_wp.class.php:671
490
  msgid "Tab size in spaces"
491
  msgstr "Размер табуляций в пробелах"
492
 
493
+ #: ../crayon_settings_wp.class.php:676
494
+ msgid "Decode HTML entities in code"
495
+ msgstr "Декодировать объекты HTML в коде"
496
+
497
+ #: ../crayon_settings_wp.class.php:678
498
+ msgid "Decode HTML entities in attributes"
499
+ msgstr "Декодировать объекты HTML в атрибутах"
500
+
501
  # @ crayon-syntax-highlighter
502
+ #: ../crayon_settings_wp.class.php:680
503
  msgid "Remove whitespace surrounding the shortcode content"
504
  msgstr "Удалять пробелы окружающие контент короткого кода"
505
 
506
  # @ crayon-syntax-highlighter
507
+ #: ../crayon_settings_wp.class.php:682
508
  msgid "Allow Mixed Language Highlighting with delimiters and tags."
509
  msgstr "Разрешить подсветку смешанных языков."
510
 
511
  # @ crayon-syntax-highlighter
512
+ #: ../crayon_settings_wp.class.php:684
513
  msgid "Show Mixed Language Icon (+)"
514
  msgstr "Показывать иконку смешанных языков (+)"
515
 
516
+ #: ../crayon_settings_wp.class.php:689
517
  msgid "Capture Mini Tags like [php][/php] as Crayons."
518
  msgstr "Обрабатывать мини-теги, например [php][/php], как теги Crayon."
519
 
520
+ #: ../crayon_settings_wp.class.php:690
521
  msgid "Capture Inline Tags like {php}{/php} inside sentences."
522
  msgstr "Обрабатывать строковые теги, такие как {php}{/php}, внутри предложения."
523
 
524
+ #: ../crayon_settings_wp.class.php:691
525
  msgid "Wrap Inline Tags"
526
  msgstr "Обрабатывать внутристроковые теги"
527
 
528
+ #: ../crayon_settings_wp.class.php:692
529
  msgid "Capture `backquotes` as &lt;code&gt;"
530
  msgstr "Обрабатывать символы `тильда` как &lt;code&gt;"
531
 
532
  # @ crayon-syntax-highlighter
533
+ #: ../crayon_settings_wp.class.php:693
534
  msgid "Capture &lt;pre&gt; tags as Crayons"
535
  msgstr "Обрабатывать тег &lt;pre&gt; как код Crayon"
536
 
537
+ #: ../crayon_settings_wp.class.php:694
538
  msgid "Enable [plain][/plain] tag."
539
  msgstr "Разрешить теги [plain][/plain]."
540
 
541
  # @ crayon-syntax-highlighter
542
+ #: ../crayon_settings_wp.class.php:699
543
  msgid "When loading local files and a relative path is given for the URL, use the absolute path"
544
+ msgstr "Если задан относительный путь для URL, при загрузке локальных файлов использовать абсолютный путь"
545
 
546
  # @ crayon-syntax-highlighter
547
+ #: ../crayon_settings_wp.class.php:702
548
  msgid "Followed by your relative URL."
549
+ msgstr "перед вашим относительным URL."
550
+
551
+ #: ../crayon_settings_wp.class.php:706
552
+ #, php-format
553
+ msgid "Use %s to separate setting names from values in the &lt;pre&gt; class attribute"
554
+ msgstr "Использовать %s для разделения имён параметров в значениях атрибутов класса &lt;pre&gt;"
555
 
556
  # @ crayon-syntax-highlighter
557
+ #: ../crayon_settings_wp.class.php:712
558
  msgid "Clear the cache used to store remote code requests"
559
  msgstr "Очищать кэш используемый для хранения кодов из внешних файлов"
560
 
561
  # @ crayon-syntax-highlighter
562
+ #: ../crayon_settings_wp.class.php:714
563
  msgid "Clear Now"
564
  msgstr "Очистить сейчас"
565
 
566
  # @ crayon-syntax-highlighter
567
+ #: ../crayon_settings_wp.class.php:715
568
  msgid "Attempt to load Crayon's CSS and JavaScript only when needed"
569
+ msgstr "Пытаться загружать таблицы стилей (CSS) и скрипты (JavaScript) от плагина только тогда, когда это нужно"
570
 
571
+ #: ../crayon_settings_wp.class.php:716
572
  msgid "Disable enqueuing for page templates that may contain The Loop."
573
  msgstr "Отключить обработку кодов для шаблонов страниц, которые могут содержать Loop."
574
 
575
+ #: ../crayon_settings_wp.class.php:717
576
  msgid "Allow Crayons inside comments"
577
  msgstr "Разрешить теги Crayon в комментариях"
578
 
579
+ #: ../crayon_settings_wp.class.php:718
580
  msgid "Load Crayons only from the main Wordpress query"
581
  msgstr "Загружать Crayon только в основных запросах Wordpress"
582
 
583
  # @ crayon-syntax-highlighter
584
+ #: ../crayon_settings_wp.class.php:719
585
  msgid "Disable mouse gestures for touchscreen devices (eg. MouseOver)"
586
  msgstr "Отключить распознавание жестов мышью для сенсорных экранов (например Наведение Мыши)"
587
 
588
  # @ crayon-syntax-highlighter
589
+ #: ../crayon_settings_wp.class.php:720
590
  msgid "Disable animations"
591
  msgstr "Запретить анимацию"
592
 
593
  # @ crayon-syntax-highlighter
594
+ #: ../crayon_settings_wp.class.php:721
595
  msgid "Disable runtime stats"
596
  msgstr "Запретить статистику выполнения"
597
 
598
  # @ crayon-syntax-highlighter
599
+ #: ../crayon_settings_wp.class.php:728
600
  msgid "Log errors for individual Crayons"
601
  msgstr "Журнал ошибок для каждого кода Crayon"
602
 
603
  # @ crayon-syntax-highlighter
604
+ #: ../crayon_settings_wp.class.php:729
605
  msgid "Log system-wide errors"
606
+ msgstr "Журнал ошибок для общесистемных ошибок"
607
 
608
  # @ crayon-syntax-highlighter
609
+ #: ../crayon_settings_wp.class.php:730
610
  msgid "Display custom message for errors"
611
  msgstr "Показывать свое сообщение об ошибках"
612
 
613
  # @ crayon-syntax-highlighter
614
+ #: ../crayon_settings_wp.class.php:742
615
  msgid "Show Log"
616
  msgstr "Показать журнал ошибок"
617
 
618
+ #: ../crayon_settings_wp.class.php:742
619
  msgid "Hide Log"
620
  msgstr "Скрыть журнал"
621
 
622
  # @ crayon-syntax-highlighter
623
+ #: ../crayon_settings_wp.class.php:744
624
  msgid "Clear Log"
625
  msgstr "Очистить журнал ошибок"
626
 
627
  # @ crayon-syntax-highlighter
628
+ #: ../crayon_settings_wp.class.php:745
629
  msgid "Email Admin"
630
  msgstr "Сообщить администратору (e-mail)"
631
 
632
  # @ crayon-syntax-highlighter
633
+ #: ../crayon_settings_wp.class.php:747
634
  msgid "Email Developer"
635
  msgstr "Сообщить разработчику (e-mail)"
636
 
637
  # @ crayon-syntax-highlighter
638
+ #: ../crayon_settings_wp.class.php:749
639
  msgid "The log is currently empty."
640
  msgstr "Журнал ошибок пуст."
641
 
642
  # @ crayon-syntax-highlighter
643
+ #: ../crayon_settings_wp.class.php:751
644
  msgid "The log file exists and is writable."
645
+ msgstr "Файл журнала ошибок существует и доступен для записи."
646
 
647
  # @ crayon-syntax-highlighter
648
+ #: ../crayon_settings_wp.class.php:751
649
  msgid "The log file exists and is not writable."
650
+ msgstr "Файл журнала ошибок существует, но не доступен для записи."
651
 
652
  # @ crayon-syntax-highlighter
653
+ #: ../crayon_settings_wp.class.php:753
654
  msgid "The log file does not exist and is not writable."
655
+ msgstr "Файл журнала ошибок не существует и не доступен для записи."
656
 
657
  # @ crayon-syntax-highlighter
658
+ #: ../crayon_settings_wp.class.php:763
659
  msgid "Version"
660
  msgstr "Версия"
661
 
662
  # @ crayon-syntax-highlighter
663
+ #: ../crayon_settings_wp.class.php:765
664
  msgid "Developer"
665
  msgstr "Разработчик"
666
 
667
+ #: ../crayon_settings_wp.class.php:766
668
  msgid "Translators"
669
  msgstr "Переводчики"
670
 
671
  # @ crayon-syntax-highlighter
672
+ #: ../crayon_settings_wp.class.php:788
673
  msgid "The result of innumerable hours of hard work over many months. It's an ongoing project, keep me motivated!"
674
  msgstr "Результат бесчисленных часов тяжелой работы за многие месяцы. Это - текущий проект, поддержите мою мотивацию!"
675
 
676
  # @ crayon-syntax-highlighter
677
+ #: ../crayon_settings_wp.class.php:804
678
  msgid "Donate"
679
+ msgstr "Поддержать разработчика (Donate)"
680
+
681
+ # @ crayon-syntax-highlighter
682
+ #: ../util/tag-editor/crayon_tag_editor_wp.class.php:57
683
+ msgid "Add Crayon Code"
684
+ msgstr "Добавить код Crayon"
685
+
686
+ #: ../util/tag-editor/crayon_tag_editor_wp.class.php:58
687
+ msgid "Edit Crayon Code"
688
+ msgstr "Изменить код Crayon"
689
+
690
+ #: ../util/tag-editor/crayon_tag_editor_wp.class.php:59
691
+ msgid "Add"
692
+ msgstr "Добавить"
693
+
694
+ #: ../util/tag-editor/crayon_tag_editor_wp.class.php:60
695
+ msgid "Save"
696
+ msgstr "Сохранить"
697
+
698
+ #: ../util/tag-editor/crayon_te_content.php:65
699
+ msgid "Title"
700
+ msgstr "Заголовок"
701
+
702
+ #: ../util/tag-editor/crayon_te_content.php:67
703
+ msgid "A short description"
704
+ msgstr "Краткое описание"
705
+
706
+ # @ crayon-syntax-highlighter
707
+ #: ../util/tag-editor/crayon_te_content.php:70
708
+ msgid "Inline"
709
+ msgstr "Внутристроковый"
710
+
711
+ # @ crayon-syntax-highlighter
712
+ #: ../util/tag-editor/crayon_te_content.php:75
713
+ msgid "Language"
714
+ msgstr "Язык"
715
+
716
+ #: ../util/tag-editor/crayon_te_content.php:78
717
+ msgid "Marked Lines"
718
+ msgstr "Помеченные строки"
719
+
720
+ #: ../util/tag-editor/crayon_te_content.php:79
721
+ msgid "(e.g. 1,2,3-5)"
722
+ msgstr "(пример: 1,2,3-5)"
723
+
724
+ # @ crayon-syntax-highlighter
725
+ #: ../util/tag-editor/crayon_te_content.php:82
726
+ msgid "Disable Highlighting"
727
+ msgstr "Запретить подсветку"
728
+
729
+ # @ crayon-syntax-highlighter
730
+ #: ../util/tag-editor/crayon_te_content.php:87
731
+ msgid "Clear"
732
+ msgstr "Очистить"
733
+
734
+ #: ../util/tag-editor/crayon_te_content.php:88
735
+ msgid "Paste your code here, or type it in manually."
736
+ msgstr "Вставьте код сюда или введите вручную."
737
+
738
+ #: ../util/tag-editor/crayon_te_content.php:91
739
+ msgid "URL"
740
+ msgstr "URL"
741
+
742
+ #: ../util/tag-editor/crayon_te_content.php:93
743
+ msgid "Relative local path or absolute URL"
744
+ msgstr "Относительный локальный путь или абсолютный URL"
745
+
746
+ #: ../util/tag-editor/crayon_te_content.php:96
747
+ msgid "If the URL fails to load, the code above will be shown instead. If no code exists, an error is shown."
748
+ msgstr "Если файл по указанному URL не загружается, приведенный выше код будет показано вместо него. Если код не введён, будет выдано сообщение об ошибке."
749
+
750
+ #: ../util/tag-editor/crayon_te_content.php:98
751
+ #, php-format
752
+ msgid "If a relative local path is given it will be appended to %s - which is defined in %sCrayon &gt; Settings &gt; Files%s."
753
+ msgstr "Если относительный локальный путь задан, он будет добавлен к пути %s - который определён в %sCrayon &gt; Настройки &gt; Файлы%s."
754
+
755
+ #: ../util/tag-editor/crayon_te_content.php:117
756
+ msgid "Change the following settings to override their global values."
757
+ msgstr "Измените следующие настройки, чтобы переопределить их глобальные значения."
758
+
759
+ #: ../util/tag-editor/crayon_te_content.php:119
760
+ msgid "Only changes (shown yellow) are applied."
761
+ msgstr "Только изменённые значения (показанные желтым) будут переопределены."
762
+
763
+ #: ../util/tag-editor/crayon_te_content.php:121
764
+ #, php-format
765
+ msgid "Future changes to the global settings under %sCrayon &gt; Settings%s won't affect overridden settings."
766
+ msgstr "Будущие изменения глобальных параметров в %sCrayon &gt; Параметры%s не повлияют на параметры переопределеные ниже."
767
 
768
  # @ crayon-syntax-highlighter
769
  #: ../util/theme-editor/editor.php:16
770
  msgid "Back To Settings"
771
+ msgstr "Вернуться к настройкам"
772
 
trans/crayon-syntax-highlighter-tr_TR.mo CHANGED
Binary file
trans/crayon-syntax-highlighter-tr_TR.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: crayon-syntax-highlighter\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2011-12-10 17:11+1000\n"
6
- "PO-Revision-Date: 2012-03-08 14:02+0200\n"
7
  "Last-Translator: kazancexpert <kazancexpert@gmail.com>\n"
8
  "Language-Team: kazancexpert <kazancexpert@gmail.com>\n"
9
  "MIME-Version: 1.0\n"
@@ -16,497 +16,483 @@ msgstr ""
16
  "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
17
  "X-Poedit-Basepath: .\n"
18
  "X-Textdomain-Support: yes\n"
19
- "X-Poedit-SearchPath-0: ..\n"
20
 
21
  #@ crayon-syntax-highlighter
22
- #: crayon_settings.class.php:135
23
- #: crayon_settings.class.php:139
24
  msgid "Max"
25
  msgstr "Max"
26
 
27
  #@ crayon-syntax-highlighter
28
- #: crayon_settings.class.php:135
29
- #: crayon_settings.class.php:139
30
  msgid "Min"
31
  msgstr "Min"
32
 
33
  #@ crayon-syntax-highlighter
34
- #: crayon_settings.class.php:135
35
- #: crayon_settings.class.php:139
36
  msgid "Static"
37
  msgstr "Sabit"
38
 
39
  #@ crayon-syntax-highlighter
40
- #: crayon_settings.class.php:137
41
- #: crayon_settings.class.php:141
42
- #: crayon_settings_wp.class.php:461
43
- #: crayon_settings_wp.class.php:470
44
- #: crayon_settings_wp.class.php:581
45
  msgid "Pixels"
46
  msgstr "Piksel"
47
 
48
  #@ crayon-syntax-highlighter
49
- #: crayon_settings.class.php:137
50
- #: crayon_settings.class.php:141
51
  msgid "Percent"
52
  msgstr "Yüzde"
53
 
54
  #@ crayon-syntax-highlighter
55
- #: crayon_settings.class.php:150
56
  msgid "None"
57
  msgstr "Yok"
58
 
59
  #@ crayon-syntax-highlighter
60
- #: crayon_settings.class.php:150
61
  msgid "Left"
62
  msgstr "Sol"
63
 
64
  #@ crayon-syntax-highlighter
65
- #: crayon_settings.class.php:150
66
  msgid "Center"
67
  msgstr "Merkez"
68
 
69
  #@ crayon-syntax-highlighter
70
- #: crayon_settings.class.php:150
71
  msgid "Right"
72
  msgstr "Sağ"
73
 
74
  #@ crayon-syntax-highlighter
75
- #: crayon_settings.class.php:152
76
- #: crayon_settings.class.php:174
77
  msgid "On MouseOver"
78
  msgstr "Fare Üstündeyken"
79
 
80
  #@ crayon-syntax-highlighter
81
- #: crayon_settings.class.php:152
82
- #: crayon_settings.class.php:158
83
  msgid "Always"
84
  msgstr "Herzaman"
85
 
86
  #@ crayon-syntax-highlighter
87
- #: crayon_settings.class.php:152
88
- #: crayon_settings.class.php:158
89
  msgid "Never"
90
  msgstr "Asla"
91
 
92
  #@ crayon-syntax-highlighter
93
- #: crayon_settings.class.php:158
94
  msgid "When Found"
95
  msgstr "Bulunduğunda"
96
 
97
  #@ crayon-syntax-highlighter
98
- #: crayon_settings.class.php:174
99
  msgid "On Double Click"
100
  msgstr "Çift Tık ile aç"
101
 
102
  #@ crayon-syntax-highlighter
103
- #: crayon_settings.class.php:174
104
  msgid "On Single Click"
105
  msgstr "Tek Tık ile aç"
106
 
107
  #@ crayon-syntax-highlighter
108
- #: crayon_settings.class.php:182
109
  msgid "An error has occurred. Please try again later."
110
  msgstr "Bir hata meydana geldi. Daha sonra tekrar deneyin."
111
 
112
  #@ crayon-syntax-highlighter
113
- #: crayon_settings_wp.class.php:39
114
- #: crayon_settings_wp.class.php:82
115
- #: crayon_settings_wp.class.php:713
 
116
  msgid "Settings"
117
  msgstr "Ayarlar"
118
 
119
  #@ crayon-syntax-highlighter
120
- #: crayon_settings_wp.class.php:73
121
  msgid "You do not have sufficient permissions to access this page."
122
  msgstr "Bu sayfaya erişmek için yeterli izinlere sahip değilsiniz."
123
 
124
  #@ crayon-syntax-highlighter
125
- #: crayon_settings_wp.class.php:94
126
  msgid "Save Changes"
127
  msgstr "Kaydet"
128
 
129
  #@ crayon-syntax-highlighter
130
- #: crayon_settings_wp.class.php:100
131
  msgid "Reset Settings"
132
  msgstr "Ayarları Sıfırla"
133
 
134
  #@ crayon-syntax-highlighter
135
- #: crayon_settings_wp.class.php:438
136
  msgid "Height"
137
  msgstr "Yükseklik"
138
 
139
  #@ crayon-syntax-highlighter
140
- #: crayon_settings_wp.class.php:444
141
  msgid "Width"
142
  msgstr "Genişlik"
143
 
144
  #@ crayon-syntax-highlighter
145
- #: crayon_settings_wp.class.php:450
146
  msgid "Top Margin"
147
  msgstr "Üst Boşluk"
148
 
149
  #@ crayon-syntax-highlighter
150
- #: crayon_settings_wp.class.php:451
151
  msgid "Bottom Margin"
152
  msgstr "Alt Boşluk"
153
 
154
  #@ crayon-syntax-highlighter
155
- #: crayon_settings_wp.class.php:452
156
- #: crayon_settings_wp.class.php:457
157
  msgid "Left Margin"
158
  msgstr "Sol Boşluk"
159
 
160
  #@ crayon-syntax-highlighter
161
- #: crayon_settings_wp.class.php:453
162
- #: crayon_settings_wp.class.php:457
163
  msgid "Right Margin"
164
  msgstr "Sağ Boşluk"
165
 
166
  #@ crayon-syntax-highlighter
167
- #: crayon_settings_wp.class.php:463
168
  msgid "Horizontal Alignment"
169
  msgstr "Yatay Hizalama"
170
 
171
  #@ crayon-syntax-highlighter
172
- #: crayon_settings_wp.class.php:466
173
  msgid "Allow floating elements to surround Crayon"
174
  msgstr "Geçişli elementleri Crayon çevrelemeye izin ver"
175
 
176
  #@ crayon-syntax-highlighter
177
- #: crayon_settings_wp.class.php:474
178
  msgid "Display the Toolbar"
179
  msgstr "Araç çubuğunu göster"
180
 
181
  #@ crayon-syntax-highlighter
182
- #: crayon_settings_wp.class.php:477
183
  msgid "Overlay the toolbar on code rather than push it down when possible"
184
  msgstr "Araç çubuğunu mümkünse kodları aşağı itmek yerine üstte göster"
185
 
186
  #@ crayon-syntax-highlighter
187
- #: crayon_settings_wp.class.php:478
188
  msgid "Toggle the toolbar on single click when it is overlayed"
189
  msgstr "Araç çubuğu üste çıktığında tek tıkla gizle"
190
 
191
  #@ crayon-syntax-highlighter
192
- #: crayon_settings_wp.class.php:479
193
  msgid "Delay hiding the toolbar on MouseOut"
194
  msgstr "Fare dışa çıktığında araç çubuğunu gizlemek için bekle"
195
 
196
  #@ crayon-syntax-highlighter
197
- #: crayon_settings_wp.class.php:481
198
  msgid "Display the title when provided"
199
  msgstr "Varsa başlığı görüntüle"
200
 
201
  #@ crayon-syntax-highlighter
202
- #: crayon_settings_wp.class.php:482
203
  msgid "Display the language"
204
  msgstr "Dilleri göster"
205
 
206
  #@ crayon-syntax-highlighter
207
- #: crayon_settings_wp.class.php:487
208
  msgid "Display striped code lines"
209
  msgstr "Şeritli kod satırını göster"
210
 
211
  #@ crayon-syntax-highlighter
212
- #: crayon_settings_wp.class.php:488
213
  msgid "Enable line marking for important lines"
214
  msgstr "Önemli satırlar için satır işaretleme etkin"
215
 
216
  #@ crayon-syntax-highlighter
217
- #: crayon_settings_wp.class.php:489
218
  msgid "Display line numbers by default"
219
  msgstr "Varsayılan olarak satır numaralarını göster"
220
 
221
  #@ crayon-syntax-highlighter
222
- #: crayon_settings_wp.class.php:490
223
  msgid "Enable line number toggling"
224
  msgstr "Satır numaraları geçişi etkin"
225
 
226
  #@ crayon-syntax-highlighter
227
- #: crayon_settings_wp.class.php:491
228
  msgid "Start line numbers from"
229
  msgstr "Satır numarasını buradan başlat"
230
 
231
  #@ crayon-syntax-highlighter
232
- #: crayon_settings_wp.class.php:501
233
  msgid "When no language is provided, use the fallback"
234
  msgstr "Belirlenmiş bir dil olmadığında son çareyi kullan"
235
 
236
  #@ crayon-syntax-highlighter
237
- #: crayon_settings_wp.class.php:509
238
  msgid "Parsing was successful"
239
  msgstr "Ayrıştırma başarılı"
240
 
241
  #@ crayon-syntax-highlighter
242
- #: crayon_settings_wp.class.php:509
243
  msgid "Parsing was unsuccessful"
244
  msgstr "Ayrıştırma başarılı değil"
245
 
246
  #@ crayon-syntax-highlighter
247
- #: crayon_settings_wp.class.php:515
248
  #, php-format
249
  msgid "The selected language with id %s could not be loaded"
250
  msgstr "ID %s ile seçilen dil yüklenemedi"
251
 
252
  #@ crayon-syntax-highlighter
253
- #: crayon_settings_wp.class.php:519
254
  msgid "Show Languages"
255
  msgstr "Dilleri Göster"
256
 
257
  #@ crayon-syntax-highlighter
258
- #: crayon_settings_wp.class.php:556
259
  msgid "Enable Live Preview"
260
  msgstr "Ön izleme etkin"
261
 
262
  #@ crayon-syntax-highlighter
263
- #: crayon_settings_wp.class.php:561
264
  #, php-format
265
  msgid "The selected theme with id %s could not be loaded"
266
  msgstr "ID %s ile seçilen tema yüklenemedi"
267
 
268
  #@ crayon-syntax-highlighter
269
- #: crayon_settings_wp.class.php:579
270
  msgid "Custom Font Size"
271
  msgstr "Kişisel Font Boyutu"
272
 
273
  #@ crayon-syntax-highlighter
274
- #: crayon_settings_wp.class.php:584
275
  #, php-format
276
  msgid "The selected font with id %s could not be loaded"
277
  msgstr "ID %s ile seçilen font yüklenemedi"
278
 
279
  #@ crayon-syntax-highlighter
280
- #: crayon_settings_wp.class.php:591
281
  msgid "Enable plain code view and display"
282
  msgstr "Düz kod görünümü ve görüntüleme etkin"
283
 
284
  #@ crayon-syntax-highlighter
285
- #: crayon_settings_wp.class.php:596
286
  msgid "Enable code copy/paste"
287
  msgstr "Kod kopyala/yapıştır etkin"
288
 
289
  #@ crayon-syntax-highlighter
290
- #: crayon_settings_wp.class.php:598
291
  msgid "Enable opening code in a window"
292
  msgstr "Kodları bir pencerede açma etkin"
293
 
294
  #@ crayon-syntax-highlighter
295
- #: crayon_settings_wp.class.php:600
296
  msgid "Tab size in spaces"
297
  msgstr "Boşluk sekme boyutu"
298
 
299
  #@ crayon-syntax-highlighter
300
- #: crayon_settings_wp.class.php:602
301
  msgid "Remove whitespace surrounding the shortcode content"
302
  msgstr "Kısakod içeriğini çevreleyen beyaz alanları kaldır"
303
 
304
  #@ crayon-syntax-highlighter
305
- #: crayon_settings_wp.class.php:618
306
  msgid "When loading local files and a relative path is given for the URL, use the absolute path"
307
  msgstr "Yerel dosyalar yüklendiği ve URL için bağlantılı yol verildiğinde, kesin yolu kullan"
308
 
309
  #@ crayon-syntax-highlighter
310
- #: crayon_settings_wp.class.php:625
311
  msgid "Clear the cache used to store remote code requests"
312
  msgstr "Uzak kod isteklerini depolamak için ön belleği temizle"
313
 
314
  #@ crayon-syntax-highlighter
315
- #: crayon_settings_wp.class.php:627
316
  msgid "Clear Now"
317
  msgstr "Şimdi Temizle"
318
 
319
  #@ crayon-syntax-highlighter
320
- #: crayon_settings_wp.class.php:632
321
  msgid "Disable mouse gestures for touchscreen devices (eg. MouseOver)"
322
  msgstr "Dokunmatik cihazlar için fare hareketlerini devre dışı bırak (örn. Fare Üzerinde)"
323
 
324
  #@ crayon-syntax-highlighter
325
- #: crayon_settings_wp.class.php:633
326
  msgid "Disable animations"
327
  msgstr "Animasyonlar devre dışı"
328
 
329
  #@ crayon-syntax-highlighter
330
- #: crayon_settings_wp.class.php:634
331
  msgid "Disable runtime stats"
332
  msgstr "İşlem istatistikleri devre dışı"
333
 
334
  #@ crayon-syntax-highlighter
335
- #: crayon_settings_wp.class.php:641
336
  msgid "Log errors for individual Crayons"
337
  msgstr "Özgün Crayons hataları günlükle"
338
 
339
  #@ crayon-syntax-highlighter
340
- #: crayon_settings_wp.class.php:642
341
  msgid "Log system-wide errors"
342
  msgstr "Sistem-geneli hataları günlükle"
343
 
344
  #@ crayon-syntax-highlighter
345
- #: crayon_settings_wp.class.php:643
346
  msgid "Display custom message for errors"
347
  msgstr "Hatalar için kişisel mesaj göster"
348
 
349
  #@ crayon-syntax-highlighter
350
- #: crayon_settings_wp.class.php:655
351
  msgid "Show Log"
352
  msgstr "Günlüğü Göster"
353
 
354
  #@ crayon-syntax-highlighter
355
- #: crayon_settings_wp.class.php:657
356
  msgid "Clear Log"
357
  msgstr "Günlüğü Temizle"
358
 
359
  #@ crayon-syntax-highlighter
360
- #: crayon_settings_wp.class.php:658
361
  msgid "Email Admin"
362
  msgstr "Yönetici E-Posta"
363
 
364
  #@ crayon-syntax-highlighter
365
- #: crayon_settings_wp.class.php:660
366
  msgid "Email Developer"
367
  msgstr "Geliştirici E-Posta"
368
 
369
  #@ crayon-syntax-highlighter
370
- #: crayon_settings_wp.class.php:676
371
  msgid "Version"
372
  msgstr "Sürüm"
373
 
374
  #@ crayon-syntax-highlighter
375
- #: crayon_settings_wp.class.php:678
376
  msgid "Developer"
377
  msgstr "Geliştirici"
378
 
379
  #@ crayon-syntax-highlighter
380
- #: crayon_settings_wp.class.php:701
381
  msgid "The result of innumerable hours of hard work over many months. It's an ongoing project, keep me motivated!"
382
  msgstr "Aylar boyu sıkı çalışma ve sayısız saatlerin sonucudur. Bu devam eden bir projedir, motivasyonumu arttırın!"
383
 
384
  #@ crayon-syntax-highlighter
385
- #: crayon_settings_wp.class.php:553
386
  #, php-format
387
  msgid "Change the %1$sfallback language%2$s to change the sample code. Lines 5-7 are marked."
388
  msgstr "Örnek kodu değiştirmek için %1$sSon çare dili%2$s değiştirin. 5-7 satırlar işaretli."
389
 
390
  #@ crayon-syntax-highlighter
391
- #: crayon_settings.class.php:106
392
  msgid "Hourly"
393
  msgstr "Saatlik"
394
 
395
  #@ crayon-syntax-highlighter
396
- #: crayon_settings.class.php:106
397
  msgid "Daily"
398
  msgstr "Günlük"
399
 
400
  #@ crayon-syntax-highlighter
401
- #: crayon_settings.class.php:107
402
  msgid "Weekly"
403
  msgstr "Haftalık"
404
 
405
  #@ crayon-syntax-highlighter
406
- #: crayon_settings.class.php:107
407
  msgid "Monthly"
408
  msgstr "Aylık"
409
 
410
  #@ crayon-syntax-highlighter
411
- #: crayon_settings.class.php:108
412
  msgid "Immediately"
413
  msgstr "Hemen"
414
 
415
  #@ crayon-syntax-highlighter
416
- #: crayon_settings_wp.class.php:424
417
  msgid "Crayon Help"
418
  msgstr "Crayon Yardım"
419
 
420
  #@ crayon-syntax-highlighter
421
- #: crayon_settings_wp.class.php:628
422
  msgid "Attempt to load Crayon's CSS and JavaScript only when needed"
423
  msgstr "Sadece ihtiyaç olduğunda Crayon CSS ve JavaScript yüklemeyi dene"
424
 
425
  #@ crayon-syntax-highlighter
426
- #: crayon_settings_wp.class.php:621
 
 
 
 
 
 
 
 
427
  msgid "Followed by your relative URL."
428
  msgstr "Bağlantılı URL tarafından izlendi."
429
 
430
  #@ crayon-syntax-highlighter
431
- #: crayon_settings_wp.class.php:662
432
  msgid "The log is currently empty."
433
  msgstr "Günlük şu anda boş."
434
 
435
  #@ crayon-syntax-highlighter
436
- #: crayon_settings_wp.class.php:664
437
  msgid "The log file exists and is writable."
438
  msgstr "Günlük dosyası var ve yazılabilir."
439
 
440
  #@ crayon-syntax-highlighter
441
- #: crayon_settings_wp.class.php:664
442
  msgid "The log file exists and is not writable."
443
  msgstr "Günlük dosyası var ve yazılabilir değil."
444
 
445
  #@ crayon-syntax-highlighter
446
- #: crayon_settings_wp.class.php:666
447
  msgid "The log file does not exist and is not writable."
448
  msgstr "Günlük dosyası yok ve yazılabilir değil."
449
 
450
  #@ crayon-syntax-highlighter
451
- #: crayon_settings_wp.class.php:508
452
- #, php-format
453
- msgid "%d language has been detected."
454
- msgid_plural "%d languages have been detected."
455
- msgstr[0] "%d dil tespit edildi."
456
- msgstr[1] "%d dil tespit edildi."
457
-
458
- #@ crayon-syntax-highlighter
459
- #: crayon_settings_wp.class.php:612
460
  msgid "Capture &lt;pre&gt; tags as Crayons"
461
  msgstr "&lt;pre&gt; etiketleri Crayons olarak yakala"
462
 
463
  #@ crayon-syntax-highlighter
464
- #: crayon_settings_wp.class.php:558
465
- #: crayon_settings_wp.class.php:587
466
- #: crayon_settings_wp.class.php:603
467
- #: crayon_settings_wp.class.php:608
468
- #: crayon_settings_wp.class.php:609
469
- #: crayon_settings_wp.class.php:610
470
- #: crayon_settings_wp.class.php:611
471
- #: crayon_settings_wp.class.php:612
472
- #: crayon_settings_wp.class.php:613
473
- #: crayon_settings_wp.class.php:628
474
- #: crayon_settings_wp.class.php:629
475
- msgid "Learn More"
476
- msgstr "Daha Fazla"
477
-
478
- #@ crayon-syntax-highlighter
479
- #: crayon_settings_wp.class.php:604
480
  msgid "Show Mixed Language Icon (+)"
481
  msgstr "Karışık Dil Simgesini Göster (+)"
482
 
483
  #@ crayon-syntax-highlighter
484
- #: crayon_settings_wp.class.php:603
485
  msgid "Allow Mixed Language Highlighting with delimiters and tags."
486
  msgstr "Sınırlayıcılar ve etiketler ile Karışık Dil Vurgulamaya izin ver."
487
 
488
  #@ crayon-syntax-highlighter
489
- #: crayon_settings_wp.class.php:608
490
  msgid "Capture Mini Tags like [php][/php] as Crayons."
491
  msgstr "Crayons olarak [php][/php] gibi küçük etiketleri yakala."
492
 
493
  #@ crayon-syntax-highlighter
494
- #: crayon_settings_wp.class.php:613
495
  msgid "Enable [plain][/plain] tag."
496
  msgstr "[plain][/plain] etiketi etkin."
497
 
498
  #@ crayon-syntax-highlighter
499
- #: crayon_settings.class.php:174
500
  msgid "Disable Mouse Events"
501
  msgstr "Fare Etkinliği Devre Dışı"
502
 
503
  #@ crayon-syntax-highlighter
504
- #: crayon_settings_wp.class.php:594
505
  msgid "Enable plain code toggling"
506
  msgstr "Düz kod geçişi etkin"
507
 
508
  #@ crayon-syntax-highlighter
509
- #: crayon_settings_wp.class.php:595
510
  msgid "Show the plain code by default"
511
  msgstr "Düz kodu varsayılan olarak göster"
512
 
@@ -517,220 +503,329 @@ msgid "Crayon Syntax Highlighter"
517
  msgstr ""
518
 
519
  #@ crayon-syntax-highlighter
520
- #. translators: plugin header field 'AuthorURI'
521
  #: crayon_wp.class.php:0
522
- msgid "http://ak.net84.net/"
523
  msgstr ""
524
 
525
  #@ crayon-syntax-highlighter
526
- #. translators: plugin header field 'Author'
527
  #: crayon_wp.class.php:0
528
- msgid "Aram Kocharyan"
529
- msgstr ""
530
 
531
  #@ crayon-syntax-highlighter
532
- #. translators: plugin header field 'PluginURI'
533
  #: crayon_wp.class.php:0
534
- msgid "http://ak.net84.net/projects/crayon-syntax-highlighter"
535
  msgstr ""
536
 
537
  #@ crayon-syntax-highlighter
538
- #. translators: plugin header field 'Description'
539
  #: crayon_wp.class.php:0
540
- msgid "Supports multiple languages, themes, highlighting from a URL, local file or post text."
541
- msgstr "Çoklu dil, temalar, bir URL den vurgulama, yerel dosya veya yazı metnini destekler."
542
 
543
  #@ crayon-syntax-highlighter
544
- #: crayon_settings_wp.class.php:717
545
  msgid "Donate"
546
  msgstr "Bağış"
547
 
548
  #@ crayon-syntax-highlighter
549
- #: crayon_settings_wp.class.php:219
550
  msgid "General"
551
  msgstr "Genel"
552
 
553
  #@ crayon-syntax-highlighter
554
- #: crayon_settings_wp.class.php:220
555
  msgid "Theme"
556
  msgstr "Tema"
557
 
558
  #@ crayon-syntax-highlighter
559
- #: crayon_settings_wp.class.php:221
560
  msgid "Font"
561
  msgstr "Font"
562
 
563
  #@ crayon-syntax-highlighter
564
- #: crayon_settings_wp.class.php:222
565
  msgid "Metrics"
566
  msgstr "Ölçüler"
567
 
568
  #@ crayon-syntax-highlighter
569
- #: crayon_settings_wp.class.php:223
570
  msgid "Toolbar"
571
  msgstr "Araç Çubuğu"
572
 
573
  #@ crayon-syntax-highlighter
574
- #: crayon_settings_wp.class.php:224
575
  msgid "Lines"
576
  msgstr "Satırlar"
577
 
578
  #@ crayon-syntax-highlighter
579
- #: crayon_settings_wp.class.php:225
 
580
  msgid "Code"
581
  msgstr "Kod"
582
 
583
  #@ crayon-syntax-highlighter
584
- #: crayon_settings_wp.class.php:227
585
  msgid "Languages"
586
  msgstr "Diller"
587
 
588
  #@ crayon-syntax-highlighter
589
- #: crayon_settings_wp.class.php:228
590
  msgid "Files"
591
  msgstr "Dosyalar"
592
 
593
  #@ crayon-syntax-highlighter
594
- #: crayon_settings_wp.class.php:229
595
  msgid "Misc"
596
  msgstr "Çeşitli"
597
 
598
  #@ crayon-syntax-highlighter
599
- #: crayon_settings_wp.class.php:232
600
  msgid "Debug"
601
  msgstr "Hata Ayıklama"
602
 
603
  #@ crayon-syntax-highlighter
604
- #: crayon_settings_wp.class.php:233
605
  msgid "Errors"
606
  msgstr "Hatalar"
607
 
608
  #@ crayon-syntax-highlighter
609
- #: crayon_settings_wp.class.php:234
610
  msgid "Log"
611
  msgstr "Günlük"
612
 
613
  #@ crayon-syntax-highlighter
614
- #: crayon_settings_wp.class.php:237
615
  msgid "About"
616
  msgstr "Hakkında"
617
 
618
  #@ crayon-syntax-highlighter
619
- #: crayon_settings_wp.class.php:558
620
  msgid "Enqueue themes in the header (more efficient)."
621
  msgstr "Temaları header içinde kuyrukla (daha etkin)."
622
 
623
  #@ crayon-syntax-highlighter
624
- #: crayon_settings_wp.class.php:587
625
  msgid "Enqueue fonts in the header (more efficient)."
626
  msgstr "Fontları header içinde kuyrukla (daha etkin)."
627
 
628
  #@ crayon-syntax-highlighter
629
- #: crayon_settings_wp.class.php:549
630
  msgid "Loading..."
631
  msgstr "Yükleniyor..."
632
 
633
  #@ crayon-syntax-highlighter
634
- #: crayon_settings_wp.class.php:549
635
- #: crayon_settings_wp.class.php:715
636
  #: util/theme-editor/editor.php:14
637
  msgid "Theme Editor"
638
  msgstr "Tema Düzenleyici"
639
 
640
  #@ crayon-syntax-highlighter
641
- #: crayon_settings_wp.class.php:599
642
  msgid "Always display scrollbars"
643
- msgstr "Kenar çubuğu her zaman göster"
644
 
645
  #@ crayon-syntax-highlighter
646
- #: crayon_settings_wp.class.php:629
647
  msgid "Disable enqueuing for page templates that may contain The Loop."
648
  msgstr "Döngü içeren sayfa şablonları için kuyruklama devre dışı."
649
 
650
  #@ crayon-syntax-highlighter
651
- #: crayon_settings_wp.class.php:631
652
  msgid "Load Crayons only from the main Wordpress query"
653
  msgstr "Sadece ana Wordpress sorgusundan Crayons yükle"
654
 
 
 
 
 
 
655
  #@ crayon-syntax-highlighter
656
  #: util/theme-editor/editor.php:16
657
  msgid "Back To Settings"
658
  msgstr "Ayarlara Geri Dön"
659
 
660
  #@ crayon-syntax-highlighter
661
- #: crayon_settings_wp.class.php:679
662
- msgid "Translators"
663
- msgstr "Çevirmenler"
664
-
665
- #@ crayon-syntax-highlighter
666
- #: crayon_formatter.class.php:270
667
  msgid "Toggle Plain Code"
668
  msgstr "Düz Koda Geç"
669
 
670
  #@ crayon-syntax-highlighter
671
- #: crayon_formatter.class.php:272
672
  msgid "Copy Plain Code"
673
  msgstr "Düz Kodu Kopyala"
674
 
675
  #@ crayon-syntax-highlighter
676
- #: crayon_formatter.class.php:278
677
  msgid "Open Code In New Window"
678
  msgstr "Kodu Yeni Pencerede Aç"
679
 
680
  #@ crayon-syntax-highlighter
681
- #: crayon_formatter.class.php:281
682
  msgid "Toggle Line Numbers"
683
  msgstr "Satır Numaralarına Geç"
684
 
685
  #@ crayon-syntax-highlighter
686
- #: crayon_formatter.class.php:288
687
  msgid "Contains Mixed Languages"
688
  msgstr "Karışık Diller içerir"
689
 
690
  #@ crayon-syntax-highlighter
691
- #: crayon_settings_wp.class.php:655
692
  msgid "Hide Log"
693
  msgstr "Günlüğü Gizle"
694
 
695
  #@ crayon-syntax-highlighter
696
- #: crayon_formatter.class.php:272
697
  #, php-format
698
  msgid "Press %s to Copy, %s to Paste"
699
  msgstr "%s ile Kopyala, %s ile Yapıştır"
700
 
701
  #@ crayon-syntax-highlighter
702
- #: crayon_settings_wp.class.php:226
703
  msgid "Tags"
704
  msgstr "Etiketler"
705
 
706
  #@ crayon-syntax-highlighter
707
- #: crayon_settings_wp.class.php:468
708
  msgid "Inline Margin"
709
  msgstr "Satıriçi Boşluk"
710
 
711
  #@ crayon-syntax-highlighter
712
- #: crayon_settings_wp.class.php:609
713
  msgid "Capture Inline Tags like {php}{/php} inside sentences."
714
  msgstr "Cümle içinde {php}{/php} gibi satıriçi etiketleri yakalayın."
715
 
716
  #@ crayon-syntax-highlighter
717
- #: crayon_settings_wp.class.php:611
718
  msgid "Capture `backquotes` as &lt;code&gt;"
719
  msgstr "&lt;code&gt; olarak `backquotes` yakalayın"
720
 
721
  #@ crayon-syntax-highlighter
722
- #: crayon_settings_wp.class.php:630
723
  msgid "Allow Crayons inside comments"
724
  msgstr "Yorum içinde Crayons izini verin"
725
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
726
  #@ crayon-syntax-highlighter
727
  #. translators: plugin header field 'Version'
728
  #: crayon_wp.class.php:0
729
- msgid "1.8.2"
730
  msgstr ""
731
 
732
  #@ crayon-syntax-highlighter
733
- #: crayon_settings_wp.class.php:610
734
- msgid "Wrap Inline Tags"
735
- msgstr "Wrap Inline Etiketler"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
736
 
2
  msgstr ""
3
  "Project-Id-Version: crayon-syntax-highlighter\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
  "Last-Translator: kazancexpert <kazancexpert@gmail.com>\n"
8
  "Language-Team: kazancexpert <kazancexpert@gmail.com>\n"
9
  "MIME-Version: 1.0\n"
16
  "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
17
  "X-Poedit-Basepath: .\n"
18
  "X-Textdomain-Support: yes\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
 
21
  #@ crayon-syntax-highlighter
22
+ #: crayon_settings.class.php:149
23
+ #: crayon_settings.class.php:153
24
  msgid "Max"
25
  msgstr "Max"
26
 
27
  #@ crayon-syntax-highlighter
28
+ #: crayon_settings.class.php:149
29
+ #: crayon_settings.class.php:153
30
  msgid "Min"
31
  msgstr "Min"
32
 
33
  #@ crayon-syntax-highlighter
34
+ #: crayon_settings.class.php:149
35
+ #: crayon_settings.class.php:153
36
  msgid "Static"
37
  msgstr "Sabit"
38
 
39
  #@ crayon-syntax-highlighter
40
+ #: crayon_settings.class.php:151
41
+ #: crayon_settings.class.php:155
42
+ #: crayon_settings_wp.class.php:517
43
+ #: crayon_settings_wp.class.php:526
44
+ #: crayon_settings_wp.class.php:625
45
  msgid "Pixels"
46
  msgstr "Piksel"
47
 
48
  #@ crayon-syntax-highlighter
49
+ #: crayon_settings.class.php:151
50
+ #: crayon_settings.class.php:155
51
  msgid "Percent"
52
  msgstr "Yüzde"
53
 
54
  #@ crayon-syntax-highlighter
55
+ #: crayon_settings.class.php:164
56
  msgid "None"
57
  msgstr "Yok"
58
 
59
  #@ crayon-syntax-highlighter
60
+ #: crayon_settings.class.php:164
61
  msgid "Left"
62
  msgstr "Sol"
63
 
64
  #@ crayon-syntax-highlighter
65
+ #: crayon_settings.class.php:164
66
  msgid "Center"
67
  msgstr "Merkez"
68
 
69
  #@ crayon-syntax-highlighter
70
+ #: crayon_settings.class.php:164
71
  msgid "Right"
72
  msgstr "Sağ"
73
 
74
  #@ crayon-syntax-highlighter
75
+ #: crayon_settings.class.php:166
76
+ #: crayon_settings.class.php:188
77
  msgid "On MouseOver"
78
  msgstr "Fare Üstündeyken"
79
 
80
  #@ crayon-syntax-highlighter
81
+ #: crayon_settings.class.php:166
82
+ #: crayon_settings.class.php:172
83
  msgid "Always"
84
  msgstr "Herzaman"
85
 
86
  #@ crayon-syntax-highlighter
87
+ #: crayon_settings.class.php:166
88
+ #: crayon_settings.class.php:172
89
  msgid "Never"
90
  msgstr "Asla"
91
 
92
  #@ crayon-syntax-highlighter
93
+ #: crayon_settings.class.php:172
94
  msgid "When Found"
95
  msgstr "Bulunduğunda"
96
 
97
  #@ crayon-syntax-highlighter
98
+ #: crayon_settings.class.php:188
99
  msgid "On Double Click"
100
  msgstr "Çift Tık ile aç"
101
 
102
  #@ crayon-syntax-highlighter
103
+ #: crayon_settings.class.php:188
104
  msgid "On Single Click"
105
  msgstr "Tek Tık ile aç"
106
 
107
  #@ crayon-syntax-highlighter
108
+ #: crayon_settings.class.php:196
109
  msgid "An error has occurred. Please try again later."
110
  msgstr "Bir hata meydana geldi. Daha sonra tekrar deneyin."
111
 
112
  #@ crayon-syntax-highlighter
113
+ #: crayon_settings_wp.class.php:41
114
+ #: crayon_settings_wp.class.php:111
115
+ #: crayon_settings_wp.class.php:783
116
+ #: util/tag-editor/crayon_te_content.php:101
117
  msgid "Settings"
118
  msgstr "Ayarlar"
119
 
120
  #@ crayon-syntax-highlighter
121
+ #: crayon_settings_wp.class.php:95
122
  msgid "You do not have sufficient permissions to access this page."
123
  msgstr "Bu sayfaya erişmek için yeterli izinlere sahip değilsiniz."
124
 
125
  #@ crayon-syntax-highlighter
126
+ #: crayon_settings_wp.class.php:123
127
  msgid "Save Changes"
128
  msgstr "Kaydet"
129
 
130
  #@ crayon-syntax-highlighter
131
+ #: crayon_settings_wp.class.php:129
132
  msgid "Reset Settings"
133
  msgstr "Ayarları Sıfırla"
134
 
135
  #@ crayon-syntax-highlighter
136
+ #: crayon_settings_wp.class.php:494
137
  msgid "Height"
138
  msgstr "Yükseklik"
139
 
140
  #@ crayon-syntax-highlighter
141
+ #: crayon_settings_wp.class.php:500
142
  msgid "Width"
143
  msgstr "Genişlik"
144
 
145
  #@ crayon-syntax-highlighter
146
+ #: crayon_settings_wp.class.php:506
147
  msgid "Top Margin"
148
  msgstr "Üst Boşluk"
149
 
150
  #@ crayon-syntax-highlighter
151
+ #: crayon_settings_wp.class.php:507
152
  msgid "Bottom Margin"
153
  msgstr "Alt Boşluk"
154
 
155
  #@ crayon-syntax-highlighter
156
+ #: crayon_settings_wp.class.php:508
157
+ #: crayon_settings_wp.class.php:513
158
  msgid "Left Margin"
159
  msgstr "Sol Boşluk"
160
 
161
  #@ crayon-syntax-highlighter
162
+ #: crayon_settings_wp.class.php:509
163
+ #: crayon_settings_wp.class.php:513
164
  msgid "Right Margin"
165
  msgstr "Sağ Boşluk"
166
 
167
  #@ crayon-syntax-highlighter
168
+ #: crayon_settings_wp.class.php:519
169
  msgid "Horizontal Alignment"
170
  msgstr "Yatay Hizalama"
171
 
172
  #@ crayon-syntax-highlighter
173
+ #: crayon_settings_wp.class.php:522
174
  msgid "Allow floating elements to surround Crayon"
175
  msgstr "Geçişli elementleri Crayon çevrelemeye izin ver"
176
 
177
  #@ crayon-syntax-highlighter
178
+ #: crayon_settings_wp.class.php:532
179
  msgid "Display the Toolbar"
180
  msgstr "Araç çubuğunu göster"
181
 
182
  #@ crayon-syntax-highlighter
183
+ #: crayon_settings_wp.class.php:535
184
  msgid "Overlay the toolbar on code rather than push it down when possible"
185
  msgstr "Araç çubuğunu mümkünse kodları aşağı itmek yerine üstte göster"
186
 
187
  #@ crayon-syntax-highlighter
188
+ #: crayon_settings_wp.class.php:536
189
  msgid "Toggle the toolbar on single click when it is overlayed"
190
  msgstr "Araç çubuğu üste çıktığında tek tıkla gizle"
191
 
192
  #@ crayon-syntax-highlighter
193
+ #: crayon_settings_wp.class.php:537
194
  msgid "Delay hiding the toolbar on MouseOut"
195
  msgstr "Fare dışa çıktığında araç çubuğunu gizlemek için bekle"
196
 
197
  #@ crayon-syntax-highlighter
198
+ #: crayon_settings_wp.class.php:539
199
  msgid "Display the title when provided"
200
  msgstr "Varsa başlığı görüntüle"
201
 
202
  #@ crayon-syntax-highlighter
203
+ #: crayon_settings_wp.class.php:540
204
  msgid "Display the language"
205
  msgstr "Dilleri göster"
206
 
207
  #@ crayon-syntax-highlighter
208
+ #: crayon_settings_wp.class.php:547
209
  msgid "Display striped code lines"
210
  msgstr "Şeritli kod satırını göster"
211
 
212
  #@ crayon-syntax-highlighter
213
+ #: crayon_settings_wp.class.php:548
214
  msgid "Enable line marking for important lines"
215
  msgstr "Önemli satırlar için satır işaretleme etkin"
216
 
217
  #@ crayon-syntax-highlighter
218
+ #: crayon_settings_wp.class.php:549
219
  msgid "Display line numbers by default"
220
  msgstr "Varsayılan olarak satır numaralarını göster"
221
 
222
  #@ crayon-syntax-highlighter
223
+ #: crayon_settings_wp.class.php:550
224
  msgid "Enable line number toggling"
225
  msgstr "Satır numaraları geçişi etkin"
226
 
227
  #@ crayon-syntax-highlighter
228
+ #: crayon_settings_wp.class.php:551
229
  msgid "Start line numbers from"
230
  msgstr "Satır numarasını buradan başlat"
231
 
232
  #@ crayon-syntax-highlighter
233
+ #: crayon_settings_wp.class.php:561
234
  msgid "When no language is provided, use the fallback"
235
  msgstr "Belirlenmiş bir dil olmadığında son çareyi kullan"
236
 
237
  #@ crayon-syntax-highlighter
238
+ #: crayon_settings_wp.class.php:568
239
  msgid "Parsing was successful"
240
  msgstr "Ayrıştırma başarılı"
241
 
242
  #@ crayon-syntax-highlighter
243
+ #: crayon_settings_wp.class.php:568
244
  msgid "Parsing was unsuccessful"
245
  msgstr "Ayrıştırma başarılı değil"
246
 
247
  #@ crayon-syntax-highlighter
248
+ #: crayon_settings_wp.class.php:574
249
  #, php-format
250
  msgid "The selected language with id %s could not be loaded"
251
  msgstr "ID %s ile seçilen dil yüklenemedi"
252
 
253
  #@ crayon-syntax-highlighter
254
+ #: crayon_settings_wp.class.php:578
255
  msgid "Show Languages"
256
  msgstr "Dilleri Göster"
257
 
258
  #@ crayon-syntax-highlighter
259
+ #: crayon_settings_wp.class.php:606
260
  msgid "Enable Live Preview"
261
  msgstr "Ön izleme etkin"
262
 
263
  #@ crayon-syntax-highlighter
264
+ #: crayon_settings_wp.class.php:611
265
  #, php-format
266
  msgid "The selected theme with id %s could not be loaded"
267
  msgstr "ID %s ile seçilen tema yüklenemedi"
268
 
269
  #@ crayon-syntax-highlighter
270
+ #: crayon_settings_wp.class.php:623
271
  msgid "Custom Font Size"
272
  msgstr "Kişisel Font Boyutu"
273
 
274
  #@ crayon-syntax-highlighter
275
+ #: crayon_settings_wp.class.php:628
276
  #, php-format
277
  msgid "The selected font with id %s could not be loaded"
278
  msgstr "ID %s ile seçilen font yüklenemedi"
279
 
280
  #@ crayon-syntax-highlighter
281
+ #: crayon_settings_wp.class.php:639
282
  msgid "Enable plain code view and display"
283
  msgstr "Düz kod görünümü ve görüntüleme etkin"
284
 
285
  #@ crayon-syntax-highlighter
286
+ #: crayon_settings_wp.class.php:644
287
  msgid "Enable code copy/paste"
288
  msgstr "Kod kopyala/yapıştır etkin"
289
 
290
  #@ crayon-syntax-highlighter
291
+ #: crayon_settings_wp.class.php:646
292
  msgid "Enable opening code in a window"
293
  msgstr "Kodları bir pencerede açma etkin"
294
 
295
  #@ crayon-syntax-highlighter
296
+ #: crayon_settings_wp.class.php:648
297
  msgid "Tab size in spaces"
298
  msgstr "Boşluk sekme boyutu"
299
 
300
  #@ crayon-syntax-highlighter
301
+ #: crayon_settings_wp.class.php:657
302
  msgid "Remove whitespace surrounding the shortcode content"
303
  msgstr "Kısakod içeriğini çevreleyen beyaz alanları kaldır"
304
 
305
  #@ crayon-syntax-highlighter
306
+ #: crayon_settings_wp.class.php:676
307
  msgid "When loading local files and a relative path is given for the URL, use the absolute path"
308
  msgstr "Yerel dosyalar yüklendiği ve URL için bağlantılı yol verildiğinde, kesin yolu kullan"
309
 
310
  #@ crayon-syntax-highlighter
311
+ #: crayon_settings_wp.class.php:695
312
  msgid "Clear the cache used to store remote code requests"
313
  msgstr "Uzak kod isteklerini depolamak için ön belleği temizle"
314
 
315
  #@ crayon-syntax-highlighter
316
+ #: crayon_settings_wp.class.php:697
317
  msgid "Clear Now"
318
  msgstr "Şimdi Temizle"
319
 
320
  #@ crayon-syntax-highlighter
321
+ #: crayon_settings_wp.class.php:702
322
  msgid "Disable mouse gestures for touchscreen devices (eg. MouseOver)"
323
  msgstr "Dokunmatik cihazlar için fare hareketlerini devre dışı bırak (örn. Fare Üzerinde)"
324
 
325
  #@ crayon-syntax-highlighter
326
+ #: crayon_settings_wp.class.php:703
327
  msgid "Disable animations"
328
  msgstr "Animasyonlar devre dışı"
329
 
330
  #@ crayon-syntax-highlighter
331
+ #: crayon_settings_wp.class.php:704
332
  msgid "Disable runtime stats"
333
  msgstr "İşlem istatistikleri devre dışı"
334
 
335
  #@ crayon-syntax-highlighter
336
+ #: crayon_settings_wp.class.php:711
337
  msgid "Log errors for individual Crayons"
338
  msgstr "Özgün Crayons hataları günlükle"
339
 
340
  #@ crayon-syntax-highlighter
341
+ #: crayon_settings_wp.class.php:712
342
  msgid "Log system-wide errors"
343
  msgstr "Sistem-geneli hataları günlükle"
344
 
345
  #@ crayon-syntax-highlighter
346
+ #: crayon_settings_wp.class.php:713
347
  msgid "Display custom message for errors"
348
  msgstr "Hatalar için kişisel mesaj göster"
349
 
350
  #@ crayon-syntax-highlighter
351
+ #: crayon_settings_wp.class.php:725
352
  msgid "Show Log"
353
  msgstr "Günlüğü Göster"
354
 
355
  #@ crayon-syntax-highlighter
356
+ #: crayon_settings_wp.class.php:727
357
  msgid "Clear Log"
358
  msgstr "Günlüğü Temizle"
359
 
360
  #@ crayon-syntax-highlighter
361
+ #: crayon_settings_wp.class.php:728
362
  msgid "Email Admin"
363
  msgstr "Yönetici E-Posta"
364
 
365
  #@ crayon-syntax-highlighter
366
+ #: crayon_settings_wp.class.php:730
367
  msgid "Email Developer"
368
  msgstr "Geliştirici E-Posta"
369
 
370
  #@ crayon-syntax-highlighter
371
+ #: crayon_settings_wp.class.php:746
372
  msgid "Version"
373
  msgstr "Sürüm"
374
 
375
  #@ crayon-syntax-highlighter
376
+ #: crayon_settings_wp.class.php:748
377
  msgid "Developer"
378
  msgstr "Geliştirici"
379
 
380
  #@ crayon-syntax-highlighter
381
+ #: crayon_settings_wp.class.php:771
382
  msgid "The result of innumerable hours of hard work over many months. It's an ongoing project, keep me motivated!"
383
  msgstr "Aylar boyu sıkı çalışma ve sayısız saatlerin sonucudur. Bu devam eden bir projedir, motivasyonumu arttırın!"
384
 
385
  #@ crayon-syntax-highlighter
386
+ #: crayon_settings_wp.class.php:602
387
  #, php-format
388
  msgid "Change the %1$sfallback language%2$s to change the sample code. Lines 5-7 are marked."
389
  msgstr "Örnek kodu değiştirmek için %1$sSon çare dili%2$s değiştirin. 5-7 satırlar işaretli."
390
 
391
  #@ crayon-syntax-highlighter
392
+ #: crayon_settings.class.php:120
393
  msgid "Hourly"
394
  msgstr "Saatlik"
395
 
396
  #@ crayon-syntax-highlighter
397
+ #: crayon_settings.class.php:120
398
  msgid "Daily"
399
  msgstr "Günlük"
400
 
401
  #@ crayon-syntax-highlighter
402
+ #: crayon_settings.class.php:121
403
  msgid "Weekly"
404
  msgstr "Haftalık"
405
 
406
  #@ crayon-syntax-highlighter
407
+ #: crayon_settings.class.php:121
408
  msgid "Monthly"
409
  msgstr "Aylık"
410
 
411
  #@ crayon-syntax-highlighter
412
+ #: crayon_settings.class.php:122
413
  msgid "Immediately"
414
  msgstr "Hemen"
415
 
416
  #@ crayon-syntax-highlighter
417
+ #: crayon_settings_wp.class.php:479
418
  msgid "Crayon Help"
419
  msgstr "Crayon Yardım"
420
 
421
  #@ crayon-syntax-highlighter
422
+ #: crayon_settings_wp.class.php:698
423
  msgid "Attempt to load Crayon's CSS and JavaScript only when needed"
424
  msgstr "Sadece ihtiyaç olduğunda Crayon CSS ve JavaScript yüklemeyi dene"
425
 
426
  #@ crayon-syntax-highlighter
427
+ #: crayon_settings_wp.class.php:567
428
+ #, php-format
429
+ msgid "%d language has been detected."
430
+ msgid_plural "%d languages have been detected."
431
+ msgstr[0] "%d dil tespit edildi."
432
+ msgstr[1] "%d dil tespit edildi."
433
+
434
+ #@ crayon-syntax-highlighter
435
+ #: crayon_settings_wp.class.php:679
436
  msgid "Followed by your relative URL."
437
  msgstr "Bağlantılı URL tarafından izlendi."
438
 
439
  #@ crayon-syntax-highlighter
440
+ #: crayon_settings_wp.class.php:732
441
  msgid "The log is currently empty."
442
  msgstr "Günlük şu anda boş."
443
 
444
  #@ crayon-syntax-highlighter
445
+ #: crayon_settings_wp.class.php:734
446
  msgid "The log file exists and is writable."
447
  msgstr "Günlük dosyası var ve yazılabilir."
448
 
449
  #@ crayon-syntax-highlighter
450
+ #: crayon_settings_wp.class.php:734
451
  msgid "The log file exists and is not writable."
452
  msgstr "Günlük dosyası var ve yazılabilir değil."
453
 
454
  #@ crayon-syntax-highlighter
455
+ #: crayon_settings_wp.class.php:736
456
  msgid "The log file does not exist and is not writable."
457
  msgstr "Günlük dosyası yok ve yazılabilir değil."
458
 
459
  #@ crayon-syntax-highlighter
460
+ #: crayon_settings_wp.class.php:670
 
 
 
 
 
 
 
 
461
  msgid "Capture &lt;pre&gt; tags as Crayons"
462
  msgstr "&lt;pre&gt; etiketleri Crayons olarak yakala"
463
 
464
  #@ crayon-syntax-highlighter
465
+ #: crayon_settings_wp.class.php:661
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
466
  msgid "Show Mixed Language Icon (+)"
467
  msgstr "Karışık Dil Simgesini Göster (+)"
468
 
469
  #@ crayon-syntax-highlighter
470
+ #: crayon_settings_wp.class.php:659
471
  msgid "Allow Mixed Language Highlighting with delimiters and tags."
472
  msgstr "Sınırlayıcılar ve etiketler ile Karışık Dil Vurgulamaya izin ver."
473
 
474
  #@ crayon-syntax-highlighter
475
+ #: crayon_settings_wp.class.php:666
476
  msgid "Capture Mini Tags like [php][/php] as Crayons."
477
  msgstr "Crayons olarak [php][/php] gibi küçük etiketleri yakala."
478
 
479
  #@ crayon-syntax-highlighter
480
+ #: crayon_settings_wp.class.php:671
481
  msgid "Enable [plain][/plain] tag."
482
  msgstr "[plain][/plain] etiketi etkin."
483
 
484
  #@ crayon-syntax-highlighter
485
+ #: crayon_settings.class.php:188
486
  msgid "Disable Mouse Events"
487
  msgstr "Fare Etkinliği Devre Dışı"
488
 
489
  #@ crayon-syntax-highlighter
490
+ #: crayon_settings_wp.class.php:642
491
  msgid "Enable plain code toggling"
492
  msgstr "Düz kod geçişi etkin"
493
 
494
  #@ crayon-syntax-highlighter
495
+ #: crayon_settings_wp.class.php:643
496
  msgid "Show the plain code by default"
497
  msgstr "Düz kodu varsayılan olarak göster"
498
 
503
  msgstr ""
504
 
505
  #@ crayon-syntax-highlighter
506
+ #. translators: plugin header field 'PluginURI'
507
  #: crayon_wp.class.php:0
508
+ msgid "http://ak.net84.net/projects/crayon-syntax-highlighter"
509
  msgstr ""
510
 
511
  #@ crayon-syntax-highlighter
512
+ #. translators: plugin header field 'Description'
513
  #: crayon_wp.class.php:0
514
+ msgid "Supports multiple languages, themes, highlighting from a URL, local file or post text."
515
+ msgstr "Çoklu dil, temalar, bir URL den vurgulama, yerel dosya veya yazı metnini destekler."
516
 
517
  #@ crayon-syntax-highlighter
518
+ #. translators: plugin header field 'Author'
519
  #: crayon_wp.class.php:0
520
+ msgid "Aram Kocharyan"
521
  msgstr ""
522
 
523
  #@ crayon-syntax-highlighter
524
+ #. translators: plugin header field 'AuthorURI'
525
  #: crayon_wp.class.php:0
526
+ msgid "http://ak.net84.net/"
527
+ msgstr ""
528
 
529
  #@ crayon-syntax-highlighter
530
+ #: crayon_settings_wp.class.php:787
531
  msgid "Donate"
532
  msgstr "Bağış"
533
 
534
  #@ crayon-syntax-highlighter
535
+ #: crayon_settings_wp.class.php:249
536
  msgid "General"
537
  msgstr "Genel"
538
 
539
  #@ crayon-syntax-highlighter
540
+ #: crayon_settings_wp.class.php:250
541
  msgid "Theme"
542
  msgstr "Tema"
543
 
544
  #@ crayon-syntax-highlighter
545
+ #: crayon_settings_wp.class.php:251
546
  msgid "Font"
547
  msgstr "Font"
548
 
549
  #@ crayon-syntax-highlighter
550
+ #: crayon_settings_wp.class.php:252
551
  msgid "Metrics"
552
  msgstr "Ölçüler"
553
 
554
  #@ crayon-syntax-highlighter
555
+ #: crayon_settings_wp.class.php:253
556
  msgid "Toolbar"
557
  msgstr "Araç Çubuğu"
558
 
559
  #@ crayon-syntax-highlighter
560
+ #: crayon_settings_wp.class.php:254
561
  msgid "Lines"
562
  msgstr "Satırlar"
563
 
564
  #@ crayon-syntax-highlighter
565
+ #: crayon_settings_wp.class.php:255
566
+ #: util/tag-editor/crayon_te_content.php:87
567
  msgid "Code"
568
  msgstr "Kod"
569
 
570
  #@ crayon-syntax-highlighter
571
+ #: crayon_settings_wp.class.php:257
572
  msgid "Languages"
573
  msgstr "Diller"
574
 
575
  #@ crayon-syntax-highlighter
576
+ #: crayon_settings_wp.class.php:258
577
  msgid "Files"
578
  msgstr "Dosyalar"
579
 
580
  #@ crayon-syntax-highlighter
581
+ #: crayon_settings_wp.class.php:260
582
  msgid "Misc"
583
  msgstr "Çeşitli"
584
 
585
  #@ crayon-syntax-highlighter
586
+ #: crayon_settings_wp.class.php:263
587
  msgid "Debug"
588
  msgstr "Hata Ayıklama"
589
 
590
  #@ crayon-syntax-highlighter
591
+ #: crayon_settings_wp.class.php:264
592
  msgid "Errors"
593
  msgstr "Hatalar"
594
 
595
  #@ crayon-syntax-highlighter
596
+ #: crayon_settings_wp.class.php:265
597
  msgid "Log"
598
  msgstr "Günlük"
599
 
600
  #@ crayon-syntax-highlighter
601
+ #: crayon_settings_wp.class.php:268
602
  msgid "About"
603
  msgstr "Hakkında"
604
 
605
  #@ crayon-syntax-highlighter
606
+ #: crayon_settings_wp.class.php:608
607
  msgid "Enqueue themes in the header (more efficient)."
608
  msgstr "Temaları header içinde kuyrukla (daha etkin)."
609
 
610
  #@ crayon-syntax-highlighter
611
+ #: crayon_settings_wp.class.php:634
612
  msgid "Enqueue fonts in the header (more efficient)."
613
  msgstr "Fontları header içinde kuyrukla (daha etkin)."
614
 
615
  #@ crayon-syntax-highlighter
616
+ #: crayon_settings_wp.class.php:597
617
  msgid "Loading..."
618
  msgstr "Yükleniyor..."
619
 
620
  #@ crayon-syntax-highlighter
621
+ #: crayon_settings_wp.class.php:597
622
+ #: crayon_settings_wp.class.php:785
623
  #: util/theme-editor/editor.php:14
624
  msgid "Theme Editor"
625
  msgstr "Tema Düzenleyici"
626
 
627
  #@ crayon-syntax-highlighter
628
+ #: crayon_settings_wp.class.php:647
629
  msgid "Always display scrollbars"
630
+ msgstr "Kaydırma çubuğu her zaman göster"
631
 
632
  #@ crayon-syntax-highlighter
633
+ #: crayon_settings_wp.class.php:699
634
  msgid "Disable enqueuing for page templates that may contain The Loop."
635
  msgstr "Döngü içeren sayfa şablonları için kuyruklama devre dışı."
636
 
637
  #@ crayon-syntax-highlighter
638
+ #: crayon_settings_wp.class.php:701
639
  msgid "Load Crayons only from the main Wordpress query"
640
  msgstr "Sadece ana Wordpress sorgusundan Crayons yükle"
641
 
642
+ #@ crayon-syntax-highlighter
643
+ #: crayon_settings_wp.class.php:749
644
+ msgid "Translators"
645
+ msgstr "Çevirmenler"
646
+
647
  #@ crayon-syntax-highlighter
648
  #: util/theme-editor/editor.php:16
649
  msgid "Back To Settings"
650
  msgstr "Ayarlara Geri Dön"
651
 
652
  #@ crayon-syntax-highlighter
653
+ #: crayon_formatter.class.php:264
 
 
 
 
 
654
  msgid "Toggle Plain Code"
655
  msgstr "Düz Koda Geç"
656
 
657
  #@ crayon-syntax-highlighter
658
+ #: crayon_formatter.class.php:266
659
  msgid "Copy Plain Code"
660
  msgstr "Düz Kodu Kopyala"
661
 
662
  #@ crayon-syntax-highlighter
663
+ #: crayon_formatter.class.php:268
664
  msgid "Open Code In New Window"
665
  msgstr "Kodu Yeni Pencerede Aç"
666
 
667
  #@ crayon-syntax-highlighter
668
+ #: crayon_formatter.class.php:271
669
  msgid "Toggle Line Numbers"
670
  msgstr "Satır Numaralarına Geç"
671
 
672
  #@ crayon-syntax-highlighter
673
+ #: crayon_formatter.class.php:277
674
  msgid "Contains Mixed Languages"
675
  msgstr "Karışık Diller içerir"
676
 
677
  #@ crayon-syntax-highlighter
678
+ #: crayon_settings_wp.class.php:725
679
  msgid "Hide Log"
680
  msgstr "Günlüğü Gizle"
681
 
682
  #@ crayon-syntax-highlighter
683
+ #: crayon_formatter.class.php:266
684
  #, php-format
685
  msgid "Press %s to Copy, %s to Paste"
686
  msgstr "%s ile Kopyala, %s ile Yapıştır"
687
 
688
  #@ crayon-syntax-highlighter
689
+ #: crayon_settings_wp.class.php:256
690
  msgid "Tags"
691
  msgstr "Etiketler"
692
 
693
  #@ crayon-syntax-highlighter
694
+ #: crayon_settings_wp.class.php:524
695
  msgid "Inline Margin"
696
  msgstr "Satıriçi Boşluk"
697
 
698
  #@ crayon-syntax-highlighter
699
+ #: crayon_settings_wp.class.php:667
700
  msgid "Capture Inline Tags like {php}{/php} inside sentences."
701
  msgstr "Cümle içinde {php}{/php} gibi satıriçi etiketleri yakalayın."
702
 
703
  #@ crayon-syntax-highlighter
704
+ #: crayon_settings_wp.class.php:669
705
  msgid "Capture `backquotes` as &lt;code&gt;"
706
  msgstr "&lt;code&gt; olarak `backquotes` yakalayın"
707
 
708
  #@ crayon-syntax-highlighter
709
+ #: crayon_settings_wp.class.php:700
710
  msgid "Allow Crayons inside comments"
711
  msgstr "Yorum içinde Crayons izini verin"
712
 
713
+ #@ crayon-syntax-highlighter
714
+ #: crayon_settings_wp.class.php:668
715
+ msgid "Wrap Inline Tags"
716
+ msgstr "Satıriçi Etiketleri Sar"
717
+
718
+ #@ crayon-syntax-highlighter
719
+ #: crayon_settings_wp.class.php:259
720
+ msgid "Tag Editor"
721
+ msgstr "Etiket Düzenleyici"
722
+
723
+ #@ crayon-syntax-highlighter
724
+ #: crayon_settings_wp.class.php:608
725
+ #: crayon_settings_wp.class.php:634
726
+ #: crayon_settings_wp.class.php:659
727
+ #: crayon_settings_wp.class.php:666
728
+ #: crayon_settings_wp.class.php:667
729
+ #: crayon_settings_wp.class.php:668
730
+ #: crayon_settings_wp.class.php:669
731
+ #: crayon_settings_wp.class.php:670
732
+ #: crayon_settings_wp.class.php:671
733
+ #: crayon_settings_wp.class.php:687
734
+ #: crayon_settings_wp.class.php:698
735
+ #: crayon_settings_wp.class.php:699
736
+ msgid "?"
737
+ msgstr ""
738
+
739
+ #@ crayon-syntax-highlighter
740
+ #: crayon_settings_wp.class.php:653
741
+ msgid "Decode HTML entities in code"
742
+ msgstr "HTML varlıkları kod içinde çöz"
743
+
744
+ #@ crayon-syntax-highlighter
745
+ #: crayon_settings_wp.class.php:655
746
+ msgid "Decode HTML entities in attributes"
747
+ msgstr "HTML varlıkları nitelikler içinde çöz"
748
+
749
+ #@ crayon-syntax-highlighter
750
+ #: crayon_settings_wp.class.php:684
751
+ #, php-format
752
+ msgid "Use %s to separate setting names from values in the &lt;pre&gt; class attribute"
753
+ msgstr "%s kullanarak &lt;pre&gt; sınıf niteliği içinde ayar adlarını değerlerden ayır"
754
+
755
  #@ crayon-syntax-highlighter
756
  #. translators: plugin header field 'Version'
757
  #: crayon_wp.class.php:0
758
+ msgid "1.8.3"
759
  msgstr ""
760
 
761
  #@ crayon-syntax-highlighter
762
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:51
763
+ msgid "Add Crayon Code"
764
+ msgstr "Crayon Kod Ekle"
765
+
766
+ #@ crayon-syntax-highlighter
767
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:52
768
+ msgid "Edit Crayon Code"
769
+ msgstr "Crayon Kodu Düzenle"
770
+
771
+ #@ crayon-syntax-highlighter
772
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:53
773
+ msgid "Add"
774
+ msgstr "Ekle"
775
+
776
+ #@ crayon-syntax-highlighter
777
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:54
778
+ msgid "Save"
779
+ msgstr "Kaydet"
780
+
781
+ #@ crayon-syntax-highlighter
782
+ #: util/tag-editor/crayon_te_content.php:65
783
+ msgid "Title"
784
+ msgstr "Başlık"
785
+
786
+ #@ crayon-syntax-highlighter
787
+ #: util/tag-editor/crayon_te_content.php:70
788
+ msgid "Inline"
789
+ msgstr "Satıriçi"
790
+
791
+ #@ crayon-syntax-highlighter
792
+ #: util/tag-editor/crayon_te_content.php:75
793
+ msgid "Language"
794
+ msgstr "Dil"
795
+
796
+ #@ crayon-syntax-highlighter
797
+ #: util/tag-editor/crayon_te_content.php:78
798
+ msgid "Marked Lines"
799
+ msgstr "İşaretli Satırlar"
800
+
801
+ #@ crayon-syntax-highlighter
802
+ #: util/tag-editor/crayon_te_content.php:82
803
+ msgid "Disable Highlighting"
804
+ msgstr "Vurgulamayı İptal et"
805
+
806
+ #@ crayon-syntax-highlighter
807
+ #: util/tag-editor/crayon_te_content.php:87
808
+ msgid "Clear"
809
+ msgstr "Temizle"
810
+
811
+ #@ crayon-syntax-highlighter
812
+ #: util/tag-editor/crayon_te_content.php:88
813
+ msgid "Paste your code here, or type it in manually."
814
+ msgstr "Kodu buraya yapıştır, ya da onu el ile yaz."
815
+
816
+ #@ crayon-syntax-highlighter
817
+ #: util/tag-editor/crayon_te_content.php:104
818
+ msgid "Change the following settings to override their global values."
819
+ msgstr "Genel değerleri geçersiz kılmak için aşağıdaki ayarları değiştirin."
820
+
821
+ #@ crayon-syntax-highlighter
822
+ #: util/tag-editor/crayon_te_content.php:106
823
+ msgid "Only changes (shown yellow) are applied."
824
+ msgstr "Sadece değişiklikler (sarı ile gösterilir) uygulanır."
825
+
826
+ #@ crayon-syntax-highlighter
827
+ #: util/tag-editor/crayon_te_content.php:108
828
+ #, php-format
829
+ msgid "Future changes to the global settings under %sCrayon > Settings%s won't affect overridden settings."
830
+ msgstr "%sCrayon > Settings%s altındaki genel ayarların gelecekteki değişiklikleri iptal edilen ayarları etkilemez."
831
 
trans/crayon-syntax-highlighter-zh_CN.mo CHANGED
Binary file
trans/crayon-syntax-highlighter-zh_CN.po CHANGED
@@ -1,515 +1,722 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: crayon-syntax-highlighter\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2011-12-10 17:11+1000\n"
6
- "PO-Revision-Date: 2012-02-14 14:38+0100\n"
7
- "Last-Translator: Dezhi <d.liu@smerpup.com>\n"
8
- "Language-Team: SMErpUp <blog@smerpup.com>\n"
9
  "MIME-Version: 1.0\n"
10
- "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
  "X-Poedit-Language: Chinese\n"
14
- "X-Poedit-Country: CHINA\n"
15
  "X-Poedit-SourceCharset: utf-8\n"
16
  "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
17
- "X-Poedit-Basepath: .\n"
18
  "X-Poedit-Bookmarks: \n"
19
- "X-Poedit-SearchPath-0: ..\n"
20
  "X-Textdomain-Support: yes"
21
 
22
- #: crayon_settings.class.php:135
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  #: crayon_settings.class.php:139
24
  #@ crayon-syntax-highlighter
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
  msgid "Max"
26
  msgstr "最大"
27
 
28
- #: crayon_settings.class.php:135
29
- #: crayon_settings.class.php:139
30
  #@ crayon-syntax-highlighter
31
  msgid "Min"
32
  msgstr "最小"
33
 
34
- #: crayon_settings.class.php:135
35
- #: crayon_settings.class.php:139
36
  #@ crayon-syntax-highlighter
37
  msgid "Static"
38
- msgstr "静态"
39
 
40
- #: crayon_settings.class.php:137
41
- #: crayon_settings.class.php:141
42
- #: crayon_settings_wp.class.php:461
43
- #: crayon_settings_wp.class.php:470
44
- #: crayon_settings_wp.class.php:581
45
  #@ crayon-syntax-highlighter
46
  msgid "Pixels"
47
- msgstr "像素"
48
 
49
- #: crayon_settings.class.php:137
50
- #: crayon_settings.class.php:141
51
  #@ crayon-syntax-highlighter
52
  msgid "Percent"
53
- msgstr "百分比"
54
 
55
- #: crayon_settings.class.php:150
56
  #@ crayon-syntax-highlighter
57
  msgid "None"
58
- msgstr ""
59
 
60
- #: crayon_settings.class.php:150
61
  #@ crayon-syntax-highlighter
62
  msgid "Left"
63
- msgstr ""
64
 
65
- #: crayon_settings.class.php:150
66
  #@ crayon-syntax-highlighter
67
  msgid "Center"
68
- msgstr ""
69
 
70
- #: crayon_settings.class.php:150
71
  #@ crayon-syntax-highlighter
72
  msgid "Right"
73
- msgstr ""
74
 
75
- #: crayon_settings.class.php:152
76
- #: crayon_settings.class.php:174
77
  #@ crayon-syntax-highlighter
78
  msgid "On MouseOver"
79
- msgstr "鼠标悬浮"
80
 
81
- #: crayon_settings.class.php:152
82
- #: crayon_settings.class.php:158
83
  #@ crayon-syntax-highlighter
84
  msgid "Always"
85
- msgstr "始终"
86
 
87
- #: crayon_settings.class.php:152
88
- #: crayon_settings.class.php:158
89
  #@ crayon-syntax-highlighter
90
  msgid "Never"
91
- msgstr "从不"
92
 
93
- #: crayon_settings.class.php:158
94
  #@ crayon-syntax-highlighter
95
  msgid "When Found"
96
- msgstr "如果找到"
97
 
98
- #: crayon_settings.class.php:174
99
  #@ crayon-syntax-highlighter
100
  msgid "On Double Click"
101
- msgstr "鼠标双击"
102
 
103
- #: crayon_settings.class.php:174
104
  #@ crayon-syntax-highlighter
105
  msgid "On Single Click"
106
- msgstr "鼠标单击"
107
 
108
- #: crayon_settings.class.php:182
 
 
 
 
 
109
  #@ crayon-syntax-highlighter
110
  msgid "An error has occurred. Please try again later."
111
- msgstr "错误发生。请稍后再试。"
112
 
113
- #: crayon_settings_wp.class.php:39
114
- #: crayon_settings_wp.class.php:82
115
- #: crayon_settings_wp.class.php:713
 
116
  #@ crayon-syntax-highlighter
117
  msgid "Settings"
118
  msgstr "设置"
119
 
120
- #: crayon_settings_wp.class.php:73
121
  #@ crayon-syntax-highlighter
122
  msgid "You do not have sufficient permissions to access this page."
123
- msgstr "你没有足够的权限访问当前页面"
124
 
125
- #: crayon_settings_wp.class.php:94
126
  #@ crayon-syntax-highlighter
127
  msgid "Save Changes"
128
- msgstr "保存设置"
129
 
130
- #: crayon_settings_wp.class.php:100
131
  #@ crayon-syntax-highlighter
132
  msgid "Reset Settings"
133
- msgstr "回复初始设置"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
134
 
135
- #: crayon_settings_wp.class.php:438
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
136
  #@ crayon-syntax-highlighter
137
  msgid "Height"
138
- msgstr "高度"
139
 
140
- #: crayon_settings_wp.class.php:444
141
  #@ crayon-syntax-highlighter
142
  msgid "Width"
143
- msgstr "宽度"
144
 
145
- #: crayon_settings_wp.class.php:450
146
  #@ crayon-syntax-highlighter
147
  msgid "Top Margin"
148
- msgstr "上边距"
149
 
150
- #: crayon_settings_wp.class.php:451
151
  #@ crayon-syntax-highlighter
152
  msgid "Bottom Margin"
153
- msgstr "下边距"
154
 
155
- #: crayon_settings_wp.class.php:452
156
- #: crayon_settings_wp.class.php:457
157
  #@ crayon-syntax-highlighter
158
  msgid "Left Margin"
159
- msgstr "左边距"
160
 
161
- #: crayon_settings_wp.class.php:453
162
- #: crayon_settings_wp.class.php:457
163
  #@ crayon-syntax-highlighter
164
  msgid "Right Margin"
165
- msgstr "右边距"
166
 
167
- #: crayon_settings_wp.class.php:463
168
  #@ crayon-syntax-highlighter
169
  msgid "Horizontal Alignment"
170
- msgstr "水平对齐"
171
 
172
- #: crayon_settings_wp.class.php:466
173
  #@ crayon-syntax-highlighter
174
  msgid "Allow floating elements to surround Crayon"
175
- msgstr "允许浮动元素(Floating Elements)环绕Crayon"
 
 
 
 
 
176
 
177
- #: crayon_settings_wp.class.php:474
178
  #@ crayon-syntax-highlighter
179
  msgid "Display the Toolbar"
180
- msgstr "显示工具栏"
181
 
182
- #: crayon_settings_wp.class.php:477
183
  #@ crayon-syntax-highlighter
184
  msgid "Overlay the toolbar on code rather than push it down when possible"
185
- msgstr "在可能的情况下覆盖工具栏上的代码,而不是将代码向下推"
186
 
187
- #: crayon_settings_wp.class.php:478
188
  #@ crayon-syntax-highlighter
189
  msgid "Toggle the toolbar on single click when it is overlayed"
190
- msgstr "当叠加时,使用鼠标单击来触发工具栏的切换"
191
 
192
- #: crayon_settings_wp.class.php:479
193
  #@ crayon-syntax-highlighter
194
  msgid "Delay hiding the toolbar on MouseOut"
195
- msgstr "当鼠标移出时延迟工具栏的隐藏"
196
 
197
- #: crayon_settings_wp.class.php:481
198
  #@ crayon-syntax-highlighter
199
  msgid "Display the title when provided"
200
- msgstr "显示被设置的标题"
201
 
202
- #: crayon_settings_wp.class.php:482
203
  #@ crayon-syntax-highlighter
204
  msgid "Display the language"
205
- msgstr "显示编程语言"
206
 
207
- #: crayon_settings_wp.class.php:487
208
  #@ crayon-syntax-highlighter
209
  msgid "Display striped code lines"
210
- msgstr "以条纹形式显示代码"
211
 
212
- #: crayon_settings_wp.class.php:488
213
  #@ crayon-syntax-highlighter
214
  msgid "Enable line marking for important lines"
215
- msgstr "标记重要的行"
216
 
217
- #: crayon_settings_wp.class.php:489
218
  #@ crayon-syntax-highlighter
219
  msgid "Display line numbers by default"
220
- msgstr "默认为每行编号"
221
 
222
- #: crayon_settings_wp.class.php:490
223
  #@ crayon-syntax-highlighter
224
  msgid "Enable line number toggling"
225
- msgstr "启用行数切换"
226
 
227
- #: crayon_settings_wp.class.php:491
228
  #@ crayon-syntax-highlighter
229
  msgid "Start line numbers from"
230
- msgstr "起始行数"
231
 
232
- #: crayon_settings_wp.class.php:501
233
  #@ crayon-syntax-highlighter
234
  msgid "When no language is provided, use the fallback"
235
- msgstr "当没有设置编程语言是,显示fallback language"
236
 
237
- #: crayon_settings_wp.class.php:509
 
 
 
 
 
 
 
 
238
  #@ crayon-syntax-highlighter
239
  msgid "Parsing was successful"
240
- msgstr "装载成功"
241
 
242
- #: crayon_settings_wp.class.php:509
243
  #@ crayon-syntax-highlighter
244
  msgid "Parsing was unsuccessful"
245
- msgstr "装载失败"
246
 
247
- #: crayon_settings_wp.class.php:515
248
  #, php-format
249
  #@ crayon-syntax-highlighter
250
  msgid "The selected language with id %s could not be loaded"
251
- msgstr "无法加载被选则的语言(ID:%s)"
252
 
253
- #: crayon_settings_wp.class.php:519
254
  #@ crayon-syntax-highlighter
255
  msgid "Show Languages"
256
- msgstr "显示编程语言"
257
 
258
- #: crayon_settings_wp.class.php:556
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
259
  #@ crayon-syntax-highlighter
260
  msgid "Enable Live Preview"
261
- msgstr "启用实时预览"
 
 
 
 
 
262
 
263
- #: crayon_settings_wp.class.php:561
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
264
  #, php-format
265
  #@ crayon-syntax-highlighter
266
  msgid "The selected theme with id %s could not be loaded"
267
- msgstr "无法加载被选则的主题(ID:%s)"
268
 
269
- #: crayon_settings_wp.class.php:579
270
  #@ crayon-syntax-highlighter
271
  msgid "Custom Font Size"
272
- msgstr "自定义字号"
273
 
274
- #: crayon_settings_wp.class.php:584
275
  #, php-format
276
  #@ crayon-syntax-highlighter
277
  msgid "The selected font with id %s could not be loaded"
278
- msgstr "无法加载被选则的字体(ID:%s)"
279
 
280
- #: crayon_settings_wp.class.php:591
 
 
 
 
 
281
  #@ crayon-syntax-highlighter
282
  msgid "Enable plain code view and display"
283
- msgstr "启用普通视图显示代码"
284
 
285
- #: crayon_settings_wp.class.php:596
 
 
 
 
 
 
 
 
 
 
286
  #@ crayon-syntax-highlighter
287
  msgid "Enable code copy/paste"
288
- msgstr "启用复制粘贴"
289
 
290
- #: crayon_settings_wp.class.php:598
291
  #@ crayon-syntax-highlighter
292
  msgid "Enable opening code in a window"
293
- msgstr "启用在新窗口中显示代码"
294
 
295
- #: crayon_settings_wp.class.php:600
 
 
 
 
 
296
  #@ crayon-syntax-highlighter
297
  msgid "Tab size in spaces"
298
- msgstr "空格数代替Tab"
299
 
300
- #: crayon_settings_wp.class.php:602
301
  #@ crayon-syntax-highlighter
302
- msgid "Remove whitespace surrounding the shortcode content"
303
- msgstr "删除短代码周围的Whitespace"
304
 
305
- #: crayon_settings_wp.class.php:618
306
  #@ crayon-syntax-highlighter
307
- msgid "When loading local files and a relative path is given for the URL, use the absolute path"
308
- msgstr "当加载本地文件时,使用绝对路径"
309
 
310
- #: crayon_settings_wp.class.php:625
311
  #@ crayon-syntax-highlighter
312
- msgid "Clear the cache used to store remote code requests"
313
- msgstr "清除用于远程存储代码的缓存"
314
 
315
- #: crayon_settings_wp.class.php:627
316
  #@ crayon-syntax-highlighter
317
- msgid "Clear Now"
318
- msgstr "现在清除"
319
 
320
- #: crayon_settings_wp.class.php:632
321
  #@ crayon-syntax-highlighter
322
- msgid "Disable mouse gestures for touchscreen devices (eg. MouseOver)"
323
- msgstr "为触屏设备停用鼠标手势(如MouseOver)"
324
 
325
- #: crayon_settings_wp.class.php:633
326
  #@ crayon-syntax-highlighter
327
- msgid "Disable animations"
328
- msgstr "禁用动画"
329
 
330
- #: crayon_settings_wp.class.php:634
331
  #@ crayon-syntax-highlighter
332
- msgid "Disable runtime stats"
333
- msgstr "禁用实时数据"
334
 
335
- #: crayon_settings_wp.class.php:641
336
  #@ crayon-syntax-highlighter
337
- msgid "Log errors for individual Crayons"
338
- msgstr "为独立的Crayon启用错误日志"
339
 
340
- #: crayon_settings_wp.class.php:642
341
  #@ crayon-syntax-highlighter
342
- msgid "Log system-wide errors"
343
- msgstr "启用系统日志"
344
 
345
- #: crayon_settings_wp.class.php:643
346
  #@ crayon-syntax-highlighter
347
- msgid "Display custom message for errors"
348
- msgstr "显示错误的个性化消息"
349
 
350
- #: crayon_settings_wp.class.php:655
351
  #@ crayon-syntax-highlighter
352
- msgid "Show Log"
353
- msgstr "显示日志"
354
 
355
- #: crayon_settings_wp.class.php:657
356
  #@ crayon-syntax-highlighter
357
- msgid "Clear Log"
358
- msgstr "清空日志"
359
 
360
- #: crayon_settings_wp.class.php:658
361
  #@ crayon-syntax-highlighter
362
- msgid "Email Admin"
363
- msgstr "Email 管理员"
364
 
365
- #: crayon_settings_wp.class.php:660
 
366
  #@ crayon-syntax-highlighter
367
- msgid "Email Developer"
368
- msgstr "E-Mail 开发者"
369
 
370
- #: crayon_settings_wp.class.php:676
371
  #@ crayon-syntax-highlighter
372
- msgid "Version"
373
- msgstr "Version"
374
 
375
- #: crayon_settings_wp.class.php:678
376
  #@ crayon-syntax-highlighter
377
- msgid "Developer"
378
- msgstr "开发者"
379
 
380
- #: crayon_settings_wp.class.php:701
381
  #@ crayon-syntax-highlighter
382
- msgid "The result of innumerable hours of hard work over many months. It's an ongoing project, keep me motivated!"
383
- msgstr "Crayon是数月辛勤劳动的结果,为了让它不断的完善,如果你喜欢它,请告诉我!"
384
 
385
- #: crayon_settings_wp.class.php:553
386
- #, php-format
387
  #@ crayon-syntax-highlighter
388
- msgid "Change the %1$sfallback language%2$s to change the sample code. Lines 5-7 are marked."
389
- msgstr "更改 %1$sfallback language%2$s 来更改示例. 5-7行是被标记的行"
390
 
391
- #: crayon_settings.class.php:106
392
  #@ crayon-syntax-highlighter
393
- msgid "Hourly"
394
- msgstr "每小时"
395
 
396
- #: crayon_settings.class.php:106
397
  #@ crayon-syntax-highlighter
398
- msgid "Daily"
399
- msgstr "每天"
400
 
401
- #: crayon_settings.class.php:107
402
  #@ crayon-syntax-highlighter
403
- msgid "Weekly"
404
- msgstr "每星期"
405
 
406
- #: crayon_settings.class.php:107
407
  #@ crayon-syntax-highlighter
408
- msgid "Monthly"
409
- msgstr "每月"
410
 
411
- #: crayon_settings.class.php:108
412
  #@ crayon-syntax-highlighter
413
- msgid "Immediately"
414
- msgstr "现在"
415
 
416
- #: crayon_settings_wp.class.php:424
417
  #@ crayon-syntax-highlighter
418
- msgid "Crayon Help"
419
- msgstr "Crayon 帮助"
420
 
421
- #: crayon_settings_wp.class.php:628
422
  #@ crayon-syntax-highlighter
423
- msgid "Attempt to load Crayon's CSS and JavaScript only when needed"
424
- msgstr "仅在用到时才加载 Crayon 的 CSS 和 JavaScript "
425
 
426
- #: crayon_settings_wp.class.php:621
427
  #@ crayon-syntax-highlighter
428
- msgid "Followed by your relative URL."
429
- msgstr "跟随你的相对URL."
430
 
431
- #: crayon_settings_wp.class.php:662
432
  #@ crayon-syntax-highlighter
433
- msgid "The log is currently empty."
434
- msgstr "日志为空"
435
 
436
- #: crayon_settings_wp.class.php:664
437
  #@ crayon-syntax-highlighter
438
- msgid "The log file exists and is writable."
439
- msgstr "日志存在并且是可编辑状态"
440
 
441
- #: crayon_settings_wp.class.php:664
442
  #@ crayon-syntax-highlighter
443
- msgid "The log file exists and is not writable."
444
- msgstr "日志存在但无法编辑"
445
 
446
- #: crayon_settings_wp.class.php:666
447
  #@ crayon-syntax-highlighter
448
- msgid "The log file does not exist and is not writable."
449
- msgstr "日志不存在且无法编辑"
450
 
451
- #: crayon_settings_wp.class.php:508
452
- #, php-format
453
  #@ crayon-syntax-highlighter
454
- msgid "%d language has been detected."
455
- msgid_plural "%d languages have been detected."
456
- msgstr[0] "没有找到 %d 语言"
457
- msgstr[1] "没有找到 %d 相关的语言"
458
 
459
- #: crayon_settings_wp.class.php:612
460
  #@ crayon-syntax-highlighter
461
- msgid "Capture &lt;pre&gt; tags as Crayons"
462
- msgstr "用Crayon显示 &lt;pre&gt; 标签"
463
 
464
- #: crayon_settings_wp.class.php:558
465
- #: crayon_settings_wp.class.php:587
466
- #: crayon_settings_wp.class.php:603
467
- #: crayon_settings_wp.class.php:608
468
- #: crayon_settings_wp.class.php:609
469
- #: crayon_settings_wp.class.php:610
470
- #: crayon_settings_wp.class.php:611
471
- #: crayon_settings_wp.class.php:612
472
- #: crayon_settings_wp.class.php:613
473
- #: crayon_settings_wp.class.php:628
474
- #: crayon_settings_wp.class.php:629
475
  #@ crayon-syntax-highlighter
476
- msgid "Learn More"
477
- msgstr "了解更多"
478
 
479
- #: crayon_settings_wp.class.php:604
480
  #@ crayon-syntax-highlighter
481
- msgid "Show Mixed Language Icon (+)"
482
- msgstr "显示混合语言标识 (+)"
483
 
484
- #: crayon_settings_wp.class.php:603
485
  #@ crayon-syntax-highlighter
486
- msgid "Allow Mixed Language Highlighting with delimiters and tags."
487
- msgstr "允许混合语言加亮用分隔符和标签"
488
 
489
- #: crayon_settings_wp.class.php:608
490
  #@ crayon-syntax-highlighter
491
- msgid "Capture Mini Tags like [php][/php] as Crayons."
492
- msgstr "使用 Crayons 显示类似 [php] [/php] 的迷你标签."
493
 
494
- #: crayon_settings_wp.class.php:613
495
  #@ crayon-syntax-highlighter
496
- msgid "Enable [plain][/plain] tag."
497
- msgstr "启用 [plain] [/plain] 标签."
498
 
499
- #: crayon_settings.class.php:174
500
  #@ crayon-syntax-highlighter
501
- msgid "Disable Mouse Events"
502
- msgstr "禁用鼠标事件"
503
 
504
- #: crayon_settings_wp.class.php:594
505
  #@ crayon-syntax-highlighter
506
- msgid "Enable plain code toggling"
507
- msgstr "启用纯文本切换"
508
 
509
- #: crayon_settings_wp.class.php:595
510
  #@ crayon-syntax-highlighter
511
- msgid "Show the plain code by default"
512
- msgstr "默认显示纯文本"
513
 
514
  #. translators: plugin header field 'Name'
515
  #: crayon_wp.class.php:0
@@ -517,10 +724,16 @@ msgstr "默认显示纯文本"
517
  msgid "Crayon Syntax Highlighter"
518
  msgstr ""
519
 
520
- #. translators: plugin header field 'AuthorURI'
521
  #: crayon_wp.class.php:0
522
  #@ crayon-syntax-highlighter
523
- msgid "http://ak.net84.net/"
 
 
 
 
 
 
524
  msgstr ""
525
 
526
  #. translators: plugin header field 'Author'
@@ -529,209 +742,122 @@ msgstr ""
529
  msgid "Aram Kocharyan"
530
  msgstr ""
531
 
532
- #. translators: plugin header field 'PluginURI'
533
  #: crayon_wp.class.php:0
534
  #@ crayon-syntax-highlighter
535
- msgid "http://ak.net84.net/projects/crayon-syntax-highlighter"
536
  msgstr ""
537
 
538
- #. translators: plugin header field 'Description'
539
  #: crayon_wp.class.php:0
540
  #@ crayon-syntax-highlighter
541
- msgid "Supports multiple languages, themes, highlighting from a URL, local file or post text."
542
- msgstr "支持多重语言,主题,高亮来自于一个URL,本地文件或博客日志"
543
 
544
- #: crayon_settings_wp.class.php:717
545
  #@ crayon-syntax-highlighter
546
- msgid "Donate"
547
- msgstr "捐助"
548
 
549
- #: crayon_settings_wp.class.php:219
550
  #@ crayon-syntax-highlighter
551
- msgid "General"
552
- msgstr "常规"
553
 
554
- #: crayon_settings_wp.class.php:220
555
  #@ crayon-syntax-highlighter
556
- msgid "Theme"
557
- msgstr "主题"
558
 
559
- #: crayon_settings_wp.class.php:221
560
  #@ crayon-syntax-highlighter
561
- msgid "Font"
562
- msgstr "字体"
563
 
564
- #: crayon_settings_wp.class.php:222
565
  #@ crayon-syntax-highlighter
566
- msgid "Metrics"
567
- msgstr "排版"
568
 
569
- #: crayon_settings_wp.class.php:223
570
  #@ crayon-syntax-highlighter
571
- msgid "Toolbar"
572
- msgstr "工具栏"
573
 
574
- #: crayon_settings_wp.class.php:224
575
  #@ crayon-syntax-highlighter
576
- msgid "Lines"
577
- msgstr ""
578
-
579
- #: crayon_settings_wp.class.php:225
580
- #@ crayon-syntax-highlighter
581
- msgid "Code"
582
- msgstr "代码"
583
 
584
- #: crayon_settings_wp.class.php:227
585
  #@ crayon-syntax-highlighter
586
- msgid "Languages"
587
  msgstr "语言"
588
 
589
- #: crayon_settings_wp.class.php:228
590
  #@ crayon-syntax-highlighter
591
- msgid "Files"
592
- msgstr "文件"
593
 
594
- #: crayon_settings_wp.class.php:229
595
  #@ crayon-syntax-highlighter
596
- msgid "Misc"
597
- msgstr "其他"
598
 
599
- #: crayon_settings_wp.class.php:232
600
  #@ crayon-syntax-highlighter
601
- msgid "Debug"
602
- msgstr "Debug"
603
 
604
- #: crayon_settings_wp.class.php:233
605
  #@ crayon-syntax-highlighter
606
- msgid "Errors"
607
- msgstr "错误"
608
 
609
- #: crayon_settings_wp.class.php:234
610
  #@ crayon-syntax-highlighter
611
- msgid "Log"
612
- msgstr "日志"
613
 
614
- #: crayon_settings_wp.class.php:237
615
  #@ crayon-syntax-highlighter
616
- msgid "About"
617
- msgstr "关于"
618
 
619
- #: crayon_settings_wp.class.php:558
620
  #@ crayon-syntax-highlighter
621
- msgid "Enqueue themes in the header (more efficient)."
622
- msgstr "主题在 header 里加载(更有效率)"
623
 
624
- #: crayon_settings_wp.class.php:587
625
  #@ crayon-syntax-highlighter
626
- msgid "Enqueue fonts in the header (more efficient)."
627
- msgstr "字体在 header 里加载(更有效率)"
628
 
629
- #: crayon_settings_wp.class.php:549
 
630
  #@ crayon-syntax-highlighter
631
- msgid "Loading..."
632
- msgstr "加载中。。。"
633
 
634
- #: crayon_settings_wp.class.php:549
635
- #: crayon_settings_wp.class.php:715
636
- #: util/theme-editor/editor.php:14
637
  #@ crayon-syntax-highlighter
638
- msgid "Theme Editor"
639
- msgstr "主题编辑器"
640
 
641
- #: crayon_settings_wp.class.php:599
642
  #@ crayon-syntax-highlighter
643
- msgid "Always display scrollbars"
644
- msgstr "总是显示滚动条"
645
 
646
- #: crayon_settings_wp.class.php:629
647
- #@ crayon-syntax-highlighter
648
- msgid "Disable enqueuing for page templates that may contain The Loop."
649
- msgstr "当可能造成循环时禁用加载页面模板"
650
-
651
- #: crayon_settings_wp.class.php:631
652
  #@ crayon-syntax-highlighter
653
- msgid "Load Crayons only from the main Wordpress query"
654
- msgstr "只有在主要 Wordpress 请求时在显示 Crayon"
655
 
656
  #: util/theme-editor/editor.php:16
657
  #@ crayon-syntax-highlighter
658
  msgid "Back To Settings"
659
- msgstr "回到设置"
660
-
661
- #: crayon_settings_wp.class.php:679
662
- #@ crayon-syntax-highlighter
663
- msgid "Translators"
664
- msgstr "翻译者"
665
-
666
- #: crayon_formatter.class.php:270
667
- #@ crayon-syntax-highlighter
668
- msgid "Toggle Plain Code"
669
- msgstr "切换时显示纯文本"
670
-
671
- #: crayon_formatter.class.php:272
672
- #@ crayon-syntax-highlighter
673
- msgid "Copy Plain Code"
674
- msgstr "复制纯文本"
675
-
676
- #: crayon_formatter.class.php:278
677
- #@ crayon-syntax-highlighter
678
- msgid "Open Code In New Window"
679
- msgstr "在新窗口中显示代码"
680
-
681
- #: crayon_formatter.class.php:281
682
- #@ crayon-syntax-highlighter
683
- msgid "Toggle Line Numbers"
684
- msgstr "编号开关"
685
-
686
- #: crayon_formatter.class.php:288
687
- #@ crayon-syntax-highlighter
688
- msgid "Contains Mixed Languages"
689
- msgstr "含有多种语言"
690
-
691
- #: crayon_settings_wp.class.php:655
692
- #@ crayon-syntax-highlighter
693
- msgid "Hide Log"
694
- msgstr "隐藏日志"
695
-
696
- #: crayon_formatter.class.php:272
697
- #, php-format
698
- #@ crayon-syntax-highlighter
699
- msgid "Press %s to Copy, %s to Paste"
700
- msgstr "按下 %s 复制, %s 粘贴"
701
-
702
- #: crayon_settings_wp.class.php:226
703
- #@ crayon-syntax-highlighter
704
- msgid "Tags"
705
- msgstr "标签"
706
-
707
- #: crayon_settings_wp.class.php:468
708
- #@ crayon-syntax-highlighter
709
- msgid "Inline Margin"
710
- msgstr "内嵌保证金"
711
-
712
- #: crayon_settings_wp.class.php:609
713
- #@ crayon-syntax-highlighter
714
- msgid "Capture Inline Tags like {php}{/php} inside sentences."
715
- msgstr "捕捉内标签,如 {php}{/php} 里面的句子。"
716
-
717
- #: crayon_settings_wp.class.php:611
718
- #@ crayon-syntax-highlighter
719
- msgid "Capture `backquotes` as &lt;code&gt;"
720
- msgstr "为&lt;code&gt;捕捉`反引号`"
721
-
722
- #: crayon_settings_wp.class.php:630
723
- #@ crayon-syntax-highlighter
724
- msgid "Allow Crayons inside comments"
725
- msgstr "允许内部意见蜡笔"
726
-
727
- #. translators: plugin header field 'Version'
728
- #: crayon_wp.class.php:0
729
- #@ crayon-syntax-highlighter
730
- msgid "1.8.2"
731
- msgstr ""
732
-
733
- #: crayon_settings_wp.class.php:610
734
- #@ crayon-syntax-highlighter
735
- msgid "Wrap Inline Tags"
736
- msgstr ""
737
 
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: Crayon Syntax Highlighter v1.9.0\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: 2012-03-30 18:54+0000\n"
7
+ "Last-Translator: admin <admin@neverno.me>\n"
8
+ "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
  "X-Poedit-Language: Chinese\n"
14
+ "X-Poedit-Country: PEOPLE'S REPUBLIC OF CHINA\n"
15
  "X-Poedit-SourceCharset: utf-8\n"
16
  "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
17
+ "X-Poedit-Basepath: ../\n"
18
  "X-Poedit-Bookmarks: \n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
  "X-Textdomain-Support: yes"
21
 
22
+ #: crayon_formatter.class.php:265
23
+ #@ crayon-syntax-highlighter
24
+ msgid "Toggle Plain Code"
25
+ msgstr "纯文本显示代码"
26
+
27
+ #: crayon_formatter.class.php:267
28
+ #, php-format
29
+ #@ crayon-syntax-highlighter
30
+ msgid "Press %s to Copy, %s to Paste"
31
+ msgstr "使用 %s 复制,使用 %s 粘贴。"
32
+
33
+ #: crayon_formatter.class.php:267
34
+ #@ crayon-syntax-highlighter
35
+ msgid "Copy Plain Code"
36
+ msgstr "复制代码"
37
+
38
+ #: crayon_formatter.class.php:269
39
+ #@ crayon-syntax-highlighter
40
+ msgid "Open Code In New Window"
41
+ msgstr "在新窗口中显示代码"
42
+
43
+ #: crayon_formatter.class.php:272
44
+ #@ crayon-syntax-highlighter
45
+ msgid "Toggle Line Numbers"
46
+ msgstr "显示/隐藏行编号"
47
+
48
+ #: crayon_formatter.class.php:278
49
+ #@ crayon-syntax-highlighter
50
+ msgid "Contains Mixed Languages"
51
+ msgstr "含多种语言"
52
+
53
+ #: crayon_settings.class.php:138
54
+ #@ crayon-syntax-highlighter
55
+ msgid "Hourly"
56
+ msgstr "每小时"
57
+
58
+ #: crayon_settings.class.php:138
59
+ #@ crayon-syntax-highlighter
60
+ msgid "Daily"
61
+ msgstr "每天"
62
+
63
  #: crayon_settings.class.php:139
64
  #@ crayon-syntax-highlighter
65
+ msgid "Weekly"
66
+ msgstr "每周"
67
+
68
+ #: crayon_settings.class.php:139
69
+ #@ crayon-syntax-highlighter
70
+ msgid "Monthly"
71
+ msgstr "每月"
72
+
73
+ #: crayon_settings.class.php:140
74
+ #@ crayon-syntax-highlighter
75
+ msgid "Immediately"
76
+ msgstr "立刻"
77
+
78
+ #: crayon_settings.class.php:150
79
+ #: crayon_settings.class.php:154
80
+ #@ crayon-syntax-highlighter
81
  msgid "Max"
82
  msgstr "最大"
83
 
84
+ #: crayon_settings.class.php:150
85
+ #: crayon_settings.class.php:154
86
  #@ crayon-syntax-highlighter
87
  msgid "Min"
88
  msgstr "最小"
89
 
90
+ #: crayon_settings.class.php:150
91
+ #: crayon_settings.class.php:154
92
  #@ crayon-syntax-highlighter
93
  msgid "Static"
94
+ msgstr "指定"
95
 
96
+ #: crayon_settings.class.php:152
97
+ #: crayon_settings.class.php:156
98
+ #: crayon_settings_wp.class.php:540
99
+ #: crayon_settings_wp.class.php:549
100
+ #: crayon_settings_wp.class.php:648
101
  #@ crayon-syntax-highlighter
102
  msgid "Pixels"
103
+ msgstr "px"
104
 
105
+ #: crayon_settings.class.php:152
106
+ #: crayon_settings.class.php:156
107
  #@ crayon-syntax-highlighter
108
  msgid "Percent"
109
+ msgstr "%"
110
 
111
+ #: crayon_settings.class.php:165
112
  #@ crayon-syntax-highlighter
113
  msgid "None"
114
+ msgstr "从不"
115
 
116
+ #: crayon_settings.class.php:165
117
  #@ crayon-syntax-highlighter
118
  msgid "Left"
119
+ msgstr "左对齐"
120
 
121
+ #: crayon_settings.class.php:165
122
  #@ crayon-syntax-highlighter
123
  msgid "Center"
124
+ msgstr "居中"
125
 
126
+ #: crayon_settings.class.php:165
127
  #@ crayon-syntax-highlighter
128
  msgid "Right"
129
+ msgstr "右对齐"
130
 
131
+ #: crayon_settings.class.php:167
132
+ #: crayon_settings.class.php:189
133
  #@ crayon-syntax-highlighter
134
  msgid "On MouseOver"
135
+ msgstr "鼠标经过"
136
 
137
+ #: crayon_settings.class.php:167
138
+ #: crayon_settings.class.php:173
139
  #@ crayon-syntax-highlighter
140
  msgid "Always"
141
+ msgstr "始终显示"
142
 
143
+ #: crayon_settings.class.php:167
144
+ #: crayon_settings.class.php:173
145
  #@ crayon-syntax-highlighter
146
  msgid "Never"
147
+ msgstr "从不显示"
148
 
149
+ #: crayon_settings.class.php:173
150
  #@ crayon-syntax-highlighter
151
  msgid "When Found"
152
+ msgstr "当发现时"
153
 
154
+ #: crayon_settings.class.php:189
155
  #@ crayon-syntax-highlighter
156
  msgid "On Double Click"
157
+ msgstr "双击"
158
 
159
+ #: crayon_settings.class.php:189
160
  #@ crayon-syntax-highlighter
161
  msgid "On Single Click"
162
+ msgstr "单击"
163
 
164
+ #: crayon_settings.class.php:189
165
+ #@ crayon-syntax-highlighter
166
+ msgid "Disable Mouse Events"
167
+ msgstr "禁止鼠标行为"
168
+
169
+ #: crayon_settings.class.php:197
170
  #@ crayon-syntax-highlighter
171
  msgid "An error has occurred. Please try again later."
172
+ msgstr "发生错误,请稍后重试。"
173
 
174
+ #: crayon_settings_wp.class.php:44
175
+ #: crayon_settings_wp.class.php:118
176
+ #: crayon_settings_wp.class.php:800
177
+ #: util/tag-editor/crayon_te_content.php:114
178
  #@ crayon-syntax-highlighter
179
  msgid "Settings"
180
  msgstr "设置"
181
 
182
+ #: crayon_settings_wp.class.php:99
183
  #@ crayon-syntax-highlighter
184
  msgid "You do not have sufficient permissions to access this page."
185
+ msgstr "无权限访问此页面"
186
 
187
+ #: crayon_settings_wp.class.php:130
188
  #@ crayon-syntax-highlighter
189
  msgid "Save Changes"
190
+ msgstr "保存"
191
 
192
+ #: crayon_settings_wp.class.php:136
193
  #@ crayon-syntax-highlighter
194
  msgid "Reset Settings"
195
+ msgstr "初始化设置"
196
+
197
+ #: crayon_settings_wp.class.php:300
198
+ #@ crayon-syntax-highlighter
199
+ msgid "General"
200
+ msgstr "一般"
201
+
202
+ #: crayon_settings_wp.class.php:301
203
+ #@ crayon-syntax-highlighter
204
+ msgid "Theme"
205
+ msgstr "主题"
206
+
207
+ #: crayon_settings_wp.class.php:302
208
+ #@ crayon-syntax-highlighter
209
+ msgid "Font"
210
+ msgstr "字体"
211
+
212
+ #: crayon_settings_wp.class.php:303
213
+ #@ crayon-syntax-highlighter
214
+ msgid "Metrics"
215
+ msgstr "排版"
216
+
217
+ #: crayon_settings_wp.class.php:304
218
+ #@ crayon-syntax-highlighter
219
+ msgid "Toolbar"
220
+ msgstr "工具栏"
221
+
222
+ #: crayon_settings_wp.class.php:305
223
+ #@ crayon-syntax-highlighter
224
+ msgid "Lines"
225
+ msgstr "行"
226
+
227
+ #: crayon_settings_wp.class.php:306
228
+ #: util/tag-editor/crayon_te_content.php:87
229
+ #@ crayon-syntax-highlighter
230
+ msgid "Code"
231
+ msgstr "代码"
232
+
233
+ #: crayon_settings_wp.class.php:307
234
+ #@ crayon-syntax-highlighter
235
+ msgid "Tags"
236
+ msgstr "标签"
237
+
238
+ #: crayon_settings_wp.class.php:308
239
+ #@ crayon-syntax-highlighter
240
+ msgid "Languages"
241
+ msgstr "语言"
242
+
243
+ #: crayon_settings_wp.class.php:309
244
+ #@ crayon-syntax-highlighter
245
+ msgid "Files"
246
+ msgstr "文件"
247
+
248
+ #: crayon_settings_wp.class.php:310
249
+ #@ crayon-syntax-highlighter
250
+ msgid "Tag Editor"
251
+ msgstr "编辑器"
252
 
253
+ #: crayon_settings_wp.class.php:311
254
+ #@ crayon-syntax-highlighter
255
+ msgid "Misc"
256
+ msgstr "其它"
257
+
258
+ #: crayon_settings_wp.class.php:314
259
+ #@ crayon-syntax-highlighter
260
+ msgid "Debug"
261
+ msgstr "调试"
262
+
263
+ #: crayon_settings_wp.class.php:315
264
+ #@ crayon-syntax-highlighter
265
+ msgid "Errors"
266
+ msgstr "错误"
267
+
268
+ #: crayon_settings_wp.class.php:316
269
+ #@ crayon-syntax-highlighter
270
+ msgid "Log"
271
+ msgstr "日志"
272
+
273
+ #: crayon_settings_wp.class.php:319
274
+ #@ crayon-syntax-highlighter
275
+ msgid "About"
276
+ msgstr "关于"
277
+
278
+ #: crayon_settings_wp.class.php:502
279
+ #@ crayon-syntax-highlighter
280
+ msgid "Crayon Help"
281
+ msgstr "帮助"
282
+
283
+ #: crayon_settings_wp.class.php:517
284
  #@ crayon-syntax-highlighter
285
  msgid "Height"
286
+ msgstr ""
287
 
288
+ #: crayon_settings_wp.class.php:523
289
  #@ crayon-syntax-highlighter
290
  msgid "Width"
291
+ msgstr ""
292
 
293
+ #: crayon_settings_wp.class.php:529
294
  #@ crayon-syntax-highlighter
295
  msgid "Top Margin"
296
+ msgstr "顶部外边距"
297
 
298
+ #: crayon_settings_wp.class.php:530
299
  #@ crayon-syntax-highlighter
300
  msgid "Bottom Margin"
301
+ msgstr "底部外边距"
302
 
303
+ #: crayon_settings_wp.class.php:531
304
+ #: crayon_settings_wp.class.php:536
305
  #@ crayon-syntax-highlighter
306
  msgid "Left Margin"
307
+ msgstr "左外边距"
308
 
309
+ #: crayon_settings_wp.class.php:532
310
+ #: crayon_settings_wp.class.php:536
311
  #@ crayon-syntax-highlighter
312
  msgid "Right Margin"
313
+ msgstr "右外边距"
314
 
315
+ #: crayon_settings_wp.class.php:542
316
  #@ crayon-syntax-highlighter
317
  msgid "Horizontal Alignment"
318
+ msgstr "对齐方式"
319
 
320
+ #: crayon_settings_wp.class.php:545
321
  #@ crayon-syntax-highlighter
322
  msgid "Allow floating elements to surround Crayon"
323
+ msgstr "允许插件代码周围使用浮动元素"
324
+
325
+ #: crayon_settings_wp.class.php:547
326
+ #@ crayon-syntax-highlighter
327
+ msgid "Inline Margin"
328
+ msgstr "间距"
329
 
330
+ #: crayon_settings_wp.class.php:555
331
  #@ crayon-syntax-highlighter
332
  msgid "Display the Toolbar"
333
+ msgstr "工具栏显示"
334
 
335
+ #: crayon_settings_wp.class.php:558
336
  #@ crayon-syntax-highlighter
337
  msgid "Overlay the toolbar on code rather than push it down when possible"
338
+ msgstr "尽量覆盖工具栏而不是挤到下面"
339
 
340
+ #: crayon_settings_wp.class.php:559
341
  #@ crayon-syntax-highlighter
342
  msgid "Toggle the toolbar on single click when it is overlayed"
343
+ msgstr "当工具栏被挡住时单击显示"
344
 
345
+ #: crayon_settings_wp.class.php:560
346
  #@ crayon-syntax-highlighter
347
  msgid "Delay hiding the toolbar on MouseOut"
348
+ msgstr "工具栏消失带延迟效果"
349
 
350
+ #: crayon_settings_wp.class.php:562
351
  #@ crayon-syntax-highlighter
352
  msgid "Display the title when provided"
353
+ msgstr "当有标题则显示"
354
 
355
+ #: crayon_settings_wp.class.php:563
356
  #@ crayon-syntax-highlighter
357
  msgid "Display the language"
358
+ msgstr "显示语言"
359
 
360
+ #: crayon_settings_wp.class.php:570
361
  #@ crayon-syntax-highlighter
362
  msgid "Display striped code lines"
363
+ msgstr "条纹显示代码"
364
 
365
+ #: crayon_settings_wp.class.php:571
366
  #@ crayon-syntax-highlighter
367
  msgid "Enable line marking for important lines"
368
+ msgstr "允许关键行高亮"
369
 
370
+ #: crayon_settings_wp.class.php:572
371
  #@ crayon-syntax-highlighter
372
  msgid "Display line numbers by default"
373
+ msgstr "默认显示每行编号"
374
 
375
+ #: crayon_settings_wp.class.php:573
376
  #@ crayon-syntax-highlighter
377
  msgid "Enable line number toggling"
378
+ msgstr "允许显示行编号"
379
 
380
+ #: crayon_settings_wp.class.php:574
381
  #@ crayon-syntax-highlighter
382
  msgid "Start line numbers from"
383
+ msgstr "编号始于"
384
 
385
+ #: crayon_settings_wp.class.php:584
386
  #@ crayon-syntax-highlighter
387
  msgid "When no language is provided, use the fallback"
388
+ msgstr "当没指定语言,则默认语言为"
389
 
390
+ #: crayon_settings_wp.class.php:590
391
+ #, php-format
392
+ #@ crayon-syntax-highlighter
393
+ msgid "%d language has been detected."
394
+ msgid_plural "%d languages have been detected."
395
+ msgstr[0] "已支持 %d 种语言。"
396
+ msgstr[1] "已支持 %d 种语言。"
397
+
398
+ #: crayon_settings_wp.class.php:591
399
  #@ crayon-syntax-highlighter
400
  msgid "Parsing was successful"
401
+ msgstr "加载完成"
402
 
403
+ #: crayon_settings_wp.class.php:591
404
  #@ crayon-syntax-highlighter
405
  msgid "Parsing was unsuccessful"
406
+ msgstr "加载失败"
407
 
408
+ #: crayon_settings_wp.class.php:597
409
  #, php-format
410
  #@ crayon-syntax-highlighter
411
  msgid "The selected language with id %s could not be loaded"
412
+ msgstr "ID为 %s 的语言加载失败"
413
 
414
+ #: crayon_settings_wp.class.php:601
415
  #@ crayon-syntax-highlighter
416
  msgid "Show Languages"
417
+ msgstr "显示全部语言"
418
 
419
+ #: crayon_settings_wp.class.php:620
420
+ #@ crayon-syntax-highlighter
421
+ msgid "Loading..."
422
+ msgstr "载入中..."
423
+
424
+ #: crayon_settings_wp.class.php:620
425
+ #: crayon_settings_wp.class.php:802
426
+ #: util/theme-editor/editor.php:14
427
+ #@ crayon-syntax-highlighter
428
+ msgid "Theme Editor"
429
+ msgstr "主题编辑器"
430
+
431
+ #: crayon_settings_wp.class.php:625
432
+ #, php-format
433
+ #@ crayon-syntax-highlighter
434
+ msgid "Change the %1$sfallback language%2$s to change the sample code. Lines 5-7 are marked."
435
+ msgstr "改变 %1$s默认语言%2$s 可以在这里看到效果,5-7 为重点代码。"
436
+
437
+ #: crayon_settings_wp.class.php:629
438
  #@ crayon-syntax-highlighter
439
  msgid "Enable Live Preview"
440
+ msgstr "允许即时预览"
441
+
442
+ #: crayon_settings_wp.class.php:631
443
+ #@ crayon-syntax-highlighter
444
+ msgid "Enqueue themes in the header (more efficient)."
445
+ msgstr "在头部就加载主题(高效)"
446
 
447
+ #: crayon_settings_wp.class.php:631
448
+ #: crayon_settings_wp.class.php:657
449
+ #: crayon_settings_wp.class.php:682
450
+ #: crayon_settings_wp.class.php:689
451
+ #: crayon_settings_wp.class.php:690
452
+ #: crayon_settings_wp.class.php:691
453
+ #: crayon_settings_wp.class.php:692
454
+ #: crayon_settings_wp.class.php:693
455
+ #: crayon_settings_wp.class.php:694
456
+ #: crayon_settings_wp.class.php:708
457
+ #: crayon_settings_wp.class.php:715
458
+ #: crayon_settings_wp.class.php:716
459
+ #@ crayon-syntax-highlighter
460
+ msgid "?"
461
+ msgstr "?"
462
+
463
+ #: crayon_settings_wp.class.php:634
464
  #, php-format
465
  #@ crayon-syntax-highlighter
466
  msgid "The selected theme with id %s could not be loaded"
467
+ msgstr "ID为 %s 的主题加载失败"
468
 
469
+ #: crayon_settings_wp.class.php:646
470
  #@ crayon-syntax-highlighter
471
  msgid "Custom Font Size"
472
+ msgstr "字体大小"
473
 
474
+ #: crayon_settings_wp.class.php:651
475
  #, php-format
476
  #@ crayon-syntax-highlighter
477
  msgid "The selected font with id %s could not be loaded"
478
+ msgstr "ID为 %s 的字体加载失败"
479
 
480
+ #: crayon_settings_wp.class.php:657
481
+ #@ crayon-syntax-highlighter
482
+ msgid "Enqueue fonts in the header (more efficient)."
483
+ msgstr "在头部就加载字体(高效)"
484
+
485
+ #: crayon_settings_wp.class.php:662
486
  #@ crayon-syntax-highlighter
487
  msgid "Enable plain code view and display"
488
+ msgstr "允许纯文本显示代码,显示方式"
489
 
490
+ #: crayon_settings_wp.class.php:665
491
+ #@ crayon-syntax-highlighter
492
+ msgid "Enable plain code toggling"
493
+ msgstr "允许纯文本显示代码"
494
+
495
+ #: crayon_settings_wp.class.php:666
496
+ #@ crayon-syntax-highlighter
497
+ msgid "Show the plain code by default"
498
+ msgstr "默认纯文本显示代码"
499
+
500
+ #: crayon_settings_wp.class.php:667
501
  #@ crayon-syntax-highlighter
502
  msgid "Enable code copy/paste"
503
+ msgstr "允许代码复制/粘贴"
504
 
505
+ #: crayon_settings_wp.class.php:669
506
  #@ crayon-syntax-highlighter
507
  msgid "Enable opening code in a window"
508
+ msgstr "允许新窗口显示代码"
509
 
510
+ #: crayon_settings_wp.class.php:670
511
+ #@ crayon-syntax-highlighter
512
+ msgid "Always display scrollbars"
513
+ msgstr "总是显示滚动条"
514
+
515
+ #: crayon_settings_wp.class.php:671
516
  #@ crayon-syntax-highlighter
517
  msgid "Tab size in spaces"
518
+ msgstr "Tab等于几个空格"
519
 
520
+ #: crayon_settings_wp.class.php:676
521
  #@ crayon-syntax-highlighter
522
+ msgid "Decode HTML entities in code"
523
+ msgstr "在代码中进行HTML解码"
524
 
525
+ #: crayon_settings_wp.class.php:678
526
  #@ crayon-syntax-highlighter
527
+ msgid "Decode HTML entities in attributes"
528
+ msgstr "在属性中进行HTML解码"
529
 
530
+ #: crayon_settings_wp.class.php:680
531
  #@ crayon-syntax-highlighter
532
+ msgid "Remove whitespace surrounding the shortcode content"
533
+ msgstr "删除短代码周围的空白"
534
 
535
+ #: crayon_settings_wp.class.php:682
536
  #@ crayon-syntax-highlighter
537
+ msgid "Allow Mixed Language Highlighting with delimiters and tags."
538
+ msgstr "允许多重语言高亮使用分隔符和标签"
539
 
540
+ #: crayon_settings_wp.class.php:684
541
  #@ crayon-syntax-highlighter
542
+ msgid "Show Mixed Language Icon (+)"
543
+ msgstr "显示多重语言图标 (+)"
544
 
545
+ #: crayon_settings_wp.class.php:689
546
  #@ crayon-syntax-highlighter
547
+ msgid "Capture Mini Tags like [php][/php] as Crayons."
548
+ msgstr "使用迷你标签(如[php][/php])"
549
 
550
+ #: crayon_settings_wp.class.php:690
551
  #@ crayon-syntax-highlighter
552
+ msgid "Capture Inline Tags like {php}{/php} inside sentences."
553
+ msgstr "允许在文中使用标签(如{php}{/php})"
554
 
555
+ #: crayon_settings_wp.class.php:691
556
  #@ crayon-syntax-highlighter
557
+ msgid "Wrap Inline Tags"
558
+ msgstr "文中标签自动换行"
559
 
560
+ #: crayon_settings_wp.class.php:692
561
  #@ crayon-syntax-highlighter
562
+ msgid "Capture `backquotes` as &lt;code&gt;"
563
+ msgstr "把 `backquotes` 绑定为 &lt;code&gt;"
564
 
565
+ #: crayon_settings_wp.class.php:693
566
  #@ crayon-syntax-highlighter
567
+ msgid "Capture &lt;pre&gt; tags as Crayons"
568
+ msgstr "指定 &lt;pre&gt; 为插件所有"
569
 
570
+ #: crayon_settings_wp.class.php:694
571
  #@ crayon-syntax-highlighter
572
+ msgid "Enable [plain][/plain] tag."
573
+ msgstr "启用 [plain][/plain] 标签"
574
 
575
+ #: crayon_settings_wp.class.php:699
576
  #@ crayon-syntax-highlighter
577
+ msgid "When loading local files and a relative path is given for the URL, use the absolute path"
578
+ msgstr "当URL为相对路径,使用的绝对路径为"
579
 
580
+ #: crayon_settings_wp.class.php:702
581
  #@ crayon-syntax-highlighter
582
+ msgid "Followed by your relative URL."
583
+ msgstr "置于相对路径之前"
584
 
585
+ #: crayon_settings_wp.class.php:706
586
+ #, php-format
587
  #@ crayon-syntax-highlighter
588
+ msgid "Use %s to separate setting names from values in the &lt;pre&gt; class attribute"
589
+ msgstr "&lt;pre&gt; 标签中使用 %s 分割每个属性与属性值。"
590
 
591
+ #: crayon_settings_wp.class.php:712
592
  #@ crayon-syntax-highlighter
593
+ msgid "Clear the cache used to store remote code requests"
594
+ msgstr "清空用于存储远程代码的缓存频率"
595
 
596
+ #: crayon_settings_wp.class.php:714
597
  #@ crayon-syntax-highlighter
598
+ msgid "Clear Now"
599
+ msgstr "立刻清空"
600
 
601
+ #: crayon_settings_wp.class.php:715
602
  #@ crayon-syntax-highlighter
603
+ msgid "Attempt to load Crayon's CSS and JavaScript only when needed"
604
+ msgstr "按需加载插件的CSS与JavaScript"
605
 
606
+ #: crayon_settings_wp.class.php:716
 
607
  #@ crayon-syntax-highlighter
608
+ msgid "Disable enqueuing for page templates that may contain The Loop."
609
+ msgstr "当可能造成循环时禁用加载页面模板"
610
 
611
+ #: crayon_settings_wp.class.php:717
612
  #@ crayon-syntax-highlighter
613
+ msgid "Allow Crayons inside comments"
614
+ msgstr "允许在评论中使用"
615
 
616
+ #: crayon_settings_wp.class.php:718
617
  #@ crayon-syntax-highlighter
618
+ msgid "Load Crayons only from the main Wordpress query"
619
+ msgstr "仅在Wordpress主请求中加载插件"
620
 
621
+ #: crayon_settings_wp.class.php:719
622
  #@ crayon-syntax-highlighter
623
+ msgid "Disable mouse gestures for touchscreen devices (eg. MouseOver)"
624
+ msgstr "使用触屏设备时禁止鼠标行为(如鼠标经过)"
625
 
626
+ #: crayon_settings_wp.class.php:720
627
  #@ crayon-syntax-highlighter
628
+ msgid "Disable animations"
629
+ msgstr "禁止动画效果"
630
 
631
+ #: crayon_settings_wp.class.php:721
632
  #@ crayon-syntax-highlighter
633
+ msgid "Disable runtime stats"
634
+ msgstr "禁止运行时间统计"
635
 
636
+ #: crayon_settings_wp.class.php:728
637
  #@ crayon-syntax-highlighter
638
+ msgid "Log errors for individual Crayons"
639
+ msgstr "使用独立的错误日志"
640
 
641
+ #: crayon_settings_wp.class.php:729
642
  #@ crayon-syntax-highlighter
643
+ msgid "Log system-wide errors"
644
+ msgstr "启用系统错误日志"
645
 
646
+ #: crayon_settings_wp.class.php:730
647
  #@ crayon-syntax-highlighter
648
+ msgid "Display custom message for errors"
649
+ msgstr "自定义错误提示"
650
 
651
+ #: crayon_settings_wp.class.php:742
652
  #@ crayon-syntax-highlighter
653
+ msgid "Show Log"
654
+ msgstr "显示日志"
655
 
656
+ #: crayon_settings_wp.class.php:742
657
  #@ crayon-syntax-highlighter
658
+ msgid "Hide Log"
659
+ msgstr "隐藏日志"
660
 
661
+ #: crayon_settings_wp.class.php:744
662
  #@ crayon-syntax-highlighter
663
+ msgid "Clear Log"
664
+ msgstr "清空日志"
665
 
666
+ #: crayon_settings_wp.class.php:745
667
  #@ crayon-syntax-highlighter
668
+ msgid "Email Admin"
669
+ msgstr "发邮件给管理员"
670
 
671
+ #: crayon_settings_wp.class.php:747
 
672
  #@ crayon-syntax-highlighter
673
+ msgid "Email Developer"
674
+ msgstr "发邮件给开发者"
 
 
675
 
676
+ #: crayon_settings_wp.class.php:749
677
  #@ crayon-syntax-highlighter
678
+ msgid "The log is currently empty."
679
+ msgstr "日志为空,"
680
 
681
+ #: crayon_settings_wp.class.php:751
 
 
 
 
 
 
 
 
 
 
682
  #@ crayon-syntax-highlighter
683
+ msgid "The log file exists and is writable."
684
+ msgstr "日志文件存在并可写。"
685
 
686
+ #: crayon_settings_wp.class.php:751
687
  #@ crayon-syntax-highlighter
688
+ msgid "The log file exists and is not writable."
689
+ msgstr "日志文件存在但不可写。"
690
 
691
+ #: crayon_settings_wp.class.php:753
692
  #@ crayon-syntax-highlighter
693
+ msgid "The log file does not exist and is not writable."
694
+ msgstr "日志文件不存且不可写。"
695
 
696
+ #: crayon_settings_wp.class.php:763
697
  #@ crayon-syntax-highlighter
698
+ msgid "Version"
699
+ msgstr "版本"
700
 
701
+ #: crayon_settings_wp.class.php:765
702
  #@ crayon-syntax-highlighter
703
+ msgid "Developer"
704
+ msgstr "开发者"
705
 
706
+ #: crayon_settings_wp.class.php:766
707
  #@ crayon-syntax-highlighter
708
+ msgid "Translators"
709
+ msgstr "翻译者"
710
 
711
+ #: crayon_settings_wp.class.php:788
712
  #@ crayon-syntax-highlighter
713
+ msgid "The result of innumerable hours of hard work over many months. It's an ongoing project, keep me motivated!"
714
+ msgstr "本插件是数月辛勤劳动的结果,为了让它不断的完善,如果你喜欢它,请告诉我!"
715
 
716
+ #: crayon_settings_wp.class.php:804
717
  #@ crayon-syntax-highlighter
718
+ msgid "Donate"
719
+ msgstr "捐助"
720
 
721
  #. translators: plugin header field 'Name'
722
  #: crayon_wp.class.php:0
724
  msgid "Crayon Syntax Highlighter"
725
  msgstr ""
726
 
727
+ #. translators: plugin header field 'PluginURI'
728
  #: crayon_wp.class.php:0
729
  #@ crayon-syntax-highlighter
730
+ msgid "http://ak.net84.net/projects/crayon-syntax-highlighter"
731
+ msgstr ""
732
+
733
+ #. translators: plugin header field 'Description'
734
+ #: crayon_wp.class.php:0
735
+ #@ crayon-syntax-highlighter
736
+ msgid "Supports multiple languages, themes, highlighting from a URL, local file or post text."
737
  msgstr ""
738
 
739
  #. translators: plugin header field 'Author'
742
  msgid "Aram Kocharyan"
743
  msgstr ""
744
 
745
+ #. translators: plugin header field 'AuthorURI'
746
  #: crayon_wp.class.php:0
747
  #@ crayon-syntax-highlighter
748
+ msgid "http://ak.net84.net/"
749
  msgstr ""
750
 
751
+ #. translators: plugin header field 'Version'
752
  #: crayon_wp.class.php:0
753
  #@ crayon-syntax-highlighter
754
+ msgid "1.9.0"
755
+ msgstr ""
756
 
757
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:57
758
  #@ crayon-syntax-highlighter
759
+ msgid "Add Crayon Code"
760
+ msgstr "插入代码高亮"
761
 
762
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:58
763
  #@ crayon-syntax-highlighter
764
+ msgid "Edit Crayon Code"
765
+ msgstr "编辑代码高亮"
766
 
767
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:59
768
  #@ crayon-syntax-highlighter
769
+ msgid "Add"
770
+ msgstr "确认插入"
771
 
772
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:60
773
  #@ crayon-syntax-highlighter
774
+ msgid "Save"
775
+ msgstr "保存"
776
 
777
+ #: util/tag-editor/crayon_te_content.php:65
778
  #@ crayon-syntax-highlighter
779
+ msgid "Title"
780
+ msgstr "标题"
781
 
782
+ #: util/tag-editor/crayon_te_content.php:67
783
  #@ crayon-syntax-highlighter
784
+ msgid "A short description"
785
+ msgstr "简短的描述"
786
 
787
+ #: util/tag-editor/crayon_te_content.php:70
788
  #@ crayon-syntax-highlighter
789
+ msgid "Inline"
790
+ msgstr "行内"
 
 
 
 
 
791
 
792
+ #: util/tag-editor/crayon_te_content.php:75
793
  #@ crayon-syntax-highlighter
794
+ msgid "Language"
795
  msgstr "语言"
796
 
797
+ #: util/tag-editor/crayon_te_content.php:78
798
  #@ crayon-syntax-highlighter
799
+ msgid "Marked Lines"
800
+ msgstr "重点代码"
801
 
802
+ #: util/tag-editor/crayon_te_content.php:79
803
  #@ crayon-syntax-highlighter
804
+ msgid "(e.g. 1,2,3-5)"
805
+ msgstr "(如 1,2,3-5)"
806
 
807
+ #: util/tag-editor/crayon_te_content.php:82
808
  #@ crayon-syntax-highlighter
809
+ msgid "Disable Highlighting"
810
+ msgstr "禁止高亮"
811
 
812
+ #: util/tag-editor/crayon_te_content.php:87
813
  #@ crayon-syntax-highlighter
814
+ msgid "Clear"
815
+ msgstr "清空"
816
 
817
+ #: util/tag-editor/crayon_te_content.php:88
818
  #@ crayon-syntax-highlighter
819
+ msgid "Paste your code here, or type it in manually."
820
+ msgstr "粘贴代码到这里,或者手工输入。"
821
 
822
+ #: util/tag-editor/crayon_te_content.php:91
823
  #@ crayon-syntax-highlighter
824
+ msgid "URL"
825
+ msgstr "URL"
826
 
827
+ #: util/tag-editor/crayon_te_content.php:93
828
  #@ crayon-syntax-highlighter
829
+ msgid "Relative local path or absolute URL"
830
+ msgstr "相对路径或绝对路径URL"
831
 
832
+ #: util/tag-editor/crayon_te_content.php:96
833
  #@ crayon-syntax-highlighter
834
+ msgid "If the URL fails to load, the code above will be shown instead. If no code exists, an error is shown."
835
+ msgstr "如果URL不能加载,将会使用下面的代码代替显示,如果也没有代码,则显示错误提示。"
836
 
837
+ #: util/tag-editor/crayon_te_content.php:98
838
+ #, php-format
839
  #@ crayon-syntax-highlighter
840
+ msgid "If a relative local path is given it will be appended to %s - which is defined in %sCrayon &gt; Settings &gt; Files%s."
841
+ msgstr "如果是相对路径,则前面的路径将是 %s (在 %sCrayon &gt; Settings &gt; Files%s 里面设置)"
842
 
843
+ #: util/tag-editor/crayon_te_content.php:117
 
 
844
  #@ crayon-syntax-highlighter
845
+ msgid "Change the following settings to override their global values."
846
+ msgstr "以下设置优先于默认设置,"
847
 
848
+ #: util/tag-editor/crayon_te_content.php:119
849
  #@ crayon-syntax-highlighter
850
+ msgid "Only changes (shown yellow) are applied."
851
+ msgstr "只有背景色为黄色的选项会优先于默认设置,"
852
 
853
+ #: util/tag-editor/crayon_te_content.php:121
854
+ #, php-format
 
 
 
 
855
  #@ crayon-syntax-highlighter
856
+ msgid "Future changes to the global settings under %sCrayon &gt; Settings%s won't affect overridden settings."
857
+ msgstr "其它设置会沿用默认设置(%sCrayon &gt; Settings%s)。"
858
 
859
  #: util/theme-editor/editor.php:16
860
  #@ crayon-syntax-highlighter
861
  msgid "Back To Settings"
862
+ msgstr "返回设置"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
863
 
util/ajax.php CHANGED
@@ -6,10 +6,17 @@ require_once(dirname(dirname(__FILE__)) . '/crayon_wp.class.php');
6
  require_once(CrayonSettingsWP::wp_load_path());
7
 
8
  CrayonSettingsWP::load_settings(true);
 
9
 
10
- if ( array_key_exists(CrayonSettings::HIDE_HELP, $_GET) && $_GET[CrayonSettings::HIDE_HELP] ) {
11
- CrayonGlobalSettings::set(CrayonSettings::HIDE_HELP, TRUE);
12
- CrayonSettingsWP::save_settings();
 
 
 
 
 
 
13
  }
14
 
15
  ?>
6
  require_once(CrayonSettingsWP::wp_load_path());
7
 
8
  CrayonSettingsWP::load_settings(true);
9
+ //echo json_encode(CrayonGlobalSettings::get());
10
 
11
+ $allowed = array(CrayonSettings::HIDE_HELP, CrayonSettings::TINYMCE_USED);
12
+
13
+ //var_dump($_GET);
14
+
15
+ foreach ($allowed as $allow) {
16
+ if ( array_key_exists($allow, $_GET) ) {
17
+ CrayonGlobalSettings::set($allow, $_GET[$allow]);
18
+ CrayonSettingsWP::save_settings();
19
+ }
20
  }
21
 
22
  ?>
util/crayon_log.class.php CHANGED
@@ -22,8 +22,8 @@ class CrayonLog {
22
  self::$file = @fopen(CRAYON_LOG_FILE, 'a+');
23
 
24
  if (self::$file) {
25
- $header = CRAYON_DASH . CRAYON_NL . 'Crayon Syntax Highlighter Log Entry' . CRAYON_NL .
26
- CRAYON_DASH . CRAYON_NL;
27
  fwrite(self::$file, $header);
28
  } else {
29
  return;
@@ -36,19 +36,20 @@ class CrayonLog {
36
 
37
  // Remove stupid formatting from wampserver
38
  $buffer = str_replace('&apos;', '"', $buffer);
39
- $title = (!empty($title) && is_string($title) ? "[$title] " : '');
 
40
 
41
  // Remove absolute path to plugin directory from buffer
42
  if ($trim_url) {
43
  $buffer = CrayonUtil::path_rel($buffer);
44
  }
45
- $write = $title . date('g:i:s A - d M Y') . CRAYON_NL . $buffer . CRAYON_NL . CRAYON_LINE . CRAYON_NL;
46
 
47
  // If we exceed max file size, truncate file first
48
  if (filesize(CRAYON_LOG_FILE) + strlen($write) > CRAYON_LOG_MAX_SIZE) {
49
  ftruncate(self::$file, 0);
50
  fwrite(self::$file, 'The log has been truncated since it exceeded ' . CRAYON_LOG_MAX_SIZE .
51
- ' bytes.' . CRAYON_NL . CRAYON_LINE . CRAYON_NL);
52
  }
53
  clearstatcache();
54
  fwrite(self::$file, $write, CRAYON_LOG_MAX_SIZE);
22
  self::$file = @fopen(CRAYON_LOG_FILE, 'a+');
23
 
24
  if (self::$file) {
25
+ $header = /*CRAYON_DASH .*/ CRAYON_NL . '[Crayon Syntax Highlighter Log Entry - ' . date('g:i:s A - d M Y') . ']' . CRAYON_NL .
26
+ /*CRAYON_DASH .*/ CRAYON_NL;
27
  fwrite(self::$file, $header);
28
  } else {
29
  return;
36
 
37
  // Remove stupid formatting from wampserver
38
  $buffer = str_replace('&apos;', '"', $buffer);
39
+ $buffer = preg_replace('#^string\([^\)]*\)#mi', 'str', $buffer);
40
+ $title = (!empty($title) && is_string($title) ? " [$title]" : '');
41
 
42
  // Remove absolute path to plugin directory from buffer
43
  if ($trim_url) {
44
  $buffer = CrayonUtil::path_rel($buffer);
45
  }
46
+ $write = $title . ' ' . $buffer . CRAYON_NL /* . CRAYON_LINE . CRAYON_NL*/;
47
 
48
  // If we exceed max file size, truncate file first
49
  if (filesize(CRAYON_LOG_FILE) + strlen($write) > CRAYON_LOG_MAX_SIZE) {
50
  ftruncate(self::$file, 0);
51
  fwrite(self::$file, 'The log has been truncated since it exceeded ' . CRAYON_LOG_MAX_SIZE .
52
+ ' bytes.' . CRAYON_NL . /*CRAYON_LINE .*/ CRAYON_NL);
53
  }
54
  clearstatcache();
55
  fwrite(self::$file, $write, CRAYON_LOG_MAX_SIZE);
util/crayon_util.class.php CHANGED
@@ -151,6 +151,14 @@ class CrayonUtil {
151
  public static function htmlentities($str) {
152
  return htmlentities($str, ENT_COMPAT, 'UTF-8');
153
  }
 
 
 
 
 
 
 
 
154
 
155
  // Sets a variable to an int if valid
156
  public static function num(&$var, $num) {
@@ -405,7 +413,14 @@ class CrayonUtil {
405
  return TRUE;
406
  }
407
  }
408
-
 
 
 
 
 
 
 
409
  }
410
 
411
  public static function tlower($str) {
151
  public static function htmlentities($str) {
152
  return htmlentities($str, ENT_COMPAT, 'UTF-8');
153
  }
154
+
155
+ public static function html_entity_decode($str) {
156
+ return html_entity_decode($str, ENT_NOQUOTES, 'UTF-8');
157
+ }
158
+
159
+ public static function htmlspecialchars($str) {
160
+ return htmlspecialchars($str, ENT_NOQUOTES, 'UTF-8');
161
+ }
162
 
163
  // Sets a variable to an int if valid
164
  public static function num(&$var, $num) {
413
  return TRUE;
414
  }
415
  }
416
+ }
417
+
418
+ public static function bool_to_str($bool, $strict = FALSE) {
419
+ if ($strict) {
420
+ return $bool === TRUE ? 'true' : 'false';
421
+ } else {
422
+ return $bool ? 'true' : 'false';
423
+ }
424
  }
425
 
426
  public static function tlower($str) {
util/preview.php CHANGED
@@ -1,9 +1,7 @@
1
  <?php
2
 
3
  require_once (dirname(dirname(__FILE__)) . '/crayon_wp.class.php');
4
-
5
- $wp_root_path = str_replace('wp-content/plugins/' . CRAYON_DIR, '', CRAYON_ROOT_PATH);
6
- require_once ($wp_root_path . 'wp-load.php');
7
 
8
  echo '<link rel="stylesheet" href="', plugins_url(CRAYON_STYLE, dirname(__FILE__)),
9
  '?ver=', $CRAYON_VERSION, '" type="text/css" media="all" />';
1
  <?php
2
 
3
  require_once (dirname(dirname(__FILE__)) . '/crayon_wp.class.php');
4
+ require_once (CrayonWP::wp_load_path());
 
 
5
 
6
  echo '<link rel="stylesheet" href="', plugins_url(CRAYON_STYLE, dirname(__FILE__)),
7
  '?ver=', $CRAYON_VERSION, '" type="text/css" media="all" />';
util/sample/abap.txt ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ * A sample function
2
+ CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
3
+ EXPORTING
4
+ MASK = ',*.txt,*.*'
5
+ STATIC = 'X'
6
+ CHANGING
7
+ FILE_NAME = LV_FILE.
8
+
util/sample/scheme.txt ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ (define var "goose")
2
+ ;; Any reference to var here will be bound to "goose"
3
+ (let* ((var1 10)
4
+ (var2 (+ var1 12)))
5
+ ;; But the definition of var1 could not refer to var2
6
+ )
util/tag-editor/crayon_qt.js ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var CrayonQuickTags = function() {
2
+
3
+ jQuery(function() {CrayonTagEditor.loadDialog(); });
4
+
5
+ QTags.addButton( 'crayon_quicktag', 'crayon', function() {
6
+ CrayonTagEditor.showDialog(
7
+ function(shortcode) {
8
+ QTags.insertContent(shortcode);
9
+ },
10
+ function(shortcode) {/* Can't edit */}, 'html', null, null, null, 'encode');
11
+ jQuery('#qt_content_crayon_quicktag').removeClass('qt_crayon_highlight');
12
+ });
13
+
14
+ var qt_crayon;
15
+ var find_qt_crayon = setInterval(function() {
16
+ qt_crayon = jQuery('#qt_content_crayon_quicktag');
17
+ if (typeof qt_crayon != 'undefined') {
18
+ if (!CrayonTagEditorSettings.used) {
19
+ qt_crayon.addClass('qt_crayon_highlight');
20
+ }
21
+ clearInterval(find_qt_crayon);
22
+ }
23
+ }, 100);
24
+
25
+ };
26
+
27
+ CrayonQuickTags();
util/tag-editor/crayon_tag_editor_wp.class.php ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ require_once (CRAYON_ROOT_PATH . 'crayon_settings_wp.class.php');
4
+ //require_once (CRAYON_UTIL_PHP);
5
+
6
+ class CrayonTagEditorWP {
7
+
8
+ public static $settings = null;
9
+
10
+ public static function init() {
11
+ // Hooks
12
+ if (CRAYON_TAG_EDITOR) {
13
+ self::addbuttons();
14
+ // TODO this fails!
15
+ add_action('admin_print_scripts-post-new.php', 'CrayonTagEditorWP::admin_scripts');
16
+ add_action('admin_print_scripts-post.php', 'CrayonTagEditorWP::admin_scripts');
17
+ add_filter('tiny_mce_before_init', 'CrayonTagEditorWP::init_tinymce');
18
+ // Must come after
19
+ add_action("admin_print_scripts-post-new.php", 'CrayonSettingsWP::init_js_settings');
20
+ add_action("admin_print_scripts-post.php", 'CrayonSettingsWP::init_js_settings');
21
+ }
22
+ }
23
+
24
+ public static function init_settings() {
25
+ if (!self::$settings) {
26
+ // Add settings
27
+ CrayonSettingsWP::load_settings(TRUE);
28
+ self::$settings = array(
29
+ 'url' => plugins_url(CRAYON_TE_PHP, __FILE__),
30
+ 'home_url' => home_url(),
31
+ 'css' => 'crayon-te',
32
+ 'used' => CrayonGlobalSettings::val(CrayonSettings::TINYMCE_USED),
33
+ 'used_setting' => CrayonSettings::TINYMCE_USED,
34
+ 'ajax_url' => plugins_url(CRAYON_AJAX_PHP, dirname(dirname(__FILE__))),
35
+ 'css_selected' => 'crayon-selected',
36
+ 'code_css' => '#crayon-code',
37
+ 'url_css' => '#crayon-url',
38
+ 'url_info_css' => '#crayon-te-url-info',
39
+ // 'abs_home_path' => get_home_url(),
40
+ // 'local_path' => CrayonGlobalSettings::val(CrayonSettings::LOCAL_PATH),
41
+ 'lang_css' => '#crayon-lang',
42
+ 'title_css' => '#crayon-title',
43
+ 'mark_css' => '#crayon-mark',
44
+ 'inline_css' => 'crayon-inline',
45
+ 'inline_hide_css' => 'crayon-hide-inline',
46
+ 'inline_hide_only_css' => 'crayon-hide-inline-only',
47
+ 'hl_css' => '#crayon-highlight',
48
+ 'switch_html' => '#content-html',
49
+ 'switch_tmce' => '#content-tmce',
50
+ 'tinymce_button' => '#content_crayon_tinymce',
51
+ 'submit_css' => 'crayon-te-submit',
52
+ 'submit_wrapper_css' => '#crayon-te-submit-wrapper',
53
+ 'data_value' => 'data-value',
54
+ 'attr_sep' => CrayonGlobalSettings::val_str(CrayonSettings::ATTR_SEP),
55
+ 'css_sep' => '_',
56
+ 'fallback_lang' => CrayonGlobalSettings::val(CrayonSettings::FALLBACK_LANG),
57
+ 'dialog_title_add' => crayon__('Add Crayon Code'),
58
+ 'dialog_title_edit' => crayon__('Edit Crayon Code'),
59
+ 'submit_add' => crayon__('Add'),
60
+ 'submit_edit' => crayon__('Save'),
61
+ );
62
+ }
63
+ }
64
+
65
+ public static function init_tinymce($init) {
66
+ $init['extended_valid_elements'] .= ',pre[*],code[*],iframe[*]';
67
+ return $init;
68
+ }
69
+
70
+ public static function addbuttons() {
71
+ // Don't bother doing this stuff if the current user lacks permissions
72
+ if ( ! current_user_can('edit_posts') && ! current_user_can('edit_pages') ) {
73
+ return;
74
+ }
75
+
76
+ // Add only in Rich Editor mode
77
+ if ( get_user_option('rich_editing') == 'true') {
78
+ add_filter('mce_external_plugins', 'CrayonTagEditorWP::add_plugin');
79
+ add_filter('mce_buttons', 'CrayonTagEditorWP::register_buttons');
80
+ }
81
+ }
82
+
83
+ public static function admin_scripts() {
84
+ global $CRAYON_VERSION;
85
+ self::init_settings();
86
+ wp_enqueue_script('crayon_util_js', plugins_url(CRAYON_JS_UTIL, dirname(dirname(__FILE__))), NULL, $CRAYON_VERSION);
87
+ wp_enqueue_script('crayon_admin_js', plugins_url(CRAYON_JS_ADMIN, dirname(dirname(__FILE__))), array('jquery', 'crayon_util_js'), $CRAYON_VERSION);
88
+ wp_enqueue_script('crayon_te_js', plugins_url(CRAYON_TE_JS, __FILE__), array('crayon_admin_js'), $CRAYON_VERSION);
89
+ wp_enqueue_script('crayon_qt_js', plugins_url(CRAYON_QUICKTAGS_JS, __FILE__), array('quicktags','crayon_te_js'), $CRAYON_VERSION, TRUE);
90
+ wp_localize_script('crayon_te_js', 'CrayonTagEditorSettings', self::$settings);
91
+ }
92
+
93
+ public static function register_buttons($buttons) {
94
+ array_push($buttons, 'separator', 'crayon_tinymce');
95
+ return $buttons;
96
+ }
97
+
98
+ // Load the TinyMCE plugin : editor_plugin.js (wp2.5)
99
+ public static function add_plugin($plugin_array) {
100
+ $plugin_array['crayon_tinymce'] = plugins_url(CRAYON_TINYMCE_JS, __FILE__);
101
+ return $plugin_array;
102
+ }
103
+
104
+ }
105
+
106
+ if (defined('ABSPATH') && is_admin()) {
107
+ add_action('init', 'CrayonTagEditorWP::init');
108
+ }
109
+
110
+ ?>
util/tag-editor/crayon_te.css ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ pre {
2
+ background: #F4F4F4 !important;
3
+ border: 1px solid #CCC !important;
4
+ margin-bottom: 1.5em !important;
5
+ padding: 0.3em 0.5em !important;
6
+ min-height: 1.5em;
7
+ }
8
+
9
+ pre.crayon-selected {
10
+ background: #cce4f5 !important;
11
+ border: 1px solid #9dc8e6 !important;
12
+ }
13
+
14
+ pre, span.crayon-inline {
15
+ font-family: "Courier 10 Pitch", Courier, monospace !important;
16
+ font-size: 80% !important;
17
+ }
18
+
19
+ span.crayon-inline {
20
+ background: #F4F4F4 !important;
21
+ border: 1px solid #CCC !important;
22
+ padding: 2px 3px;
23
+
24
+ /* font: 80% !important; */
25
+ /* margin-bottom: 1.5em !important; */
26
+ /* padding: 0.3em 0.5em !important; */
27
+ }
28
+
29
+ span.crayon-inline.crayon-selected {
30
+ background: #d2eeca !important;
31
+ border: 1px solid #b8dc9b !important;
32
+ }
util/tag-editor/crayon_te.js ADDED
@@ -0,0 +1,573 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Sets the TINYMCE_USED setting
2
+ CrayonTagEditorSettings.setUsed = function(is_used) {
3
+ if (typeof this.ajax_url != 'undefined') {
4
+ if (this.ajax_url && !this.used) {
5
+ is_used = is_used ? '1' : '0';
6
+ this.used = is_used; // Save the setting
7
+ var used_url = this.ajax_url + '?' + this.used_setting + '=' + is_used;
8
+ jQuery.get(used_url);
9
+ }
10
+ }
11
+ };
12
+
13
+ var CrayonTagEditor = new function() {
14
+
15
+ var loaded = false;
16
+ var editing = false;
17
+ var insertCallback = null;
18
+ var editCallback = null;
19
+ // Used for encoding, decoding
20
+ var inputHTML = null;
21
+ var outputHTML = null;
22
+ var editor_name = null;
23
+ var ajax_class_timer = null;
24
+ var ajax_class_timer_count = 0;
25
+
26
+ var code_refresh = url_refresh = null;
27
+
28
+ // Current jQuery obj of pre node
29
+ var currCrayon = null;
30
+ // Classes from pre node, excl. settings
31
+ var currClasses = '';
32
+ // Whether to make span or pre
33
+ var is_inline = false;
34
+
35
+ // Generated in WP and contains the settings
36
+ var s = CrayonTagEditorSettings;
37
+ var gs = CrayonSyntaxSettings;
38
+ var admin = CrayonSyntaxAdmin;
39
+ // For use in async functions
40
+ var me = this;
41
+
42
+ // CSS
43
+ var dialog = code = clear = submit = null;
44
+
45
+ // XXX Loads dialog contents
46
+ this.loadDialog = function() {
47
+ // Loaded once url is given
48
+ if (!loaded) {
49
+ loaded = true;
50
+ } else {
51
+ return;
52
+ }
53
+
54
+ // Load the editor content
55
+ jQuery.get(s.url, function(data) {
56
+ dialog = jQuery('<div id="'+s.css+'"></div>');
57
+ dialog.appendTo('body').hide();
58
+ dialog.html(data);
59
+
60
+ dialog.ready(function() {
61
+ // Some settings have dependencies, need to load js for that
62
+ admin.init();
63
+ });
64
+
65
+ me.setOrigValues();
66
+
67
+ submit = dialog.find('.'+s.submit_css);
68
+
69
+ // Save default global settings
70
+ // defaults = [];
71
+ // jQuery('.'+gs.setting+'[id]').each(function() {
72
+ // var id = jQuery(this).attr('id');
73
+ // var value = jQuery(this).attr(s.data_value);
74
+ // // Remove prefix
75
+ //// id = admin.removePrefixFromID(id);
76
+ // atts[id] = value;
77
+ //// console_log(id + ' ' + value);
78
+ // });
79
+
80
+ code = jQuery(s.code_css);
81
+ clear = jQuery('#crayon-te-clear');
82
+ code_refresh = function () {
83
+ var clear_visible = clear.is(":visible");
84
+ if (code.val().length > 0 && !clear_visible) {
85
+ clear.show();
86
+ code.removeClass(gs.selected);
87
+ } else if (code.val().length <= 0) {
88
+ clear.hide();
89
+ }
90
+ };
91
+
92
+ code.keyup(code_refresh);
93
+ code.change(code_refresh);
94
+ clear.click(function() {
95
+ code.val('');
96
+ code.removeClass(gs.selected);
97
+ code.focus();
98
+ });
99
+
100
+ var url = jQuery(s.url_css);
101
+ var url_info = jQuery(s.url_info_css);
102
+ url_refresh = function () {
103
+ if (url.val().length > 0 && !url_info.is(":visible")) {
104
+ url_info.show();
105
+ url.removeClass(gs.selected);
106
+ } else if (url.val().length <= 0) {
107
+ url_info.hide();
108
+ }
109
+ };
110
+ url.keyup(url_refresh);
111
+ url.change(url_refresh);
112
+
113
+ var setting_change = function() {
114
+ var setting = jQuery(this);
115
+ var orig_value = jQuery(this).attr(gs.orig_value);
116
+ if (typeof orig_value == 'undefined') {
117
+ orig_value = '';
118
+ }
119
+ // Depends on type
120
+ var value = me.settingValue(setting);
121
+ console_log(setting.attr('id') + ' value: ' + value);
122
+ var highlight = null;
123
+ if (setting.is('input[type=checkbox]')) {
124
+ highlight = setting.next('span');
125
+ }
126
+
127
+ if (orig_value == value) {
128
+ // No change
129
+ setting.removeClass(gs.changed);
130
+ if (highlight) {
131
+ highlight.removeClass(gs.changed);
132
+ }
133
+ } else {
134
+ // Changed
135
+ setting.addClass(gs.changed);
136
+ if (highlight) {
137
+ highlight.addClass(gs.changed);
138
+ }
139
+ }
140
+ // Save standardized value for later
141
+ me.settingValue(setting, value);
142
+ };
143
+ jQuery('.'+gs.setting+'[id]:not(.'+gs.special+')').each(function() {
144
+ jQuery(this).change(setting_change);
145
+ jQuery(this).keyup(setting_change);
146
+ });
147
+ });
148
+ };
149
+
150
+ // XXX Displays the dialog.
151
+ this.showDialog = function(insert, edit, editor_str, ed, node, input, output) {
152
+ // Need to reset all settings back to original, clear yellow highlighting
153
+ me.resetSettings();
154
+ // Save these for when we add a Crayon
155
+ insertCallback = insert;
156
+ editCallback = edit;
157
+ inputHTML = input;
158
+ outputHTML = output;
159
+ editor_name = editor_str;
160
+ // If we have selected a Crayon, load in the contents
161
+ // TODO put this in a separate function
162
+ var currNode = null;
163
+ is_inline = false;
164
+ if (typeof node != 'undefined' && node != null) {
165
+ currNode = node;
166
+ } else {
167
+ // Get it from editor selection, not as precise
168
+ currNode = ed != null ? ed.selection.getNode() : null;
169
+ }
170
+
171
+ // Unbind submit
172
+ submit.unbind();
173
+ submit.click(function() {
174
+ me.submitButton();
175
+ });
176
+ me.setSubmitText(s.submit_add);
177
+
178
+ if (me.isCrayon(currNode)) {
179
+ currCrayon = jQuery(currNode);
180
+ if (currCrayon.length != 0) {
181
+ // Read back settings for editing
182
+ currClasses = currCrayon.attr('class');
183
+ var re = new RegExp('\\b([A-Za-z-]+)'+s.attr_sep+'(\\S+)', 'gim');
184
+ var matches = re.execAll(currClasses);
185
+ // Retain all other classes, remove settings
186
+ currClasses = jQuery.trim(currClasses.replace(re, ''));
187
+ // console_log('classes:');
188
+ // console_log(currClasses);
189
+ // console_log('load match:');
190
+ // console_log(matches);
191
+ var atts = {};
192
+ for (var i in matches) {
193
+ var id = matches[i][1];
194
+ var value = matches[i][2];
195
+ atts[id] = value;
196
+ }
197
+
198
+ // Title
199
+ var title = currCrayon.attr('title');
200
+ if (title) {
201
+ atts['title'] = title;
202
+ }
203
+
204
+ // URL
205
+ var url = currCrayon.attr('data-url');
206
+ if (url) {
207
+ atts['url'] = url;
208
+ }
209
+
210
+ // Inverted settings
211
+ if (typeof atts['highlight'] != 'undefined') {
212
+ atts['highlight'] = '0' ? '1' : '0';
213
+ }
214
+
215
+ // Inline
216
+ is_inline = currCrayon.hasClass(s.inline_css);
217
+ atts['inline'] = is_inline ? '1' : '0';
218
+
219
+ // Ensure language goes to fallback if invalid
220
+ var avail_langs = [];
221
+ jQuery(s.lang_css + ' option').each(function(){
222
+ var value = jQuery(this).val();
223
+ if (value) {
224
+ avail_langs.push(value);
225
+ }
226
+ });
227
+ if (jQuery.inArray(atts['lang'], avail_langs) == -1) {
228
+ atts['lang'] = s.fallback_lang;
229
+ }
230
+
231
+ // Validate the attributes
232
+ atts = me.validate(atts);
233
+
234
+ // Load in attributes, add prefix
235
+ for (var att in atts) {
236
+ var setting = jQuery('#' + gs.prefix + att + '.' + gs.setting);
237
+ var value = atts[att];
238
+ me.settingValue(setting, value);
239
+ // Update highlights
240
+ // setting.change();
241
+ if (!setting.hasClass(gs.special)) {
242
+ setting.addClass(gs.changed);
243
+ }
244
+ // console_log('#' + gs.prefix + att + '.' + gs.setting);
245
+ console_log('loaded: ' + att + ':' + atts[att]);
246
+ }
247
+
248
+ editing = true;
249
+ me.setSubmitText(s.submit_edit);
250
+
251
+ // Code
252
+ var content = currCrayon.html();
253
+ if (inputHTML == 'encode') {
254
+ content = crayon_encode_html(content);
255
+ } else if (inputHTML == 'decode') {
256
+ content = crayon_decode_html(content);
257
+ }
258
+ code.val(content);
259
+
260
+ } else {
261
+ console_log('cannot load currNode of type pre');
262
+ }
263
+ } else {
264
+ // We are creating a new Crayon, not editing
265
+ editing = false;
266
+ me.setSubmitText(s.submit_add);
267
+ currCrayon = null;
268
+ currClasses = '';
269
+ }
270
+
271
+ // Inline
272
+ var inline = jQuery('#' + s.inline_css);
273
+ inline.change(function() {
274
+ console_log('test');
275
+ is_inline = jQuery(this).is(':checked');
276
+ var inline_hide = jQuery('.' + s.inline_hide_css);
277
+ var inline_single = jQuery('.' + s.inline_hide_only_css);
278
+ var disabled = [s.mark_css, s.title_css, s.url_css];
279
+ // var mark = jQuery(s.mark_css);
280
+ // var title = jQuery(s.title_css);
281
+ // var url = jQuery(s.url_css);
282
+
283
+ for (var i in disabled) {
284
+ var obj = jQuery(disabled[i]);
285
+ obj.attr('disabled', is_inline);
286
+ }
287
+
288
+ // mark.attr('disabled', is_inline);
289
+ // title.attr('disabled', is_inline);
290
+ // url.attr('disabled', is_inline);
291
+ if (is_inline) {
292
+ inline_hide.hide();
293
+ inline_single.hide();
294
+ inline_hide.closest('tr').hide();
295
+ for (var i in disabled) {
296
+ var obj = jQuery(disabled[i]);
297
+ obj.addClass('crayon-disabled');
298
+ }
299
+ // mark.addClass('crayon-disabled');
300
+ // title.addClass('crayon-disabled');
301
+ // url.addClass('crayon-disabled');
302
+ } else {
303
+ inline_hide.show();
304
+ inline_single.show();
305
+ inline_hide.closest('tr').show();
306
+ for (var i in disabled) {
307
+ var obj = jQuery(disabled[i]);
308
+ obj.removeClass('crayon-disabled');
309
+ }
310
+ // mark.removeClass('crayon-disabled');
311
+ // title.removeClass('crayon-disabled');
312
+ // title.removeClass('crayon-disabled');
313
+ }
314
+ });
315
+ inline.change();
316
+
317
+ // Show the dialog
318
+ var dialog_title = editing ? s.dialog_title_edit : s.dialog_title_add;
319
+ tb_show(dialog_title, '#TB_inline?inlineId=' + s.css);
320
+ code.focus();
321
+ code_refresh();
322
+ url_refresh();
323
+ if (ajax_class_timer) {
324
+ clearInterval(ajax_class_timer);
325
+ ajax_class_timer_count = 0;
326
+ }
327
+
328
+ // Position submit button
329
+ jQuery('#TB_title').append(submit);
330
+
331
+ var ajax_window = jQuery('#TB_window');
332
+ ajax_window.hide();
333
+ var fallback = function () {
334
+ ajax_window.show();
335
+ // Prevent draw artifacts
336
+ var oldScroll = jQuery(window).scrollTop();
337
+ jQuery(window).scrollTop(oldScroll+10);
338
+ jQuery(window).scrollTop(oldScroll-10);
339
+ };
340
+
341
+ ajax_class_timer = setInterval(function () {
342
+ if ( typeof ajax_window != 'undefined' && !ajax_window.hasClass('crayon-te-ajax') ) {
343
+ ajax_window.addClass('crayon-te-ajax');
344
+ clearInterval(ajax_class_timer);
345
+ fallback();
346
+ }
347
+ if (ajax_class_timer_count >= 100) {
348
+ // In case it never loads, terminate
349
+ clearInterval(ajax_class_timer);
350
+ fallback();
351
+ }
352
+ ajax_class_timer_count++;
353
+ }, 40);
354
+
355
+ s.setUsed(true);
356
+ };
357
+
358
+ // XXX Add Crayon to editor
359
+ this.addCrayon = function() {
360
+ var url = jQuery(s.url_css);
361
+ if (url.val().length == 0 && code.val().length == 0) {
362
+ code.addClass(gs.selected);
363
+ code.focus();
364
+ return false;
365
+ }
366
+ code.removeClass(gs.selected);
367
+
368
+ // Add inline for matching with CSS
369
+ var inline = jQuery('#' + s.inline_css);
370
+ is_inline = inline.length != 0 && inline.is(':checked');
371
+
372
+ // Spacing only for <pre>
373
+ var br_before = br_after = '';
374
+ if (!editing) {
375
+ // Don't add spaces if editting
376
+ if (!is_inline) {
377
+ if (editor_name == 'html') {
378
+ br_after = br_before = ' \n';
379
+ } else {
380
+ br_after = '<p>&nbsp;</p>';
381
+ }
382
+ } else {
383
+ // Add a space after
384
+ if (editor_name == 'html') {
385
+ br_after = br_before = ' ';
386
+ } else {
387
+ br_after = '&nbsp;';
388
+ }
389
+ }
390
+ }
391
+
392
+ var tag = (is_inline ? 'span' : 'pre');
393
+ var shortcode = br_before + '<' + tag + ' ';
394
+
395
+ var atts = {};
396
+ shortcode += 'class="';
397
+
398
+ var inline_re = new RegExp('\\b' + s.inline_css + '\\b', 'gim');
399
+ if (is_inline) {
400
+ // If don't have inline class, add it
401
+ if (inline_re.exec(currClasses) == null) {
402
+ currClasses += ' ' + s.inline_css + ' ';
403
+ }
404
+ } else {
405
+ // Remove inline css if it exists
406
+ currClasses = currClasses.replace(inline_re,'');
407
+ }
408
+
409
+ // Grab settings as attributes
410
+ jQuery('.'+gs.changed+'[id],.'+gs.changed+'['+s.data_value+']').each(function() {
411
+ var id = jQuery(this).attr('id');
412
+ var value = jQuery(this).attr(s.data_value);
413
+ // Remove prefix
414
+ id = admin.removePrefixFromID(id);
415
+ atts[id] = value;
416
+ // console_log(id + ' ' + value);
417
+ });
418
+
419
+ // Settings
420
+ atts['lang'] = jQuery(s.lang_css).val();
421
+ var mark = jQuery(s.mark_css).val();
422
+ if (mark.length != 0 && !is_inline) {
423
+ atts['mark'] = mark;
424
+ }
425
+
426
+ // XXX Code highlighting, checked means 0!
427
+ if (jQuery(s.hl_css).is(':checked')) {
428
+ atts['highlight'] = '0';
429
+ }
430
+
431
+ // XXX Very important when working with editor
432
+ atts['decode'] = 'true';
433
+
434
+ // Validate the attributes
435
+ atts = me.validate(atts);
436
+
437
+ for (var id in atts) {
438
+ // Remove prefix, if exists
439
+ // var id = admin.removePrefixFromID(att);
440
+ var value = atts[id];
441
+ console_log('add '+id+':'+value);
442
+ shortcode += id + s.attr_sep + value + ' ';
443
+ }
444
+
445
+ // Add classes
446
+ shortcode += currClasses;
447
+ // Don't forget to close quote for class
448
+ shortcode += '" ';
449
+
450
+ if (!is_inline) {
451
+ // Title
452
+ var title = jQuery(s.title_css).val();
453
+ if (title.length != 0) {
454
+ shortcode += 'title="' + title + '" ';
455
+ }
456
+ // URL
457
+ var url = jQuery(s.url_css).val();
458
+ if (url.length != 0) {
459
+ shortcode += 'data-url="' + url + '" ';
460
+ }
461
+ }
462
+
463
+ var content = jQuery(s.code_css).val();
464
+ if (outputHTML == 'encode') {
465
+ content = crayon_encode_html(content);
466
+ } else if (outputHTML == 'decode') {
467
+ content = crayon_decode_html(content);
468
+ }
469
+ content = typeof content != 'undefined' ? content : '';
470
+ shortcode += '>' + content + '</' + tag + '>' + br_after;
471
+
472
+ if (editing) {
473
+ // Edit the current selected node, update refere
474
+ /*currPre =*/ editCallback(shortcode);
475
+ } else {
476
+ // Insert the tag and hide dialog
477
+ insertCallback(shortcode);
478
+ }
479
+
480
+ return true;
481
+ };
482
+
483
+ this.submitButton = function() {
484
+ console_log('submit');
485
+ if (me.addCrayon() != false) {
486
+ me.hideDialog();
487
+ }
488
+ };
489
+
490
+ this.hideDialog = function() {
491
+ console_log('hide');
492
+ // Hide dialog
493
+ tb_remove();
494
+ var ajax = jQuery('#TB_ajaxContent');
495
+ if ( typeof ajax == 'undefined' ) {
496
+ ajax.removeClass('crayon-te-ajax');
497
+ }
498
+ // Title is destroyed, so move the submit out
499
+ jQuery(s.submit_wrapper_css).append(submit);
500
+ };
501
+
502
+ // XXX Auxiliary methods
503
+
504
+ this.setOrigValues = function() {
505
+ jQuery('.'+gs.setting+'[id]').each(function() {
506
+ var setting = jQuery(this);
507
+ setting.attr(gs.orig_value, me.settingValue(setting));
508
+ });
509
+ };
510
+
511
+ this.resetSettings = function() {
512
+ console_log('reset');
513
+ jQuery('.'+gs.setting).each(function() {
514
+ var setting = jQuery(this);
515
+ me.settingValue(setting, setting.attr(gs.orig_value));
516
+ // Update highlights
517
+ setting.change();
518
+ });
519
+ code.val('');
520
+ };
521
+
522
+ this.settingValue = function(setting, value) {
523
+ if (typeof value == 'undefined') {
524
+ // getter
525
+ value = '';
526
+ if (setting.is('input[type=checkbox]')) {
527
+ // Boolean is stored as string
528
+ value = setting.is(':checked') ? '1' : '0';
529
+ } else {
530
+ value = setting.val();
531
+ }
532
+ return value;
533
+ } else {
534
+ // setter
535
+ if (setting.is('input[type=checkbox]')) {
536
+ if (typeof value == 'string') {
537
+ value = value == '1' ? true : false;
538
+ }
539
+ setting.prop('checked', value);
540
+ } else {
541
+ setting.val(value);
542
+ }
543
+ setting.attr(s.data_value, value);
544
+ }
545
+ };
546
+
547
+ this.validate = function(atts) {
548
+ if (typeof atts['mark'] != 'undefined') {
549
+ atts['mark'] = atts['mark'].replace(/\s/g, '');
550
+ }
551
+ return atts;
552
+ };
553
+
554
+ this.isCrayon = function(node) {
555
+ return node != null &&
556
+ (node.nodeName == 'PRE' || (node.nodeName == 'SPAN' && jQuery(node).hasClass(s.inline_css)));
557
+ };
558
+
559
+ this.elemValue = function(obj) {
560
+ var value = null;
561
+ if (obj.is('input[type=checkbox]')) {
562
+ value = obj.is(':checked');
563
+ } else {
564
+ value = obj.val();
565
+ }
566
+ return value;
567
+ };
568
+
569
+ this.setSubmitText = function(text) {
570
+ submit.val(text);
571
+ };
572
+
573
+ };
util/tag-editor/crayon_te_content.php ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div id="crayon-te-content">
2
+
3
+ <?php
4
+
5
+ $root = dirname(dirname(dirname(__FILE__)));
6
+ require_once ($root . '/crayon_wp.class.php');
7
+ require_once (CrayonWP::wp_load_path());
8
+ require_once ($root.'/crayon_settings_wp.class.php');
9
+ require_once ('crayon_tag_editor_wp.class.php');
10
+ require_once (CRAYON_PARSER_PHP);
11
+
12
+ CrayonSettingsWP::load_settings();
13
+ $langs = CrayonParser::parse_all();
14
+ $curr_lang = CrayonGlobalSettings::val(CrayonSettings::FALLBACK_LANG);
15
+ $themes = CrayonResources::themes()->get();
16
+ $curr_theme = CrayonGlobalSettings::val(CrayonSettings::THEME);
17
+ $fonts = CrayonResources::fonts()->get();
18
+ $curr_font = CrayonGlobalSettings::val(CrayonSettings::FONT);
19
+ CrayonTagEditorWP::init_settings();
20
+
21
+ class CrayonTEContent {
22
+
23
+ public static function select_resource($id, $resources, $current, $set_class = TRUE) {
24
+ $id = CrayonSettings::PREFIX . $id;
25
+ if (count($resources) > 0) {
26
+ $class = $set_class ? 'class="'.CrayonSettings::SETTING.' '.CrayonSettings::SETTING_SPECIAL.'"' : '';
27
+ echo '<select id="'.$id.'" name="'.$id.'" '.$class.' '.CrayonSettings::SETTING_ORIG_VALUE.'="'.$current.'">';
28
+ foreach ($resources as $resource) {
29
+ $asterisk = $current == $resource->id() ? ' *' : '';
30
+ echo '<option value="'.$resource->id().'" '.selected($current, $resource->id()).' >'.$resource->name().$asterisk.'</option>';
31
+ }
32
+ echo '</select>';
33
+ } else {
34
+ // None found, default to text box
35
+ echo '<input type="text" id="'.$id.'" name="'.$id.'" class="'.CrayonSettings::SETTING.' '.CrayonSettings::SETTING_SPECIAL.'" />';
36
+ }
37
+ }
38
+
39
+ public static function checkbox($id) {
40
+ $id = CrayonSettings::PREFIX . $id;
41
+ echo '<input type="checkbox" id="'.$id.'" name="'.$id.'" class="'.CrayonSettings::SETTING.' '.CrayonSettings::SETTING_SPECIAL.'" />';
42
+ }
43
+
44
+ public static function textbox($id, $atts = array(), $set_class = TRUE) {
45
+ $id = CrayonSettings::PREFIX . $id;
46
+ $atts_str = '';
47
+ $class = $set_class ? 'class="'.CrayonSettings::SETTING.' '.CrayonSettings::SETTING_SPECIAL.'"' : '';
48
+ foreach ($atts as $k=>$v) {
49
+ $atts_str = $k.'="'.$v.'" ';
50
+ }
51
+ echo '<input type="text" id="'.$id.'" name="'.$id.'" '.$class.' '.$atts_str.' />';
52
+ }
53
+
54
+ public static function submit() {
55
+ ?>
56
+ <input type="button" class="button-primary <?php echo CrayonTagEditorWP::$settings['submit_css']; ?>" value="<?php echo CrayonTagEditorWP::$settings['submit_add']; ?>" name="submit" />
57
+ <?php
58
+ }
59
+ }
60
+
61
+ ?>
62
+
63
+ <table id="crayon-te-table" class="describe">
64
+ <tr class="crayon-tr-center">
65
+ <th><?php crayon_e('Title'); ?></th>
66
+ <td class="crayon-nowrap">
67
+ <?php CrayonTEContent::textbox('title', array('placeholder'=>crayon__('A short description'))); ?>
68
+ <span id="crayon-te-sub-section">
69
+ <?php CrayonTEContent::checkbox('inline'); ?>
70
+ <span class="crayon-te-section"><?php crayon_e('Inline'); ?></span>
71
+ </span>
72
+ </td>
73
+ </tr>
74
+ <tr class="crayon-tr-center">
75
+ <th><?php crayon_e('Language'); ?></th>
76
+ <td class="crayon-nowrap">
77
+ <?php CrayonTEContent::select_resource('lang', $langs, $curr_lang); ?>
78
+ <span class="crayon-te-section"><?php crayon_e('Marked Lines'); ?></span>
79
+ <?php CrayonTEContent::textbox('mark', array('placeholder'=>crayon__('(e.g. 1,2,3-5)'))); ?>
80
+ <span id="crayon-te-sub-section">
81
+ <?php CrayonTEContent::checkbox('highlight'); ?>
82
+ <span class="crayon-te-section"><?php crayon_e('Disable Highlighting'); ?></span>
83
+ </span>
84
+ </td>
85
+ </tr>
86
+ <tr class="crayon-tr-center">
87
+ <th><?php crayon_e('Code'); ?> <input type="button" id="crayon-te-clear" class="secondary-primary" value="<?php crayon_e('Clear'); ?>" name="clear" /></th>
88
+ <td><textarea id="crayon-code" name="code" placeholder="<?php crayon_e('Paste your code here, or type it in manually.'); ?>"></textarea></td>
89
+ </tr>
90
+ <tr class="crayon-tr-center">
91
+ <th id="crayon-url-th"><?php crayon_e('URL'); ?></th>
92
+ <td>
93
+ <?php CrayonTEContent::textbox('url', array('placeholder'=>crayon__('Relative local path or absolute URL'))); ?>
94
+ <div id="crayon-te-url-info" class="crayon-te-info">
95
+ <?php
96
+ crayon_e("If the URL fails to load, the code above will be shown instead. If no code exists, an error is shown.");
97
+ echo ' ';
98
+ printf(crayon__('If a relative local path is given it will be appended to %s - which is defined in %sCrayon &gt; Settings &gt; Files%s.'), '<span class="crayon-te-quote">'. get_home_url() . '/' . CrayonGlobalSettings::val(CrayonSettings::LOCAL_PATH) . '</span>', '<a href="options-general.php?page=crayon_settings" target="_blank">', '</a>');
99
+ ?>
100
+ </div>
101
+ </td>
102
+ </tr>
103
+ <tr>
104
+ <td id="crayon-te-submit-wrapper" colspan="2" style="text-align: center;">
105
+ <?php CrayonTEContent::submit(); ?>
106
+ </td>
107
+ </tr>
108
+ <!-- <tr>-->
109
+ <!-- <td colspan="2"><div id="crayon-te-warning" class="updated crayon-te-info"></div></td>-->
110
+ <!-- </tr>-->
111
+ <tr>
112
+ <td colspan="2">
113
+ <hr />
114
+ <div><h2 class="crayon-te-heading"><?php crayon_e('Settings'); ?></h2></div>
115
+ <div id="crayon-te-settings-info" class="crayon-te-info">
116
+ <?php
117
+ crayon_e('Change the following settings to override their global values.');
118
+ echo ' <span class="', CrayonSettings::SETTING_CHANGED, '">';
119
+ crayon_e('Only changes (shown yellow) are applied.');
120
+ echo '</span><br/>';
121
+ echo sprintf(crayon__('Future changes to the global settings under %sCrayon &gt; Settings%s won\'t affect overridden settings.'), '<a href="options-general.php?page=crayon_settings" target="_blank">', '</a>');
122
+ ?>
123
+ </div></td>
124
+ </tr>
125
+ <?php
126
+ $sections = array('Theme', 'Font', 'Metrics', 'Toolbar', 'Lines', 'Code');
127
+ foreach ($sections as $section) {
128
+ echo '<tr><th>', crayon__($section), '</th><td>';
129
+ call_user_func('CrayonSettingsWP::'.strtolower($section), TRUE);
130
+ echo '</td></tr>';
131
+ }
132
+ ?>
133
+ </table>
134
+ </div>
util/tag-editor/crayon_tinymce.js ADDED
@@ -0,0 +1,176 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var CrayonTinyMCE = new function() {
2
+
3
+ // TinyMCE specific
4
+ var name = 'crayon_tinymce';
5
+ var s = CrayonTagEditorSettings;
6
+ var te = CrayonTagEditor;
7
+ var isHighlighted = false;
8
+ var currPre = null;
9
+ // Switch events
10
+ var switch_html_click = switch_tmce_click = null;
11
+
12
+ var me = this;
13
+ // var wasHighlighted = false;
14
+
15
+ this.setHighlight = function(highlight) {
16
+ if (highlight) {
17
+ jQuery(s.tinymce_button).addClass('mce_crayon_tinymce_highlight');
18
+ } else {
19
+ jQuery(s.tinymce_button).removeClass('mce_crayon_tinymce_highlight');
20
+ }
21
+ isHighlighted = highlight;
22
+ };
23
+
24
+ this.selectPreCSS = function(selected) {
25
+ if (currPre) {
26
+ if (selected) {
27
+ jQuery(currPre).addClass(s.css_selected);
28
+ } else {
29
+ jQuery(currPre).removeClass(s.css_selected);
30
+ }
31
+ }
32
+ };
33
+
34
+ this.isPreSelectedCSS = function() {
35
+ if (currPre) {
36
+ return jQuery(currPre).hasClass(s.css_selected);
37
+ }
38
+ return false;
39
+ };
40
+
41
+ this.loadTinyMCE = function() {
42
+ tinymce.PluginManager.requireLangPack(name);
43
+
44
+ tinymce.create('tinymce.plugins.Crayon', {
45
+ init : function(ed, url) {
46
+ jQuery(function() {
47
+ te.loadDialog();
48
+ });
49
+
50
+ ed.onInit.add(function(ed) {
51
+ ed.dom.loadCSS(url + '/crayon_te.css');
52
+ });
53
+
54
+ // Prevent <p> on enter, turn into \n
55
+ ed.onKeyDown.add(function( ed, e ) {
56
+ var selection = ed.selection;
57
+ if ( e.keyCode == 13) {
58
+ var node = selection.getNode();
59
+ if (node.nodeName == 'PRE') {
60
+ selection.setContent('\n', {format : 'raw'});
61
+ return tinymce.dom.Event.cancel(e);
62
+ } else if (te.isCrayon(node)) {
63
+ // Only triggers for inline <span>, ignore enter in inline
64
+ return tinymce.dom.Event.cancel(e);
65
+ }
66
+ }
67
+ });
68
+
69
+ ed.onInit.add(function(ed) {
70
+ me.setHighlight(!s.used);
71
+ });
72
+
73
+ ed.addCommand('showCrayon', function() {
74
+ te.showDialog(
75
+ function(shortcode) {
76
+ ed.execCommand('mceInsertContent', 0, shortcode);
77
+ },
78
+ function(shortcode) {
79
+ // This will change the currPre object
80
+ var newPre = jQuery(shortcode);
81
+ jQuery(currPre).replaceWith(newPre);
82
+ // XXX DOM element not jQuery
83
+ currPre = newPre[0];
84
+ }, 'tinymce', ed, currPre, 'decode', null);
85
+
86
+ if (!currPre) {
87
+ // If no pre is selected, then button highlight depends on if it's used
88
+ me.setHighlight(!s.used);
89
+ }
90
+ });
91
+
92
+ // Remove onclick and call ourselves
93
+ var switch_html = jQuery(s.switch_html);
94
+ // switch_html_click = switch_html.prop('onclick');
95
+ switch_html.prop('onclick', null);
96
+ switch_html.click(function() {
97
+ // Remove selected pre class when switching to HTML editor
98
+ me.selectPreCSS(false);
99
+ switchEditors.go('content','html');
100
+ // switch_html_click();
101
+ });
102
+
103
+ // // Remove onclick and call ourselves
104
+ // var switch_tmce = jQuery(s.switch_tmce);
105
+ //// switch_tmce_click = switch_tmce.prop('onclick');
106
+ // switch_tmce.prop('onclick', null);
107
+ // switch_tmce.click(function() {
108
+ // // Add selected pre class when switching to back to TinyMCE
109
+ //// if (!me.isPreSelectedCSS()) {
110
+ //// me.selectPreCSS(true);
111
+ //// }
112
+ // switchEditors.go('content','tmce');
113
+ //// switch_tmce_click();
114
+ // });
115
+
116
+ // Highlight selected
117
+ ed.onNodeChange.add(function(ed, cm, n, co) {
118
+ if (n != currPre) {
119
+ // We only care if we select another same object
120
+ if (currPre) {
121
+ // If we have a previous pre, remove it
122
+ me.selectPreCSS(false);
123
+ currPre = null;
124
+ }
125
+ if (te.isCrayon(n)) {
126
+ // Add new pre
127
+ currPre = n;
128
+ me.selectPreCSS(true);
129
+ me.setHighlight(true);
130
+ } else {
131
+ // No pre selected
132
+ me.setHighlight(!s.used);
133
+ }
134
+ var tooltip = currPre ? s.dialog_title_edit : s.dialog_title_add;
135
+ jQuery(s.tinymce_button).attr('title', tooltip);
136
+ }
137
+ });
138
+
139
+ ed.onBeforeSetContent.add(function(ed, o) {
140
+ // Remove all selected pre tags
141
+ var content = jQuery(o.content);
142
+ var wrapper = jQuery('<div>');
143
+ content.each(function() {
144
+ jQuery(this).removeClass(s.css_selected);
145
+ wrapper.append(jQuery(this).clone());
146
+ });
147
+ o.content = wrapper.html();
148
+ });
149
+
150
+ ed.addButton(name, {
151
+ // TODO add translation
152
+ title: s.dialog_title,
153
+ cmd: 'showCrayon'
154
+ });
155
+ },
156
+ createControl : function(n, cm){
157
+ return null;
158
+ },
159
+ getInfo : function(){
160
+ return {
161
+ longname: 'Crayon Syntax Highlighter',
162
+ author: 'Aram Kocharyan',
163
+ authorurl: 'http://ak.net84.net/',
164
+ infourl: 'http://bit.ly/crayonsyntax/',
165
+ version: "1.0"
166
+ };
167
+ }
168
+ });
169
+
170
+ tinymce.PluginManager.add(name, tinymce.plugins.Crayon);
171
+ };
172
+
173
+ // Load TinyMCE
174
+ this.loadTinyMCE();
175
+
176
+ };