Crayon Syntax Highlighter - Version 2.1.0

Version Description

  • ADDED:
    • Arduino language
    • LESS language
    • Sass language
    • Lisp language
    • AmigaDOS language
    • Added CoffeeScript thanks to http://firn.jp/crayon-coffeescript
    • Line numbers right border in theme editor
    • New Themes: Familiar, Idle, Tomorrow, Tomorrow Night, Github, VS2012, VS2012 Black
    • Ability to minimize code
    • Translation to Slovak
  • FIXED:
    • jQuery UI is no longer an external dependency; now using wpdialog(). Theme Editor updated to use wpdialog.
    • Inline tags. See: https://github.com/aramkocharyan/crayon-syntax-highlighter/issues/57
    • Tag Editor didn't work on front end
    • Improved legacy tag conversion functions by removing false positives arising from duplicate regex
    • Slightly faster conversion of legacy by delaying database writes until the end
    • &-quot; is also converted now in HTML
    • Position of color picker top is remembered
    • Minor bug in saving themes causing field name mapping to be ignored.
    • Added missing blank.gif in fancybox
    • MS DOS language fixes
    • Taken measures to prevent incorrect upload directory creating a folder in root.
    • Theme fixes. 'border' is now split automatically into separate CSS rules.
    • Monospaced font for Tag Editor
    • "Attempt to load Crayon's CSS and JavaScript only when needed" setting improvements
    • Logging improvements
    • Unchecked property: Notice: Undefined property: WP_Query::$post
    • Theme Editor PHP classes renamed to avoid conflicts
    • Log uses strval() instead of ob_start() to avoid conflicts with other plugins using ob_start() without ob_end_flush() or similar
Download this release

Release Info

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

Code changes from version 2.0.0 to 2.1.0

Files changed (90) hide show
  1. crayon_fonts.class.php +0 -12
  2. crayon_formatter.class.php +60 -15
  3. crayon_resource.class.php +1 -1
  4. crayon_settings.class.php +24 -3
  5. crayon_settings_wp.class.php +73 -31
  6. crayon_themes.class.php +27 -18
  7. crayon_wp.class.php +131 -92
  8. css/admin_style.css +5 -0
  9. css/crayon_style.css +49 -28
  10. css/global_style.css +129 -129
  11. css/images/toolbar/arrow_down.png +0 -0
  12. css/images/toolbar/arrow_down@2x.png +0 -0
  13. global.php +65 -67
  14. js/crayon.js +70 -21
  15. js/crayon_admin.js +118 -63
  16. js/cssjson.js +2 -2
  17. js/fancybox/blank.gif +0 -0
  18. js/fancybox/jquery.fancybox.init.pack.js +1 -1
  19. js/jquery-colorpicker/.gitignore +1 -0
  20. js/jquery-colorpicker/jquery.colorpicker.js +3 -1
  21. js/jquery-ui/jquery-ui.css +1 -1
  22. langs/amigados/amigados.txt +20 -0
  23. langs/amigados/commands.txt +180 -0
  24. langs/amigados/symbols.txt +14 -0
  25. langs/amigados/wildcards.txt +11 -0
  26. langs/arduino/arduino.txt +22 -0
  27. langs/arduino/modifier.txt +36 -0
  28. langs/arduino/reserved.txt +52 -0
  29. langs/arduino/reserved2.txt +46 -0
  30. langs/arduino/statement.txt +2 -0
  31. langs/batch/batch.txt +18 -14
  32. langs/coffee/coffee.txt +24 -0
  33. langs/coffee/exception.txt +5 -0
  34. langs/coffee/function.txt +4 -0
  35. langs/coffee/modifier.txt +2 -0
  36. langs/coffee/module.txt +3 -0
  37. langs/coffee/reserved.txt +20 -0
  38. langs/coffee/statement.txt +17 -0
  39. langs/coffee/type.txt +1 -0
  40. langs/css/css.txt +3 -3
  41. langs/default/type.txt +1 -1
  42. langs/less/less.txt +23 -0
  43. langs/less/notation.txt +2 -0
  44. langs/lisp/lisp.txt +19 -0
  45. langs/lisp/reserved.txt +132 -0
  46. langs/lisp/statement.txt +14 -0
  47. langs/lisp/type.txt +11 -0
  48. langs/readme.txt +1 -1
  49. langs/sass/sass.txt +25 -0
  50. readme.txt +88 -31
  51. themes/ado/ado.css +40 -49
  52. themes/classic-spaced/classic-spaced.css +0 -190
  53. themes/classic/classic.css +7 -7
  54. themes/epicgeeks/epicgeeks.css +39 -23
  55. themes/familiar/familiar.css +166 -0
  56. themes/github/github.css +117 -0
  57. themes/idle/idle.css +173 -0
  58. themes/neon/neon.css +43 -29
  59. themes/phiphou/phiphou.css +0 -202
  60. themes/solarized-dark/solarized-dark.css +31 -22
  61. themes/solarized-light/solarized-light.css +31 -22
  62. themes/son-of-obsidian/son-of-obsidian.css +37 -24
  63. themes/tomorrow-night/tomorrow-night.css +171 -0
  64. themes/tomorrow/tomorrow.css +172 -0
  65. themes/twilight/twilight.css +39 -25
  66. themes/vs2012-black/vs2012-black.css +171 -0
  67. themes/vs2012/vs2012.css +171 -0
  68. trans/crayon-syntax-highlighter-de_DE.po +2 -2
  69. trans/crayon-syntax-highlighter-nl_NL.po +2 -2
  70. trans/crayon-syntax-highlighter-pl_PL.po +2 -2
  71. trans/crayon-syntax-highlighter-sk_SK.mo +0 -0
  72. trans/crayon-syntax-highlighter-sk_SK.po +967 -0
  73. trans/crayon-syntax-highlighter-tr_TR.mo +0 -0
  74. trans/crayon-syntax-highlighter-tr_TR.po +449 -184
  75. trans/crayon-syntax-highlighter-zh_CN.mo +0 -0
  76. trans/crayon-syntax-highlighter-zh_CN.po +2393 -967
  77. util/crayon_log.class.php +2 -9
  78. util/crayon_util.class.php +9 -5
  79. util/sample/arduino.txt +12 -0
  80. util/sample/c.txt +1 -0
  81. util/sample/coffee.txt +14 -0
  82. util/sample/less.txt +13 -0
  83. util/sample/lisp.txt +12 -0
  84. util/sample/sass.txt +11 -0
  85. util/tag-editor/{crayon_te.js → crayon_tag_editor.js} +0 -0
  86. util/tag-editor/crayon_tag_editor_wp.class.php +1 -4
  87. util/tag-editor/crayon_tinymce.js +1 -1
  88. util/theme-editor/theme_editor.css +37 -6
  89. util/theme-editor/theme_editor.js +112 -106
  90. util/theme-editor/theme_editor.php +80 -82
crayon_fonts.class.php CHANGED
@@ -20,18 +20,6 @@ class CrayonFonts extends CrayonUsedResourceCollection {
20
  public function path($id) {
21
  return CRAYON_FONT_PATH . "$id.css";
22
  }
23
-
24
- // // XXX Override
25
- // public function load_process() {
26
- // if (!$this->is_state_loading()) {
27
- // return;
28
- // }
29
- // $this->load_resources();
30
- // $default = $this->resource_instance(self::DEFAULT_FONT, self::DEFAULT_FONT_NAME);
31
- // // If some idiot puts a font with the default font name, this will replace it
32
- //
33
- // $this->add(self::DEFAULT_FONT, $default);
34
- // }
35
 
36
  // XXX Override
37
  public function get_url($id) {
20
  public function path($id) {
21
  return CRAYON_FONT_PATH . "$id.css";
22
  }
 
 
 
 
 
 
 
 
 
 
 
 
23
 
24
  // XXX Override
25
  public function get_url($id) {
crayon_formatter.class.php CHANGED
@@ -215,7 +215,7 @@ class CrayonFormatter {
215
  if ($hl->setting_val(CrayonSettings::DECODE_ATTRIBUTES)) {
216
  $title = CrayonUtil::html_entity_decode($title);
217
  }
218
- $print_title = ($hl->setting_val(CrayonSettings::SHOW_TITLE) && $title ? '<span class="crayon-title">' . $title . '</span>' : '');
219
  // Determine whether to print language
220
  $print_lang = '';
221
  // XXX Use for printing the regex
@@ -247,12 +247,18 @@ class CrayonFormatter {
247
  if (!$hl->setting_val(CrayonSettings::POPUP)) {
248
  $code_settings .= ' no-popup';
249
  }
 
 
 
 
 
250
 
251
  // Draw the plain code and toolbar
252
  $toolbar_settings = $print_plain_button = $print_copy_button = '';
253
- if (empty($error) && $hl->setting_index(CrayonSettings::TOOLBAR) != 2) {
 
254
  // Enable mouseover setting for toolbar
255
- if ($hl->setting_index(CrayonSettings::TOOLBAR) == 0 && !$touch) {
256
  // No touchscreen detected
257
  $toolbar_settings .= ' mouseover';
258
  if ($hl->setting_val(CrayonSettings::TOOLBAR_OVERLAY)) {
@@ -264,26 +270,65 @@ class CrayonFormatter {
264
  if ($hl->setting_val(CrayonSettings::TOOLBAR_DELAY)) {
265
  $toolbar_settings .= ' delay';
266
  }
267
- } else if ($hl->setting_index(CrayonSettings::TOOLBAR) == 1) {
268
  // Always display the toolbar
269
  $toolbar_settings .= ' show';
270
- } else {
271
- $toolbar_settings .= '';
272
  }
 
 
273
 
274
- $print_plain_button = $hl->setting_val(CrayonSettings::PLAIN) && $hl->setting_val(CrayonSettings::PLAIN_TOGGLE) ? '<a class="crayon-plain-button crayon-button" title="'.crayon__('Toggle Plain Code').'"></a>' : '';
275
- $print_wrap_button = $hl->setting_val(CrayonSettings::WRAP_TOGGLE) ? '<a class="crayon-wrap-button crayon-button" title="'.crayon__('Toggle Line Wrap').'"></a>' : '';
276
- $print_expand_button = $hl->setting_val(CrayonSettings::EXPAND_TOGGLE) ? '<a class="crayon-expand-button crayon-button" title="'.crayon__('Expand Code').'"></a>' : '';
277
- $print_copy_button = !$touch && $hl->setting_val(CrayonSettings::PLAIN) && $hl->setting_val(CrayonSettings::COPY) ?
278
- '<a class="crayon-copy-button crayon-button" data-text="'.crayon__('Press %s to Copy, %s to Paste').'" title="'.crayon__('Copy Plain Code').'"></a>' : '';
279
- $print_popup_button = $hl->setting_val(CrayonSettings::POPUP) ?
280
- '<a class="crayon-popup-button crayon-button" title="'.crayon__('Open Code In New Window').'" onclick="return false;"></a>' : '';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
281
 
282
- $print_nums_button = $hl->setting_val(CrayonSettings::NUMS_TOGGLE) ? '<a class="crayon-nums-button crayon-button" title="'.crayon__('Toggle Line Numbers').'"></a>' : '';
 
283
  /* The table is rendered invisible by CSS and enabled with JS when asked to. If JS
284
  is not enabled or fails, the toolbar won't work so there is no point to display it. */
285
  $print_plus = $hl->is_mixed() && $hl->setting_val(CrayonSettings::SHOW_MIXED) ? '<span class="crayon-mixed-highlight" title="'.crayon__('Contains Mixed Languages').'"></span>' : '';
286
- $buttons = $print_plus.$print_nums_button.$print_wrap_button.$print_copy_button.$print_popup_button.$print_expand_button.$print_plain_button.$print_lang;
287
  $toolbar = '
288
  <div class="crayon-toolbar" data-settings="'.$toolbar_settings.'" style="'.$toolbar_style.'">'.$print_title.'
289
  <div class="crayon-tools">'.$buttons.'</div></div>
215
  if ($hl->setting_val(CrayonSettings::DECODE_ATTRIBUTES)) {
216
  $title = CrayonUtil::html_entity_decode($title);
217
  }
218
+ $print_title = '<span class="crayon-title">' . $title . '</span>';
219
  // Determine whether to print language
220
  $print_lang = '';
221
  // XXX Use for printing the regex
247
  if (!$hl->setting_val(CrayonSettings::POPUP)) {
248
  $code_settings .= ' no-popup';
249
  }
250
+
251
+ // Minimize
252
+ if (!$hl->setting_val(CrayonSettings::MINIMIZE)) {
253
+ $code_settings .= ' minimize';
254
+ }
255
 
256
  // Draw the plain code and toolbar
257
  $toolbar_settings = $print_plain_button = $print_copy_button = '';
258
+ $toolbar_index = $hl->setting_index(CrayonSettings::TOOLBAR);
259
+ if (empty($error) && ($toolbar_index != 2 || $hl->setting_val(CrayonSettings::MINIMIZE))) {
260
  // Enable mouseover setting for toolbar
261
+ if ($toolbar_index == 0 && !$touch) {
262
  // No touchscreen detected
263
  $toolbar_settings .= ' mouseover';
264
  if ($hl->setting_val(CrayonSettings::TOOLBAR_OVERLAY)) {
270
  if ($hl->setting_val(CrayonSettings::TOOLBAR_DELAY)) {
271
  $toolbar_settings .= ' delay';
272
  }
273
+ } else if ($toolbar_index == 1) {
274
  // Always display the toolbar
275
  $toolbar_settings .= ' show';
276
+ } else if ($toolbar_index == 2) {
277
+ $toolbar_settings .= ' never-show';
278
  }
279
+
280
+ $buttons = array();
281
 
282
+ if ($hl->setting_val(CrayonSettings::NUMS_TOGGLE)) {
283
+ $buttons['nums'] = crayon__('Toggle Line Numbers');
284
+ }
285
+
286
+ if ($hl->setting_val(CrayonSettings::PLAIN) && $hl->setting_val(CrayonSettings::PLAIN_TOGGLE)) {
287
+ $buttons['plain'] = crayon__('Toggle Plain Code');
288
+ }
289
+
290
+ if ($hl->setting_val(CrayonSettings::WRAP_TOGGLE)) {
291
+ $buttons['wrap'] = crayon__('Toggle Line Wrap');
292
+ }
293
+
294
+ if ($hl->setting_val(CrayonSettings::EXPAND_TOGGLE)) {
295
+ $buttons['expand'] = crayon__('Expand Code');
296
+ }
297
+
298
+ if (!$touch && $hl->setting_val(CrayonSettings::PLAIN) && $hl->setting_val(CrayonSettings::COPY)) {
299
+ $buttons['copy'] = crayon__('Expand Code');
300
+ }
301
+
302
+ if ($hl->setting_val(CrayonSettings::POPUP)) {
303
+ $buttons['popup'] = crayon__('Open Code In New Window');
304
+ }
305
+
306
+ $buttons_str = '';
307
+ foreach ($buttons as $button=>$value) {
308
+ $buttons_str .= '<div class="crayon-button crayon-' . $button . '-button"';
309
+ if (!is_array($value)) {
310
+ $value = array('title' => $value);
311
+ }
312
+ foreach ($value as $k=>$v) {
313
+ $buttons_str .= ' ' . $k . '="' . $v . '"';
314
+ }
315
+ $buttons_str .= '></div>';
316
+ }
317
+
318
+ // $print_plain_button = $hl->setting_val(CrayonSettings::PLAIN) && $hl->setting_val(CrayonSettings::PLAIN_TOGGLE) ? '<div class="crayon-plain-button crayon-button" title="'.crayon__('Toggle Plain Code').'"></div>' : '';
319
+ // $print_wrap_button = $hl->setting_val(CrayonSettings::WRAP_TOGGLE) ? '<div class="crayon-wrap-button crayon-button" title="'.crayon__('Toggle Line Wrap').'"></a>' : '';
320
+ // $print_expand_button = $hl->setting_val(CrayonSettings::EXPAND_TOGGLE) ? '<a class="crayon-expand-button crayon-button" title="'.crayon__('Expand Code').'"></a>' : '';
321
+ // $print_copy_button = !$touch && $hl->setting_val(CrayonSettings::PLAIN) && $hl->setting_val(CrayonSettings::COPY) ?
322
+ // '<div class="crayon-copy-button crayon-button" data-text="'.crayon__('Press %s to Copy, %s to Paste').'" title="'.crayon__('Copy Plain Code').'"></div>' : '';
323
+ // $print_popup_button = $hl->setting_val(CrayonSettings::POPUP) ?
324
+ // '<a class="crayon-popup-button crayon-button" title="'.crayon__('Open Code In New Window').'" onclick="return false;"></a>' : '';
325
 
326
+ // $print_nums_button = $hl->setting_val(CrayonSettings::NUMS_TOGGLE) ? '<a class="crayon-nums-button crayon-button" title="'.crayon__('Toggle Line Numbers').'"></a>' : '';
327
+
328
  /* The table is rendered invisible by CSS and enabled with JS when asked to. If JS
329
  is not enabled or fails, the toolbar won't work so there is no point to display it. */
330
  $print_plus = $hl->is_mixed() && $hl->setting_val(CrayonSettings::SHOW_MIXED) ? '<span class="crayon-mixed-highlight" title="'.crayon__('Contains Mixed Languages').'"></span>' : '';
331
+ $buttons = $print_plus.$buttons_str.$print_lang;
332
  $toolbar = '
333
  <div class="crayon-toolbar" data-settings="'.$toolbar_settings.'" style="'.$toolbar_style.'">'.$print_title.'
334
  <div class="crayon-tools">'.$buttons.'</div></div>
crayon_resource.class.php CHANGED
@@ -349,7 +349,7 @@ class CrayonResource {
349
  // Override
350
  static function clean_id($id) {
351
  $id = CrayonUtil::space_to_hyphen( strtolower(trim($id)) );
352
- return preg_replace('#[^\w-]#msi', '', $id);
353
  }
354
 
355
  // Override
349
  // Override
350
  static function clean_id($id) {
351
  $id = CrayonUtil::space_to_hyphen( strtolower(trim($id)) );
352
+ return preg_replace('#[^\w-]#msi', '', $id);
353
  }
354
 
355
  // Override
crayon_settings.class.php CHANGED
@@ -89,6 +89,7 @@ class CrayonSettings {
89
  const MAIN_QUERY = 'main-query';
90
  const SAFE_ENQUEUE = 'safe-enqueue';
91
  const INLINE_TAG = 'inline-tag';
 
92
  const INLINE_MARGIN = 'inline-margin';
93
  const INLINE_WRAP = 'inline-wrap';
94
  const BACKQUOTE = 'backquote';
@@ -105,6 +106,7 @@ class CrayonSettings {
105
  const WRAP = 'wrap';
106
  const EXPAND = 'expand';
107
  const EXPAND_TOGGLE = 'expand-toggle';
 
108
 
109
  private static $cache_array;
110
 
@@ -210,12 +212,13 @@ class CrayonSettings {
210
  new CrayonSetting(self::CAPTURE_MINI_TAG, FALSE),
211
  new CrayonSetting(self::MIXED, TRUE),
212
  new CrayonSetting(self::SHOW_MIXED, TRUE),
213
- new CrayonSetting(self::PLAIN_TAG, TRUE),
214
  new CrayonSetting(self::ENQUEUE_THEMES, TRUE),
215
  new CrayonSetting(self::ENQUEUE_FONTS, TRUE),
216
  new CrayonSetting(self::MAIN_QUERY, FALSE),
217
  new CrayonSetting(self::SAFE_ENQUEUE, TRUE),
218
- new CrayonSetting(self::INLINE_TAG, FALSE),
 
219
  new CrayonSetting(self::INLINE_MARGIN, 5),
220
  new CrayonSetting(self::INLINE_WRAP, TRUE),
221
  new CrayonSetting(self::BACKQUOTE, TRUE),
@@ -231,7 +234,8 @@ class CrayonSettings {
231
  new CrayonSetting(self::WRAP_TOGGLE, TRUE),
232
  new CrayonSetting(self::WRAP, FALSE),
233
  new CrayonSetting(self::EXPAND, FALSE),
234
- new CrayonSetting(self::EXPAND_TOGGLE, TRUE)
 
235
  );
236
 
237
  $this->set($settings);
@@ -539,6 +543,7 @@ class CrayonGlobalSettings {
539
  private static $plugin_path = '';
540
  private static $upload_path = '';
541
  private static $upload_url = '';
 
542
  private function __construct() {}
543
 
544
  private static function init() {
@@ -616,6 +621,22 @@ class CrayonGlobalSettings {
616
  self::$upload_url = CrayonUtil::url_slash($upload_url);
617
  }
618
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
619
  }
620
 
621
  /**
89
  const MAIN_QUERY = 'main-query';
90
  const SAFE_ENQUEUE = 'safe-enqueue';
91
  const INLINE_TAG = 'inline-tag';
92
+ const INLINE_TAG_CAPTURE = 'inline-tag-capture';
93
  const INLINE_MARGIN = 'inline-margin';
94
  const INLINE_WRAP = 'inline-wrap';
95
  const BACKQUOTE = 'backquote';
106
  const WRAP = 'wrap';
107
  const EXPAND = 'expand';
108
  const EXPAND_TOGGLE = 'expand-toggle';
109
+ const MINIMIZE = 'minimize';
110
 
111
  private static $cache_array;
112
 
212
  new CrayonSetting(self::CAPTURE_MINI_TAG, FALSE),
213
  new CrayonSetting(self::MIXED, TRUE),
214
  new CrayonSetting(self::SHOW_MIXED, TRUE),
215
+ new CrayonSetting(self::PLAIN_TAG, FALSE),
216
  new CrayonSetting(self::ENQUEUE_THEMES, TRUE),
217
  new CrayonSetting(self::ENQUEUE_FONTS, TRUE),
218
  new CrayonSetting(self::MAIN_QUERY, FALSE),
219
  new CrayonSetting(self::SAFE_ENQUEUE, TRUE),
220
+ new CrayonSetting(self::INLINE_TAG, TRUE),
221
+ new CrayonSetting(self::INLINE_TAG_CAPTURE, FALSE),
222
  new CrayonSetting(self::INLINE_MARGIN, 5),
223
  new CrayonSetting(self::INLINE_WRAP, TRUE),
224
  new CrayonSetting(self::BACKQUOTE, TRUE),
234
  new CrayonSetting(self::WRAP_TOGGLE, TRUE),
235
  new CrayonSetting(self::WRAP, FALSE),
236
  new CrayonSetting(self::EXPAND, FALSE),
237
+ new CrayonSetting(self::EXPAND_TOGGLE, TRUE),
238
+ new CrayonSetting(self::MINIMIZE, FALSE)
239
  );
240
 
241
  $this->set($settings);
543
  private static $plugin_path = '';
544
  private static $upload_path = '';
545
  private static $upload_url = '';
546
+ private static $mkdir = NULL;
547
  private function __construct() {}
548
 
549
  private static function init() {
621
  self::$upload_url = CrayonUtil::url_slash($upload_url);
622
  }
623
  }
624
+
625
+ public static function set_mkdir($mkdir = NULL) {
626
+ if ($mkdir === NULL) {
627
+ return self::$mkdir;
628
+ } else {
629
+ self::$mkdir = $mkdir;
630
+ }
631
+ }
632
+
633
+ public static function mkdir($dir = NULL) {
634
+ if (self::$mkdir) {
635
+ call_user_func(self::$mkdir, $dir);
636
+ } else {
637
+ @mkdir($dir, 0777, TRUE);
638
+ }
639
+ }
640
  }
641
 
642
  /**
crayon_settings_wp.class.php CHANGED
@@ -21,7 +21,9 @@ class CrayonSettingsWP {
21
  private static $cache = NULL;
22
  // Array of settings to pass to js
23
  private static $js_settings = NULL;
 
24
  private static $admin_js_settings = NULL;
 
25
  private static $admin_page = '';
26
  private static $is_fully_loaded = FALSE;
27
 
@@ -39,6 +41,7 @@ class CrayonSettingsWP {
39
  const LOG_CLEAR = 'log_clear';
40
  const LOG_EMAIL_ADMIN = 'log_email_admin';
41
  const LOG_EMAIL_DEV = 'log_email_dev';
 
42
 
43
  private function __construct() {
44
  }
@@ -49,6 +52,7 @@ class CrayonSettingsWP {
49
  self::$admin_page = $admin_page = add_options_page('Crayon Syntax Highlighter ' . crayon__('Settings'), 'Crayon', 'manage_options', 'crayon_settings', 'CrayonSettingsWP::settings');
50
  add_action("admin_print_scripts-$admin_page", 'CrayonSettingsWP::admin_scripts');
51
  add_action("admin_print_styles-$admin_page", 'CrayonSettingsWP::admin_styles');
 
52
  // Register settings, second argument is option name stored in db
53
  register_setting(self::FIELDS, self::OPTIONS, 'CrayonSettingsWP::settings_validate');
54
  add_action("admin_head-$admin_page", 'CrayonSettingsWP::admin_init');
@@ -71,8 +75,7 @@ class CrayonSettingsWP {
71
  global $CRAYON_VERSION;
72
  wp_enqueue_style('crayon', plugins_url(CRAYON_STYLE, __FILE__), array(), $CRAYON_VERSION);
73
  wp_enqueue_style('crayon_global', plugins_url(CRAYON_STYLE_GLOBAL, __FILE__), array(), $CRAYON_VERSION);
74
- wp_enqueue_style('crayon_admin', plugins_url(CRAYON_STYLE_ADMIN, __FILE__), array(), $CRAYON_VERSION);
75
- wp_enqueue_style('crayon_theme_editor', plugins_url(CRAYON_THEME_EDITOR_STYLE, __FILE__), array(), $CRAYON_VERSION);
76
  }
77
 
78
  public static function admin_scripts() {
@@ -80,7 +83,7 @@ class CrayonSettingsWP {
80
  wp_enqueue_script('crayon_util_js', plugins_url(CRAYON_JS_UTIL, __FILE__), array('jquery'), $CRAYON_VERSION);
81
  self::init_js_settings();
82
  if (is_admin()) {
83
- wp_enqueue_script('crayon_admin_js', plugins_url(CRAYON_JS_ADMIN, __FILE__), array('jquery', 'crayon_util_js'), $CRAYON_VERSION);
84
  self::init_admin_js_settings();
85
  }
86
  self::other_scripts();
@@ -116,6 +119,13 @@ class CrayonSettingsWP {
116
  );
117
  wp_localize_script('crayon_util_js', 'CrayonSyntaxSettings', self::$js_settings);
118
  }
 
 
 
 
 
 
 
119
  }
120
 
121
  public static function init_admin_js_settings() {
@@ -140,10 +150,24 @@ class CrayonSettingsWP {
140
  'userThemes' => $userThemes,
141
  'defaultTheme' => CrayonThemes::DEFAULT_THEME,
142
  'themesURL' => CrayonThemes::dir_url(),
143
- 'userThemesURL' => CrayonThemes::dir_url(true)
 
 
144
  );
145
  wp_localize_script('crayon_admin_js', 'CrayonAdminSettings', self::$admin_js_settings);
146
  }
 
 
 
 
 
 
 
 
 
 
 
 
147
  }
148
 
149
  public static function settings() {
@@ -182,14 +206,14 @@ class CrayonSettingsWP {
182
  <input type="submit" name="submit" id="submit" class="button-primary"
183
  value="<?php
184
  crayon_e('Save Changes');
185
- ?>"> <input type="submit"
186
  name="<?php
187
  echo self::OPTIONS;
188
  ?>[reset]" id="reset"
189
  class="button-primary"
190
  value="<?php
191
  crayon_e('Reset Settings');
192
- ?>">
193
  </p>
194
  </form>
195
  </div>
@@ -220,8 +244,11 @@ class CrayonSettingsWP {
220
  CrayonGlobalSettings::site_path(ABSPATH);
221
  CrayonGlobalSettings::plugin_path(plugins_url('', __FILE__));
222
  $upload = wp_upload_dir();
 
223
  CrayonGlobalSettings::upload_path(CrayonUtil::path_slash($upload['basedir']) . CRAYON_DIR);
224
  CrayonGlobalSettings::upload_url($upload['baseurl'] . '/' . CRAYON_DIR);
 
 
225
 
226
  // Load all available languages and themes
227
  CrayonResources::langs()->load();
@@ -295,25 +322,29 @@ class CrayonSettingsWP {
295
  /**
296
  * Adds a post as containing a Crayon
297
  */
298
- public static function add_post($id) {
299
  self::load_posts();
300
  if (!in_array($id, self::$crayon_posts)) {
301
  self::$crayon_posts[] = $id;
302
  }
303
- self::save_posts();
 
 
304
  }
305
 
306
  /**
307
  * Removes a post as not containing a Crayon
308
  */
309
- public static function remove_post($id) {
310
  self::load_posts();
311
  $key = array_search($id, self::$crayon_posts);
312
  if ($key === false) {
313
  return;
314
  }
315
  unset(self::$crayon_posts[$key]);
316
- self::save_posts();
 
 
317
  }
318
 
319
  public static function remove_posts() {
@@ -326,8 +357,8 @@ class CrayonSettingsWP {
326
  /**
327
  * This loads the posts marked as containing Crayons
328
  */
329
- public static function load_legacy_posts() {
330
- if (self::$crayon_legacy_posts === NULL) {
331
  // Load from db
332
  if (!(self::$crayon_legacy_posts = get_option(self::LEGACY_POSTS))) {
333
  // Posts don't exist! Scan for them. This will fill self::$crayon_legacy_posts
@@ -359,25 +390,29 @@ class CrayonSettingsWP {
359
  /**
360
  * Adds a post as containing a Crayon
361
  */
362
- public static function add_legacy_post($id) {
363
  self::load_legacy_posts();
364
  if (!in_array($id, self::$crayon_legacy_posts)) {
365
  self::$crayon_legacy_posts[] = $id;
366
  }
367
- self::save_legacy_posts();
 
 
368
  }
369
 
370
  /**
371
  * Removes a post as not containing a Crayon
372
  */
373
- public static function remove_legacy_post($id) {
374
  self::load_legacy_posts();
375
  $key = array_search($id, self::$crayon_legacy_posts);
376
  if ($key === false) {
377
  return;
378
  }
379
  unset(self::$crayon_legacy_posts[$key]);
380
- self::save_legacy_posts();
 
 
381
  }
382
 
383
  public static function remove_legacy_posts() {
@@ -715,7 +750,7 @@ class CrayonSettingsWP {
715
  public static function toolbar() {
716
  echo '<div id="crayon-section-toolbar" class="crayon-hide-inline">';
717
  self::span(crayon__('Display the Toolbar') . ' ');
718
- self::dropdown(CrayonSettings::TOOLBAR);
719
  echo '<div id="crayon-subsection-toolbar">';
720
  self::checkbox(array(CrayonSettings::TOOLBAR_OVERLAY, crayon__('Overlay the toolbar on code rather than push it down when possible')));
721
  self::checkbox(array(CrayonSettings::TOOLBAR_HIDE, crayon__('Toggle the toolbar on single click when it is overlayed')));
@@ -861,13 +896,16 @@ class CrayonSettingsWP {
861
  $crayon = CrayonWP::instance();
862
 
863
  // Settings to prevent from validating
864
- $preview_settings = array();
865
 
866
  // Load settings from GET and validate
867
  foreach ($_POST as $key => $value) {
868
  // echo $key, ' ', $value , '<br/>';
 
869
  if (!in_array($key, $preview_settings)) {
870
  $_POST[$key] = CrayonSettings::validate($key, $value);
 
 
871
  }
872
  }
873
  $crayon->settings($_POST);
@@ -892,7 +930,9 @@ class CrayonSettingsWP {
892
  $lang = $crayon->setting_val(CrayonSettings::FALLBACK_LANG);
893
  $path = crayon_pf(CRAYON_UTIL_PATH . '/sample/' . $lang . '.txt', FALSE);
894
 
895
- if ($lang && @file_exists($path)) {
 
 
896
  $crayon->url($path);
897
  } else {
898
  $code = "
@@ -948,10 +988,12 @@ class Human {
948
  <div id="crayon-theme-panel">
949
  <div id="crayon-theme-info"></div>
950
  <div id="crayon-live-preview-wrapper">
951
- <div id="crayon-live-preview"></div>
952
- </div>
953
- <div id="crayon-preview-info">
954
- <?php printf(crayon__('Change the %1$sfallback language%2$s to change the sample code. Lines 5-7 are marked.'), '<a href="#langs">', '</a>'); ?>
 
 
955
  </div>
956
  </div>
957
  <?php
@@ -998,6 +1040,7 @@ class Human {
998
  echo '</span>';
999
  self::checkbox(array(CrayonSettings::POPUP, crayon__('Enable opening code in a window')));
1000
  self::checkbox(array(CrayonSettings::SCROLL, crayon__('Always display scrollbars')));
 
1001
  self::checkbox(array(CrayonSettings::EXPAND, crayon__('Expand code beyond page borders on mouseover')));
1002
  self::checkbox(array(CrayonSettings::EXPAND_TOGGLE, crayon__('Enable code expanding toggling when possible')));
1003
  echo '</div>';
@@ -1021,12 +1064,14 @@ class Human {
1021
  }
1022
 
1023
  public static function tags() {
1024
- echo '<div class="note" style="width: 350px;">', sprintf(crayon__("Using this markup for Mini Tags and Inline tags is now %sdepreciated%s! Use the %sTag Editor%s instead and convert legacy tags."), '<a href="#" target="_blank">', '</a>', '<a href="#" target="_blank">', '</a>'), '</div>';
1025
- self::checkbox(array(CrayonSettings::CAPTURE_MINI_TAG, crayon__('Capture Mini Tags like [php][/php] as Crayons.') . self::help_button('http://bit.ly/rRZuzk')));
1026
- self::checkbox(array(CrayonSettings::INLINE_TAG, crayon__('Capture Inline Tags like {php}{/php} inside sentences.') . self::help_button('http://bit.ly/yFafFL')));
1027
  self::checkbox(array(CrayonSettings::INLINE_WRAP, crayon__('Wrap Inline Tags') . self::help_button('http://bit.ly/yFafFL')));
1028
  self::checkbox(array(CrayonSettings::BACKQUOTE, crayon__('Capture `backquotes` as &lt;code&gt;') . self::help_button('http://bit.ly/yFafFL')));
1029
  self::checkbox(array(CrayonSettings::CAPTURE_PRE, crayon__('Capture &lt;pre&gt; tags as Crayons') . self::help_button('http://bit.ly/rRZuzk')));
 
 
 
 
1030
  self::checkbox(array(CrayonSettings::PLAIN_TAG, crayon__('Enable [plain][/plain] tag.') . self::help_button('http://bit.ly/rRZuzk')));
1031
  }
1032
 
@@ -1062,7 +1107,7 @@ class Human {
1062
  echo crayon__('Clear the cache used to store remote code requests'), ': ';
1063
  self::dropdown(CrayonSettings::CACHE, false);
1064
  echo '<input type="submit" id="crayon-cache-clear" name="crayon-cache-clear" class="button-secondary" value="', crayon__('Clear Now'), '" /><br/>';
1065
- self::checkbox(array(CrayonSettings::EFFICIENT_ENQUEUE, crayon__('Attempt to load Crayon\'s CSS and JavaScript only when needed') . self::help_button('http://ak.net84.net/?p=660')));
1066
  self::checkbox(array(CrayonSettings::SAFE_ENQUEUE, crayon__('Disable enqueuing for page templates that may contain The Loop.') . self::help_button('http://bit.ly/AcWRNY')));
1067
  self::checkbox(array(CrayonSettings::COMMENTS, crayon__('Allow Crayons inside comments')));
1068
  self::checkbox(array(CrayonSettings::EXCERPT_STRIP, crayon__('Remove Crayons from excerpts')));
@@ -1122,7 +1167,7 @@ class Human {
1122
  Japanese (<a href="https://twitter.com/#!/west_323" target="_blank">@west_323</a>),
1123
  Lithuanian (<a href="http://www.host1free.com" target="_blank">Vincent G</a>),
1124
  Polish (<a href="https://github.com/toszcze" target="_blank">Bartosz Romanowski</a>),
1125
- Portuguese (<a href="http://www.adonai.eti.br" target="_blank">Adonai S. Canez</a>),
1126
  Russian (<a href="http://simplelib.com/" target="_blank">Minimus</a>, <a href="http://atlocal.net/" target="_blank">Di_Skyer</a>),
1127
  Spanish (<a href="http://www.hbravo.com/" target="_blank">Hermann Bravo</a>),
1128
  Turkish (<a href="http://hakanertr.wordpress.com" target="_blank">Hakan</a>)';
@@ -1148,9 +1193,6 @@ class Human {
1148
  <tr>
1149
  <td>' . $translators . '</td>
1150
  </tr>
1151
- <tr>
1152
- <td colspan="2">', crayon__("The result of innumerable hours of hard work over many months. It's an ongoing project, keep me motivated!"), '</td>
1153
- </tr>
1154
  <tr>
1155
  <td colspan="2">' . $links . '</td>
1156
  </tr>
21
  private static $cache = NULL;
22
  // Array of settings to pass to js
23
  private static $js_settings = NULL;
24
+ private static $js_strings = NULL;
25
  private static $admin_js_settings = NULL;
26
+ private static $admin_js_strings = NULL;
27
  private static $admin_page = '';
28
  private static $is_fully_loaded = FALSE;
29
 
41
  const LOG_CLEAR = 'log_clear';
42
  const LOG_EMAIL_ADMIN = 'log_email_admin';
43
  const LOG_EMAIL_DEV = 'log_email_dev';
44
+ const SAMPLE_CODE = 'sample-code';
45
 
46
  private function __construct() {
47
  }
52
  self::$admin_page = $admin_page = add_options_page('Crayon Syntax Highlighter ' . crayon__('Settings'), 'Crayon', 'manage_options', 'crayon_settings', 'CrayonSettingsWP::settings');
53
  add_action("admin_print_scripts-$admin_page", 'CrayonSettingsWP::admin_scripts');
54
  add_action("admin_print_styles-$admin_page", 'CrayonSettingsWP::admin_styles');
55
+ add_action("admin_print_scripts-$admin_page", 'CrayonThemeEditorWP::admin_resources');
56
  // Register settings, second argument is option name stored in db
57
  register_setting(self::FIELDS, self::OPTIONS, 'CrayonSettingsWP::settings_validate');
58
  add_action("admin_head-$admin_page", 'CrayonSettingsWP::admin_init');
75
  global $CRAYON_VERSION;
76
  wp_enqueue_style('crayon', plugins_url(CRAYON_STYLE, __FILE__), array(), $CRAYON_VERSION);
77
  wp_enqueue_style('crayon_global', plugins_url(CRAYON_STYLE_GLOBAL, __FILE__), array(), $CRAYON_VERSION);
78
+ wp_enqueue_style('crayon_admin', plugins_url(CRAYON_STYLE_ADMIN, __FILE__), array('editor-buttons'), $CRAYON_VERSION);
 
79
  }
80
 
81
  public static function admin_scripts() {
83
  wp_enqueue_script('crayon_util_js', plugins_url(CRAYON_JS_UTIL, __FILE__), array('jquery'), $CRAYON_VERSION);
84
  self::init_js_settings();
85
  if (is_admin()) {
86
+ wp_enqueue_script('crayon_admin_js', plugins_url(CRAYON_JS_ADMIN, __FILE__), array('jquery', 'crayon_util_js', 'wpdialogs', 'wpdialogs-popup'), $CRAYON_VERSION);
87
  self::init_admin_js_settings();
88
  }
89
  self::other_scripts();
119
  );
120
  wp_localize_script('crayon_util_js', 'CrayonSyntaxSettings', self::$js_settings);
121
  }
122
+ if (!self::$js_strings) {
123
+ self::$js_strings = array(
124
+ 'copy' => crayon__('Press %s to Copy, %s to Paste'),
125
+ 'minimize' => crayon__('Click To Expand Code')
126
+ );
127
+ wp_localize_script('crayon_util_js', 'CrayonSyntaxStrings', self::$js_strings);
128
+ }
129
  }
130
 
131
  public static function init_admin_js_settings() {
150
  'userThemes' => $userThemes,
151
  'defaultTheme' => CrayonThemes::DEFAULT_THEME,
152
  'themesURL' => CrayonThemes::dir_url(),
153
+ 'userThemesURL' => CrayonThemes::dir_url(true),
154
+ 'sampleCode' => self::SAMPLE_CODE,
155
+ 'dialogFunction' => 'wpdialog'
156
  );
157
  wp_localize_script('crayon_admin_js', 'CrayonAdminSettings', self::$admin_js_settings);
158
  }
159
+ if (!self::$admin_js_strings) {
160
+ self::$admin_js_strings = array(
161
+ 'prompt' => crayon__("Prompt"),
162
+ 'value' => crayon__("Value"),
163
+ 'alert' => crayon__("Alert"),
164
+ 'no' => crayon__("No"),
165
+ 'yes' => crayon__("Yes"),
166
+ 'confirm' => crayon__("Confirm"),
167
+ 'changeCode' => crayon__("Change Code")
168
+ );
169
+ wp_localize_script('crayon_admin_js', 'CrayonAdminStrings', self::$admin_js_strings);
170
+ }
171
  }
172
 
173
  public static function settings() {
206
  <input type="submit" name="submit" id="submit" class="button-primary"
207
  value="<?php
208
  crayon_e('Save Changes');
209
+ ?>" /><span style="width:10px; height: 5px; float:left;"></span><input type="submit"
210
  name="<?php
211
  echo self::OPTIONS;
212
  ?>[reset]" id="reset"
213
  class="button-primary"
214
  value="<?php
215
  crayon_e('Reset Settings');
216
+ ?>" />
217
  </p>
218
  </form>
219
  </div>
244
  CrayonGlobalSettings::site_path(ABSPATH);
245
  CrayonGlobalSettings::plugin_path(plugins_url('', __FILE__));
246
  $upload = wp_upload_dir();
247
+ CrayonLog::debug($upload, "WP UPLOAD FUNCTION");
248
  CrayonGlobalSettings::upload_path(CrayonUtil::path_slash($upload['basedir']) . CRAYON_DIR);
249
  CrayonGlobalSettings::upload_url($upload['baseurl'] . '/' . CRAYON_DIR);
250
+ CrayonLog::debug(CrayonGlobalSettings::upload_path(), "UPLOAD PATH");
251
+ CrayonGlobalSettings::set_mkdir('wp_mkdir_p');
252
 
253
  // Load all available languages and themes
254
  CrayonResources::langs()->load();
322
  /**
323
  * Adds a post as containing a Crayon
324
  */
325
+ public static function add_post($id, $save = TRUE) {
326
  self::load_posts();
327
  if (!in_array($id, self::$crayon_posts)) {
328
  self::$crayon_posts[] = $id;
329
  }
330
+ if ($save) {
331
+ self::save_posts();
332
+ }
333
  }
334
 
335
  /**
336
  * Removes a post as not containing a Crayon
337
  */
338
+ public static function remove_post($id, $save = TRUE) {
339
  self::load_posts();
340
  $key = array_search($id, self::$crayon_posts);
341
  if ($key === false) {
342
  return;
343
  }
344
  unset(self::$crayon_posts[$key]);
345
+ if ($save) {
346
+ self::save_posts();
347
+ }
348
  }
349
 
350
  public static function remove_posts() {
357
  /**
358
  * This loads the posts marked as containing Crayons
359
  */
360
+ public static function load_legacy_posts($force = FALSE) {
361
+ if (self::$crayon_legacy_posts === NULL || $force) {
362
  // Load from db
363
  if (!(self::$crayon_legacy_posts = get_option(self::LEGACY_POSTS))) {
364
  // Posts don't exist! Scan for them. This will fill self::$crayon_legacy_posts
390
  /**
391
  * Adds a post as containing a Crayon
392
  */
393
+ public static function add_legacy_post($id, $save = TRUE) {
394
  self::load_legacy_posts();
395
  if (!in_array($id, self::$crayon_legacy_posts)) {
396
  self::$crayon_legacy_posts[] = $id;
397
  }
398
+ if ($save) {
399
+ self::save_legacy_posts();
400
+ }
401
  }
402
 
403
  /**
404
  * Removes a post as not containing a Crayon
405
  */
406
+ public static function remove_legacy_post($id, $save = TRUE) {
407
  self::load_legacy_posts();
408
  $key = array_search($id, self::$crayon_legacy_posts);
409
  if ($key === false) {
410
  return;
411
  }
412
  unset(self::$crayon_legacy_posts[$key]);
413
+ if ($save) {
414
+ self::save_legacy_posts();
415
+ }
416
  }
417
 
418
  public static function remove_legacy_posts() {
750
  public static function toolbar() {
751
  echo '<div id="crayon-section-toolbar" class="crayon-hide-inline">';
752
  self::span(crayon__('Display the Toolbar') . ' ');
753
+ self::dropdown(CrayonSettings::TOOLBAR);
754
  echo '<div id="crayon-subsection-toolbar">';
755
  self::checkbox(array(CrayonSettings::TOOLBAR_OVERLAY, crayon__('Overlay the toolbar on code rather than push it down when possible')));
756
  self::checkbox(array(CrayonSettings::TOOLBAR_HIDE, crayon__('Toggle the toolbar on single click when it is overlayed')));
896
  $crayon = CrayonWP::instance();
897
 
898
  // Settings to prevent from validating
899
+ $preview_settings = array(self::SAMPLE_CODE);
900
 
901
  // Load settings from GET and validate
902
  foreach ($_POST as $key => $value) {
903
  // echo $key, ' ', $value , '<br/>';
904
+ $value = stripslashes($value);
905
  if (!in_array($key, $preview_settings)) {
906
  $_POST[$key] = CrayonSettings::validate($key, $value);
907
+ } else {
908
+ $_POST[$key] = $value;
909
  }
910
  }
911
  $crayon->settings($_POST);
930
  $lang = $crayon->setting_val(CrayonSettings::FALLBACK_LANG);
931
  $path = crayon_pf(CRAYON_UTIL_PATH . '/sample/' . $lang . '.txt', FALSE);
932
 
933
+ if (isset($_POST[self::SAMPLE_CODE])) {
934
+ $crayon->code($_POST[self::SAMPLE_CODE]);
935
+ } else if ($lang && @file_exists($path)) {
936
  $crayon->url($path);
937
  } else {
938
  $code = "
988
  <div id="crayon-theme-panel">
989
  <div id="crayon-theme-info"></div>
990
  <div id="crayon-live-preview-wrapper">
991
+ <div id="crayon-live-preview-inner">
992
+ <div id="crayon-live-preview"></div>
993
+ <div id="crayon-preview-info">
994
+ <?php printf(crayon__('Change the %1$sfallback language%2$s to change the sample code or %3$schange it manually%4$s. Lines 5-7 are marked.'), '<a href="#langs">', '</a>', '<a id="crayon-change-code" href="#">', '</a>'); ?>
995
+ </div>
996
+ </div>
997
  </div>
998
  </div>
999
  <?php
1040
  echo '</span>';
1041
  self::checkbox(array(CrayonSettings::POPUP, crayon__('Enable opening code in a window')));
1042
  self::checkbox(array(CrayonSettings::SCROLL, crayon__('Always display scrollbars')));
1043
+ self::checkbox(array(CrayonSettings::MINIMIZE, crayon__('Minimize code') . self::help_button('http://bit.ly/W4YNCV')));
1044
  self::checkbox(array(CrayonSettings::EXPAND, crayon__('Expand code beyond page borders on mouseover')));
1045
  self::checkbox(array(CrayonSettings::EXPAND_TOGGLE, crayon__('Enable code expanding toggling when possible')));
1046
  echo '</div>';
1064
  }
1065
 
1066
  public static function tags() {
1067
+ self::checkbox(array(CrayonSettings::INLINE_TAG, crayon__('Capture Inline Tags') . self::help_button('http://bit.ly/yFafFL')));
 
 
1068
  self::checkbox(array(CrayonSettings::INLINE_WRAP, crayon__('Wrap Inline Tags') . self::help_button('http://bit.ly/yFafFL')));
1069
  self::checkbox(array(CrayonSettings::BACKQUOTE, crayon__('Capture `backquotes` as &lt;code&gt;') . self::help_button('http://bit.ly/yFafFL')));
1070
  self::checkbox(array(CrayonSettings::CAPTURE_PRE, crayon__('Capture &lt;pre&gt; tags as Crayons') . self::help_button('http://bit.ly/rRZuzk')));
1071
+
1072
+ echo '<div class="note" style="width: 350px;">', sprintf(crayon__("Using this markup for Mini Tags and Inline tags is now %sdepreciated%s! Use the %sTag Editor%s instead and convert legacy tags."), '<a href="http://aramk.com/projects/mini-tags-in-crayon/" target="_blank">', '</a>', '<a href="http://aramk.com/projects/crayon-tag-editor/" target="_blank">', '</a>'), '</div>';
1073
+ self::checkbox(array(CrayonSettings::CAPTURE_MINI_TAG, crayon__('Capture Mini Tags like [php][/php] as Crayons.') . self::help_button('http://bit.ly/rRZuzk')));
1074
+ self::checkbox(array(CrayonSettings::INLINE_TAG_CAPTURE, crayon__('Capture Inline Tags like {php}{/php} inside sentences.') . self::help_button('http://bit.ly/yFafFL')));
1075
  self::checkbox(array(CrayonSettings::PLAIN_TAG, crayon__('Enable [plain][/plain] tag.') . self::help_button('http://bit.ly/rRZuzk')));
1076
  }
1077
 
1107
  echo crayon__('Clear the cache used to store remote code requests'), ': ';
1108
  self::dropdown(CrayonSettings::CACHE, false);
1109
  echo '<input type="submit" id="crayon-cache-clear" name="crayon-cache-clear" class="button-secondary" value="', crayon__('Clear Now'), '" /><br/>';
1110
+ self::checkbox(array(CrayonSettings::EFFICIENT_ENQUEUE, crayon__('Attempt to load Crayon\'s CSS and JavaScript only when needed') . self::help_button('http://aramk.com/?p=660')));
1111
  self::checkbox(array(CrayonSettings::SAFE_ENQUEUE, crayon__('Disable enqueuing for page templates that may contain The Loop.') . self::help_button('http://bit.ly/AcWRNY')));
1112
  self::checkbox(array(CrayonSettings::COMMENTS, crayon__('Allow Crayons inside comments')));
1113
  self::checkbox(array(CrayonSettings::EXCERPT_STRIP, crayon__('Remove Crayons from excerpts')));
1167
  Japanese (<a href="https://twitter.com/#!/west_323" target="_blank">@west_323</a>),
1168
  Lithuanian (<a href="http://www.host1free.com" target="_blank">Vincent G</a>),
1169
  Polish (<a href="https://github.com/toszcze" target="_blank">Bartosz Romanowski</a>),
1170
+ Portuguese (<a href="http://www.adonai.eti.br" target="_blank">Adonai S. Canez</a>), Slovak (<a href="http://webhostinggeeks.com/blog/">http://webhostinggeeks.com/</a>),
1171
  Russian (<a href="http://simplelib.com/" target="_blank">Minimus</a>, <a href="http://atlocal.net/" target="_blank">Di_Skyer</a>),
1172
  Spanish (<a href="http://www.hbravo.com/" target="_blank">Hermann Bravo</a>),
1173
  Turkish (<a href="http://hakanertr.wordpress.com" target="_blank">Hakan</a>)';
1193
  <tr>
1194
  <td>' . $translators . '</td>
1195
  </tr>
 
 
 
1196
  <tr>
1197
  <td colspan="2">' . $links . '</td>
1198
  </tr>
crayon_themes.class.php CHANGED
@@ -4,29 +4,38 @@ require_once (CRAYON_RESOURCE_PHP);
4
 
5
  /* Manages themes once they are loaded. */
6
  class CrayonThemes extends CrayonUserResourceCollection {
7
- // Properties and Constants ===============================================
8
 
9
- const DEFAULT_THEME = 'classic';
10
- const DEFAULT_THEME_NAME = 'Classic';
11
  const CSS_PREFIX = '.crayon-theme-';
12
 
13
- private $printed_themes = array();
14
 
15
- // Methods ================================================================
16
 
17
- function __construct() {
18
- $this->directory ( CRAYON_THEME_PATH );
19
- $this->user_directory(CrayonGlobalSettings::upload_path() . CRAYON_THEME_DIR);
20
- if (!is_dir($this->user_directory())) {
21
- mkdir($this->user_directory(), 0777, TRUE);
 
 
 
 
 
 
 
22
  }
23
- $this->set_default ( self::DEFAULT_THEME, self::DEFAULT_THEME_NAME );
 
 
24
  }
25
 
26
- // XXX Override
27
- public function path($id, $user = NULL) {
28
- return $this->dirpath($id, $user) . "$id.css";
29
- }
30
 
31
  public function dirpath($id, $user = NULL) {
32
  $path = NULL;
@@ -47,8 +56,8 @@ class CrayonThemes extends CrayonUserResourceCollection {
47
  return CrayonUtil::path_slash($path . $id);
48
  }
49
 
50
- // XXX Override
51
- public function get_url($id, $user = NULL) {
52
  if ($user === NULL) {
53
  if ($this->is_state_loading()) {
54
  // We seem to be loading resources - use current directory
@@ -63,7 +72,7 @@ class CrayonThemes extends CrayonUserResourceCollection {
63
  }
64
  }
65
  return self::dir_url($user) . $id . '/' . $id . '.css';
66
- }
67
 
68
  public static function dir_url($user = FALSE) {
69
  $path = $user ? CrayonGlobalSettings::upload_url() : CrayonGlobalSettings::plugin_path();
4
 
5
  /* Manages themes once they are loaded. */
6
  class CrayonThemes extends CrayonUserResourceCollection {
7
+ // Properties and Constants ===============================================
8
 
9
+ const DEFAULT_THEME = 'classic';
10
+ const DEFAULT_THEME_NAME = 'Classic';
11
  const CSS_PREFIX = '.crayon-theme-';
12
 
13
+ private $printed_themes = array();
14
 
15
+ // Methods ================================================================
16
 
17
+ function __construct() {
18
+ $this->directory(CRAYON_THEME_PATH);
19
+ CrayonLog::debug("Setting theme directories");
20
+ $upload = CrayonGlobalSettings::upload_path();
21
+ if ($upload) {
22
+ $this->user_directory($upload . CRAYON_THEME_DIR);
23
+ if (!is_dir($this->user_directory())) {
24
+ CrayonGlobalSettings::mkdir($this->user_directory());
25
+ CrayonLog::debug($this->user_directory(), "THEME DIR");
26
+ }
27
+ } else {
28
+ CrayonLog::syslog("Upload directory is empty: " . $upload);
29
  }
30
+ CrayonLog::debug($this->directory());
31
+ CrayonLog::debug($this->user_directory());
32
+ $this->set_default(self::DEFAULT_THEME, self::DEFAULT_THEME_NAME);
33
  }
34
 
35
+ // XXX Override
36
+ public function path($id, $user = NULL) {
37
+ return $this->dirpath($id, $user) . "$id.css";
38
+ }
39
 
40
  public function dirpath($id, $user = NULL) {
41
  $path = NULL;
56
  return CrayonUtil::path_slash($path . $id);
57
  }
58
 
59
+ // XXX Override
60
+ public function get_url($id, $user = NULL) {
61
  if ($user === NULL) {
62
  if ($this->is_state_loading()) {
63
  // We seem to be loading resources - use current directory
72
  }
73
  }
74
  return self::dir_url($user) . $id . '/' . $id . '.css';
75
+ }
76
 
77
  public static function dir_url($user = FALSE) {
78
  $path = $user ? CrayonGlobalSettings::upload_url() : CrayonGlobalSettings::plugin_path();
crayon_wp.class.php CHANGED
@@ -1,11 +1,11 @@
1
  <?php
2
  /*
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: 2.0.0
7
  Author: Aram Kocharyan
8
- Author URI: http://ak.net84.net/
9
  Text Domain: crayon-syntax-highlighter
10
  Domain Path: /trans/
11
  License: GPL2
@@ -26,7 +26,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26
  require_once ('global.php');
27
  require_once (CRAYON_HIGHLIGHTER_PHP);
28
  if (CRAYON_TAG_EDITOR) {
29
- require_once (CRAYON_TE_PHP);
30
  }
31
  if (CRAYON_THEME_EDITOR) {
32
  require_once (CRAYON_THEME_EDITOR_PHP);
@@ -96,9 +96,6 @@ class CrayonWP {
96
 
97
  const MODE_NORMAL = 0, MODE_JUST_CODE = 1, MODE_PLAIN_CODE = 2;
98
 
99
-
100
- //const TAGS = array(CrayonSettings::CAPTURE_MINI_TAG => 1 | 1);
101
-
102
  // Public Methods =========================================================
103
 
104
  public static function post_captures() {
@@ -216,10 +213,11 @@ class CrayonWP {
216
  /* Uses the main query */
217
  public static function wp() {
218
  CrayonLog::debug('wp (global)');
219
-
220
  global $wp_the_query;
221
- $posts = $wp_the_query->posts;
222
- self::the_posts($posts);
 
 
223
  }
224
 
225
  // TODO put args into an array
@@ -230,6 +228,8 @@ class CrayonWP {
230
  CrayonUtil::set_var($ignore, TRUE);
231
  CrayonUtil::set_var($preserve_atts, FALSE);
232
  CrayonUtil::set_var($flags, NULL);
 
 
233
 
234
  // Will contain captured crayons and altered $wp_content
235
  $capture = array('capture' => array(), 'content' => $wp_content, 'has_captured' => FALSE);
@@ -240,26 +240,28 @@ class CrayonWP {
240
  CrayonLog::debug('capture for id ' . $wp_id . ' len ' . strlen($wp_content));
241
 
242
  // Convert <pre> tags to crayon tags, if needed
243
- if (CrayonGlobalSettings::val(CrayonSettings::CAPTURE_PRE) && $in_flag[CrayonSettings::CAPTURE_PRE]) {
244
  // XXX This will fail if <pre></pre> is used inside another <pre></pre>
245
  $wp_content = preg_replace_callback('#(?<!\$)<\s*pre(?=(?:([^>]*)\bclass\s*=\s*(["\'])(.*?)\2([^>]*))?)([^>]*)>(.*?)<\s*/\s*pre\s*>#msi', 'CrayonWP::pre_tag', $wp_content);
246
  }
247
 
248
  // Convert mini [php][/php] tags to crayon tags, if needed
249
- if (CrayonGlobalSettings::val(CrayonSettings::CAPTURE_MINI_TAG) && $in_flag[CrayonSettings::CAPTURE_MINI_TAG]) {
250
  $wp_content = preg_replace('#(?<!\$)\[\s*(' . self::$alias_regex . ')\b([^\]]*)\](.*?)\[\s*/\s*(?:\1)\s*\](?!\$)#msi', '[crayon lang="\1" \2]\3[/crayon]', $wp_content);
251
  $wp_content = preg_replace('#(?<!\$)\[\s*(' . self::$alias_regex . ')\b([^\]]*)/\s*\](?!\$)#msi', '[crayon lang="\1" \2 /]', $wp_content);
252
  }
253
 
254
  // Convert inline {php}{/php} tags to crayon tags, if needed
255
- if (CrayonGlobalSettings::val(CrayonSettings::INLINE_TAG) && $in_flag[CrayonSettings::INLINE_TAG]) {
256
- $wp_content = preg_replace('#(?<!\$)\{\s*(' . self::$alias_regex . ')\b([^\}]*)\}(.*?)\{/(?:\1)\}(?!\$)#msi', '[crayon lang="\1" inline="true" \2]\3[/crayon]', $wp_content);
 
 
257
  // Convert <span class="crayon-inline"> tags to inline crayon tags
258
  $wp_content = preg_replace_callback('#(?<!\$)<\s*span([^>]*)\bclass\s*=\s*(["\'])(.*?)\2([^>]*)>(.*?)<\s*/\s*span\s*>#msi', 'CrayonWP::span_tag', $wp_content);
259
  }
260
 
261
  // Convert [plain] tags into <pre><code></code></pre>, if needed
262
- if (CrayonGlobalSettings::val(CrayonSettings::PLAIN_TAG) && $in_flag[CrayonSettings::PLAIN_TAG]) {
263
  $wp_content = preg_replace_callback('#(?<!\$)\[\s*plain\s*\](.*?)\[\s*/\s*plain\s*\]#msi', 'CrayonFormatter::plain_code', $wp_content);
264
  }
265
 
@@ -271,14 +273,18 @@ class CrayonWP {
271
 
272
  // Only include if a post exists with Crayon tag
273
  preg_match_all(self::regex(), $wp_content, $matches);
 
 
 
 
 
274
 
275
  CrayonLog::debug('capture ignore for id ' . $wp_id . ' : ' . strlen($capture['content']) . ' vs ' . strlen($wp_content));
276
 
277
- if (count($matches[0]) != 0) {
278
 
279
  // Crayons found! Load settings first to ensure global settings loaded
280
  CrayonSettingsWP::load_settings();
281
- $capture['has_captured'] = TRUE;
282
 
283
  CrayonLog::debug('CAPTURED FOR ID ' . $wp_id);
284
 
@@ -397,7 +403,6 @@ class CrayonWP {
397
  CrayonLog::debug('the_posts');
398
 
399
  // Whether to enqueue syles/scripts
400
- $enqueue = FALSE;
401
  CrayonSettingsWP::load_settings(TRUE); // We will eventually need more than the settings
402
 
403
  self::init_tags_regex();
@@ -406,10 +411,11 @@ class CrayonWP {
406
  // Search for shortcode in posts
407
  foreach ($posts as $post) {
408
  $wp_id = $post->ID;
 
409
  if (!in_array($wp_id, $crayon_posts)) {
410
  // If we get query for a page, then that page might have a template and load more posts containing Crayons
411
  // By this state, we would be unable to enqueue anything (header already written).
412
- if (CrayonGlobalSettings::val(CrayonSettings::SAFE_ENQUEUE) && is_page($wp_id)) {
413
  CrayonGlobalSettings::set(CrayonSettings::ENQUEUE_THEMES, false);
414
  CrayonGlobalSettings::set(CrayonSettings::ENQUEUE_FONTS, false);
415
  }
@@ -440,7 +446,6 @@ class CrayonWP {
440
  $post->post_content = $captures['content'];
441
  self::$post_captures[$id_str] = $captures['content'];
442
  if ($captures['has_captured'] === TRUE) {
443
- $enqueue = TRUE;
444
  self::$post_queue[$id_str] = array();
445
  foreach ($captures['capture'] as $capture_id => $capture_content) {
446
  self::$post_queue[$id_str][$capture_id] = $capture_content;
@@ -460,7 +465,6 @@ class CrayonWP {
460
  $captures = self::capture_crayons($comment->comment_ID, $comment->comment_content, array(CrayonSettings::DECODE => TRUE));
461
  self::$comment_captures[$id_str] = $captures['content'];
462
  if ($captures['has_captured'] === TRUE) {
463
- $enqueue = TRUE;
464
  self::$comment_queue[$id_str] = array();
465
  foreach ($captures['capture'] as $capture_id => $capture_content) {
466
  self::$comment_queue[$id_str][$capture_id] = $capture_content;
@@ -470,11 +474,6 @@ class CrayonWP {
470
  }
471
  }
472
 
473
- if (!is_admin() && $enqueue && !self::$enqueued) {
474
- // Crayons have been found and we enqueue efficiently
475
- self::enqueue_resources();
476
- }
477
-
478
  return $posts;
479
  }
480
 
@@ -489,16 +488,16 @@ class CrayonWP {
489
  }
490
 
491
  private static function enqueue_resources() {
492
- CrayonLog::debug('enqueue');
493
- global $CRAYON_VERSION;
494
- wp_enqueue_style('crayon_style', plugins_url(CRAYON_STYLE, __FILE__), array(), $CRAYON_VERSION);
495
- wp_enqueue_style('crayon_global_style', plugins_url(CRAYON_STYLE_GLOBAL, __FILE__), array(), $CRAYON_VERSION);
496
- wp_enqueue_script('crayon_util_js', plugins_url(CRAYON_JS_UTIL, __FILE__), array('jquery'), $CRAYON_VERSION);
497
- CrayonSettingsWP::other_scripts();
498
- // wp_enqueue_script('crayon_js', plugins_url(CRAYON_JS, __FILE__), array('jquery', 'crayon_util_js'), $CRAYON_VERSION);
499
- // wp_enqueue_script('crayon_jquery_popup', plugins_url(CRAYON_JQUERY_POPUP, __FILE__), array('jquery'), $CRAYON_VERSION);
500
- CrayonSettingsWP::init_js_settings();
501
- self::$enqueued = TRUE;
502
  }
503
 
504
  private static function init_tags_regex($force = FALSE, $flags = NULL, &$tags_regex = NULL) {
@@ -509,15 +508,15 @@ class CrayonWP {
509
  $tags_regex = & self::$tags_regex;
510
  }
511
 
512
-
513
  if ($force || $tags_regex === "") {
514
  // Check which tags are in $flags. If it's NULL, then all flags are true.
515
  $in_flag = self::in_flag($flags);
516
 
517
- if (($in_flag[CrayonSettings::CAPTURE_MINI_TAG] && CrayonGlobalSettings::val(CrayonSettings::CAPTURE_MINI_TAG)) ||
518
- ($in_flag[CrayonSettings::INLINE_TAG] && CrayonGlobalSettings::val(CrayonSettings::INLINE_TAG))
519
  ) {
520
  $aliases = CrayonResources::langs()->ids_and_aliases();
 
521
  for ($i = 0; $i < count($aliases); $i++) {
522
  $alias = $aliases[$i];
523
  $alias_regex = CrayonUtil::esc_hash(CrayonUtil::esc_regex($alias));
@@ -531,21 +530,23 @@ class CrayonWP {
531
  // Add other tags
532
  $tags_regex = '#(?<!\$)(?:(\s*\[\s*crayon\b)';
533
 
 
534
  $tag_regexes = array(
535
- CrayonSettings::CAPTURE_MINI_TAG => '([\[]\s*(' . self::$alias_regex . ')\b)',
536
  CrayonSettings::CAPTURE_PRE => '(<\s*pre\b)',
537
- CrayonSettings::INLINE_TAG => '(' . self::REGEX_INLINE_CLASS . ')' . '|([\{]\s*(' . self::$alias_regex . '))',
538
  CrayonSettings::PLAIN_TAG => '(\s*\[\s*plain\b)',
539
  CrayonSettings::BACKQUOTE => '(`[^`]*`)'
540
  );
541
 
542
  foreach ($tag_regexes as $tag => $regex) {
543
- if ($in_flag[$tag] && CrayonGlobalSettings::val($tag)) {
544
  $tags_regex .= '|' . $regex;
545
  }
546
  }
547
  $tags_regex .= ')#msi';
548
  }
 
549
  }
550
 
551
  private static function init_tag_bits() {
@@ -614,6 +615,8 @@ class CrayonWP {
614
 
615
  // Find if this post has Crayons
616
  if (array_key_exists($post_id, self::$post_queue)) {
 
 
617
  // XXX We want the plain post content, no formatting
618
  $the_content_original = $the_content;
619
 
@@ -790,7 +793,7 @@ class CrayonWP {
790
  $the_content = str_ireplace(array($ignore_flag . '[plain', 'plain]' . $ignore_flag), array('[plain', 'plain]'), $the_content);
791
  }
792
  if (CrayonGlobalSettings::val(CrayonSettings::CAPTURE_MINI_TAG) ||
793
- CrayonGlobalSettings::val(CrayonSettings::INLINE_TAG)
794
  ) {
795
  self::init_tags_regex();
796
  // $the_content = preg_replace('#'.$ignore_flag_regex.'\s*([\[\{])\s*('. self::$alias_regex .')#', '$1$2', $the_content);
@@ -829,36 +832,42 @@ class CrayonWP {
829
  }
830
 
831
  public static function save_post($update_id, $post) {
832
- // if (wp_is_post_revision($id)) {
833
- // // Ignore revisions
834
- // return;
835
- // }
836
  self::refresh_post($post);
837
  }
838
 
839
- public static function refresh_post($post, $refresh_legacy = TRUE) {
840
  $postID = $post->ID;
 
 
 
 
841
  if (CrayonWP::scan_post($post)) {
842
- CrayonSettingsWP::add_post($postID);
843
  if ($refresh_legacy) {
844
  if (self::scan_legacy_post($post)) {
845
- CrayonSettingsWP::add_legacy_post($postID);
846
  } else {
847
- CrayonSettingsWP::remove_legacy_post($postID);
848
  }
849
  }
850
  } else {
851
- CrayonSettingsWP::remove_post($postID);
852
- CrayonSettingsWP::remove_legacy_post($postID);
853
  }
 
 
 
854
  }
855
 
856
  public static function refresh_posts() {
857
  CrayonSettingsWP::remove_posts();
858
  CrayonSettingsWP::remove_legacy_posts();
859
  foreach (CrayonWP::get_posts() as $post) {
860
- self::refresh_post($post);
861
  }
 
 
 
862
  }
863
 
864
  public static function save_comment($id, $is_spam = NULL, $comment = NULL) {
@@ -897,16 +906,19 @@ class CrayonWP {
897
  }
898
 
899
  public static function init_ajax() {
900
- add_action('wp_ajax_crayon-ajax', 'CrayonWP::ajax');
901
  add_action('wp_ajax_crayon-tag-editor', 'CrayonTagEditorWP::content');
902
- add_action('wp_ajax_crayon-theme-editor', 'CrayonThemeEditorWP::content');
903
- add_action('wp_ajax_crayon-theme-editor-save', 'CrayonThemeEditorWP::save');
904
- add_action('wp_ajax_crayon-theme-editor-delete', 'CrayonThemeEditorWP::delete');
905
- add_action('wp_ajax_crayon-theme-editor-duplicate', 'CrayonThemeEditorWP::duplicate');
906
- add_action('wp_ajax_crayon-theme-editor-submit', 'CrayonThemeEditorWP::submit');
907
- add_action('wp_ajax_crayon-show-posts', 'CrayonSettingsWP::show_posts');
908
- add_action('wp_ajax_crayon-show-langs', 'CrayonSettingsWP::show_langs');
909
- add_action('wp_ajax_crayon-show-preview', 'CrayonSettingsWP::show_preview');
 
 
 
 
910
  }
911
 
912
  public static function ajax() {
@@ -921,7 +933,11 @@ class CrayonWP {
921
 
922
  public static function get_posts() {
923
  $query = new WP_Query(array('post_type' => 'any', 'suppress_filters' => TRUE, 'posts_per_page' => '-1'));
924
- return $query->posts;
 
 
 
 
925
  }
926
 
927
  /**
@@ -955,21 +971,29 @@ class CrayonWP {
955
  /**
956
  * Returns TRUE if a given post contains a Crayon tag
957
  */
958
- public static function scan_post($post, $scan_comments = TRUE, $tags_regex = NULL) {
959
- if ($tags_regex === NULL) {
960
- self::init_tags_regex();
961
- $tags_regex = self::$tags_regex;
962
  }
963
 
964
  $id = $post->ID;
965
- if (preg_match($tags_regex, $post->post_content)) {
 
 
 
 
 
 
 
 
 
966
  return TRUE;
967
  } else if ($scan_comments) {
968
  CrayonSettingsWP::load_settings(TRUE);
969
  if (CrayonGlobalSettings::val(CrayonSettings::COMMENTS)) {
970
  $comments = get_comments(array('post_id' => $id));
971
  foreach ($comments as $comment) {
972
- if (self::scan_comment($comment, $tags_regex)) {
973
  return TRUE;
974
  }
975
  }
@@ -980,22 +1004,30 @@ class CrayonWP {
980
 
981
  public static function scan_legacy_post($post, $scan_comments = TRUE) {
982
  self::init_legacy_tag_bits();
983
- return self::scan_post($post, $scan_comments, self::$tags_regex_legacy);
984
  }
985
 
986
  /**
987
  * Returns TRUE if the comment contains a Crayon tag
988
  */
989
- public static function scan_comment($comment, $tags_regex = NULL) {
990
- if ($tags_regex === NULL) {
991
  self::init_tags_regex();
992
- $tags_regex = self::$tags_regex;
993
- }
994
- if (preg_match($tags_regex, $comment->comment_content)) {
995
- return TRUE;
996
- } else {
997
- return FALSE;
998
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
999
  }
1000
 
1001
  public static function install() {
@@ -1103,7 +1135,8 @@ class CrayonWP {
1103
  'callback_extra_args' => array('encode' => $encode),
1104
  'ignore' => FALSE,
1105
  'preserve_atts' => TRUE,
1106
- 'flags' => self::$legacy_flags
 
1107
  );
1108
 
1109
  foreach ($crayon_posts as $postID) {
@@ -1111,11 +1144,13 @@ class CrayonWP {
1111
  $post_content = $post->post_content;
1112
  $post_captures = self::capture_crayons($postID, $post_content, array(), $args);
1113
 
1114
- $post_obj = array();
1115
- $post_obj['ID'] = $postID;
1116
- $post_obj['post_content'] = $post_captures['content'];
1117
- wp_update_post($post_obj);
1118
- CrayonLog::syslog("Converted Crayons in post ID $postID to pre tags", 'CONVERT');
 
 
1119
 
1120
  if (CrayonGlobalSettings::val(CrayonSettings::COMMENTS)) {
1121
  $comments = get_comments(array('post_id' => $postID));
@@ -1123,11 +1158,13 @@ class CrayonWP {
1123
  $commentID = $comment->comment_ID;
1124
  $comment_captures = self::capture_crayons($commentID, $comment->comment_content, array(CrayonSettings::DECODE => TRUE), $args);
1125
 
1126
- $comment_obj = array();
1127
- $comment_obj['comment_ID'] = $commentID;
1128
- $comment_obj['comment_content'] = $comment_captures['content'];
1129
- wp_update_comment($comment_obj);
1130
- CrayonLog::syslog("Converted Crayons in post ID $postID, comment ID $commentID to pre tags", 'CONVERT');
 
 
1131
  }
1132
  }
1133
  }
@@ -1144,8 +1181,9 @@ class CrayonWP {
1144
  if (!isset($oldAtts[CrayonSettings::DECODE]) && $encode) {
1145
  // Encode the content, since no decode information exists.
1146
  $code = CrayonUtil::htmlentities($code);
1147
- $oldAtts[CrayonSettings::DECODE] = TRUE;
1148
  }
 
 
1149
  $newAtts['class'] = CrayonUtil::html_attributes($oldAtts, CrayonGlobalSettings::val_str(CrayonSettings::ATTR_SEP), '');
1150
  return str_replace($original, CrayonUtil::html_element('pre', $code, $newAtts), $wp_content);
1151
  }
@@ -1195,13 +1233,14 @@ if (defined('ABSPATH')) {
1195
  // Update between versions
1196
  CrayonWP::update();
1197
  // For marking a post as containing a Crayon
 
1198
  add_action('save_post', 'CrayonWP::save_post', 10, 2);
1199
  if (CrayonGlobalSettings::val(CrayonSettings::COMMENTS)) {
1200
  add_action('comment_post', 'CrayonWP::save_comment', 10, 2);
1201
  add_action('edit_comment', 'CrayonWP::save_comment', 10, 2);
1202
  }
1203
- add_filter('init', 'CrayonWP::init_ajax');
1204
  }
 
1205
  }
1206
 
1207
  ?>
1
  <?php
2
  /*
3
  Plugin Name: Crayon Syntax Highlighter
4
+ Plugin URI: http://aramk.com/projects/crayon-syntax-highlighter
5
  Description: Supports multiple languages, themes, highlighting from a URL, local file or post text.
6
+ Version: 2.1.0
7
  Author: Aram Kocharyan
8
+ Author URI: http://aramk.com/
9
  Text Domain: crayon-syntax-highlighter
10
  Domain Path: /trans/
11
  License: GPL2
26
  require_once ('global.php');
27
  require_once (CRAYON_HIGHLIGHTER_PHP);
28
  if (CRAYON_TAG_EDITOR) {
29
+ require_once (CRAYON_TAG_EDITOR_PHP);
30
  }
31
  if (CRAYON_THEME_EDITOR) {
32
  require_once (CRAYON_THEME_EDITOR_PHP);
96
 
97
  const MODE_NORMAL = 0, MODE_JUST_CODE = 1, MODE_PLAIN_CODE = 2;
98
 
 
 
 
99
  // Public Methods =========================================================
100
 
101
  public static function post_captures() {
213
  /* Uses the main query */
214
  public static function wp() {
215
  CrayonLog::debug('wp (global)');
 
216
  global $wp_the_query;
217
+ if (isset($wp_the_query->posts)) {
218
+ $posts = $wp_the_query->posts;
219
+ self::the_posts($posts);
220
+ }
221
  }
222
 
223
  // TODO put args into an array
228
  CrayonUtil::set_var($ignore, TRUE);
229
  CrayonUtil::set_var($preserve_atts, FALSE);
230
  CrayonUtil::set_var($flags, NULL);
231
+ CrayonUtil::set_var($skip_setting_check, FALSE);
232
+ CrayonUtil::set_var($just_check, FALSE);
233
 
234
  // Will contain captured crayons and altered $wp_content
235
  $capture = array('capture' => array(), 'content' => $wp_content, 'has_captured' => FALSE);
240
  CrayonLog::debug('capture for id ' . $wp_id . ' len ' . strlen($wp_content));
241
 
242
  // Convert <pre> tags to crayon tags, if needed
243
+ if ((CrayonGlobalSettings::val(CrayonSettings::CAPTURE_PRE) || $skip_setting_check) && $in_flag[CrayonSettings::CAPTURE_PRE]) {
244
  // XXX This will fail if <pre></pre> is used inside another <pre></pre>
245
  $wp_content = preg_replace_callback('#(?<!\$)<\s*pre(?=(?:([^>]*)\bclass\s*=\s*(["\'])(.*?)\2([^>]*))?)([^>]*)>(.*?)<\s*/\s*pre\s*>#msi', 'CrayonWP::pre_tag', $wp_content);
246
  }
247
 
248
  // Convert mini [php][/php] tags to crayon tags, if needed
249
+ if ((CrayonGlobalSettings::val(CrayonSettings::CAPTURE_MINI_TAG) || $skip_setting_check) && $in_flag[CrayonSettings::CAPTURE_MINI_TAG]) {
250
  $wp_content = preg_replace('#(?<!\$)\[\s*(' . self::$alias_regex . ')\b([^\]]*)\](.*?)\[\s*/\s*(?:\1)\s*\](?!\$)#msi', '[crayon lang="\1" \2]\3[/crayon]', $wp_content);
251
  $wp_content = preg_replace('#(?<!\$)\[\s*(' . self::$alias_regex . ')\b([^\]]*)/\s*\](?!\$)#msi', '[crayon lang="\1" \2 /]', $wp_content);
252
  }
253
 
254
  // Convert inline {php}{/php} tags to crayon tags, if needed
255
+ if ((CrayonGlobalSettings::val(CrayonSettings::INLINE_TAG) || $skip_setting_check) && $in_flag[CrayonSettings::INLINE_TAG]) {
256
+ if (CrayonGlobalSettings::val(CrayonSettings::INLINE_TAG_CAPTURE)) {
257
+ $wp_content = preg_replace('#(?<!\$)\{\s*(' . self::$alias_regex . ')\b([^\}]*)\}(.*?)\{/(?:\1)\}(?!\$)#msi', '[crayon lang="\1" inline="true" \2]\3[/crayon]', $wp_content);
258
+ }
259
  // Convert <span class="crayon-inline"> tags to inline crayon tags
260
  $wp_content = preg_replace_callback('#(?<!\$)<\s*span([^>]*)\bclass\s*=\s*(["\'])(.*?)\2([^>]*)>(.*?)<\s*/\s*span\s*>#msi', 'CrayonWP::span_tag', $wp_content);
261
  }
262
 
263
  // Convert [plain] tags into <pre><code></code></pre>, if needed
264
+ if ((CrayonGlobalSettings::val(CrayonSettings::PLAIN_TAG) || $skip_setting_check) && $in_flag[CrayonSettings::PLAIN_TAG]) {
265
  $wp_content = preg_replace_callback('#(?<!\$)\[\s*plain\s*\](.*?)\[\s*/\s*plain\s*\]#msi', 'CrayonFormatter::plain_code', $wp_content);
266
  }
267
 
273
 
274
  // Only include if a post exists with Crayon tag
275
  preg_match_all(self::regex(), $wp_content, $matches);
276
+ $capture['has_captured'] = count($matches[0]) != 0;
277
+ if ($just_check) {
278
+ $capture['content'] = $wp_content;
279
+ return $capture;
280
+ }
281
 
282
  CrayonLog::debug('capture ignore for id ' . $wp_id . ' : ' . strlen($capture['content']) . ' vs ' . strlen($wp_content));
283
 
284
+ if ($capture['has_captured']) {
285
 
286
  // Crayons found! Load settings first to ensure global settings loaded
287
  CrayonSettingsWP::load_settings();
 
288
 
289
  CrayonLog::debug('CAPTURED FOR ID ' . $wp_id);
290
 
403
  CrayonLog::debug('the_posts');
404
 
405
  // Whether to enqueue syles/scripts
 
406
  CrayonSettingsWP::load_settings(TRUE); // We will eventually need more than the settings
407
 
408
  self::init_tags_regex();
411
  // Search for shortcode in posts
412
  foreach ($posts as $post) {
413
  $wp_id = $post->ID;
414
+ $is_page = $post->post_type == 'page';
415
  if (!in_array($wp_id, $crayon_posts)) {
416
  // If we get query for a page, then that page might have a template and load more posts containing Crayons
417
  // By this state, we would be unable to enqueue anything (header already written).
418
+ if (CrayonGlobalSettings::val(CrayonSettings::SAFE_ENQUEUE) && $is_page) {
419
  CrayonGlobalSettings::set(CrayonSettings::ENQUEUE_THEMES, false);
420
  CrayonGlobalSettings::set(CrayonSettings::ENQUEUE_FONTS, false);
421
  }
446
  $post->post_content = $captures['content'];
447
  self::$post_captures[$id_str] = $captures['content'];
448
  if ($captures['has_captured'] === TRUE) {
 
449
  self::$post_queue[$id_str] = array();
450
  foreach ($captures['capture'] as $capture_id => $capture_content) {
451
  self::$post_queue[$id_str][$capture_id] = $capture_content;
465
  $captures = self::capture_crayons($comment->comment_ID, $comment->comment_content, array(CrayonSettings::DECODE => TRUE));
466
  self::$comment_captures[$id_str] = $captures['content'];
467
  if ($captures['has_captured'] === TRUE) {
 
468
  self::$comment_queue[$id_str] = array();
469
  foreach ($captures['capture'] as $capture_id => $capture_content) {
470
  self::$comment_queue[$id_str][$capture_id] = $capture_content;
474
  }
475
  }
476
 
 
 
 
 
 
477
  return $posts;
478
  }
479
 
488
  }
489
 
490
  private static function enqueue_resources() {
491
+ if (!self::$enqueued) {
492
+ CrayonLog::debug('enqueue');
493
+ global $CRAYON_VERSION;
494
+ wp_enqueue_style('crayon_style', plugins_url(CRAYON_STYLE, __FILE__), array(), $CRAYON_VERSION);
495
+ wp_enqueue_style('crayon_global_style', plugins_url(CRAYON_STYLE_GLOBAL, __FILE__), array(), $CRAYON_VERSION);
496
+ wp_enqueue_script('crayon_util_js', plugins_url(CRAYON_JS_UTIL, __FILE__), array('jquery'), $CRAYON_VERSION);
497
+ CrayonSettingsWP::other_scripts();
498
+ CrayonSettingsWP::init_js_settings();
499
+ self::$enqueued = TRUE;
500
+ }
501
  }
502
 
503
  private static function init_tags_regex($force = FALSE, $flags = NULL, &$tags_regex = NULL) {
508
  $tags_regex = & self::$tags_regex;
509
  }
510
 
 
511
  if ($force || $tags_regex === "") {
512
  // Check which tags are in $flags. If it's NULL, then all flags are true.
513
  $in_flag = self::in_flag($flags);
514
 
515
+ if (($in_flag[CrayonSettings::CAPTURE_MINI_TAG] && (CrayonGlobalSettings::val(CrayonSettings::CAPTURE_MINI_TAG)) || $force) ||
516
+ ($in_flag[CrayonSettings::INLINE_TAG] && (CrayonGlobalSettings::val(CrayonSettings::INLINE_TAG) && CrayonGlobalSettings::val(CrayonSettings::INLINE_TAG_CAPTURE)) || $force)
517
  ) {
518
  $aliases = CrayonResources::langs()->ids_and_aliases();
519
+ self::$alias_regex = '';
520
  for ($i = 0; $i < count($aliases); $i++) {
521
  $alias = $aliases[$i];
522
  $alias_regex = CrayonUtil::esc_hash(CrayonUtil::esc_regex($alias));
530
  // Add other tags
531
  $tags_regex = '#(?<!\$)(?:(\s*\[\s*crayon\b)';
532
 
533
+ // TODO this is duplicated in capture_crayons()
534
  $tag_regexes = array(
535
+ CrayonSettings::CAPTURE_MINI_TAG => '(\[\s*(' . self::$alias_regex . ')\b)',
536
  CrayonSettings::CAPTURE_PRE => '(<\s*pre\b)',
537
+ CrayonSettings::INLINE_TAG => '(' . self::REGEX_INLINE_CLASS . ')' . '|(\{\s*(' . self::$alias_regex . ')\b([^\}]*)\})',
538
  CrayonSettings::PLAIN_TAG => '(\s*\[\s*plain\b)',
539
  CrayonSettings::BACKQUOTE => '(`[^`]*`)'
540
  );
541
 
542
  foreach ($tag_regexes as $tag => $regex) {
543
+ if ($in_flag[$tag] && (CrayonGlobalSettings::val($tag) || $force)) {
544
  $tags_regex .= '|' . $regex;
545
  }
546
  }
547
  $tags_regex .= ')#msi';
548
  }
549
+
550
  }
551
 
552
  private static function init_tag_bits() {
615
 
616
  // Find if this post has Crayons
617
  if (array_key_exists($post_id, self::$post_queue)) {
618
+ self::enqueue_resources();
619
+
620
  // XXX We want the plain post content, no formatting
621
  $the_content_original = $the_content;
622
 
793
  $the_content = str_ireplace(array($ignore_flag . '[plain', 'plain]' . $ignore_flag), array('[plain', 'plain]'), $the_content);
794
  }
795
  if (CrayonGlobalSettings::val(CrayonSettings::CAPTURE_MINI_TAG) ||
796
+ (CrayonGlobalSettings::val(CrayonSettings::INLINE_TAG && CrayonGlobalSettings::val(CrayonSettings::INLINE_TAG_CAPTURE)))
797
  ) {
798
  self::init_tags_regex();
799
  // $the_content = preg_replace('#'.$ignore_flag_regex.'\s*([\[\{])\s*('. self::$alias_regex .')#', '$1$2', $the_content);
832
  }
833
 
834
  public static function save_post($update_id, $post) {
 
 
 
 
835
  self::refresh_post($post);
836
  }
837
 
838
+ public static function refresh_post($post, $refresh_legacy = TRUE, $save = TRUE) {
839
  $postID = $post->ID;
840
+ if (wp_is_post_revision($postID)) {
841
+ // Ignore revisions
842
+ return;
843
+ }
844
  if (CrayonWP::scan_post($post)) {
845
+ CrayonSettingsWP::add_post($postID, $save);
846
  if ($refresh_legacy) {
847
  if (self::scan_legacy_post($post)) {
848
+ CrayonSettingsWP::add_legacy_post($postID, $save);
849
  } else {
850
+ CrayonSettingsWP::remove_legacy_post($postID, $save);
851
  }
852
  }
853
  } else {
854
+ CrayonSettingsWP::remove_post($postID, $save);
855
+ CrayonSettingsWP::remove_legacy_post($postID, $save);
856
  }
857
+ // CrayonLog::syslog($postID, "TEST");
858
+ // CrayonSettingsWP::remove_post($postID, $save);
859
+ // CrayonSettingsWP::remove_legacy_post($postID, $save);
860
  }
861
 
862
  public static function refresh_posts() {
863
  CrayonSettingsWP::remove_posts();
864
  CrayonSettingsWP::remove_legacy_posts();
865
  foreach (CrayonWP::get_posts() as $post) {
866
+ self::refresh_post($post, TRUE, FALSE);
867
  }
868
+ CrayonSettingsWP::save_posts();
869
+ CrayonSettingsWP::save_legacy_posts();
870
+
871
  }
872
 
873
  public static function save_comment($id, $is_spam = NULL, $comment = NULL) {
906
  }
907
 
908
  public static function init_ajax() {
 
909
  add_action('wp_ajax_crayon-tag-editor', 'CrayonTagEditorWP::content');
910
+ add_action('wp_ajax_nopriv_crayon-tag-editor', 'CrayonTagEditorWP::content');
911
+ if (is_admin()) {
912
+ add_action('wp_ajax_crayon-ajax', 'CrayonWP::ajax');
913
+ add_action('wp_ajax_crayon-theme-editor', 'CrayonThemeEditorWP::content');
914
+ add_action('wp_ajax_crayon-theme-editor-save', 'CrayonThemeEditorWP::save');
915
+ add_action('wp_ajax_crayon-theme-editor-delete', 'CrayonThemeEditorWP::delete');
916
+ add_action('wp_ajax_crayon-theme-editor-duplicate', 'CrayonThemeEditorWP::duplicate');
917
+ add_action('wp_ajax_crayon-theme-editor-submit', 'CrayonThemeEditorWP::submit');
918
+ add_action('wp_ajax_crayon-show-posts', 'CrayonSettingsWP::show_posts');
919
+ add_action('wp_ajax_crayon-show-langs', 'CrayonSettingsWP::show_langs');
920
+ add_action('wp_ajax_crayon-show-preview', 'CrayonSettingsWP::show_preview');
921
+ }
922
  }
923
 
924
  public static function ajax() {
933
 
934
  public static function get_posts() {
935
  $query = new WP_Query(array('post_type' => 'any', 'suppress_filters' => TRUE, 'posts_per_page' => '-1'));
936
+ if (isset($query->posts)) {
937
+ return $query->posts;
938
+ } else {
939
+ return array();
940
+ }
941
  }
942
 
943
  /**
971
  /**
972
  * Returns TRUE if a given post contains a Crayon tag
973
  */
974
+ public static function scan_post($post, $scan_comments = TRUE, $flags = NULL) {
975
+ if ($flags === NULL) {
976
+ self::init_tags_regex(TRUE);
 
977
  }
978
 
979
  $id = $post->ID;
980
+
981
+ $args = array(
982
+ 'ignore' => FALSE,
983
+ 'flags' => $flags,
984
+ 'skip_setting_check' => TRUE,
985
+ 'just_check' => TRUE
986
+ );
987
+ $captures = self::capture_crayons($id, $post->post_content, array(), $args);
988
+
989
+ if ($captures['has_captured']) {
990
  return TRUE;
991
  } else if ($scan_comments) {
992
  CrayonSettingsWP::load_settings(TRUE);
993
  if (CrayonGlobalSettings::val(CrayonSettings::COMMENTS)) {
994
  $comments = get_comments(array('post_id' => $id));
995
  foreach ($comments as $comment) {
996
+ if (self::scan_comment($comment, $flags)) {
997
  return TRUE;
998
  }
999
  }
1004
 
1005
  public static function scan_legacy_post($post, $scan_comments = TRUE) {
1006
  self::init_legacy_tag_bits();
1007
+ return self::scan_post($post, $scan_comments, self::$legacy_flags);
1008
  }
1009
 
1010
  /**
1011
  * Returns TRUE if the comment contains a Crayon tag
1012
  */
1013
+ public static function scan_comment($comment, $flags = NULL) {
1014
+ if ($flags === NULL) {
1015
  self::init_tags_regex();
1016
+ // $tags_regex = self::$tags_regex;
 
 
 
 
 
1017
  }
1018
+ $args = array(
1019
+ 'ignore' => FALSE,
1020
+ 'flags' => $flags,
1021
+ 'skip_setting_check' => TRUE,
1022
+ 'just_check' => TRUE
1023
+ );
1024
+ $captures = self::capture_crayons($comment->comment_ID, $comment->comment_content, array(), $args);
1025
+ return $captures['has_captured'];
1026
+ // if (preg_match($tags_regex, $comment->comment_content)) {
1027
+ // return TRUE;
1028
+ // } else {
1029
+ // return FALSE;
1030
+ // }
1031
  }
1032
 
1033
  public static function install() {
1135
  'callback_extra_args' => array('encode' => $encode),
1136
  'ignore' => FALSE,
1137
  'preserve_atts' => TRUE,
1138
+ 'flags' => self::$legacy_flags,
1139
+ 'skip_setting_check' => TRUE
1140
  );
1141
 
1142
  foreach ($crayon_posts as $postID) {
1144
  $post_content = $post->post_content;
1145
  $post_captures = self::capture_crayons($postID, $post_content, array(), $args);
1146
 
1147
+ if ($post_captures['has_captured'] === TRUE) {
1148
+ $post_obj = array();
1149
+ $post_obj['ID'] = $postID;
1150
+ $post_obj['post_content'] = $post_captures['content'];
1151
+ wp_update_post($post_obj);
1152
+ CrayonLog::syslog("Converted Crayons in post ID $postID to pre tags", 'CONVERT');
1153
+ }
1154
 
1155
  if (CrayonGlobalSettings::val(CrayonSettings::COMMENTS)) {
1156
  $comments = get_comments(array('post_id' => $postID));
1158
  $commentID = $comment->comment_ID;
1159
  $comment_captures = self::capture_crayons($commentID, $comment->comment_content, array(CrayonSettings::DECODE => TRUE), $args);
1160
 
1161
+ if ($comment_captures['has_captured'] === TRUE) {
1162
+ $comment_obj = array();
1163
+ $comment_obj['comment_ID'] = $commentID;
1164
+ $comment_obj['comment_content'] = $comment_captures['content'];
1165
+ wp_update_comment($comment_obj);
1166
+ CrayonLog::syslog("Converted Crayons in post ID $postID, comment ID $commentID to pre tags", 'CONVERT');
1167
+ }
1168
  }
1169
  }
1170
  }
1181
  if (!isset($oldAtts[CrayonSettings::DECODE]) && $encode) {
1182
  // Encode the content, since no decode information exists.
1183
  $code = CrayonUtil::htmlentities($code);
 
1184
  }
1185
+ // We always set decode=1 irrespectively - so at this point the code is assumed to be encoded
1186
+ $oldAtts[CrayonSettings::DECODE] = TRUE;
1187
  $newAtts['class'] = CrayonUtil::html_attributes($oldAtts, CrayonGlobalSettings::val_str(CrayonSettings::ATTR_SEP), '');
1188
  return str_replace($original, CrayonUtil::html_element('pre', $code, $newAtts), $wp_content);
1189
  }
1233
  // Update between versions
1234
  CrayonWP::update();
1235
  // For marking a post as containing a Crayon
1236
+ add_action('update_post', 'CrayonWP::save_post', 10, 2);
1237
  add_action('save_post', 'CrayonWP::save_post', 10, 2);
1238
  if (CrayonGlobalSettings::val(CrayonSettings::COMMENTS)) {
1239
  add_action('comment_post', 'CrayonWP::save_comment', 10, 2);
1240
  add_action('edit_comment', 'CrayonWP::save_comment', 10, 2);
1241
  }
 
1242
  }
1243
+ add_filter('init', 'CrayonWP::init_ajax');
1244
  }
1245
 
1246
  ?>
css/admin_style.css CHANGED
@@ -278,3 +278,8 @@
278
  font-style: italic;
279
  color: #999;
280
  }
 
 
 
 
 
278
  font-style: italic;
279
  color: #999;
280
  }
281
+
282
+ #crayon-change-code-text {
283
+ width: 400px;
284
+ height: 300px;
285
+ }
css/crayon_style.css CHANGED
@@ -149,15 +149,14 @@ coloring etc.
149
  padding: 0 4px !important;
150
  }
151
 
152
- .crayon-syntax .crayon-toolbar a.crayon-button {
153
  display: inline;
154
  float: left !important;
155
- min-width: 20px;
156
-
157
  background-repeat: no-repeat;
158
  /*height: 16px;*/
159
  line-height: 15px;
160
- padding: 0px 2px !important;
161
  border: none;
162
  /*border-radius: 5px;
163
  -webkit-border-radius: 5px;
@@ -165,44 +164,50 @@ coloring etc.
165
  text-decoration: none;
166
  }
167
 
168
- .crayon-toolbar a.crayon-button,
169
- .crayon-toolbar a.crayon-button:hover,
170
- .crayon-toolbar a.crayon-button.crayon-pressed:hover {
171
  background-position: 0px center;
172
  }
173
- .crayon-toolbar a.crayon-button.crayon-pressed,
174
- .crayon-toolbar a.crayon-button:active,
175
- .crayon-toolbar a.crayon-button.crayon-pressed:active {
176
  background-position: -24px center;
177
  }
178
 
179
  /* Plain Button */
180
- .crayon-toolbar a.crayon-button.crayon-plain-button {
181
  background-image: url('images/toolbar/plain.png');
182
  }
183
 
184
  /* Wrap Button */
185
- .crayon-toolbar a.crayon-button.crayon-wrap-button {
186
  background-image: url('images/toolbar/wrap.png');
187
  }
188
 
189
  /* Expand Button */
190
- .crayon-toolbar a.crayon-button.crayon-expand-button {
191
  background-image: url('images/toolbar/expand.png');
192
  }
193
 
 
 
 
 
 
 
194
  /* Copy Button */
195
- .crayon-toolbar a.crayon-button.crayon-copy-button {
196
  background-image: url('images/toolbar/copy.png');
197
  }
198
 
199
  /* Popup Button */
200
- .crayon-toolbar a.crayon-button.crayon-popup-button {
201
  background-image: url('images/toolbar/popup.png');
202
  }
203
 
204
  /* Nums Button */
205
- .crayon-toolbar a.crayon-button.crayon-nums-button {
206
  background-image: url('images/toolbar/nums.png');
207
  }
208
 
@@ -328,7 +333,7 @@ This has been disabled to allow more flexibility in changing font sizes.
328
  .crayon-syntax.crayon-wrapped .crayon-line {
329
  /* min-height: 15px;*/
330
  height: auto;
331
- }
332
 
333
  .crayon-syntax .crayon-num,
334
  .crayon-syntax .crayon-pre .crayon-line,
@@ -338,13 +343,13 @@ This has been disabled to allow more flexibility in changing font sizes.
338
  font-size: inherit !important;
339
  line-height: inherit !important;
340
  font-weight: inherit !important;
341
- }
342
-
343
- .crayon-syntax .crayon-pre .crayon-line span {
344
- display: inline-block;
345
- *display: inline;
346
- zoom: 1;
347
- }
348
 
349
  .crayon-syntax .crayon-toolbar .crayon-tools,
350
  .crayon-syntax .crayon-toolbar .crayon-tools * {
@@ -358,7 +363,6 @@ This has been disabled to allow more flexibility in changing font sizes.
358
 
359
  .crayon-syntax .crayon-plain-wrap {
360
  height: auto !important;
361
- height: width !important;
362
  padding: 0 !important;
363
  margin: 0 !important;
364
  }
@@ -387,14 +391,31 @@ This has been disabled to allow more flexibility in changing font sizes.
387
  background: #FFF;
388
  }
389
 
390
- .crayon-syntax.crayon-wrapped .crayon-plain {
391
  white-space: pre-wrap;
392
  }
393
 
394
  .bbp-body .crayon-syntax {
395
  clear: none !important;
396
  }
397
-
398
  /* End Code ======================== */
399
 
400
- /* End AK Code Table ============================================= */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
149
  padding: 0 4px !important;
150
  }
151
 
152
+ .crayon-syntax .crayon-toolbar .crayon-button {
153
  display: inline;
154
  float: left !important;
155
+ width: 24px;
 
156
  background-repeat: no-repeat;
157
  /*height: 16px;*/
158
  line-height: 15px;
159
+ /*padding: 0px 2px !important;*/
160
  border: none;
161
  /*border-radius: 5px;
162
  -webkit-border-radius: 5px;
164
  text-decoration: none;
165
  }
166
 
167
+ .crayon-toolbar .crayon-button,
168
+ .crayon-toolbar .crayon-button:hover,
169
+ .crayon-toolbar .crayon-button.crayon-pressed:hover {
170
  background-position: 0px center;
171
  }
172
+ .crayon-toolbar .crayon-button.crayon-pressed,
173
+ .crayon-toolbar .crayon-button:active,
174
+ .crayon-toolbar .crayon-button.crayon-pressed:active {
175
  background-position: -24px center;
176
  }
177
 
178
  /* Plain Button */
179
+ .crayon-toolbar .crayon-button.crayon-plain-button {
180
  background-image: url('images/toolbar/plain.png');
181
  }
182
 
183
  /* Wrap Button */
184
+ .crayon-toolbar .crayon-button.crayon-wrap-button {
185
  background-image: url('images/toolbar/wrap.png');
186
  }
187
 
188
  /* Expand Button */
189
+ .crayon-toolbar .crayon-button.crayon-expand-button {
190
  background-image: url('images/toolbar/expand.png');
191
  }
192
 
193
+ /* Click to Expand */
194
+ .crayon-toolbar .crayon-button.crayon-minimize {
195
+ background-image: url('images/toolbar/arrow_down.png');
196
+ background-color: transparent !important;
197
+ }
198
+
199
  /* Copy Button */
200
+ .crayon-toolbar .crayon-button.crayon-copy-button {
201
  background-image: url('images/toolbar/copy.png');
202
  }
203
 
204
  /* Popup Button */
205
+ .crayon-toolbar .crayon-button.crayon-popup-button {
206
  background-image: url('images/toolbar/popup.png');
207
  }
208
 
209
  /* Nums Button */
210
+ .crayon-toolbar .crayon-button.crayon-nums-button {
211
  background-image: url('images/toolbar/nums.png');
212
  }
213
 
333
  .crayon-syntax.crayon-wrapped .crayon-line {
334
  /* min-height: 15px;*/
335
  height: auto;
336
+ }
337
 
338
  .crayon-syntax .crayon-num,
339
  .crayon-syntax .crayon-pre .crayon-line,
343
  font-size: inherit !important;
344
  line-height: inherit !important;
345
  font-weight: inherit !important;
346
+ }
347
+
348
+ .crayon-syntax .crayon-pre .crayon-line span {
349
+ display: inline-block;
350
+ *display: inline;
351
+ zoom: 1;
352
+ }
353
 
354
  .crayon-syntax .crayon-toolbar .crayon-tools,
355
  .crayon-syntax .crayon-toolbar .crayon-tools * {
363
 
364
  .crayon-syntax .crayon-plain-wrap {
365
  height: auto !important;
 
366
  padding: 0 !important;
367
  margin: 0 !important;
368
  }
391
  background: #FFF;
392
  }
393
 
394
+ .crayon-wrapped .crayon-plain {
395
  white-space: pre-wrap;
396
  }
397
 
398
  .bbp-body .crayon-syntax {
399
  clear: none !important;
400
  }
 
401
  /* End Code ======================== */
402
 
403
+ /* Minimize ================= */
404
+ .crayon-minimized .crayon-toolbar {
405
+ cursor: pointer;
406
+ }
407
+ .crayon-minimized .crayon-plain-wrap,
408
+ .crayon-minimized .crayon-main,
409
+ .crayon-minimized .crayon-toolbar .crayon-tools * {
410
+ display: none !important;
411
+ }
412
+ .crayon-minimized .crayon-toolbar .crayon-tools .crayon-minimize {
413
+ display: block !important;
414
+ }
415
+ .crayon-minimized .crayon-toolbar {
416
+ position: relative !important;
417
+ }
418
+ .crayon-syntax.crayon-minimized .crayon-toolbar {
419
+ border-bottom: none !important;
420
+ }
421
+ /* End Minimize ============= */
css/global_style.css CHANGED
@@ -1,271 +1,271 @@
1
  /* TinyMCE */
2
- .crayon-te *,#crayon-te-bar-content {
3
- font-family: "Lucida Grande", Verdana, Arial, sans-serif !important;
4
- font-size: 12px;
5
  }
6
 
7
- .crayon-te input[type="text"],.crayon-te textarea {
8
- background: #F9F9F9;
9
- border: 1px solid #CCC;
10
- box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.1);
11
- -moz-box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.1);
12
- -webkit-box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.1);
13
- padding: 2px 4px;
14
- -webkit-border-radius: 3px;
15
- border-radius: 3px;
16
- border-width: 1px;
17
- border-style: solid;
18
  }
19
 
20
- #crayon-te-content,#crayon-te-table {
21
- width: 100%;
22
- height: auto !important;
23
  }
24
 
25
- #crayon-range,#crayon-mark {
26
- width: 100px;
 
27
  }
28
 
29
- #crayon-te-table th,#crayon-te-table td {
30
- vertical-align: top;
31
- text-align: left;
32
  }
33
 
34
- #crayon-te-table .crayon-tr-center td,#crayon-te-table .crayon-tr-center th
35
- {
36
- vertical-align: middle;
 
 
 
 
37
  }
38
 
39
  #crayon-te-table .crayon-nowrap {
40
- white-space: nowrap;
41
  }
42
 
43
  #crayon-te-bar-content {
44
- border: 1px solid #666;
45
- border-bottom: none;
46
- height: 26px;
47
- line-height: 25px;
48
- padding: 0px 8px;
49
- padding-right: 0;
50
- background-color: #222;
51
- color: #CFCFCF;
52
  }
53
 
54
  #crayon-te-bar-content a {
55
- line-height: 25px;
56
- padding: 5px 10px;
57
- color: #DDD;
58
- font-weight: bold;
59
- text-decoration: none !important;
60
  }
61
 
62
  #crayon-te-bar-content a:hover {
63
- color: #FFF;
64
  }
65
 
66
  .crayon-te-seperator {
67
- color: #666;
68
- margin: 0;
69
- padding: 0;
70
  }
71
 
72
  #crayon-te-bar-block {
73
- height: 34px;
74
- width: 100%;
75
  }
76
 
77
  #crayon-te-title {
78
- float: left;
79
  }
80
 
81
  #crayon-te-controls {
82
- float: right;
83
  }
84
 
85
  #crayon-url-th {
86
- vertical-align: top !important;
87
- padding-top: 5px;
88
  }
89
 
90
  .crayon-te-heading {
91
- font-size: 14px;
92
- font-weight: bold;
93
  }
94
 
95
  #crayon-te-settings-info {
96
- text-align: center;
97
  }
98
 
99
  .crayon-te-section {
100
- font-weight: bold;
101
- padding: 0 10px;
102
  }
103
 
104
  #crayon-te-sub-section {
105
- margin-left: 10px;
106
  }
107
 
108
  #crayon-te-sub-section .crayon-te-section {
109
- font-weight: normal;
110
- padding: 0;
111
  }
112
 
113
  #crayon-code {
114
- height: 200px;
115
- white-space: pre;
116
- /*white-space: nowrap;
117
- overflow: auto;*/
118
  }
119
 
120
- #crayon-code,#crayon-url {
121
- width: 555px !important;
122
  }
123
 
124
  .crayon-disabled {
125
- background: #EEE !important;
126
  }
127
 
128
- .mce_crayon_tinymce_highlight,.qt_crayon_highlight {
129
- border: 1px solid #7c9dde !important;
130
  }
131
 
132
  .qt_crayon_highlight {
133
- background-image: -ms-linear-gradient(bottom, #daf2ff, white) !important;
134
- background-image: -moz-linear-gradient(bottom, #daf2ff, white)
135
- !important;
136
- background-image: -o-linear-gradient(bottom, #daf2ff, white) !important;
137
- background-image: -webkit-linear-gradient(bottom, #daf2ff, white)
138
- !important;
139
- background-image: linear-gradient(bottom, #daf2ff, white) !important;
140
  }
141
 
142
  .qt_crayon_highlight:hover {
143
- background: #ddebf2 !important;
144
  }
145
 
146
  /* .mce_crayon_tinymce_highlight span.mce_crayon_tinymce, */
147
  .wp_themeSkin .mceButtonEnabled:hover span.mce_crayon_tinymce,
148
  .wp_themeSkin .mceButtonActive span.mce_crayon_tinymce {
149
- background-position: -20px 0;
150
  }
151
 
152
  #crayon-te-table {
153
- padding: 10px;
154
- border-collapse: separate !important;
155
- border-spacing: 2px !important;
156
  }
157
 
158
  #crayon-te-table th {
159
- width: 100px;
160
  }
161
 
162
  #crayon-te-clear {
163
- margin-left: 10px;
164
- color: #666;
165
- background-color: #f4f4f4;
166
- border: 1px solid #CCC;
167
- border-radius: 3px;
168
- margin-left: 8px;
169
  }
170
 
171
  #crayon-title {
172
- width: 360px;
173
  }
174
 
175
  #TB_window.crayon-te-ajax {
176
- overflow: auto !important;
177
  }
178
 
179
- #TB_window.crayon-te-ajax,#TB_window.crayon-te-ajax #TB_ajaxContent,#TB_window.crayon-te-ajax #TB_title
180
- {
181
- width: 680px !important;
182
  }
183
 
184
  #TB_window.crayon-te-ajax #TB_ajaxContent {
185
- padding: 0 !important;
186
- margin: 0 !important;
187
- width: 100% !important;
188
- height: auto !important;
189
- margin-top: 28px !important;
190
  }
191
 
192
  #TB_window.crayon-te-ajax #TB_title {
193
- position: fixed !important;
194
  }
195
 
196
  #TB_window.crayon-te-ajax #TB_title .crayon-te-submit {
197
- margin-top: 3px !important;
198
- float: right !important;
199
  }
200
 
201
  #TB_window.crayon-te-ajax a {
202
- color: #2587e2;
203
- text-decoration: none;
204
  }
205
 
206
  #TB_window.crayon-te-ajax a:hover {
207
- color: #499ce9;
208
  }
209
 
210
  .crayon-te-quote {
211
- background: #DDD;
212
- padding: 0 2px;
213
  }
214
 
215
  #crayon-te-submit-wrapper {
216
- display: none;
217
  }
218
 
219
  #crayon-te-clear {
220
- display: none;
221
- margin: 0;
222
- margin-top: 10px;
223
  }
224
 
225
  .crayon-syntax-pre {
226
- background: red;
227
- white-space: pre;
228
- overflow: auto;
229
- display: block;
230
- word-wrap: break-word;
231
  }
232
 
233
  .crayon-question {
234
- padding: 1px 4px !important;
235
- background: #83b3cb !important;
236
- text-decoration: none !important;
237
- color: white !important;
238
- border-radius: 10px !important;
239
- height: 15px !important;
240
- width: 15px !important;
241
  }
242
 
243
  .crayon-setting {
244
-
245
  }
246
 
247
- .crayon-setting-changed,.crayon-setting-selected {
248
- background: #fffaad !important;
249
  }
250
 
251
  .crayon-question:hover {
252
- color: white;
253
- background: #a6d6ef;
254
  }
255
 
256
  #crayon-te-warning {
257
- display: none;
258
  }
259
 
260
  .crayon-te-info {
261
- padding: 5px !important;
262
- margin: 2px 0 !important;
263
  }
264
 
265
  #crayon-te-submit {
266
- margin-bottom: 5px;
267
  }
268
 
269
  .wp_themeSkin span.mce_crayon_tinymce {
270
- background: url(images/crayon_tinymce.png);
271
  }
1
  /* TinyMCE */
2
+ .crayon-te *, #crayon-te-bar-content {
3
+ font-family: "Lucida Grande", Arial, sans-serif !important;
4
+ font-size: 12px;
5
  }
6
 
7
+ .crayon-te input[type="text"], .crayon-te textarea {
8
+ background: #F9F9F9;
9
+ border: 1px solid #CCC;
10
+ box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.1);
11
+ -moz-box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.1);
12
+ -webkit-box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.1);
13
+ padding: 2px 4px;
14
+ -webkit-border-radius: 3px;
15
+ border-radius: 3px;
16
+ border-width: 1px;
17
+ border-style: solid;
18
  }
19
 
20
+ .crayon-te #crayon-code {
21
+ font-family: monospace !important;
 
22
  }
23
 
24
+ #crayon-te-content, #crayon-te-table {
25
+ width: 100%;
26
+ height: auto !important;
27
  }
28
 
29
+ #crayon-range, #crayon-mark {
30
+ width: 100px;
 
31
  }
32
 
33
+ #crayon-te-table th, #crayon-te-table td {
34
+ vertical-align: top;
35
+ text-align: left;
36
+ }
37
+
38
+ #crayon-te-table .crayon-tr-center td, #crayon-te-table .crayon-tr-center th {
39
+ vertical-align: middle;
40
  }
41
 
42
  #crayon-te-table .crayon-nowrap {
43
+ white-space: nowrap;
44
  }
45
 
46
  #crayon-te-bar-content {
47
+ border: 1px solid #666;
48
+ border-bottom: none;
49
+ height: 26px;
50
+ line-height: 25px;
51
+ padding: 0px 8px;
52
+ padding-right: 0;
53
+ background-color: #222;
54
+ color: #CFCFCF;
55
  }
56
 
57
  #crayon-te-bar-content a {
58
+ line-height: 25px;
59
+ padding: 5px 10px;
60
+ color: #DDD;
61
+ font-weight: bold;
62
+ text-decoration: none !important;
63
  }
64
 
65
  #crayon-te-bar-content a:hover {
66
+ color: #FFF;
67
  }
68
 
69
  .crayon-te-seperator {
70
+ color: #666;
71
+ margin: 0;
72
+ padding: 0;
73
  }
74
 
75
  #crayon-te-bar-block {
76
+ height: 34px;
77
+ width: 100%;
78
  }
79
 
80
  #crayon-te-title {
81
+ float: left;
82
  }
83
 
84
  #crayon-te-controls {
85
+ float: right;
86
  }
87
 
88
  #crayon-url-th {
89
+ vertical-align: top !important;
90
+ padding-top: 5px;
91
  }
92
 
93
  .crayon-te-heading {
94
+ font-size: 14px;
95
+ font-weight: bold;
96
  }
97
 
98
  #crayon-te-settings-info {
99
+ text-align: center;
100
  }
101
 
102
  .crayon-te-section {
103
+ font-weight: bold;
104
+ padding: 0 10px;
105
  }
106
 
107
  #crayon-te-sub-section {
108
+ margin-left: 10px;
109
  }
110
 
111
  #crayon-te-sub-section .crayon-te-section {
112
+ font-weight: normal;
113
+ padding: 0;
114
  }
115
 
116
  #crayon-code {
117
+ height: 200px;
118
+ white-space: pre;
119
+ /*white-space: nowrap;
120
+ overflow: auto;*/
121
  }
122
 
123
+ #crayon-code, #crayon-url {
124
+ width: 555px !important;
125
  }
126
 
127
  .crayon-disabled {
128
+ background: #EEE !important;
129
  }
130
 
131
+ .mce_crayon_tinymce_highlight, .qt_crayon_highlight {
132
+ border: 1px solid #7c9dde !important;
133
  }
134
 
135
  .qt_crayon_highlight {
136
+ background-image: -ms-linear-gradient(bottom, #daf2ff, white) !important;
137
+ background-image: -moz-linear-gradient(bottom, #daf2ff, white) !important;
138
+ background-image: -o-linear-gradient(bottom, #daf2ff, white) !important;
139
+ background-image: -webkit-linear-gradient(bottom, #daf2ff, white) !important;
140
+ background-image: linear-gradient(bottom, #daf2ff, white) !important;
 
 
141
  }
142
 
143
  .qt_crayon_highlight:hover {
144
+ background: #ddebf2 !important;
145
  }
146
 
147
  /* .mce_crayon_tinymce_highlight span.mce_crayon_tinymce, */
148
  .wp_themeSkin .mceButtonEnabled:hover span.mce_crayon_tinymce,
149
  .wp_themeSkin .mceButtonActive span.mce_crayon_tinymce {
150
+ background-position: -20px 0;
151
  }
152
 
153
  #crayon-te-table {
154
+ padding: 10px;
155
+ border-collapse: separate !important;
156
+ border-spacing: 2px !important;
157
  }
158
 
159
  #crayon-te-table th {
160
+ width: 100px;
161
  }
162
 
163
  #crayon-te-clear {
164
+ margin-left: 10px;
165
+ color: #666;
166
+ background-color: #f4f4f4;
167
+ border: 1px solid #CCC;
168
+ border-radius: 3px;
169
+ margin-left: 8px;
170
  }
171
 
172
  #crayon-title {
173
+ width: 360px;
174
  }
175
 
176
  #TB_window.crayon-te-ajax {
177
+ overflow: auto !important;
178
  }
179
 
180
+ #TB_window.crayon-te-ajax, #TB_window.crayon-te-ajax #TB_ajaxContent, #TB_window.crayon-te-ajax #TB_title {
181
+ width: 680px !important;
 
182
  }
183
 
184
  #TB_window.crayon-te-ajax #TB_ajaxContent {
185
+ padding: 0 !important;
186
+ margin: 0 !important;
187
+ width: 100% !important;
188
+ height: auto !important;
189
+ margin-top: 28px !important;
190
  }
191
 
192
  #TB_window.crayon-te-ajax #TB_title {
193
+ position: fixed !important;
194
  }
195
 
196
  #TB_window.crayon-te-ajax #TB_title .crayon-te-submit {
197
+ margin-top: 3px !important;
198
+ float: right !important;
199
  }
200
 
201
  #TB_window.crayon-te-ajax a {
202
+ color: #2587e2;
203
+ text-decoration: none;
204
  }
205
 
206
  #TB_window.crayon-te-ajax a:hover {
207
+ color: #499ce9;
208
  }
209
 
210
  .crayon-te-quote {
211
+ background: #DDD;
212
+ padding: 0 2px;
213
  }
214
 
215
  #crayon-te-submit-wrapper {
216
+ display: none;
217
  }
218
 
219
  #crayon-te-clear {
220
+ display: none;
221
+ margin: 0;
222
+ margin-top: 10px;
223
  }
224
 
225
  .crayon-syntax-pre {
226
+ background: red;
227
+ white-space: pre;
228
+ overflow: auto;
229
+ display: block;
230
+ word-wrap: break-word;
231
  }
232
 
233
  .crayon-question {
234
+ padding: 1px 4px !important;
235
+ background: #83b3cb !important;
236
+ text-decoration: none !important;
237
+ color: white !important;
238
+ border-radius: 10px !important;
239
+ height: 15px !important;
240
+ width: 15px !important;
241
  }
242
 
243
  .crayon-setting {
244
+
245
  }
246
 
247
+ .crayon-setting-changed, .crayon-setting-selected {
248
+ background: #fffaad !important;
249
  }
250
 
251
  .crayon-question:hover {
252
+ color: white;
253
+ background: #a6d6ef;
254
  }
255
 
256
  #crayon-te-warning {
257
+ display: none;
258
  }
259
 
260
  .crayon-te-info {
261
+ padding: 5px !important;
262
+ margin: 2px 0 !important;
263
  }
264
 
265
  #crayon-te-submit {
266
+ margin-bottom: 5px;
267
  }
268
 
269
  .wp_themeSkin span.mce_crayon_tinymce {
270
+ background: url(images/crayon_tinymce.png);
271
  }
css/images/toolbar/arrow_down.png ADDED
Binary file
css/images/toolbar/arrow_down@2x.png ADDED
Binary file
global.php CHANGED
@@ -17,9 +17,9 @@ define('CRAYON_DOMAIN', 'crayon-syntax-highlighter');
17
  $CRAYON_VERSION = '1.1.1';
18
  $CRAYON_DATE = '27th September, 2011';
19
  $CRAYON_AUTHOR = 'Aram Kocharyan';
20
- $CRAYON_AUTHOR_SITE = 'http://ak.net84.net/';
21
  $CRAYON_DONATE = 'http://bit.ly/crayondonate';
22
- $CRAYON_WEBSITE = 'http://ak.net84.net/projects/crayon-syntax-highlighter';
23
  $CRAYON_EMAIL = 'crayon.syntax@gmail.com';
24
  $CRAYON_TWITTER = 'http://twitter.com/crayonsyntax';
25
  $CRAYON_GIT = 'http://github.com/aramkocharyan/crayon-syntax-highlighter/';
@@ -73,14 +73,12 @@ define('CRAYON_JS_UTIL', CRAYON_JS_DIR . 'util.js');
73
  define('CRAYON_CSSJSON_JS', CRAYON_JS_DIR . 'cssjson.js');
74
  define('CRAYON_JS_FANCYBOX', CRAYON_JS_DIR . 'fancybox/jquery.fancybox.init.pack.js');
75
  define('CRAYON_CSS_FANCYBOX', CRAYON_JS_DIR . 'fancybox/jquery.fancybox.css');
76
- define('CRAYON_CSS_JQUERY_UI', CRAYON_JS_DIR . 'jquery-ui/jquery-ui.css');
77
- define('CRAYON_JS_JQUERY_UI', CRAYON_JS_DIR . 'jquery-ui/jquery-ui.js');
78
  define('CRAYON_CSS_JQUERY_COLORPICKER', CRAYON_JS_DIR . 'jquery-colorpicker/jquery.colorpicker.css');
79
  define('CRAYON_JS_JQUERY_COLORPICKER', CRAYON_JS_DIR . 'jquery-colorpicker/jquery.colorpicker.js');
80
  define('CRAYON_JS_TINYCOLOR', CRAYON_JS_DIR . 'tinycolor-min.js');
81
  // TODO rename TE
82
- define('CRAYON_TE_JS', 'crayon_te.js');
83
- define('CRAYON_TE_PHP', CRAYON_TAG_EDITOR_PATH . 'crayon_tag_editor_wp.class.php');
84
  // TODO Fix these
85
  define('CRAYON_TINYMCE_JS', 'crayon_tinymce.js');
86
  define('CRAYON_QUICKTAGS_JS', 'crayon_qt.js');
@@ -135,112 +133,112 @@ require_once (CRAYON_LOG_PHP);
135
 
136
  // Check for forwardslash/backslash in folder path to structure paths
137
  function crayon_s($url = '') {
138
- $url = strval($url);
139
- if (!empty($url) && !preg_match('#(\\\\|/)$#', $url)) {
140
- return $url . '/';
141
- } else if ( empty($url) ) {
142
- return '/';
143
- } else {
144
- return $url;
145
- }
146
  }
147
 
148
  // Returns path using forward slashes, slash added at the end
149
  function crayon_pf($url, $slash = TRUE) {
150
- $url = trim(strval($url));
151
- if ($slash) {
152
- $url = crayon_s($url);
153
- }
154
- return str_replace('\\', '/', $url);
155
  }
156
-
157
  // Returns path using back slashes
158
  function crayon_pb($url) {
159
- return str_replace('/', '\\', crayon_s(trim(strval($url))));
160
  }
161
 
162
  // Get/Set plugin information
163
  function crayon_set_info($info_array) {
164
- global $CRAYON_VERSION, $CRAYON_DATE, $CRAYON_AUTHOR, $CRAYON_WEBSITE;
165
- if (!is_array($info_array)) {
166
- return;
167
- }
168
- crayon_set_info_key('Version', $info_array, $CRAYON_VERSION);
169
- if (($date = @filemtime(CRAYON_README_FILE)) !== FALSE) {
170
- $CRAYON_DATE = date("jS F, Y", $date);
171
- }
172
- crayon_set_info_key('AuthorName', $info_array, $CRAYON_A);
173
- crayon_set_info_key('PluginURI', $info_array, $CRAYON_WEBSITE);
174
  }
175
 
176
  function crayon_set_info_key($key, $array, &$info) {
177
- if (array_key_exists($key, $array)) {
178
- $info = $array[$key];
179
- } else {
180
- return FALSE;
181
- }
182
  }
183
 
184
  function crayon_vargs(&$var, $default) {
185
- $var = isset($var) ? $var: $default;
186
  }
187
 
188
  // Checks if the input is a valid PHP file and matches the $valid filename
189
  function crayon_is_php_file($filepath, $valid) {
190
- $path = pathinfo(crayon_pf($filepath));
191
- return is_file($filepath) && $path['extension'] === 'php' && $path['filename'] === $valid;
192
  }
193
 
194
  // Stops the script if crayon_is_php_file() returns false or a remote path is given
195
  function crayon_die_if_not_php($filepath, $valid) {
196
- if (!crayon_is_php_file($filepath, $valid) || crayon_is_path_url($filepath)) {
197
- die("[ERROR] '$filepath' is not a valid PHP file for '$valid'");
198
- }
199
  }
200
 
201
  function crayon_is_path_url($path) {
202
- $parts = parse_url($path);
203
- return isset($parts['scheme']) && strlen($parts['scheme']) > 1;
204
  }
205
 
206
  // LANGUAGE TRANSLATION FUNCTIONS
207
 
208
  function crayon_load_plugin_textdomain() {
209
- if (function_exists('load_plugin_textdomain')) {
210
- load_plugin_textdomain(CRAYON_DOMAIN, false, CRAYON_DIR.CRAYON_TRANS_DIR);
211
- }
212
  }
213
 
214
  function crayon__($text) {
215
- if (function_exists('__')) {
216
- return __($text, CRAYON_DOMAIN);
217
- } else {
218
- return $text;
219
- }
220
  }
221
 
222
  function crayon_e($text) {
223
- if (function_exists('_e')) {
224
- _e($text, CRAYON_DOMAIN);
225
- } else {
226
- echo $text;
227
- }
228
  }
229
 
230
  function crayon_n($singular, $plural, $count) {
231
- if (function_exists('_n')) {
232
- return _n($singular, $plural, $count, CRAYON_DOMAIN);
233
- } else {
234
- return $count > 1 ? $plural : $singular;
235
- }
236
  }
237
 
238
  function crayon_x($text, $context) {
239
- if (function_exists('_x')) {
240
- return _x($text, $context, CRAYON_DOMAIN);
241
- } else {
242
- return $text;
243
- }
244
  }
245
 
246
  ?>
17
  $CRAYON_VERSION = '1.1.1';
18
  $CRAYON_DATE = '27th September, 2011';
19
  $CRAYON_AUTHOR = 'Aram Kocharyan';
20
+ $CRAYON_AUTHOR_SITE = 'http://aramk.com/';
21
  $CRAYON_DONATE = 'http://bit.ly/crayondonate';
22
+ $CRAYON_WEBSITE = 'http://aramk.com/projects/crayon-syntax-highlighter';
23
  $CRAYON_EMAIL = 'crayon.syntax@gmail.com';
24
  $CRAYON_TWITTER = 'http://twitter.com/crayonsyntax';
25
  $CRAYON_GIT = 'http://github.com/aramkocharyan/crayon-syntax-highlighter/';
73
  define('CRAYON_CSSJSON_JS', CRAYON_JS_DIR . 'cssjson.js');
74
  define('CRAYON_JS_FANCYBOX', CRAYON_JS_DIR . 'fancybox/jquery.fancybox.init.pack.js');
75
  define('CRAYON_CSS_FANCYBOX', CRAYON_JS_DIR . 'fancybox/jquery.fancybox.css');
 
 
76
  define('CRAYON_CSS_JQUERY_COLORPICKER', CRAYON_JS_DIR . 'jquery-colorpicker/jquery.colorpicker.css');
77
  define('CRAYON_JS_JQUERY_COLORPICKER', CRAYON_JS_DIR . 'jquery-colorpicker/jquery.colorpicker.js');
78
  define('CRAYON_JS_TINYCOLOR', CRAYON_JS_DIR . 'tinycolor-min.js');
79
  // TODO rename TE
80
+ define('CRAYON_TAG_EDITOR_JS', 'crayon_tag_editor.js');
81
+ define('CRAYON_TAG_EDITOR_PHP', CRAYON_TAG_EDITOR_PATH . 'crayon_tag_editor_wp.class.php');
82
  // TODO Fix these
83
  define('CRAYON_TINYMCE_JS', 'crayon_tinymce.js');
84
  define('CRAYON_QUICKTAGS_JS', 'crayon_qt.js');
133
 
134
  // Check for forwardslash/backslash in folder path to structure paths
135
  function crayon_s($url = '') {
136
+ $url = strval($url);
137
+ if (!empty($url) && !preg_match('#(\\\\|/)$#', $url)) {
138
+ return $url . '/';
139
+ } else if (empty($url)) {
140
+ return '/';
141
+ } else {
142
+ return $url;
143
+ }
144
  }
145
 
146
  // Returns path using forward slashes, slash added at the end
147
  function crayon_pf($url, $slash = TRUE) {
148
+ $url = trim(strval($url));
149
+ if ($slash) {
150
+ $url = crayon_s($url);
151
+ }
152
+ return str_replace('\\', '/', $url);
153
  }
154
+
155
  // Returns path using back slashes
156
  function crayon_pb($url) {
157
+ return str_replace('/', '\\', crayon_s(trim(strval($url))));
158
  }
159
 
160
  // Get/Set plugin information
161
  function crayon_set_info($info_array) {
162
+ global $CRAYON_VERSION, $CRAYON_DATE, $CRAYON_AUTHOR, $CRAYON_WEBSITE;
163
+ if (!is_array($info_array)) {
164
+ return;
165
+ }
166
+ crayon_set_info_key('Version', $info_array, $CRAYON_VERSION);
167
+ if (($date = @filemtime(CRAYON_README_FILE)) !== FALSE) {
168
+ $CRAYON_DATE = date("jS F, Y", $date);
169
+ }
170
+ crayon_set_info_key('AuthorName', $info_array, $CRAYON_A);
171
+ crayon_set_info_key('PluginURI', $info_array, $CRAYON_WEBSITE);
172
  }
173
 
174
  function crayon_set_info_key($key, $array, &$info) {
175
+ if (array_key_exists($key, $array)) {
176
+ $info = $array[$key];
177
+ } else {
178
+ return FALSE;
179
+ }
180
  }
181
 
182
  function crayon_vargs(&$var, $default) {
183
+ $var = isset($var) ? $var : $default;
184
  }
185
 
186
  // Checks if the input is a valid PHP file and matches the $valid filename
187
  function crayon_is_php_file($filepath, $valid) {
188
+ $path = pathinfo(crayon_pf($filepath));
189
+ return is_file($filepath) && $path['extension'] === 'php' && $path['filename'] === $valid;
190
  }
191
 
192
  // Stops the script if crayon_is_php_file() returns false or a remote path is given
193
  function crayon_die_if_not_php($filepath, $valid) {
194
+ if (!crayon_is_php_file($filepath, $valid) || crayon_is_path_url($filepath)) {
195
+ die("[ERROR] '$filepath' is not a valid PHP file for '$valid'");
196
+ }
197
  }
198
 
199
  function crayon_is_path_url($path) {
200
+ $parts = parse_url($path);
201
+ return isset($parts['scheme']) && strlen($parts['scheme']) > 1;
202
  }
203
 
204
  // LANGUAGE TRANSLATION FUNCTIONS
205
 
206
  function crayon_load_plugin_textdomain() {
207
+ if (function_exists('load_plugin_textdomain')) {
208
+ load_plugin_textdomain(CRAYON_DOMAIN, false, CRAYON_DIR . CRAYON_TRANS_DIR);
209
+ }
210
  }
211
 
212
  function crayon__($text) {
213
+ if (function_exists('__')) {
214
+ return __($text, CRAYON_DOMAIN);
215
+ } else {
216
+ return $text;
217
+ }
218
  }
219
 
220
  function crayon_e($text) {
221
+ if (function_exists('_e')) {
222
+ _e($text, CRAYON_DOMAIN);
223
+ } else {
224
+ echo $text;
225
+ }
226
  }
227
 
228
  function crayon_n($singular, $plural, $count) {
229
+ if (function_exists('_n')) {
230
+ return _n($singular, $plural, $count, CRAYON_DOMAIN);
231
+ } else {
232
+ return $count > 1 ? $plural : $singular;
233
+ }
234
  }
235
 
236
  function crayon_x($text, $context) {
237
+ if (function_exists('_x')) {
238
+ return _x($text, $context, CRAYON_DOMAIN);
239
+ } else {
240
+ return $text;
241
+ }
242
  }
243
 
244
  ?>
js/crayon.js CHANGED
@@ -54,6 +54,8 @@
54
  var CRAYON_TABLE = '.crayon-table';
55
  var CRAYON_LOADING = '.crayon-loading';
56
  var CRAYON_CODE = '.crayon-code';
 
 
57
  var CRAYON_NUMS = '.crayon-nums';
58
  var CRAYON_NUM = '.crayon-num';
59
  var CRAYON_LINE = '.crayon-line';
@@ -73,13 +75,16 @@
73
  CrayonSyntax = new function () {
74
  var base = this;
75
  var crayon = new Object();
 
 
76
  var currUID = 0;
77
 
78
  base.init = function () {
79
  if (typeof crayon == 'undefined') {
80
  crayon = new Object();
81
  }
82
-
 
83
  $(CRAYON_SYNTAX).each(function () {
84
  base.process(this);
85
  });
@@ -110,6 +115,8 @@
110
  var main = c.find(CRAYON_MAIN);
111
  var table = c.find(CRAYON_TABLE);
112
  var code = c.find(CRAYON_CODE);
 
 
113
  var nums = c.find(CRAYON_NUMS);
114
  var numsContent = c.find(CRAYON_NUMS_CONTENT);
115
  var numsButton = c.find(CRAYON_NUMS_BUTTON);
@@ -126,6 +133,8 @@
126
  crayon[uid].main = main;
127
  crayon[uid].table = table;
128
  crayon[uid].code = code;
 
 
129
  crayon[uid].nums = nums;
130
  crayon[uid].nums_content = numsContent;
131
  crayon[uid].numsButton = numsButton;
@@ -226,10 +235,10 @@
226
  main.css('z-index', 1);
227
 
228
  // Disable certain features for touchscreen devices
229
- touchscreen = (c.filter('[data-settings~="touchscreen"]').length != 0);
230
 
231
  // Used to hide info
232
- if (!touchscreen) {
233
  main.click(function () {
234
  crayonInfo(uid, '', false);
235
  });
@@ -263,7 +272,7 @@
263
  crayon[uid].toolbar_visible = true;
264
  crayon[uid].toolbarMouseover = false;
265
  // If a toolbar with mouseover was found
266
- if (toolbar.filter('[data-settings~="mouseover"]').length != 0 && !touchscreen) {
267
  crayon[uid].toolbarMouseover = true;
268
  crayon[uid].toolbar_visible = false;
269
 
@@ -298,12 +307,17 @@
298
  .mouseleave(function () {
299
  toggleToolbar(uid, false);
300
  });
301
- } else if (touchscreen) {
302
  toolbar.show();
303
  }
304
 
 
 
 
 
 
305
  // Plain show events
306
- if (plain.length != 0 && !touchscreen) {
307
  if (plain.filter('[data-settings~="dblclick"]').length != 0) {
308
  main.dblclick(function () {
309
  CrayonSyntax.togglePlain(uid);
@@ -330,7 +344,7 @@
330
  // Scrollbar show events
331
  var expand = c.filter('[data-settings~="expand"]').length != 0;
332
  // crayon[uid].mouse_expand = expand;
333
- if (!touchscreen && c.filter('[data-settings~="scroll-mouseover"]').length != 0) {
334
  // Disable on touchscreen devices and when set to mouseover
335
  main.css('overflow', 'hidden');
336
  plain.css('overflow', 'hidden');
@@ -424,14 +438,40 @@
424
  }
425
 
426
  settings.data = base.getAllCSS() + '<body class="crayon-popup-window" style="padding:0; margin:0;"><div class="' + clone.attr('class') +
427
- ' crayon-popup">' + removeCssInline(getHtmlString(code)) + '</div></body>';
428
  };
429
 
430
- var getHtmlString = function (object) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
431
  return $('<div>').append(object.clone()).remove().html();
432
  };
433
 
434
- var removeCssInline = function (string) {
435
  var reStyle = /style\s*=\s*"([^"]+)"/gmi;
436
  var match = null;
437
  while ((match = reStyle.exec(string)) != null) {
@@ -452,10 +492,10 @@
452
  filtered = css;
453
  } else {
454
  // Filter all others for Crayon CSS
455
- filtered = css.filter('[href*="crayon-syntax-highlighter"]');
456
  }
457
  filtered.each(function () {
458
- var string = getHtmlString($(this));
459
  css_str += string;
460
  });
461
  return css_str;
@@ -471,8 +511,8 @@
471
  base.togglePlain(uid, true, true);
472
  toggleToolbar(uid, true);
473
 
474
- key = crayon[uid].mac ? '\u2318' : 'CTRL';
475
- var text = crayon[uid].copy_button.attr('data-text');
476
  text = text.replace(/%s/, key + '+C');
477
  text = text.replace(/%s/, key + '+V');
478
  crayonInfo(uid, text);
@@ -746,10 +786,13 @@
746
  crayon[uid].wrapTimes = 0;
747
  clearInterval(crayon[uid].wrapTimer);
748
  crayon[uid].wrapTimer = setInterval(function () {
749
- reconsileLines(uid);
750
- crayon[uid].wrapTimes++;
751
- if (crayon[uid].wrapTimes == 5) {
752
- clearInterval(crayon[uid].wrapTimer);
 
 
 
753
  }
754
  }, 200);
755
  };
@@ -837,6 +880,10 @@
837
  return makeUID(uid);
838
  } else if (!crayon[uid].toolbarMouseover) {
839
  return;
 
 
 
 
840
  }
841
  var toolbar = crayon[uid].toolbar;
842
 
@@ -1040,17 +1087,19 @@
1040
  $(CRAYON_NUM, crayon[uid]).each(function () {
1041
  var lineID = $(this).attr('data-line');
1042
  var line = $('#' + lineID);
 
1043
  if (crayon[uid].wrapped) {
1044
  line.css('height', '');
1045
- $(this).css('height', line.height());
 
1046
  // TODO toolbar should overlay title if needed
1047
  } else {
1048
- var height = line.attr('data-height');
1049
  height = height ? height : '';
1050
  line.css('height', height);
1051
- $(this).css('height', height);
1052
  //line.css('height', line.css('line-height'));
1053
  }
 
1054
  });
1055
  };
1056
 
54
  var CRAYON_TABLE = '.crayon-table';
55
  var CRAYON_LOADING = '.crayon-loading';
56
  var CRAYON_CODE = '.crayon-code';
57
+ var CRAYON_TITLE = '.crayon-title';
58
+ var CRAYON_TOOLS = '.crayon-tools';
59
  var CRAYON_NUMS = '.crayon-nums';
60
  var CRAYON_NUM = '.crayon-num';
61
  var CRAYON_LINE = '.crayon-line';
75
  CrayonSyntax = new function () {
76
  var base = this;
77
  var crayon = new Object();
78
+ var settings;
79
+ var strings;
80
  var currUID = 0;
81
 
82
  base.init = function () {
83
  if (typeof crayon == 'undefined') {
84
  crayon = new Object();
85
  }
86
+ settings = CrayonSyntaxSettings;
87
+ strings = CrayonSyntaxStrings;
88
  $(CRAYON_SYNTAX).each(function () {
89
  base.process(this);
90
  });
115
  var main = c.find(CRAYON_MAIN);
116
  var table = c.find(CRAYON_TABLE);
117
  var code = c.find(CRAYON_CODE);
118
+ var title = c.find(CRAYON_TITLE);
119
+ var tools = c.find(CRAYON_TOOLS);
120
  var nums = c.find(CRAYON_NUMS);
121
  var numsContent = c.find(CRAYON_NUMS_CONTENT);
122
  var numsButton = c.find(CRAYON_NUMS_BUTTON);
133
  crayon[uid].main = main;
134
  crayon[uid].table = table;
135
  crayon[uid].code = code;
136
+ crayon[uid].title = title;
137
+ crayon[uid].tools = tools;
138
  crayon[uid].nums = nums;
139
  crayon[uid].nums_content = numsContent;
140
  crayon[uid].numsButton = numsButton;
235
  main.css('z-index', 1);
236
 
237
  // Disable certain features for touchscreen devices
238
+ crayon.touchscreen = (c.filter('[data-settings~="touchscreen"]').length != 0);
239
 
240
  // Used to hide info
241
+ if (!crayon.touchscreen) {
242
  main.click(function () {
243
  crayonInfo(uid, '', false);
244
  });
272
  crayon[uid].toolbar_visible = true;
273
  crayon[uid].toolbarMouseover = false;
274
  // If a toolbar with mouseover was found
275
+ if (toolbar.filter('[data-settings~="mouseover"]').length != 0 && !crayon.touchscreen) {
276
  crayon[uid].toolbarMouseover = true;
277
  crayon[uid].toolbar_visible = false;
278
 
307
  .mouseleave(function () {
308
  toggleToolbar(uid, false);
309
  });
310
+ } else if (crayon.touchscreen) {
311
  toolbar.show();
312
  }
313
 
314
+ // Minimize
315
+ if (c.filter('[data-settings~="minimize"]').length == 0) {
316
+ base.minimize(uid);
317
+ }
318
+
319
  // Plain show events
320
+ if (plain.length != 0 && !crayon.touchscreen) {
321
  if (plain.filter('[data-settings~="dblclick"]').length != 0) {
322
  main.dblclick(function () {
323
  CrayonSyntax.togglePlain(uid);
344
  // Scrollbar show events
345
  var expand = c.filter('[data-settings~="expand"]').length != 0;
346
  // crayon[uid].mouse_expand = expand;
347
+ if (!crayon.touchscreen && c.filter('[data-settings~="scroll-mouseover"]').length != 0) {
348
  // Disable on touchscreen devices and when set to mouseover
349
  main.css('overflow', 'hidden');
350
  plain.css('overflow', 'hidden');
438
  }
439
 
440
  settings.data = base.getAllCSS() + '<body class="crayon-popup-window" style="padding:0; margin:0;"><div class="' + clone.attr('class') +
441
+ ' crayon-popup">' + base.removeCssInline(base.getHtmlString(code)) + '</div></body>';
442
  };
443
 
444
+ base.minimize = function (uid) {
445
+ var button = $('<div class="crayon-minimize crayon-button"><div>');
446
+ crayon[uid].tools.append(button);
447
+ // TODO translate
448
+ crayon[uid].origTitle = crayon[uid].title.html();
449
+ if (!crayon[uid].origTitle) {
450
+ crayon[uid].title.html(strings.minimize);
451
+ };
452
+ var cls = 'crayon-minimized';
453
+ var show = function () {
454
+ crayon[uid].toolbarPreventHide = false;
455
+ button.remove();
456
+ crayon[uid].removeClass(cls);
457
+ crayon[uid].title.html(crayon[uid].origTitle);
458
+ var toolbar = crayon[uid].toolbar;
459
+ if (toolbar.filter('[data-settings~="never-show"]').length != 0) {
460
+ toolbar.remove();
461
+ }
462
+ };
463
+ crayon[uid].toolbar.click(show);
464
+ button.click(show);
465
+ crayon[uid].addClass(cls);
466
+ crayon[uid].toolbarPreventHide = true;
467
+ toggleToolbar(uid, undefined, undefined, 0);
468
+ }
469
+
470
+ base.getHtmlString = function (object) {
471
  return $('<div>').append(object.clone()).remove().html();
472
  };
473
 
474
+ base.removeCssInline = function (string) {
475
  var reStyle = /style\s*=\s*"([^"]+)"/gmi;
476
  var match = null;
477
  while ((match = reStyle.exec(string)) != null) {
492
  filtered = css;
493
  } else {
494
  // Filter all others for Crayon CSS
495
+ filtered = css.filter('[href*="crayon-syntax-highlighter"], [href*="min/"]');
496
  }
497
  filtered.each(function () {
498
+ var string = base.getHtmlString($(this));
499
  css_str += string;
500
  });
501
  return css_str;
511
  base.togglePlain(uid, true, true);
512
  toggleToolbar(uid, true);
513
 
514
+ var key = crayon[uid].mac ? '\u2318' : 'CTRL';
515
+ var text = strings.copy;
516
  text = text.replace(/%s/, key + '+C');
517
  text = text.replace(/%s/, key + '+V');
518
  crayonInfo(uid, text);
786
  crayon[uid].wrapTimes = 0;
787
  clearInterval(crayon[uid].wrapTimer);
788
  crayon[uid].wrapTimer = setInterval(function () {
789
+ if (crayon[uid].is(':visible')) {
790
+ // XXX if hidden the height can't be determined
791
+ reconsileLines(uid);
792
+ crayon[uid].wrapTimes++;
793
+ if (crayon[uid].wrapTimes == 5) {
794
+ clearInterval(crayon[uid].wrapTimer);
795
+ }
796
  }
797
  }, 200);
798
  };
880
  return makeUID(uid);
881
  } else if (!crayon[uid].toolbarMouseover) {
882
  return;
883
+ } else if (show == false && crayon[uid].toolbarPreventHide) {
884
+ return;
885
+ } else if (crayon.touchscreen) {
886
+ return;
887
  }
888
  var toolbar = crayon[uid].toolbar;
889
 
1087
  $(CRAYON_NUM, crayon[uid]).each(function () {
1088
  var lineID = $(this).attr('data-line');
1089
  var line = $('#' + lineID);
1090
+ var height = null;
1091
  if (crayon[uid].wrapped) {
1092
  line.css('height', '');
1093
+ height = line.height();
1094
+ height = height ? height : '';
1095
  // TODO toolbar should overlay title if needed
1096
  } else {
1097
+ height = line.attr('data-height');
1098
  height = height ? height : '';
1099
  line.css('height', height);
 
1100
  //line.css('height', line.css('line-height'));
1101
  }
1102
+ $(this).css('height', height);
1103
  });
1104
  };
1105
 
js/crayon_admin.js CHANGED
@@ -6,7 +6,7 @@
6
  var base = this;
7
 
8
  // Preview
9
- var preview, previewWrapper, preview_info, preview_cbox, preview_delay_timer, preview_get, preview_loaded;
10
  // The DOM object ids that trigger a preview update
11
  var preview_obj_names = [];
12
  // The jQuery objects for these objects
@@ -19,12 +19,13 @@
19
  // Error
20
  var msg_cbox, msg;
21
  // Log
22
- var log_button, log_text;
23
 
24
  var main_wrap, theme_editor_wrap, theme_editor_loading, theme_editor_edit_button, theme_editor_create_button, theme_editor_duplicate_button, theme_editor_delete_button, theme_editor_submit_button;
25
  var theme_select, theme_info, theme_ver, theme_author, theme_desc;
26
 
27
  var settings = null;
 
28
  var adminSettings = null;
29
  var util = null;
30
 
@@ -32,8 +33,14 @@
32
  CrayonUtil.log('admin init');
33
  settings = CrayonSyntaxSettings;
34
  adminSettings = CrayonAdminSettings;
 
35
  util = CrayonUtil;
36
 
 
 
 
 
 
37
  // Wraps
38
  main_wrap = $('#crayon-main-wrap');
39
  theme_editor_wrap = $('#crayon-theme-editor-wrap');
@@ -89,6 +96,7 @@
89
  // Preview
90
  preview = $('#crayon-live-preview');
91
  previewWrapper = $('#crayon-live-preview-wrapper');
 
92
  preview_info = $('#crayon-preview-info');
93
  preview_cbox = util.cssElem('#preview');
94
  if (preview.length != 0) {
@@ -123,8 +131,7 @@
123
  $('#crayon-settings-form input').live(
124
  'focusin focusout mouseup',
125
  function () {
126
- $('#crayon-settings-form')
127
- .data('lastSelected', $(this));
128
  });
129
  $('#crayon-settings-form')
130
  .submit(
@@ -182,26 +189,60 @@
182
  var hide_log = log_button.attr('hide_txt');
183
  clog = $('#crayon-log');
184
  log_button.val(show_log);
185
- log_button
186
- .click(function () {
187
- clog.width(log_wrapper.width());
188
- clog.toggle();
189
- // Scrolls content
190
- clog.scrollTop(log_text.height());
191
- var text = (log_button.val() == show_log ? hide_log
192
- : show_log);
193
- log_button.val(text);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
194
  });
 
 
 
 
 
 
195
  };
196
 
197
  /* Whenever a control changes preview */
198
- base.preview_update = function () {
199
  var val = 0;
200
  var obj;
201
- var getVars = {
202
  action: 'crayon-show-preview',
203
  theme: adminSettings.currTheme
204
- };
 
 
 
205
  for (var i = 0; i < preview_obj_names.length; i++) {
206
  obj = preview_objs[i];
207
  if (obj.attr('type') == 'checkbox') {
@@ -209,7 +250,7 @@
209
  } else {
210
  val = obj.val();
211
  }
212
- getVars[preview_obj_names[i]] = CrayonUtil.escape(val);
213
  }
214
 
215
  // Load Preview
@@ -352,7 +393,6 @@
352
  };
353
 
354
 
355
-
356
  base.refresh_theme_info = function (callback) {
357
  adminSettings.currTheme = theme_select.val();
358
  adminSettings.currThemeName = theme_select.find('option:selected').attr('data-value');
@@ -435,42 +475,6 @@
435
  callback();
436
  }
437
  });
438
-
439
- // CrayonSyntaxThemeEditor.
440
- //
441
- // $.ajax({
442
- // url: adminSettings.currThemeURL,
443
- // success: function (data) {
444
- // adminSettings.curr_theme_str = data;
445
- // var fields = {
446
- // 'Version': theme_ver,
447
- // 'Author': theme_author,
448
- // 'URL': null,
449
- // 'Description': theme_desc
450
- // };
451
- // for (field in fields) {
452
- // var re = new RegExp('(?:^|[\\r\\n]\\s*)\\b' + field
453
- // + '\\s*:\\s*([^\\r\\n]+)', 'gmi');
454
- // var match = re.exec(data);
455
- // var val = fields[field];
456
- // if (match) {
457
- // if (val != null) {
458
- // val.html(match[1].escape().linkify('_blank'));
459
- // } else if (field == 'Author URI') {
460
- // theme_author.html('<a href="' + match[1]
461
- // + '" target="_blank">'
462
- // + theme_author.text() + '</a>');
463
- // }
464
- // } else if (val != null) {
465
- // val.text('N/A');
466
- // }
467
- // }
468
- // if (callback) {
469
- // callback();
470
- // }
471
- // },
472
- // cache: false
473
- // });
474
  };
475
 
476
  base.show_theme_editor = function (button, editing) {
@@ -494,13 +498,13 @@
494
  }
495
  CrayonSyntaxThemeEditor.show(function () {
496
  base.show_theme_editor_now(button);
497
- }, preview);
498
  });
499
  return false;
500
  };
501
 
502
- base.resetPreview = function() {
503
- previewWrapper.append(preview);
504
  CrayonSyntaxThemeEditor.removeStyle();
505
  };
506
 
@@ -511,13 +515,64 @@
511
  button.html(button.attr('loaded'));
512
  };
513
 
514
- // base.delete_theme = function () {
515
- // adminSettings.curr_theme
516
- // };
 
 
 
 
 
 
 
 
 
 
 
 
517
 
518
- // base.duplicate_theme = function () {
519
- //
520
- // };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
521
 
522
  };
523
 
6
  var base = this;
7
 
8
  // Preview
9
+ var preview, previewWrapper, previewInner, preview_info, preview_cbox, preview_delay_timer, preview_get, preview_loaded;
10
  // The DOM object ids that trigger a preview update
11
  var preview_obj_names = [];
12
  // The jQuery objects for these objects
19
  // Error
20
  var msg_cbox, msg;
21
  // Log
22
+ var log_button, log_text, log_wrapper, change_button, change_code, plain, copy, clog, help;
23
 
24
  var main_wrap, theme_editor_wrap, theme_editor_loading, theme_editor_edit_button, theme_editor_create_button, theme_editor_duplicate_button, theme_editor_delete_button, theme_editor_submit_button;
25
  var theme_select, theme_info, theme_ver, theme_author, theme_desc;
26
 
27
  var settings = null;
28
+ var strings = null;
29
  var adminSettings = null;
30
  var util = null;
31
 
33
  CrayonUtil.log('admin init');
34
  settings = CrayonSyntaxSettings;
35
  adminSettings = CrayonAdminSettings;
36
+ strings = CrayonAdminStrings;
37
  util = CrayonUtil;
38
 
39
+ // Dialogs
40
+ var dialogFunction = adminSettings.dialogFunction;
41
+ dialogFunction = $.fn[dialogFunction] ? dialogFunction : 'dialog';
42
+ $.fn.crayonDialog = $.fn[dialogFunction];
43
+
44
  // Wraps
45
  main_wrap = $('#crayon-main-wrap');
46
  theme_editor_wrap = $('#crayon-theme-editor-wrap');
96
  // Preview
97
  preview = $('#crayon-live-preview');
98
  previewWrapper = $('#crayon-live-preview-wrapper');
99
+ previewInner = $('#crayon-live-preview-inner');
100
  preview_info = $('#crayon-preview-info');
101
  preview_cbox = util.cssElem('#preview');
102
  if (preview.length != 0) {
131
  $('#crayon-settings-form input').live(
132
  'focusin focusout mouseup',
133
  function () {
134
+ $('#crayon-settings-form').data('lastSelected', $(this));
 
135
  });
136
  $('#crayon-settings-form')
137
  .submit(
189
  var hide_log = log_button.attr('hide_txt');
190
  clog = $('#crayon-log');
191
  log_button.val(show_log);
192
+ log_button.click(function () {
193
+ clog.width(log_wrapper.width());
194
+ clog.toggle();
195
+ // Scrolls content
196
+ clog.scrollTop(log_text.height());
197
+ var text = (log_button.val() == show_log ? hide_log
198
+ : show_log);
199
+ log_button.val(text);
200
+ });
201
+
202
+ change_button = $('#crayon-change-code');
203
+ change_button.click(function () {
204
+ base.createDialog({
205
+ title: strings.changeCode,
206
+ html: '<textarea id="crayon-change-code-text"></textarea>',
207
+ desc: null,
208
+ value: '',
209
+ options: {
210
+ buttons: {
211
+ "OK": function () {
212
+ change_code = $('#crayon-change-code-text').val();
213
+ base.preview_update();
214
+ $(this).crayonDialog('close');
215
+ },
216
+ "Cancel": function () {
217
+ $(this).crayonDialog('close');
218
+ }
219
+ },
220
+ open: function () {
221
+ if (change_code) {
222
+ $('#crayon-change-code-text').val(change_code);
223
+ }
224
+ }
225
+ }
226
  });
227
+ return false;
228
+ });
229
+ $('#crayon-fallback-lang').change(function () {
230
+ change_code = null;
231
+ base.preview_update();
232
+ });
233
  };
234
 
235
  /* Whenever a control changes preview */
236
+ base.preview_update = function (vars) {
237
  var val = 0;
238
  var obj;
239
+ var getVars = $.extend({
240
  action: 'crayon-show-preview',
241
  theme: adminSettings.currTheme
242
+ }, vars);
243
+ if (change_code) {
244
+ getVars[adminSettings.sampleCode] = change_code;
245
+ }
246
  for (var i = 0; i < preview_obj_names.length; i++) {
247
  obj = preview_objs[i];
248
  if (obj.attr('type') == 'checkbox') {
250
  } else {
251
  val = obj.val();
252
  }
253
+ getVars[preview_obj_names[i]] = val;//CrayonUtil.escape(val);
254
  }
255
 
256
  // Load Preview
393
  };
394
 
395
 
 
396
  base.refresh_theme_info = function (callback) {
397
  adminSettings.currTheme = theme_select.val();
398
  adminSettings.currThemeName = theme_select.find('option:selected').attr('data-value');
475
  callback();
476
  }
477
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
478
  };
479
 
480
  base.show_theme_editor = function (button, editing) {
498
  }
499
  CrayonSyntaxThemeEditor.show(function () {
500
  base.show_theme_editor_now(button);
501
+ }, previewInner);
502
  });
503
  return false;
504
  };
505
 
506
+ base.resetPreview = function () {
507
+ previewWrapper.append(previewInner);
508
  CrayonSyntaxThemeEditor.removeStyle();
509
  };
510
 
515
  button.html(button.attr('loaded'));
516
  };
517
 
518
+ // JQUERY UI DIALOGS
519
+
520
+ base.createAlert = function (args) {
521
+ args = $.extend({
522
+ title: strings.alert,
523
+ options: {
524
+ buttons: {
525
+ "OK": function () {
526
+ $(this).crayonDialog('close');
527
+ }
528
+ }
529
+ }
530
+ }, args);
531
+ base.createDialog(args);
532
+ };
533
 
534
+ base.createDialog = function (args) {
535
+ var defaultArgs = {
536
+ yesLabel: strings.yes,
537
+ noLabel: strings.no,
538
+ title: strings.confirm
539
+ };
540
+ args = $.extend(defaultArgs, args);
541
+ var options = {
542
+ modal: true, title: args.title, zIndex: 10000, autoOpen: true,
543
+ width: 'auto', resizable: false,
544
+ buttons: {
545
+ },
546
+ dialogClass: 'wp-dialog',
547
+ selectedButtonIndex: 1, // starts from 1
548
+ close: function (event, ui) {
549
+ $(this).remove();
550
+ }
551
+ };
552
+ options.buttons[args.yesLabel] = function () {
553
+ if (args.yes) {
554
+ args.yes();
555
+ }
556
+ $(this).crayonDialog('close');
557
+ };
558
+ options.buttons[args.noLabel] = function () {
559
+ if (args.no) {
560
+ args.no();
561
+ }
562
+ $(this).crayonDialog('close');
563
+ };
564
+ options = $.extend(options, args.options);
565
+ options.open = function () {
566
+ $('.ui-button').addClass('button-primary');
567
+ $(this).parent().find('button:nth-child(' + options.selectedButtonIndex + ')').focus();
568
+ if (args.options.open) {
569
+ args.options.open();
570
+ }
571
+ };
572
+ $('<div></div>').appendTo('body').html(args.html).crayonDialog(options);
573
+ // Can be modified afterwards
574
+ return args;
575
+ };
576
 
577
  };
578
 
js/cssjson.js CHANGED
@@ -1,6 +1,6 @@
1
  /**
2
- * CSS-JSON Converter for JavaScript, v.2.0 By Aram Kocharyan,
3
- * http://ak.net84.net/ Converts CSS to JSON and back.
4
  */
5
 
6
  var CSSJSON = new function() {
1
  /**
2
+ * CSS-JSON Converter for JavaScript, v.2.0 By Aram Kocharyan, http://aramk.com/
3
+ * Converts CSS to JSON and back.
4
  */
5
 
6
  var CSSJSON = new function() {
js/fancybox/blank.gif ADDED
Binary file
js/fancybox/jquery.fancybox.init.pack.js CHANGED
@@ -9,6 +9,6 @@
9
  * Copyright 2012 Janis Skarnelis - janis@fancyapps.com
10
  *
11
  * Modified by Aram Kocharyan:
12
- * http://ak.net84.net/crayon/initialising-fancybox-with-custom-objects
13
  */
14
  window.fancyboxInit=function(k,n,i,g){var d=i(k),a=i(n),o=i[g]=function(){o.open.apply(this,arguments)},c=null,e=n.createTouch!==undefined,j=function(p){return p&&p.hasOwnProperty&&p instanceof i},b=function(p){return p&&i.type(p)==="string"},l=function(p){return b(p)&&p.indexOf("%")>0},h=function(p){return(p&&!(p.style.overflow&&p.style.overflow==="hidden")&&((p.clientWidth&&p.scrollWidth>p.clientWidth)||(p.clientHeight&&p.scrollHeight>p.clientHeight)))},m=function(r,q){var p=parseInt(r,10)||0;if(q&&l(r)){p=o.getViewport()[q]/100*p}return Math.ceil(p)},f=function(p,q){return m(p,q)+"px"};i.extend(o,{version:"2.1.3",defaults:{padding:15,margin:20,width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,autoSize:true,autoHeight:false,autoWidth:false,autoResize:true,autoCenter:!e,fitToView:true,aspectRatio:false,topRatio:0.5,leftRatio:0.5,scrolling:"auto",wrapCSS:"",arrows:true,closeBtn:true,closeClick:false,nextClick:false,mouseWheel:true,autoPlay:false,playSpeed:3000,preload:3,modal:false,loop:true,ajax:{dataType:"html",headers:{"X-fancyBox":true}},iframe:{scrolling:"auto",preload:true},swf:{wmode:"transparent",allowfullscreen:"true",allowscriptaccess:"always"},keys:{next:{13:"left",34:"up",39:"left",40:"up"},prev:{8:"right",33:"down",37:"right",38:"down"},close:[27],play:[32],toggle:[70]},direction:{next:"left",prev:"right"},scrollOutside:true,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',image:'<img class="fancybox-image" src="{href}" alt="" />',iframe:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen'+(i.browser.msie?' allowtransparency="true"':"")+"></iframe>",error:'<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>',closeBtn:'<a title="Close" class="fancybox-item fancybox-close" href="javascript:;"></a>',next:'<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',prev:'<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>'},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:true,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:true,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:true,title:true},onCancel:i.noop,beforeLoad:i.noop,afterLoad:i.noop,beforeShow:i.noop,afterShow:i.noop,beforeChange:i.noop,beforeClose:i.noop,afterClose:i.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:false,isOpen:false,isOpened:false,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:false},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(q,p){if(!q){return}if(!i.isPlainObject(p)){p={}}if(false===o.close(true)){return}if(!i.isArray(q)){q=j(q)?i(q).get():[q]}i.each(q,function(v,w){var u={},r,z,x,y,t,A,s;if(i.type(w)==="object"){if(w.nodeType){w=i(w)}if(j(w)){u={href:w.data("fancybox-href")||w.attr("href"),title:w.data("fancybox-title")||w.attr("title"),isDom:true,element:w};if(i.metadata){i.extend(true,u,w.metadata())}}else{u=w}}r=p.href||u.href||(b(w)?w:null);z=p.title!==undefined?p.title:u.title||"";x=p.content||u.content;y=x?"html":(p.type||u.type);if(!y&&u.isDom){y=w.data("fancybox-type");if(!y){t=w.prop("class").match(/fancybox\.(\w+)/);y=t?t[1]:null}}if(b(r)){if(!y){if(o.isImage(r)){y="image"}else{if(o.isSWF(r)){y="swf"}else{if(r.charAt(0)==="#"){y="inline"}else{if(b(w)){y="html";x=w}}}}}if(y==="ajax"){A=r.split(/\s+/,2);r=A.shift();s=A.shift()}}if(!x){if(y==="inline"){if(r){x=i(b(r)?r.replace(/.*(?=#[^\s]+$)/,""):r)}else{if(u.isDom){x=w}}}else{if(y==="html"){x=r}else{if(!y&&!r&&u.isDom){y="inline";x=w}}}}i.extend(u,{href:r,type:y,content:x,title:z,selector:s});q[v]=u});o.opts=i.extend(true,{},o.defaults,p);if(p.keys!==undefined){o.opts.keys=p.keys?i.extend({},o.defaults.keys,p.keys):false}o.group=q;return o._start(o.opts.index)},cancel:function(){var p=o.coming;if(!p||false===o.trigger("onCancel")){return}o.hideLoading();if(o.ajaxLoad){o.ajaxLoad.abort()}o.ajaxLoad=null;if(o.imgPreload){o.imgPreload.onload=o.imgPreload.onerror=null}if(p.wrap){p.wrap.stop(true,true).trigger("onReset").remove()}o.coming=null;if(!o.current){o._afterZoomOut(p)}},close:function(p){o.cancel();if(false===o.trigger("beforeClose")){return}o.unbindEvents();if(!o.isActive){return}if(!o.isOpen||p===true){i(".fancybox-wrap").stop(true).trigger("onReset").remove();o._afterZoomOut()}else{o.isOpen=o.isOpened=false;o.isClosing=true;i(".fancybox-item, .fancybox-nav").remove();o.wrap.stop(true,true).removeClass("fancybox-opened");o.transitions[o.current.closeMethod]()}},play:function(r){var p=function(){clearTimeout(o.player.timer)},t=function(){p();if(o.current&&o.player.isActive){o.player.timer=setTimeout(o.next,o.current.playSpeed)}},q=function(){p();i("body").unbind(".player");o.player.isActive=false;o.trigger("onPlayEnd")},s=function(){if(o.current&&(o.current.loop||o.current.index<o.group.length-1)){o.player.isActive=true;i("body").bind({"afterShow.player onUpdate.player":t,"onCancel.player beforeClose.player":q,"beforeLoad.player":p});t();o.trigger("onPlayStart")}};if(r===true||(!o.player.isActive&&r!==false)){s()}else{q()}},next:function(q){var p=o.current;if(p){if(!b(q)){q=p.direction.next}o.jumpto(p.index+1,q,"next")}},prev:function(q){var p=o.current;if(p){if(!b(q)){q=p.direction.prev}o.jumpto(p.index-1,q,"prev")}},jumpto:function(q,s,p){var r=o.current;if(!r){return}q=m(q);o.direction=s||r.direction[(q>=r.index?"next":"prev")];o.router=p||"jumpto";if(r.loop){if(q<0){q=r.group.length+(q%r.group.length)}q=q%r.group.length}if(r.group[q]!==undefined){o.cancel();o._start(q)}},reposition:function(s,p){var r=o.current,q=r?r.wrap:null,t;if(q){t=o._getPosition(p);if(s&&s.type==="scroll"){delete t.position;q.stop(true,true).animate(t,200)}else{q.css(t);r.pos=i.extend({},r.dim,t)}}},update:function(r){var p=(r&&r.type),q=!p||p==="orientationchange";if(q){clearTimeout(c);c=null}if(!o.isOpen||c){return}c=setTimeout(function(){var s=o.current;if(!s||o.isClosing){return}o.wrap.removeClass("fancybox-tmp");if(q||p==="load"||(p==="resize"&&s.autoResize)){o._setDimension()}if(!(p==="scroll"&&s.canShrink)){o.reposition(r)}o.trigger("onUpdate");c=null},(q&&!e?0:300))},toggle:function(p){if(o.isOpen){o.current.fitToView=i.type(p)==="boolean"?p:!o.current.fitToView;if(e){o.wrap.removeAttr("style").addClass("fancybox-tmp");o.trigger("onUpdate")}o.update()}},hideLoading:function(){a.unbind(".loading");i("#fancybox-loading").remove()},showLoading:function(){var q,p;o.hideLoading();q=i('<div id="fancybox-loading"><div></div></div>').click(o.cancel).appendTo("body");a.bind("keydown.loading",function(r){if((r.which||r.keyCode)===27){r.preventDefault();o.cancel()}});if(!o.defaults.fixed){p=o.getViewport();q.css({position:"absolute",top:(p.h*0.5)+p.y,left:(p.w*0.5)+p.x})}},getViewport:function(){var p=(o.current&&o.current.locked)||false,q={x:d.scrollLeft(),y:d.scrollTop()};if(p){q.w=p[0].clientWidth;q.h=p[0].clientHeight}else{q.w=e&&k.innerWidth?k.innerWidth:d.width();q.h=e&&k.innerHeight?k.innerHeight:d.height()}return q},unbindEvents:function(){if(o.wrap&&j(o.wrap)){o.wrap.unbind(".fb")}a.unbind(".fb");d.unbind(".fb")},bindEvents:function(){var q=o.current,p;if(!q){return}d.bind("orientationchange.fb"+(e?"":" resize.fb")+(q.autoCenter&&!q.locked?" scroll.fb":""),o.update);p=q.keys;if(p){a.bind("keydown.fb",function(t){var r=t.which||t.keyCode,s=t.target||t.srcElement;if(r===27&&o.coming){return false}if(!t.ctrlKey&&!t.altKey&&!t.shiftKey&&!t.metaKey&&!(s&&(s.type||i(s).is("[contenteditable]")))){i.each(p,function(u,v){if(q.group.length>1&&v[r]!==undefined){o[u](v[r]);t.preventDefault();return false}if(i.inArray(r,v)>-1){o[u]();t.preventDefault();return false}})}})}if(i.fn.mousewheel&&q.mouseWheel){o.wrap.bind("mousewheel.fb",function(w,x,s,r){var v=w.target||null,t=i(v),u=false;while(t.length){if(u||t.is(".fancybox-skin")||t.is(".fancybox-wrap")){break}u=h(t[0]);t=i(t).parent()}if(x!==0&&!u){if(o.group.length>1&&!q.canShrink){if(r>0||s>0){o.prev(r>0?"down":"left")}else{if(r<0||s<0){o.next(r<0?"up":"right")}}w.preventDefault()}}})}},trigger:function(q,s){var p,r=s||o.coming||o.current;if(!r){return}if(i.isFunction(r[q])){p=r[q].apply(r,Array.prototype.slice.call(arguments,1))}if(p===false){return false}if(r.helpers){i.each(r.helpers,function(u,t){if(t&&o.helpers[u]&&i.isFunction(o.helpers[u][q])){t=i.extend(true,{},o.helpers[u].defaults,t);o.helpers[u][q](t,r)}})}i.event.trigger(q+".fb")},isImage:function(p){return b(p)&&p.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp)((\?|#).*)?$)/i)},isSWF:function(p){return b(p)&&p.match(/\.(swf)((\?|#).*)?$/i)},_start:function(q){var r={},v,p,s,t,u;q=m(q);v=o.group[q]||null;if(!v){return false}r=i.extend(true,{},o.opts,v);t=r.margin;u=r.padding;if(i.type(t)==="number"){r.margin=[t,t,t,t]}if(i.type(u)==="number"){r.padding=[u,u,u,u]}if(r.modal){i.extend(true,r,{closeBtn:false,closeClick:false,nextClick:false,arrows:false,mouseWheel:false,keys:null,helpers:{overlay:{closeClick:false}}})}if(r.autoSize){r.autoWidth=r.autoHeight=true}if(r.width==="auto"){r.autoWidth=true}if(r.height==="auto"){r.autoHeight=true}r.group=o.group;r.index=q;o.coming=r;if(false===o.trigger("beforeLoad")){o.coming=null;return}s=r.type;p=r.href;if(!s){o.coming=null;if(o.current&&o.router&&o.router!=="jumpto"){o.current.index=q;return o[o.router](o.direction)}return false}o.isActive=true;if(s==="image"||s==="swf"){r.autoHeight=r.autoWidth=false;r.scrolling="visible"}if(s==="image"){r.aspectRatio=true}if(s==="iframe"&&e){r.scrolling="scroll"}r.wrap=i(r.tpl.wrap).addClass("fancybox-"+(e?"mobile":"desktop")+" fancybox-type-"+s+" fancybox-tmp "+r.wrapCSS).appendTo(r.parent||"body");i.extend(r,{skin:i(".fancybox-skin",r.wrap),outer:i(".fancybox-outer",r.wrap),inner:i(".fancybox-inner",r.wrap)});i.each(["Top","Right","Bottom","Left"],function(x,w){r.skin.css("padding"+w,f(r.padding[x]))});o.trigger("onReady");if(s==="inline"||s==="html"){if(!r.content||!r.content.length){return o._error("content")}}else{if(!p){return o._error("href")}}if(s==="image"){o._loadImage()}else{if(s==="ajax"){o._loadAjax()}else{if(s==="iframe"){o._loadIframe()}else{o._afterLoad()}}}},_error:function(p){i.extend(o.coming,{type:"html",autoWidth:true,autoHeight:true,minWidth:0,minHeight:0,scrolling:"no",hasError:p,content:o.coming.tpl.error});o._afterLoad()},_loadImage:function(){var p=o.imgPreload=new Image();p.onload=function(){this.onload=this.onerror=null;o.coming.width=this.width;o.coming.height=this.height;o._afterLoad()};p.onerror=function(){this.onload=this.onerror=null;o._error("image")};p.src=o.coming.href;if(p.complete!==true){o.showLoading()}},_loadAjax:function(){var p=o.coming;o.showLoading();o.ajaxLoad=i.ajax(i.extend({},p.ajax,{url:p.href,error:function(q,r){if(o.coming&&r!=="abort"){o._error("ajax",q)}else{o.hideLoading()}},success:function(q,r){if(r==="success"){p.content=q;o._afterLoad()}}}))},_loadIframe:function(){var p=o.coming,q=i(p.tpl.iframe.replace(/\{rnd\}/g,new Date().getTime())).attr("scrolling",e?"auto":p.iframe.scrolling).attr("src",p.href);i(p.wrap).bind("onReset",function(){try{i(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(r){}});if(p.iframe.preload){o.showLoading();q.one("load",function(){i(this).data("ready",1);if(!e){i(this).bind("load.fb",o.update)}i(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show();o._afterLoad()})}p.content=q.appendTo(p.inner);if(!p.iframe.preload){o._afterLoad()}},_preloadImages:function(){var u=o.group,t=o.current,p=u.length,r=t.preload?Math.min(t.preload,p-1):0,s,q;for(q=1;q<=r;q+=1){s=u[(t.index+q)%p];if(s.type==="image"&&s.href){new Image().src=s.href}}},_afterLoad:function(){var q=o.coming,s=o.current,x="fancybox-placeholder",u,v,w,r,p,t;o.hideLoading();if(!q||o.isActive===false){return}if(false===o.trigger("afterLoad",q,s)){q.wrap.stop(true).trigger("onReset").remove();o.coming=null;return}if(s){o.trigger("beforeChange",s);s.wrap.stop(true).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove()}o.unbindEvents();u=q;v=q.content;w=q.type;r=q.scrolling;i.extend(o,{wrap:u.wrap,skin:u.skin,outer:u.outer,inner:u.inner,current:u,previous:s});p=u.href;switch(w){case"inline":case"ajax":case"html":if(u.selector){v=i("<div>").html(v).find(u.selector)}else{if(j(v)){if(!v.data(x)){v.data(x,i('<div class="'+x+'"></div>').insertAfter(v).hide())}v=v.show().detach();u.wrap.bind("onReset",function(){if(i(this).find(v).length){v.hide().replaceAll(v.data(x)).data(x,false)}})}}break;case"image":v=u.tpl.image.replace("{href}",p);break;case"swf":v='<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="'+p+'"></param>';t="";i.each(u.swf,function(y,z){v+='<param name="'+y+'" value="'+z+'"></param>';t+=" "+y+'="'+z+'"'});v+='<embed src="'+p+'" type="application/x-shockwave-flash" width="100%" height="100%"'+t+"></embed></object>";break}if(!(j(v)&&v.parent().is(u.inner))){u.inner.append(v)}o.trigger("beforeShow");u.inner.css("overflow",r==="yes"?"scroll":(r==="no"?"hidden":r));o._setDimension();o.reposition();o.isOpen=false;o.coming=null;o.bindEvents();if(!o.isOpened){i(".fancybox-wrap").not(u.wrap).stop(true).trigger("onReset").remove()}else{if(s.prevMethod){o.transitions[s.prevMethod]()}}o.transitions[o.isOpened?u.nextMethod:u.openMethod]();o._preloadImages()},_setDimension:function(){var S=o.getViewport(),O=0,U=false,W=false,A=o.wrap,M=o.skin,X=o.inner,J=o.current,K=J.width,H=J.height,D=J.minWidth,w=J.minHeight,Q=J.maxWidth,I=J.maxHeight,C=J.scrolling,u=J.scrollOutside?J.scrollbarWidth:0,G=J.margin,v=m(G[1]+G[3]),t=m(G[0]+G[2]),r,q,N,P,F,E,L,y,x,T,s,V,p,z,B;A.add(M).add(X).width("auto").height("auto").removeClass("fancybox-tmp");r=m(M.outerWidth(true)-M.width());q=m(M.outerHeight(true)-M.height());N=v+r;P=t+q;F=l(K)?(S.w-N)*m(K)/100:K;E=l(H)?(S.h-P)*m(H)/100:H;if(J.type==="iframe"){z=J.content;if(J.autoHeight&&z.data("ready")===1){try{if(z[0].contentWindow.document.location){X.width(F).height(9999);B=z.contents().find("body");if(u){B.css("overflow-x","hidden")}E=B.height()}}catch(R){}}}else{if(J.autoWidth||J.autoHeight){X.addClass("fancybox-tmp");if(!J.autoWidth){X.width(F)}if(!J.autoHeight){X.height(E)}if(J.autoWidth){F=X.width()}if(J.autoHeight){E=X.height()}X.removeClass("fancybox-tmp")}}K=m(F);H=m(E);x=F/E;D=m(l(D)?m(D,"w")-N:D);Q=m(l(Q)?m(Q,"w")-N:Q);w=m(l(w)?m(w,"h")-P:w);I=m(l(I)?m(I,"h")-P:I);L=Q;y=I;if(J.fitToView){Q=Math.min(S.w-N,Q);I=Math.min(S.h-P,I)}V=S.w-v;p=S.h-t;if(J.aspectRatio){if(K>Q){K=Q;H=m(K/x)}if(H>I){H=I;K=m(H*x)}if(K<D){K=D;H=m(K/x)}if(H<w){H=w;K=m(H*x)}}else{K=Math.max(D,Math.min(K,Q));if(J.autoHeight&&J.type!=="iframe"){X.width(K);H=X.height()}H=Math.max(w,Math.min(H,I))}if(J.fitToView){X.width(K).height(H);A.width(K+r);T=A.width();s=A.height();if(J.aspectRatio){while((T>V||s>p)&&K>D&&H>w){if(O++>19){break}H=Math.max(w,Math.min(I,H-10));K=m(H*x);if(K<D){K=D;H=m(K/x)}if(K>Q){K=Q;H=m(K/x)}X.width(K).height(H);A.width(K+r);T=A.width();s=A.height()}}else{K=Math.max(D,Math.min(K,K-(T-V)));H=Math.max(w,Math.min(H,H-(s-p)))}}if(u&&C==="auto"&&H<E&&(K+r+u)<V){K+=u}X.width(K).height(H);A.width(K+r);T=A.width();s=A.height();U=(T>V||s>p)&&K>D&&H>w;W=J.aspectRatio?(K<L&&H<y&&K<F&&H<E):((K<L||H<y)&&(K<F||H<E));i.extend(J,{dim:{width:f(T),height:f(s)},origWidth:F,origHeight:E,canShrink:U,canExpand:W,wPadding:r,hPadding:q,wrapSpace:s-M.outerHeight(true),skinSpace:M.height()-H});if(!z&&J.autoHeight&&H>w&&H<I&&!W){X.height("auto")}},_getPosition:function(r){var v=o.current,q=o.getViewport(),t=v.margin,s=o.wrap.width()+t[1]+t[3],p=o.wrap.height()+t[0]+t[2],u={position:"absolute",top:t[0],left:t[3]};if(v.autoCenter&&v.fixed&&!r&&p<=q.h&&s<=q.w){u.position="fixed"}else{if(!v.locked){u.top+=q.y;u.left+=q.x}}u.top=f(Math.max(u.top,u.top+((q.h-p)*v.topRatio)));u.left=f(Math.max(u.left,u.left+((q.w-s)*v.leftRatio)));return u},_afterZoomIn:function(){var p=o.current;if(!p){return}o.isOpen=o.isOpened=true;o.wrap.css("overflow","visible").addClass("fancybox-opened");o.update();if(p.closeClick||(p.nextClick&&o.group.length>1)){o.inner.css("cursor","pointer").bind("click.fb",function(q){if(!i(q.target).is("a")&&!i(q.target).parent().is("a")){q.preventDefault();o[p.closeClick?"close":"next"]()}})}if(p.closeBtn){i(p.tpl.closeBtn).appendTo(o.skin).bind(e?"touchstart.fb":"click.fb",function(q){q.preventDefault();o.close()})}if(p.arrows&&o.group.length>1){if(p.loop||p.index>0){i(p.tpl.prev).appendTo(o.outer).bind("click.fb",o.prev)}if(p.loop||p.index<o.group.length-1){i(p.tpl.next).appendTo(o.outer).bind("click.fb",o.next)}}o.trigger("afterShow");if(!p.loop&&p.index===p.group.length-1){o.play(false)}else{if(o.opts.autoPlay&&!o.player.isActive){o.opts.autoPlay=false;o.play()}}},_afterZoomOut:function(p){p=p||o.current;i(".fancybox-wrap").trigger("onReset").remove();i.extend(o,{group:{},opts:{},router:false,current:null,isActive:false,isOpened:false,isOpen:false,isClosing:false,wrap:null,skin:null,outer:null,inner:null});o.trigger("afterClose",p)}});o.transitions={getOrigPosition:function(){var s=o.current,q=s.element,v=s.orig,u={},p=50,w=50,t=s.hPadding,x=s.wPadding,r=o.getViewport();if(!v&&s.isDom&&q.is(":visible")){v=q.find("img:first");if(!v.length){v=q}}if(j(v)){u=v.offset();if(v.is("img")){p=v.outerWidth();w=v.outerHeight()}}else{u.top=r.y+(r.h-w)*s.topRatio;u.left=r.x+(r.w-p)*s.leftRatio}if(o.wrap.css("position")==="fixed"||s.locked){u.top-=r.y;u.left-=r.x}u={top:f(u.top-t*s.topRatio),left:f(u.left-x*s.leftRatio),width:f(p+x),height:f(w+t)};return u},step:function(q,r){var t,v,w,p=r.prop,s=o.current,u=s.wrapSpace,x=s.skinSpace;if(p==="width"||p==="height"){t=r.end===r.start?1:(q-r.start)/(r.end-r.start);if(o.isClosing){t=1-t}v=p==="width"?s.wPadding:s.hPadding;w=q-v;o.skin[p](m(p==="width"?w:w-(u*t)));o.inner[p](m(p==="width"?w:w-(u*t)-(x*t)))}},zoomIn:function(){var t=o.current,q=t.pos,r=t.openEffect,s=r==="elastic",p=i.extend({opacity:1},q);delete p.position;if(s){q=this.getOrigPosition();if(t.openOpacity){q.opacity=0.1}}else{if(r==="fade"){q.opacity=0.1}}o.wrap.css(q).animate(p,{duration:r==="none"?0:t.openSpeed,easing:t.openEasing,step:s?this.step:null,complete:o._afterZoomIn})},zoomOut:function(){var s=o.current,q=s.closeEffect,r=q==="elastic",p={opacity:0.1};if(r){p=this.getOrigPosition();if(s.closeOpacity){p.opacity=0.1}}o.wrap.animate(p,{duration:q==="none"?0:s.closeSpeed,easing:s.closeEasing,step:r?this.step:null,complete:o._afterZoomOut})},changeIn:function(){var u=o.current,r=u.nextEffect,q=u.pos,p={opacity:1},t=o.direction,v=200,s;q.opacity=0.1;if(r==="elastic"){s=t==="down"||t==="up"?"top":"left";if(t==="down"||t==="right"){q[s]=f(m(q[s])-v);p[s]="+="+v+"px"}else{q[s]=f(m(q[s])+v);p[s]="-="+v+"px"}}if(r==="none"){o._afterZoomIn()}else{o.wrap.css(q).animate(p,{duration:u.nextSpeed,easing:u.nextEasing,complete:function(){setTimeout(o._afterZoomIn,20)}})}},changeOut:function(){var r=o.previous,q=r.prevEffect,p={opacity:0.1},s=o.direction,t=200;if(q==="elastic"){p[s==="down"||s==="up"?"top":"left"]=(s==="up"||s==="left"?"-":"+")+"="+t+"px"}r.wrap.animate(p,{duration:q==="none"?0:r.prevSpeed,easing:r.prevEasing,complete:function(){i(this).trigger("onReset").remove()}})}};o.helpers.overlay={defaults:{closeClick:true,speedOut:200,showEarly:true,css:{},locked:!e,fixed:true},overlay:null,fixed:false,create:function(p){p=i.extend({},this.defaults,p);if(this.overlay){this.close()}this.overlay=i('<div class="fancybox-overlay"></div>').appendTo("body");this.fixed=false;if(p.fixed&&o.defaults.fixed){this.overlay.addClass("fancybox-overlay-fixed");this.fixed=true}},open:function(q){var p=this;q=i.extend({},this.defaults,q);if(this.overlay){this.overlay.unbind(".overlay").width("auto").height("auto")}else{this.create(q)}if(!this.fixed){d.bind("resize.overlay",i.proxy(this.update,this));this.update()}if(q.closeClick){this.overlay.bind("click.overlay",function(r){if(i(r.target).hasClass("fancybox-overlay")){if(o.isActive){o.close()}else{p.close()}}})}this.overlay.css(q.css).show()},close:function(){i(".fancybox-overlay").remove();d.unbind("resize.overlay");this.overlay=null;if(this.margin!==false){i("body").css("margin-right",this.margin);this.margin=false}if(this.el){this.el.removeClass("fancybox-lock")}},update:function(){var q="100%",p;this.overlay.width(q).height("100%");if(i.browser.msie){p=Math.max(n.documentElement.offsetWidth,n.body.offsetWidth);if(a.width()>p){q=a.width()}}else{if(a.width()>d.width()){q=a.width()}}this.overlay.width(q).height(a.height())},onReady:function(p,q){i(".fancybox-overlay").stop(true,true);if(!this.overlay){this.margin=a.height()>d.height()||i("body").css("overflow-y")==="scroll"?i("body").css("margin-right"):false;this.el=n.all&&!n.querySelector?i("html"):i("body");this.create(p)}if(p.locked&&this.fixed){q.locked=this.overlay.append(q.wrap);q.fixed=false}if(p.showEarly===true){this.beforeShow.apply(this,arguments)}},beforeShow:function(p,q){if(q.locked){this.el.addClass("fancybox-lock");if(this.margin!==false){i("body").css("margin-right",m(this.margin)+q.scrollbarWidth)}}this.open(p)},onUpdate:function(){if(!this.fixed){this.update()}},afterClose:function(p){if(this.overlay&&!o.isActive){this.overlay.fadeOut(p.speedOut,i.proxy(this.close,this))}}};o.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(q){var s=o.current,u=s.title,p=q.type,t,r;if(i.isFunction(u)){u=u.call(s.element,s)}if(!b(u)||i.trim(u)===""){return}t=i('<div class="fancybox-title fancybox-title-'+p+'-wrap">'+u+"</div>");switch(p){case"inside":r=o.skin;break;case"outside":r=o.wrap;break;case"over":r=o.inner;break;default:r=o.skin;t.appendTo("body");if(i.browser.msie){t.width(t.width())}t.wrapInner('<span class="child"></span>');o.current.margin[2]+=Math.abs(m(t.css("margin-bottom")));break}t[(q.position==="top"?"prependTo":"appendTo")](r)}};i.fn[g]=function(r){var q,s=i(this),p=this.selector||"",t=function(x){var w=i(this).blur(),u=q,v,y;if(!(x.ctrlKey||x.altKey||x.shiftKey||x.metaKey)&&!w.is(".fancybox-wrap")){v=r.groupAttr||"data-fancybox-group";y=w.attr(v);if(!y){v="rel";y=w.get(0)[v]}if(y&&y!==""&&y!=="nofollow"){w=p.length?i(p):s;w=w.filter("["+v+'="'+y+'"]');u=w.index(this)}r.index=u;if(o.open(w,r)!==false){x.preventDefault()}}};r=r||{};q=r.index||0;if(!p||r.live===false){s.unbind("click.fb-start").bind("click.fb-start",t)}else{a.undelegate(p,"click.fb-start").delegate(p+":not('.fancybox-item, .fancybox-nav')","click.fb-start",t)}this.filter("[data-fancybox-start=1]").trigger("click");return this};a.ready(function(){if(i.scrollbarWidth===undefined){i.scrollbarWidth=function(){var q=i('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body"),r=q.children(),p=r.innerWidth()-r.height(99).innerWidth();q.remove();return p}}if(i.support.fixedPosition===undefined){i.support.fixedPosition=(function(){var q=i('<div style="position:fixed;top:20px;"></div>').appendTo("body"),p=(q[0].offsetTop===20||q[0].offsetTop===15);q.remove();return p}())}i.extend(o.defaults,{scrollbarWidth:i.scrollbarWidth(),fixed:i.support.fixedPosition,parent:i("body")})})};
9
  * Copyright 2012 Janis Skarnelis - janis@fancyapps.com
10
  *
11
  * Modified by Aram Kocharyan:
12
+ * http://aramk.com/crayon/initialising-fancybox-with-custom-objects
13
  */
14
  window.fancyboxInit=function(k,n,i,g){var d=i(k),a=i(n),o=i[g]=function(){o.open.apply(this,arguments)},c=null,e=n.createTouch!==undefined,j=function(p){return p&&p.hasOwnProperty&&p instanceof i},b=function(p){return p&&i.type(p)==="string"},l=function(p){return b(p)&&p.indexOf("%")>0},h=function(p){return(p&&!(p.style.overflow&&p.style.overflow==="hidden")&&((p.clientWidth&&p.scrollWidth>p.clientWidth)||(p.clientHeight&&p.scrollHeight>p.clientHeight)))},m=function(r,q){var p=parseInt(r,10)||0;if(q&&l(r)){p=o.getViewport()[q]/100*p}return Math.ceil(p)},f=function(p,q){return m(p,q)+"px"};i.extend(o,{version:"2.1.3",defaults:{padding:15,margin:20,width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,autoSize:true,autoHeight:false,autoWidth:false,autoResize:true,autoCenter:!e,fitToView:true,aspectRatio:false,topRatio:0.5,leftRatio:0.5,scrolling:"auto",wrapCSS:"",arrows:true,closeBtn:true,closeClick:false,nextClick:false,mouseWheel:true,autoPlay:false,playSpeed:3000,preload:3,modal:false,loop:true,ajax:{dataType:"html",headers:{"X-fancyBox":true}},iframe:{scrolling:"auto",preload:true},swf:{wmode:"transparent",allowfullscreen:"true",allowscriptaccess:"always"},keys:{next:{13:"left",34:"up",39:"left",40:"up"},prev:{8:"right",33:"down",37:"right",38:"down"},close:[27],play:[32],toggle:[70]},direction:{next:"left",prev:"right"},scrollOutside:true,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',image:'<img class="fancybox-image" src="{href}" alt="" />',iframe:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen'+(i.browser.msie?' allowtransparency="true"':"")+"></iframe>",error:'<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>',closeBtn:'<a title="Close" class="fancybox-item fancybox-close" href="javascript:;"></a>',next:'<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',prev:'<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>'},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:true,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:true,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:true,title:true},onCancel:i.noop,beforeLoad:i.noop,afterLoad:i.noop,beforeShow:i.noop,afterShow:i.noop,beforeChange:i.noop,beforeClose:i.noop,afterClose:i.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:false,isOpen:false,isOpened:false,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:false},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(q,p){if(!q){return}if(!i.isPlainObject(p)){p={}}if(false===o.close(true)){return}if(!i.isArray(q)){q=j(q)?i(q).get():[q]}i.each(q,function(v,w){var u={},r,z,x,y,t,A,s;if(i.type(w)==="object"){if(w.nodeType){w=i(w)}if(j(w)){u={href:w.data("fancybox-href")||w.attr("href"),title:w.data("fancybox-title")||w.attr("title"),isDom:true,element:w};if(i.metadata){i.extend(true,u,w.metadata())}}else{u=w}}r=p.href||u.href||(b(w)?w:null);z=p.title!==undefined?p.title:u.title||"";x=p.content||u.content;y=x?"html":(p.type||u.type);if(!y&&u.isDom){y=w.data("fancybox-type");if(!y){t=w.prop("class").match(/fancybox\.(\w+)/);y=t?t[1]:null}}if(b(r)){if(!y){if(o.isImage(r)){y="image"}else{if(o.isSWF(r)){y="swf"}else{if(r.charAt(0)==="#"){y="inline"}else{if(b(w)){y="html";x=w}}}}}if(y==="ajax"){A=r.split(/\s+/,2);r=A.shift();s=A.shift()}}if(!x){if(y==="inline"){if(r){x=i(b(r)?r.replace(/.*(?=#[^\s]+$)/,""):r)}else{if(u.isDom){x=w}}}else{if(y==="html"){x=r}else{if(!y&&!r&&u.isDom){y="inline";x=w}}}}i.extend(u,{href:r,type:y,content:x,title:z,selector:s});q[v]=u});o.opts=i.extend(true,{},o.defaults,p);if(p.keys!==undefined){o.opts.keys=p.keys?i.extend({},o.defaults.keys,p.keys):false}o.group=q;return o._start(o.opts.index)},cancel:function(){var p=o.coming;if(!p||false===o.trigger("onCancel")){return}o.hideLoading();if(o.ajaxLoad){o.ajaxLoad.abort()}o.ajaxLoad=null;if(o.imgPreload){o.imgPreload.onload=o.imgPreload.onerror=null}if(p.wrap){p.wrap.stop(true,true).trigger("onReset").remove()}o.coming=null;if(!o.current){o._afterZoomOut(p)}},close:function(p){o.cancel();if(false===o.trigger("beforeClose")){return}o.unbindEvents();if(!o.isActive){return}if(!o.isOpen||p===true){i(".fancybox-wrap").stop(true).trigger("onReset").remove();o._afterZoomOut()}else{o.isOpen=o.isOpened=false;o.isClosing=true;i(".fancybox-item, .fancybox-nav").remove();o.wrap.stop(true,true).removeClass("fancybox-opened");o.transitions[o.current.closeMethod]()}},play:function(r){var p=function(){clearTimeout(o.player.timer)},t=function(){p();if(o.current&&o.player.isActive){o.player.timer=setTimeout(o.next,o.current.playSpeed)}},q=function(){p();i("body").unbind(".player");o.player.isActive=false;o.trigger("onPlayEnd")},s=function(){if(o.current&&(o.current.loop||o.current.index<o.group.length-1)){o.player.isActive=true;i("body").bind({"afterShow.player onUpdate.player":t,"onCancel.player beforeClose.player":q,"beforeLoad.player":p});t();o.trigger("onPlayStart")}};if(r===true||(!o.player.isActive&&r!==false)){s()}else{q()}},next:function(q){var p=o.current;if(p){if(!b(q)){q=p.direction.next}o.jumpto(p.index+1,q,"next")}},prev:function(q){var p=o.current;if(p){if(!b(q)){q=p.direction.prev}o.jumpto(p.index-1,q,"prev")}},jumpto:function(q,s,p){var r=o.current;if(!r){return}q=m(q);o.direction=s||r.direction[(q>=r.index?"next":"prev")];o.router=p||"jumpto";if(r.loop){if(q<0){q=r.group.length+(q%r.group.length)}q=q%r.group.length}if(r.group[q]!==undefined){o.cancel();o._start(q)}},reposition:function(s,p){var r=o.current,q=r?r.wrap:null,t;if(q){t=o._getPosition(p);if(s&&s.type==="scroll"){delete t.position;q.stop(true,true).animate(t,200)}else{q.css(t);r.pos=i.extend({},r.dim,t)}}},update:function(r){var p=(r&&r.type),q=!p||p==="orientationchange";if(q){clearTimeout(c);c=null}if(!o.isOpen||c){return}c=setTimeout(function(){var s=o.current;if(!s||o.isClosing){return}o.wrap.removeClass("fancybox-tmp");if(q||p==="load"||(p==="resize"&&s.autoResize)){o._setDimension()}if(!(p==="scroll"&&s.canShrink)){o.reposition(r)}o.trigger("onUpdate");c=null},(q&&!e?0:300))},toggle:function(p){if(o.isOpen){o.current.fitToView=i.type(p)==="boolean"?p:!o.current.fitToView;if(e){o.wrap.removeAttr("style").addClass("fancybox-tmp");o.trigger("onUpdate")}o.update()}},hideLoading:function(){a.unbind(".loading");i("#fancybox-loading").remove()},showLoading:function(){var q,p;o.hideLoading();q=i('<div id="fancybox-loading"><div></div></div>').click(o.cancel).appendTo("body");a.bind("keydown.loading",function(r){if((r.which||r.keyCode)===27){r.preventDefault();o.cancel()}});if(!o.defaults.fixed){p=o.getViewport();q.css({position:"absolute",top:(p.h*0.5)+p.y,left:(p.w*0.5)+p.x})}},getViewport:function(){var p=(o.current&&o.current.locked)||false,q={x:d.scrollLeft(),y:d.scrollTop()};if(p){q.w=p[0].clientWidth;q.h=p[0].clientHeight}else{q.w=e&&k.innerWidth?k.innerWidth:d.width();q.h=e&&k.innerHeight?k.innerHeight:d.height()}return q},unbindEvents:function(){if(o.wrap&&j(o.wrap)){o.wrap.unbind(".fb")}a.unbind(".fb");d.unbind(".fb")},bindEvents:function(){var q=o.current,p;if(!q){return}d.bind("orientationchange.fb"+(e?"":" resize.fb")+(q.autoCenter&&!q.locked?" scroll.fb":""),o.update);p=q.keys;if(p){a.bind("keydown.fb",function(t){var r=t.which||t.keyCode,s=t.target||t.srcElement;if(r===27&&o.coming){return false}if(!t.ctrlKey&&!t.altKey&&!t.shiftKey&&!t.metaKey&&!(s&&(s.type||i(s).is("[contenteditable]")))){i.each(p,function(u,v){if(q.group.length>1&&v[r]!==undefined){o[u](v[r]);t.preventDefault();return false}if(i.inArray(r,v)>-1){o[u]();t.preventDefault();return false}})}})}if(i.fn.mousewheel&&q.mouseWheel){o.wrap.bind("mousewheel.fb",function(w,x,s,r){var v=w.target||null,t=i(v),u=false;while(t.length){if(u||t.is(".fancybox-skin")||t.is(".fancybox-wrap")){break}u=h(t[0]);t=i(t).parent()}if(x!==0&&!u){if(o.group.length>1&&!q.canShrink){if(r>0||s>0){o.prev(r>0?"down":"left")}else{if(r<0||s<0){o.next(r<0?"up":"right")}}w.preventDefault()}}})}},trigger:function(q,s){var p,r=s||o.coming||o.current;if(!r){return}if(i.isFunction(r[q])){p=r[q].apply(r,Array.prototype.slice.call(arguments,1))}if(p===false){return false}if(r.helpers){i.each(r.helpers,function(u,t){if(t&&o.helpers[u]&&i.isFunction(o.helpers[u][q])){t=i.extend(true,{},o.helpers[u].defaults,t);o.helpers[u][q](t,r)}})}i.event.trigger(q+".fb")},isImage:function(p){return b(p)&&p.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp)((\?|#).*)?$)/i)},isSWF:function(p){return b(p)&&p.match(/\.(swf)((\?|#).*)?$/i)},_start:function(q){var r={},v,p,s,t,u;q=m(q);v=o.group[q]||null;if(!v){return false}r=i.extend(true,{},o.opts,v);t=r.margin;u=r.padding;if(i.type(t)==="number"){r.margin=[t,t,t,t]}if(i.type(u)==="number"){r.padding=[u,u,u,u]}if(r.modal){i.extend(true,r,{closeBtn:false,closeClick:false,nextClick:false,arrows:false,mouseWheel:false,keys:null,helpers:{overlay:{closeClick:false}}})}if(r.autoSize){r.autoWidth=r.autoHeight=true}if(r.width==="auto"){r.autoWidth=true}if(r.height==="auto"){r.autoHeight=true}r.group=o.group;r.index=q;o.coming=r;if(false===o.trigger("beforeLoad")){o.coming=null;return}s=r.type;p=r.href;if(!s){o.coming=null;if(o.current&&o.router&&o.router!=="jumpto"){o.current.index=q;return o[o.router](o.direction)}return false}o.isActive=true;if(s==="image"||s==="swf"){r.autoHeight=r.autoWidth=false;r.scrolling="visible"}if(s==="image"){r.aspectRatio=true}if(s==="iframe"&&e){r.scrolling="scroll"}r.wrap=i(r.tpl.wrap).addClass("fancybox-"+(e?"mobile":"desktop")+" fancybox-type-"+s+" fancybox-tmp "+r.wrapCSS).appendTo(r.parent||"body");i.extend(r,{skin:i(".fancybox-skin",r.wrap),outer:i(".fancybox-outer",r.wrap),inner:i(".fancybox-inner",r.wrap)});i.each(["Top","Right","Bottom","Left"],function(x,w){r.skin.css("padding"+w,f(r.padding[x]))});o.trigger("onReady");if(s==="inline"||s==="html"){if(!r.content||!r.content.length){return o._error("content")}}else{if(!p){return o._error("href")}}if(s==="image"){o._loadImage()}else{if(s==="ajax"){o._loadAjax()}else{if(s==="iframe"){o._loadIframe()}else{o._afterLoad()}}}},_error:function(p){i.extend(o.coming,{type:"html",autoWidth:true,autoHeight:true,minWidth:0,minHeight:0,scrolling:"no",hasError:p,content:o.coming.tpl.error});o._afterLoad()},_loadImage:function(){var p=o.imgPreload=new Image();p.onload=function(){this.onload=this.onerror=null;o.coming.width=this.width;o.coming.height=this.height;o._afterLoad()};p.onerror=function(){this.onload=this.onerror=null;o._error("image")};p.src=o.coming.href;if(p.complete!==true){o.showLoading()}},_loadAjax:function(){var p=o.coming;o.showLoading();o.ajaxLoad=i.ajax(i.extend({},p.ajax,{url:p.href,error:function(q,r){if(o.coming&&r!=="abort"){o._error("ajax",q)}else{o.hideLoading()}},success:function(q,r){if(r==="success"){p.content=q;o._afterLoad()}}}))},_loadIframe:function(){var p=o.coming,q=i(p.tpl.iframe.replace(/\{rnd\}/g,new Date().getTime())).attr("scrolling",e?"auto":p.iframe.scrolling).attr("src",p.href);i(p.wrap).bind("onReset",function(){try{i(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(r){}});if(p.iframe.preload){o.showLoading();q.one("load",function(){i(this).data("ready",1);if(!e){i(this).bind("load.fb",o.update)}i(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show();o._afterLoad()})}p.content=q.appendTo(p.inner);if(!p.iframe.preload){o._afterLoad()}},_preloadImages:function(){var u=o.group,t=o.current,p=u.length,r=t.preload?Math.min(t.preload,p-1):0,s,q;for(q=1;q<=r;q+=1){s=u[(t.index+q)%p];if(s.type==="image"&&s.href){new Image().src=s.href}}},_afterLoad:function(){var q=o.coming,s=o.current,x="fancybox-placeholder",u,v,w,r,p,t;o.hideLoading();if(!q||o.isActive===false){return}if(false===o.trigger("afterLoad",q,s)){q.wrap.stop(true).trigger("onReset").remove();o.coming=null;return}if(s){o.trigger("beforeChange",s);s.wrap.stop(true).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove()}o.unbindEvents();u=q;v=q.content;w=q.type;r=q.scrolling;i.extend(o,{wrap:u.wrap,skin:u.skin,outer:u.outer,inner:u.inner,current:u,previous:s});p=u.href;switch(w){case"inline":case"ajax":case"html":if(u.selector){v=i("<div>").html(v).find(u.selector)}else{if(j(v)){if(!v.data(x)){v.data(x,i('<div class="'+x+'"></div>').insertAfter(v).hide())}v=v.show().detach();u.wrap.bind("onReset",function(){if(i(this).find(v).length){v.hide().replaceAll(v.data(x)).data(x,false)}})}}break;case"image":v=u.tpl.image.replace("{href}",p);break;case"swf":v='<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="'+p+'"></param>';t="";i.each(u.swf,function(y,z){v+='<param name="'+y+'" value="'+z+'"></param>';t+=" "+y+'="'+z+'"'});v+='<embed src="'+p+'" type="application/x-shockwave-flash" width="100%" height="100%"'+t+"></embed></object>";break}if(!(j(v)&&v.parent().is(u.inner))){u.inner.append(v)}o.trigger("beforeShow");u.inner.css("overflow",r==="yes"?"scroll":(r==="no"?"hidden":r));o._setDimension();o.reposition();o.isOpen=false;o.coming=null;o.bindEvents();if(!o.isOpened){i(".fancybox-wrap").not(u.wrap).stop(true).trigger("onReset").remove()}else{if(s.prevMethod){o.transitions[s.prevMethod]()}}o.transitions[o.isOpened?u.nextMethod:u.openMethod]();o._preloadImages()},_setDimension:function(){var S=o.getViewport(),O=0,U=false,W=false,A=o.wrap,M=o.skin,X=o.inner,J=o.current,K=J.width,H=J.height,D=J.minWidth,w=J.minHeight,Q=J.maxWidth,I=J.maxHeight,C=J.scrolling,u=J.scrollOutside?J.scrollbarWidth:0,G=J.margin,v=m(G[1]+G[3]),t=m(G[0]+G[2]),r,q,N,P,F,E,L,y,x,T,s,V,p,z,B;A.add(M).add(X).width("auto").height("auto").removeClass("fancybox-tmp");r=m(M.outerWidth(true)-M.width());q=m(M.outerHeight(true)-M.height());N=v+r;P=t+q;F=l(K)?(S.w-N)*m(K)/100:K;E=l(H)?(S.h-P)*m(H)/100:H;if(J.type==="iframe"){z=J.content;if(J.autoHeight&&z.data("ready")===1){try{if(z[0].contentWindow.document.location){X.width(F).height(9999);B=z.contents().find("body");if(u){B.css("overflow-x","hidden")}E=B.height()}}catch(R){}}}else{if(J.autoWidth||J.autoHeight){X.addClass("fancybox-tmp");if(!J.autoWidth){X.width(F)}if(!J.autoHeight){X.height(E)}if(J.autoWidth){F=X.width()}if(J.autoHeight){E=X.height()}X.removeClass("fancybox-tmp")}}K=m(F);H=m(E);x=F/E;D=m(l(D)?m(D,"w")-N:D);Q=m(l(Q)?m(Q,"w")-N:Q);w=m(l(w)?m(w,"h")-P:w);I=m(l(I)?m(I,"h")-P:I);L=Q;y=I;if(J.fitToView){Q=Math.min(S.w-N,Q);I=Math.min(S.h-P,I)}V=S.w-v;p=S.h-t;if(J.aspectRatio){if(K>Q){K=Q;H=m(K/x)}if(H>I){H=I;K=m(H*x)}if(K<D){K=D;H=m(K/x)}if(H<w){H=w;K=m(H*x)}}else{K=Math.max(D,Math.min(K,Q));if(J.autoHeight&&J.type!=="iframe"){X.width(K);H=X.height()}H=Math.max(w,Math.min(H,I))}if(J.fitToView){X.width(K).height(H);A.width(K+r);T=A.width();s=A.height();if(J.aspectRatio){while((T>V||s>p)&&K>D&&H>w){if(O++>19){break}H=Math.max(w,Math.min(I,H-10));K=m(H*x);if(K<D){K=D;H=m(K/x)}if(K>Q){K=Q;H=m(K/x)}X.width(K).height(H);A.width(K+r);T=A.width();s=A.height()}}else{K=Math.max(D,Math.min(K,K-(T-V)));H=Math.max(w,Math.min(H,H-(s-p)))}}if(u&&C==="auto"&&H<E&&(K+r+u)<V){K+=u}X.width(K).height(H);A.width(K+r);T=A.width();s=A.height();U=(T>V||s>p)&&K>D&&H>w;W=J.aspectRatio?(K<L&&H<y&&K<F&&H<E):((K<L||H<y)&&(K<F||H<E));i.extend(J,{dim:{width:f(T),height:f(s)},origWidth:F,origHeight:E,canShrink:U,canExpand:W,wPadding:r,hPadding:q,wrapSpace:s-M.outerHeight(true),skinSpace:M.height()-H});if(!z&&J.autoHeight&&H>w&&H<I&&!W){X.height("auto")}},_getPosition:function(r){var v=o.current,q=o.getViewport(),t=v.margin,s=o.wrap.width()+t[1]+t[3],p=o.wrap.height()+t[0]+t[2],u={position:"absolute",top:t[0],left:t[3]};if(v.autoCenter&&v.fixed&&!r&&p<=q.h&&s<=q.w){u.position="fixed"}else{if(!v.locked){u.top+=q.y;u.left+=q.x}}u.top=f(Math.max(u.top,u.top+((q.h-p)*v.topRatio)));u.left=f(Math.max(u.left,u.left+((q.w-s)*v.leftRatio)));return u},_afterZoomIn:function(){var p=o.current;if(!p){return}o.isOpen=o.isOpened=true;o.wrap.css("overflow","visible").addClass("fancybox-opened");o.update();if(p.closeClick||(p.nextClick&&o.group.length>1)){o.inner.css("cursor","pointer").bind("click.fb",function(q){if(!i(q.target).is("a")&&!i(q.target).parent().is("a")){q.preventDefault();o[p.closeClick?"close":"next"]()}})}if(p.closeBtn){i(p.tpl.closeBtn).appendTo(o.skin).bind(e?"touchstart.fb":"click.fb",function(q){q.preventDefault();o.close()})}if(p.arrows&&o.group.length>1){if(p.loop||p.index>0){i(p.tpl.prev).appendTo(o.outer).bind("click.fb",o.prev)}if(p.loop||p.index<o.group.length-1){i(p.tpl.next).appendTo(o.outer).bind("click.fb",o.next)}}o.trigger("afterShow");if(!p.loop&&p.index===p.group.length-1){o.play(false)}else{if(o.opts.autoPlay&&!o.player.isActive){o.opts.autoPlay=false;o.play()}}},_afterZoomOut:function(p){p=p||o.current;i(".fancybox-wrap").trigger("onReset").remove();i.extend(o,{group:{},opts:{},router:false,current:null,isActive:false,isOpened:false,isOpen:false,isClosing:false,wrap:null,skin:null,outer:null,inner:null});o.trigger("afterClose",p)}});o.transitions={getOrigPosition:function(){var s=o.current,q=s.element,v=s.orig,u={},p=50,w=50,t=s.hPadding,x=s.wPadding,r=o.getViewport();if(!v&&s.isDom&&q.is(":visible")){v=q.find("img:first");if(!v.length){v=q}}if(j(v)){u=v.offset();if(v.is("img")){p=v.outerWidth();w=v.outerHeight()}}else{u.top=r.y+(r.h-w)*s.topRatio;u.left=r.x+(r.w-p)*s.leftRatio}if(o.wrap.css("position")==="fixed"||s.locked){u.top-=r.y;u.left-=r.x}u={top:f(u.top-t*s.topRatio),left:f(u.left-x*s.leftRatio),width:f(p+x),height:f(w+t)};return u},step:function(q,r){var t,v,w,p=r.prop,s=o.current,u=s.wrapSpace,x=s.skinSpace;if(p==="width"||p==="height"){t=r.end===r.start?1:(q-r.start)/(r.end-r.start);if(o.isClosing){t=1-t}v=p==="width"?s.wPadding:s.hPadding;w=q-v;o.skin[p](m(p==="width"?w:w-(u*t)));o.inner[p](m(p==="width"?w:w-(u*t)-(x*t)))}},zoomIn:function(){var t=o.current,q=t.pos,r=t.openEffect,s=r==="elastic",p=i.extend({opacity:1},q);delete p.position;if(s){q=this.getOrigPosition();if(t.openOpacity){q.opacity=0.1}}else{if(r==="fade"){q.opacity=0.1}}o.wrap.css(q).animate(p,{duration:r==="none"?0:t.openSpeed,easing:t.openEasing,step:s?this.step:null,complete:o._afterZoomIn})},zoomOut:function(){var s=o.current,q=s.closeEffect,r=q==="elastic",p={opacity:0.1};if(r){p=this.getOrigPosition();if(s.closeOpacity){p.opacity=0.1}}o.wrap.animate(p,{duration:q==="none"?0:s.closeSpeed,easing:s.closeEasing,step:r?this.step:null,complete:o._afterZoomOut})},changeIn:function(){var u=o.current,r=u.nextEffect,q=u.pos,p={opacity:1},t=o.direction,v=200,s;q.opacity=0.1;if(r==="elastic"){s=t==="down"||t==="up"?"top":"left";if(t==="down"||t==="right"){q[s]=f(m(q[s])-v);p[s]="+="+v+"px"}else{q[s]=f(m(q[s])+v);p[s]="-="+v+"px"}}if(r==="none"){o._afterZoomIn()}else{o.wrap.css(q).animate(p,{duration:u.nextSpeed,easing:u.nextEasing,complete:function(){setTimeout(o._afterZoomIn,20)}})}},changeOut:function(){var r=o.previous,q=r.prevEffect,p={opacity:0.1},s=o.direction,t=200;if(q==="elastic"){p[s==="down"||s==="up"?"top":"left"]=(s==="up"||s==="left"?"-":"+")+"="+t+"px"}r.wrap.animate(p,{duration:q==="none"?0:r.prevSpeed,easing:r.prevEasing,complete:function(){i(this).trigger("onReset").remove()}})}};o.helpers.overlay={defaults:{closeClick:true,speedOut:200,showEarly:true,css:{},locked:!e,fixed:true},overlay:null,fixed:false,create:function(p){p=i.extend({},this.defaults,p);if(this.overlay){this.close()}this.overlay=i('<div class="fancybox-overlay"></div>').appendTo("body");this.fixed=false;if(p.fixed&&o.defaults.fixed){this.overlay.addClass("fancybox-overlay-fixed");this.fixed=true}},open:function(q){var p=this;q=i.extend({},this.defaults,q);if(this.overlay){this.overlay.unbind(".overlay").width("auto").height("auto")}else{this.create(q)}if(!this.fixed){d.bind("resize.overlay",i.proxy(this.update,this));this.update()}if(q.closeClick){this.overlay.bind("click.overlay",function(r){if(i(r.target).hasClass("fancybox-overlay")){if(o.isActive){o.close()}else{p.close()}}})}this.overlay.css(q.css).show()},close:function(){i(".fancybox-overlay").remove();d.unbind("resize.overlay");this.overlay=null;if(this.margin!==false){i("body").css("margin-right",this.margin);this.margin=false}if(this.el){this.el.removeClass("fancybox-lock")}},update:function(){var q="100%",p;this.overlay.width(q).height("100%");if(i.browser.msie){p=Math.max(n.documentElement.offsetWidth,n.body.offsetWidth);if(a.width()>p){q=a.width()}}else{if(a.width()>d.width()){q=a.width()}}this.overlay.width(q).height(a.height())},onReady:function(p,q){i(".fancybox-overlay").stop(true,true);if(!this.overlay){this.margin=a.height()>d.height()||i("body").css("overflow-y")==="scroll"?i("body").css("margin-right"):false;this.el=n.all&&!n.querySelector?i("html"):i("body");this.create(p)}if(p.locked&&this.fixed){q.locked=this.overlay.append(q.wrap);q.fixed=false}if(p.showEarly===true){this.beforeShow.apply(this,arguments)}},beforeShow:function(p,q){if(q.locked){this.el.addClass("fancybox-lock");if(this.margin!==false){i("body").css("margin-right",m(this.margin)+q.scrollbarWidth)}}this.open(p)},onUpdate:function(){if(!this.fixed){this.update()}},afterClose:function(p){if(this.overlay&&!o.isActive){this.overlay.fadeOut(p.speedOut,i.proxy(this.close,this))}}};o.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(q){var s=o.current,u=s.title,p=q.type,t,r;if(i.isFunction(u)){u=u.call(s.element,s)}if(!b(u)||i.trim(u)===""){return}t=i('<div class="fancybox-title fancybox-title-'+p+'-wrap">'+u+"</div>");switch(p){case"inside":r=o.skin;break;case"outside":r=o.wrap;break;case"over":r=o.inner;break;default:r=o.skin;t.appendTo("body");if(i.browser.msie){t.width(t.width())}t.wrapInner('<span class="child"></span>');o.current.margin[2]+=Math.abs(m(t.css("margin-bottom")));break}t[(q.position==="top"?"prependTo":"appendTo")](r)}};i.fn[g]=function(r){var q,s=i(this),p=this.selector||"",t=function(x){var w=i(this).blur(),u=q,v,y;if(!(x.ctrlKey||x.altKey||x.shiftKey||x.metaKey)&&!w.is(".fancybox-wrap")){v=r.groupAttr||"data-fancybox-group";y=w.attr(v);if(!y){v="rel";y=w.get(0)[v]}if(y&&y!==""&&y!=="nofollow"){w=p.length?i(p):s;w=w.filter("["+v+'="'+y+'"]');u=w.index(this)}r.index=u;if(o.open(w,r)!==false){x.preventDefault()}}};r=r||{};q=r.index||0;if(!p||r.live===false){s.unbind("click.fb-start").bind("click.fb-start",t)}else{a.undelegate(p,"click.fb-start").delegate(p+":not('.fancybox-item, .fancybox-nav')","click.fb-start",t)}this.filter("[data-fancybox-start=1]").trigger("click");return this};a.ready(function(){if(i.scrollbarWidth===undefined){i.scrollbarWidth=function(){var q=i('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body"),r=q.children(),p=r.innerWidth()-r.height(99).innerWidth();q.remove();return p}}if(i.support.fixedPosition===undefined){i.support.fixedPosition=(function(){var q=i('<div style="position:fixed;top:20px;"></div>').appendTo("body"),p=(q[0].offsetTop===20||q[0].offsetTop===15);q.remove();return p}())}i.extend(o.defaults,{scrollbarWidth:i.scrollbarWidth(),fixed:i.support.fixedPosition,parent:i("body")})})};
js/jquery-colorpicker/.gitignore ADDED
@@ -0,0 +1 @@
 
1
+ .svn
js/jquery-colorpicker/jquery.colorpicker.js CHANGED
@@ -2041,7 +2041,8 @@
2041
 
2042
  close: null,
2043
  init: null,
2044
- select: null
 
2045
  },
2046
 
2047
  _create: function () {
@@ -2375,6 +2376,7 @@
2375
 
2376
  that._effectShow(this.dialog);
2377
  that.opened = true;
 
2378
 
2379
  // Without waiting for domready the width of the map is 0 and we
2380
  // wind up with the cursor stuck in the upper left corner
2041
 
2042
  close: null,
2043
  init: null,
2044
+ select: null,
2045
+ open: null
2046
  },
2047
 
2048
  _create: function () {
2376
 
2377
  that._effectShow(this.dialog);
2378
  that.opened = true;
2379
+ that._callback('open', true);
2380
 
2381
  // Without waiting for domready the width of the map is 0 and we
2382
  // wind up with the cursor stuck in the upper left corner
js/jquery-ui/jquery-ui.css CHANGED
@@ -80,7 +80,7 @@ input.ui-button { padding: .4em 1em; }
80
  /* workarounds */
81
  button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra padding in Firefox */
82
  .ui-dialog { position: absolute; padding: .2em; width: 300px; overflow: hidden; }
83
- .ui-dialog .ui-dialog-titlebar { padding: .4em 1em; height: 20px; /*background: #666;*/ color: #ccc; position: relative; }
84
  .ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .1em 0; }
85
  .ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; }
86
  .ui-dialog .ui-dialog-titlebar-close span { display: block; margin: 1px; }
80
  /* workarounds */
81
  button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra padding in Firefox */
82
  .ui-dialog { position: absolute; padding: .2em; width: 300px; overflow: hidden; }
83
+ .ui-dialog .ui-dialog-titlebar { padding: .4em 1em; height: 20px; /*background: #666;*/ color: #666; position: relative; }
84
  .ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .1em 0; }
85
  .ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; }
86
  .ui-dialog .ui-dialog-titlebar-close span { display: block; margin: 1px; }
langs/amigados/amigados.txt ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ### AmigaDOS SCRIPT ###
2
+ ### Author: Giuseppe Portelli giuseppe.portelli@gmail.com ###
3
+
4
+ # ELEMENT_NAME [optional-css-class] REGULAR_EXPRESSION
5
+
6
+ NAME AmigaDOS
7
+ VERSION 1.0
8
+
9
+ STRING (?default)
10
+
11
+ COMMENT ;.*?$
12
+ LABEL:FADED ^Lab\s.*$
13
+
14
+ COMMAND:KEYWORD \b(?alt:commands.txt)\b
15
+ DEVICE:CONSTANT \b[a-zA-Z][a-zA-Z0-9]*:
16
+
17
+ VARIABLE \$[a-zA-Z][a-zA-Z0-9]*|\${[a-zA-Z][a-zA-Z0-9]*}
18
+
19
+ OPERATOR (?alt:symbols.txt)
20
+ SYMBOL (?alt:wildcards.txt)
langs/amigados/commands.txt ADDED
@@ -0,0 +1,180 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 8SVX
2
+ A2024
3
+ AddBuffers
4
+ AddDataTypes
5
+ AddMonitor
6
+ Alias
7
+ AmigaGuide
8
+ ANIM
9
+ Ask
10
+ Assign
11
+ AutoPoint
12
+ Avail
13
+ BindDrivers
14
+ BindMonitor
15
+ Blanker
16
+ Break
17
+ BRU
18
+ Calculator
19
+ CD
20
+ CDXL
21
+ ChangeTaskPri
22
+ Classes
23
+ CLI
24
+ ClickToFront
25
+ Clipboard
26
+ Clock
27
+ CMD
28
+ Colors
29
+ Commodities
30
+ ConClip
31
+ Copy
32
+ CPU
33
+ CrossDOS
34
+ Datatypes
35
+ Date
36
+ DblNTSC
37
+ DblPAL
38
+ Delete
39
+ Dir
40
+ DiskChange
41
+ DiskCopy
42
+ DiskDoctor
43
+ Display
44
+ DPat
45
+ Echo
46
+ Ed
47
+ Edit
48
+ Else
49
+ EndCLI
50
+ EndIf
51
+ EndShell
52
+ EndSkip
53
+ Euro36
54
+ Euro72
55
+ Eval
56
+ Exchange
57
+ Execute
58
+ Failat
59
+ Fault
60
+ Filenote
61
+ FixFonts
62
+ FKey
63
+ Font
64
+ Format
65
+ Fountain
66
+ FTXT
67
+ Get
68
+ Getenv
69
+ GraphicDump
70
+ HDBackup
71
+ HDToolBox
72
+ HI
73
+ IconEdit
74
+ IControl
75
+ IconX
76
+ If
77
+ IHelp
78
+ ILBM
79
+ Info
80
+ InitPrinter
81
+ Input
82
+ Install
83
+ Installer
84
+ Intellifont
85
+ IPrefs
86
+ Join
87
+ KeyShow
88
+ Lab
89
+ Lacer
90
+ LIST
91
+ LoadResource
92
+ LoadWb
93
+ Locale
94
+ Lock
95
+ MagTape
96
+ MakeDir
97
+ Makefiles
98
+ MakeLink
99
+ MEmacs
100
+ Monitors
101
+ More
102
+ Mount
103
+ Mountlist
104
+ MouseBlanker
105
+ Multiscan
106
+ Multiview
107
+ NewCLI
108
+ NewShell
109
+ NoCapsLock
110
+ NoFastMem
111
+ NTSC
112
+ Overscan
113
+ PAL
114
+ Palette
115
+ Path
116
+ PCD
117
+ Pointer
118
+ Preferences
119
+ PrepCard
120
+ Printer
121
+ PrinterGfx
122
+ PrinterPS
123
+ PrintFiles
124
+ PROGDIR:
125
+ Prompt
126
+ Protect
127
+ Quit
128
+ Relabel
129
+ RemRad
130
+ Rename
131
+ RequestChoice
132
+ RequestFile
133
+ Resident
134
+ RexxMast
135
+ Run
136
+ RX
137
+ RXC
138
+ RXLIB
139
+ RXSET
140
+ Say
141
+ ScreenMode
142
+ Search
143
+ Serial
144
+ Set
145
+ SetClock
146
+ SetDate
147
+ SetEnv
148
+ SetFont
149
+ SetKeyboard
150
+ SetMap
151
+ SetPatch
152
+ ShowConfig
153
+ Skip
154
+ Sort
155
+ Sound
156
+ SPat
157
+ Stack
158
+ Startup-Sequence
159
+ Status
160
+ Storage
161
+ Super72
162
+ TCC
163
+ TCO
164
+ TE
165
+ Time
166
+ TS
167
+ Type
168
+ UnAlias
169
+ UnSet
170
+ UnSetEnv
171
+ User-Startup
172
+ Version
173
+ VGAOnly
174
+ Wait
175
+ WaitForPort
176
+ WBPattern
177
+ WBStartup
178
+ WDisplay
179
+ Which
180
+ Why
langs/amigados/symbols.txt ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ `
2
+ +
3
+ *
4
+ /
5
+ \
6
+ $
7
+ :
8
+ .
9
+ ?
10
+ ;
11
+ >
12
+ >>
13
+ <
14
+ <>
langs/amigados/wildcards.txt ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ #
2
+ ?
3
+ (
4
+ )
5
+ |
6
+ ~
7
+ %
8
+ [
9
+ ]
10
+ -
11
+ '
langs/arduino/arduino.txt ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ### ARDUINO LANGUAGE ###
2
+
3
+ # ELEMENT_NAME [optional-css-class] REGULAR_EXPRESSION
4
+
5
+ NAME Arduino
6
+ VERSION 1.0.0
7
+
8
+ COMMENT (?default)
9
+ PREPROCESSOR (?default)
10
+ STRING (?default)
11
+
12
+ STATEMENT (?default)|\b(?alt:statement.txt)\b
13
+ RESERVED (?default)|\b(?alt:reserved.txt)\b|\b(?alt:reserved2.txt)\b
14
+ TYPE (?default)
15
+ MODIFIER (?default)|\b(?alt:modifier.txt)\b
16
+
17
+ ENTITY (?default)
18
+ VARIABLE (?default)
19
+ CONSTANT ((?-i)\b[A-Z_]*\b(?i))|((?default))
20
+ IDENTIFIER (?default)
21
+ OPERATOR (?default)
22
+ SYMBOL (?default)
langs/arduino/modifier.txt ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ transparent_union
2
+ __extension__
3
+ __attribute__
4
+ __volatile__
5
+ __complex__
6
+ __inline__
7
+ __restrict
8
+ __signed__
9
+ deprecated
10
+ __const__
11
+ __label__
12
+ extension
13
+ attribute
14
+ may_alias
15
+ volatile
16
+ restrict
17
+ register
18
+ volatile
19
+ __imag__
20
+ __real__
21
+ restrict
22
+ nocommon
23
+ complex
24
+ aligned
25
+ section
26
+ cleanup
27
+ inline
28
+ signed
29
+ extern
30
+ packed
31
+ unused
32
+ const
33
+ label
34
+ imag
35
+ real
36
+ mode
langs/arduino/reserved.txt ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ __builtin_types_compatible_p
2
+ __builtin_return_address
3
+ constructor, destructor
4
+ __builtin_frame_address
5
+ no_instrument_function
6
+ __builtin_choose_expr
7
+ __builtin_constant_p
8
+ __builtin_apply_args
9
+ __builtin_prefetch
10
+ regparm, stkparm
11
+ __builtin_expect
12
+ __builtin_return
13
+ __builtin_apply
14
+ always_inline
15
+ __alignof__
16
+ format_arg
17
+ deprecated
18
+ interrupt
19
+ __FILE__
20
+ __LINE__
21
+ __func__
22
+ noreturn
23
+ noinline
24
+ __asm__
25
+ __align
26
+ __align
27
+ fortran
28
+ alignof
29
+ section
30
+ nonnull
31
+ nothrow
32
+ sprintf
33
+ sizeof
34
+ pascal
35
+ typeof
36
+ format
37
+ unused
38
+ malloc
39
+ printf
40
+ malloc
41
+ __asm
42
+ __asm
43
+ cdecl
44
+ const
45
+ alias
46
+ auto
47
+ near
48
+ huge
49
+ pure
50
+ used
51
+ asm
52
+ far
langs/arduino/reserved2.txt ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ analogWriteResolution
2
+ analogReadResolution
3
+ delayMicroseconds
4
+ analogReference
5
+ attachInterrupt
6
+ detachInterrupt
7
+ digitalWrite
8
+ noInterrupts
9
+ digitalRead
10
+ analogWrite
11
+ analogRead
12
+ randomSeed
13
+ interrupts
14
+ constrain
15
+ shiftOut
16
+ highByte
17
+ bitWrite
18
+ bitClear
19
+ pinMode
20
+ shiftIn
21
+ pulseIn
22
+ lowByte
23
+ bitRead
24
+ noTone
25
+ millis
26
+ micros
27
+ random
28
+ bitSet
29
+ delay
30
+ float
31
+ tone
32
+ sqrt
33
+ char
34
+ byte
35
+ word
36
+ long
37
+ min
38
+ max
39
+ abs
40
+ map
41
+ pow
42
+ sin
43
+ cos
44
+ tan
45
+ int
46
+ bit
langs/arduino/statement.txt ADDED
@@ -0,0 +1,2 @@
 
 
1
+ setup
2
+ loop
langs/batch/batch.txt CHANGED
@@ -1,21 +1,25 @@
1
  ### MS DOS BATCH SCRIPT ###
2
-
 
3
  # ELEMENT_NAME [optional-css-class] REGULAR_EXPRESSION
4
-
5
- NAME MS-DOS Batch
6
- VERSION 1.0
7
-
8
- STRING (?default)|(?<=\becho\b).*?$
9
-
10
- LABEL:FADED (:[a-zA-Z_\-][a-zA-Z0-9_\-\.]+)
11
- COMMENT ^::.*?$|^rem\s(.*?)$
12
 
13
- KEYWORD \b(?alt:keywords.txt)\b
14
 
15
- RESERVED \b(?alt:builtins.txt)\b|^[a-zA-Z][a-zA-Z0-9_\-\.]*
16
 
17
- VARIABLE %?%[0-9]+|%[^%\s]+%
 
18
 
19
- PARAMETER:VARIABLE \s-[a-zA-Z][a-zA-Z0.9]*
20
 
21
- OPERATOR ($default)|==|\[|\]|\*
 
 
 
1
  ### MS DOS BATCH SCRIPT ###
2
+ ### Author: Giuseppe Portelli giuseppe.portelli@gmail.com ###
3
+
4
  # ELEMENT_NAME [optional-css-class] REGULAR_EXPRESSION
5
+
6
+ NAME MS DOS
7
+ VERSION 1.1
8
+
9
+ STRING (?default)|(?<=\becho\b).*?$
10
+
11
+ COMMENT ^::.*?$|^rem\s(.*?)$
 
12
 
13
+ LABEL:FADED :[a-zA-Z_\-][a-zA-Z0-9_\-\.]+
14
 
15
+ KEYWORD @?\b(?alt:keywords.txt)\b
16
 
17
+ RESERVED @?\b(?alt:builtins.txt)\b
18
+ COMMAND:RESERVED ^@?\b[a-zA-Z][a-zA-Z0-9_\-\.]*\b
19
 
20
+ VARIABLE %?%[0-9]+|%[^%\s]+%
21
 
22
+ PARAMETER:ENTITY \s-[a-zA-Z][a-zA-Z0-9]*
23
+
24
+ OPERATOR (?default)
25
+ SYMBOL (?default)
langs/coffee/coffee.txt ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ### COFFEESCRIPT LANGUAGE ###
2
+
3
+ # ELEMENT_NAME [optional-css-class] REGULAR_EXPRESSION
4
+
5
+ NAME CoffeeScript
6
+ VERSION 1.0
7
+
8
+ COMMENT (#.*?$)
9
+ STRING (?default)|(%\w?\([^\)]*\))|(\`[^\`]*`)|(\<\<["'-]?\w+["']?)
10
+
11
+ FUNCTION:KEYWORD \b(?alt:function.txt)\b
12
+ MODULE:KEYWORD \b(?alt:module.txt)\b
13
+ EXCEPTION:KEYWORD \b(?alt:exception.txt)\b
14
+ STATEMENT \b(?alt:statement.txt)\b
15
+ RESERVED \b(?alt:reserved.txt)\b
16
+ TYPE \b(?alt:type.txt)\b
17
+ MODIFIER \b(?alt:modifier.txt)\b
18
+
19
+ ENTITY ((?-i)\b[A-Z_][A-Za-z_]*(?i))|(\w+):
20
+ VARIABLE ((@+)\w+)|this
21
+ IDENTIFIER (?default)
22
+ CONSTANT (?default)
23
+ OPERATOR (?default)
24
+ SYMBOL (?default)
langs/coffee/exception.txt ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ RangeError
2
+ ReferenceError
3
+ SyntaxError
4
+ TypeError
5
+ RegExpURIError
langs/coffee/function.txt ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ parseInt
2
+ parseFloat
3
+ isNaN
4
+ isFinite
langs/coffee/modifier.txt ADDED
@@ -0,0 +1,2 @@
 
 
1
+ __defineGetter__
2
+ __defineSetter__
langs/coffee/module.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ console
2
+ document
3
+ export
langs/coffee/reserved.txt ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class
2
+ extends
3
+ super
4
+ require
5
+ undefined
6
+ null
7
+ return
8
+ prototype
9
+ is
10
+ isnt
11
+ or
12
+ and
13
+ yes
14
+ on
15
+ no
16
+ off
17
+ true
18
+ false
19
+ typeof
20
+ arguments
langs/coffee/statement.txt ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ if
2
+ else
3
+ try
4
+ catch
5
+ finally
6
+ throw
7
+ while
8
+ until
9
+ unless
10
+ do
11
+ in
12
+ of
13
+ then
14
+ when
15
+ switch
16
+ for
17
+ new
langs/coffee/type.txt ADDED
@@ -0,0 +1 @@
 
1
+ void
langs/css/css.txt CHANGED
@@ -7,15 +7,15 @@
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)
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/default/type.txt CHANGED
@@ -19,7 +19,7 @@ false
19
  char
20
  long
21
  void
22
- long
23
  byte
24
  bool
25
  null
19
  char
20
  long
21
  void
22
+ word
23
  byte
24
  bool
25
  null
langs/less/less.txt ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ### LESS CSS LANGUAGE ###
2
+
3
+ # ELEMENT_NAME [optional-css-class] REGULAR_EXPRESSION
4
+
5
+ NAME LESS
6
+ VERSION 1.0
7
+
8
+ COMMENT (/\*.*?\*/)
9
+ STRING (?default)
10
+
11
+ NOTATION \@(?alt:notation.txt)[^;]*;?
12
+ VARIABLE \@[\w-]+\b
13
+
14
+ # For the <style> tag
15
+ ATT_STR:STRING (((?<!\\)".*?(?<!\\)")|((?<!\\)'.*?(?<!\\)'))
16
+ TAG (</?\s*[^<\s>]+\s*>?)|(\s*>)
17
+ ATTR:ENTITY [\w-]+(?=\s*=\s*["'])
18
+
19
+ SELECTOR:KEYWORD [^\s\;\{\}][^\;\{\}]*(?=\{)
20
+ PROPERTY:ENTITY [\w-]+(?=\s*:)
21
+ IMP:CONSTANT !important
22
+ VALUE:IDENTIFIER [^\s\{\}\;\:\!\(\)]+
23
+ SYMBOL (?default)
langs/less/notation.txt ADDED
@@ -0,0 +1,2 @@
 
 
1
+ media
2
+ import
langs/lisp/lisp.txt ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ### LISP LANGUAGE ###
2
+
3
+ # ELEMENT_NAME [optional-css-class] REGULAR_EXPRESSION
4
+
5
+ NAME Lisp
6
+ VERSION 1.0
7
+
8
+ COMMENT (;.*?$)|(;\|.*?\|;)
9
+ STRING (?<!\\)".*?(?<!\\)"
10
+
11
+ STATEMENT \b(?alt:statement.txt)\b
12
+ RESERVED \b(?alt:reserved.txt)\b
13
+ TYPE \b(?alt:type.txt)\b
14
+ KEYWORD (?<=\()\s*[a-z-]*[a-z]\b
15
+
16
+ IDENTIFIER [a-z-]*[a-z]
17
+ CONSTANT (?default)
18
+ OPERATOR (?default)|\(|\)
19
+ SYMBOL (?default)
langs/lisp/reserved.txt ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ parse-integer
2
+ complement
3
+ backquote
4
+ make-list
5
+ identity
6
+ defmacro
7
+ baktrace
8
+ evalhook
9
+ truncate
10
+ logcount
11
+ funcall
12
+ putprop
13
+ remprop
14
+ reverse
15
+ nsublis
16
+ maplist
17
+ symbolp
18
+ numberp
19
+ bignums
20
+ lognand
21
+ logorc2
22
+ logtest
23
+ logbitp
24
+ lambda
25
+ gensym
26
+ symbol
27
+ intern
28
+ caaaar
29
+ caaadr
30
+ caadar
31
+ caaddr
32
+ cadaar
33
+ cadadr
34
+ caddar
35
+ cadddr
36
+ cdaaar
37
+ cdaadr
38
+ cdadar
39
+ cdaddr
40
+ cddaar
41
+ cddadr
42
+ cdddar
43
+ cddddr
44
+ append
45
+ nthcdr
46
+ member
47
+ sublis
48
+ nsubst
49
+ remove
50
+ length
51
+ mapcar
52
+ mapcan
53
+ mapcon
54
+ rplaca
55
+ rplacd
56
+ delete
57
+ boundp
58
+ minusp
59
+ errset
60
+ random
61
+ logand
62
+ logior
63
+ logxor
64
+ lognot
65
+ logeqv
66
+ lognor
67
+ defun
68
+ princ
69
+ apply
70
+ quote
71
+ value
72
+ plist
73
+ caaar
74
+ caadr
75
+ cadar
76
+ caddr
77
+ cdaar
78
+ cdadr
79
+ cddar
80
+ cdddr
81
+ assoc
82
+ subst
83
+ nconc
84
+ listp
85
+ consp
86
+ zerop
87
+ plusp
88
+ evenp
89
+ equal
90
+ prog1
91
+ prog2
92
+ progn
93
+ print
94
+ write
95
+ eval
96
+ setq
97
+ setf
98
+ make
99
+ name
100
+ getf
101
+ aref
102
+ caar
103
+ cadr
104
+ cdar
105
+ cddr
106
+ cons
107
+ last
108
+ mapc
109
+ mapl
110
+ oddp
111
+ cond
112
+ case
113
+ prog
114
+ expt
115
+ sqrt
116
+ set
117
+ get
118
+ car
119
+ cdr
120
+ nth
121
+ eql
122
+ let
123
+ rem
124
+ min
125
+ max
126
+ abs
127
+ sin
128
+ cos
129
+ tan
130
+ exp
131
+ eq
132
+ l
langs/lisp/statement.txt ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ continue
2
+ dotimes
3
+ return
4
+ dolist
5
+ catch
6
+ throw
7
+ break
8
+ when
9
+ not
10
+ and
11
+ or
12
+ if
13
+ go
14
+ do
langs/lisp/type.txt ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ function
2
+ integer
3
+ cerror
4
+ array
5
+ error
6
+ float
7
+ hash
8
+ list
9
+ atom
10
+ null
11
+ nil
langs/readme.txt CHANGED
@@ -1,6 +1,6 @@
1
  ====================================================================================================
2
  A QUICK HOW-TO ABOUT CRAYON LANGUAGE FILES v.1.0
3
- For updated info, visit http://ak.net84.net/ or check out twitter.com/crayonsyntax
4
  ====================================================================================================
5
 
6
  ----------------------------------------------------------------------------------------------------
1
  ====================================================================================================
2
  A QUICK HOW-TO ABOUT CRAYON LANGUAGE FILES v.1.0
3
+ For updated info, visit http://aramk.com/ or check out twitter.com/crayonsyntax
4
  ====================================================================================================
5
 
6
  ----------------------------------------------------------------------------------------------------
langs/sass/sass.txt ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ### SASS LANGUAGE ###
2
+
3
+ # ELEMENT_NAME [optional-css-class] REGULAR_EXPRESSION
4
+
5
+ NAME Sass
6
+ VERSION 1.0
7
+
8
+ COMMENT (?default)
9
+ STRING (?default)
10
+ VARIABLE \$[\w-]+
11
+ RULE:RESERVED \@[\w-]+
12
+
13
+ # For the <style> tag
14
+ ATT_STR:STRING (((?<!\\)".*?(?<!\\)")|((?<!\\)'.*?(?<!\\)'))
15
+ TAG (</?\s*[^<\s>]+\s*>?)|(\s*>)
16
+ ATTR:ENTITY [\w-]+(?=\s*=\s*["'])
17
+
18
+ ENTITY \b[\w-]+(?=\()
19
+
20
+ TYPE (?default)
21
+ SELECTOR:KEYWORD [^\s\;\{\}\(\)][^\;\{\}\(\)]*(?=\{)
22
+ PROPERTY:ENTITY [\w-]+(?=\s*:)
23
+ IMP:CONSTANT !important
24
+ VALUE:IDENTIFIER [^\s\{\}\;\:\!\(\)]+
25
+ SYMBOL (?default)
readme.txt CHANGED
@@ -5,7 +5,7 @@ License: GPLv2 or later
5
  Tags: syntax highlighter, syntax, highlighter, highlighting, crayon, code highlighter, bbpress
6
  Requires at least: 3.0
7
  Tested up to: 3.5
8
- Stable tag: 2.0.0
9
 
10
  Syntax Highlighter supporting multiple languages, themes, fonts, highlighting from a URL, local file or post text.
11
 
@@ -16,25 +16,26 @@ It can highlight from a URL, a local file or Wordpress post text. Crayon makes i
16
  custom language elements with regular expressions.
17
  It also supports some neat features like:
18
 
19
- * Integrated <a href="http://ak.net84.net/crayon/crayon-theme-editor/" target="_blank">Theme Editor!</a>
20
- * <a href="http://ak.net84.net/projects/crayon-tag-editor/" target="_blank">Tag Editor</a> in both Visual & HTML editors
21
  * Toggled plain code
22
  * Toggled line numbers
23
  * Copy/paste code
24
  * Open code in a new window (popup)
25
  * Line wrapping
26
  * Code expanding
 
27
  * bbPress 2 support
28
  * <a href="http://bit.ly/ReRr0i" target="_blank">Converting legacy code in blog posts/comments to &lt;pre&gt;</a>
29
  * Remote request caching
30
- * <a href="http://ak.net84.net/projects/mixed-language-highlighting-in-crayon/" target="_blank">Mixed Language Highlighting</a> in a single Crayon
31
- * <a href="http://ak.net84.net/projects/mini-tags-in-crayon/" target="_blank">Mini Tags</a> like [php][/php]
32
- * <a href="http://ak.net84.net/crayon/inline-crayons/" target="_blank">Inline Tags</a> floating in sentences
33
  * Crayons in comments
34
  * &#96;Backquotes&#96; become &lt;code&gt;
35
  * &lt;pre&gt; tag support, option to use <code>setting-value</code> in the class attribute
36
  * Valid HTML 5 markup
37
- * <a href="http://ak.net84.net/projects/crayon-tag-editor/" target="_blank">Visual & HTML editor compatible</a>
38
  * Mobile/touchscreen device detection
39
  * Mouse event interaction (showing plain code on double click, toolbar on mouseover)
40
  * Tab sizes
@@ -43,7 +44,7 @@ It also supports some neat features like:
43
  * Retina buttons
44
  * Striped lines
45
  * Line marking (for important lines)
46
- * <a href="http://ak.net84.net/crayon/line-ranges-in-crayon/" target="_blank">Line ranges (showing only parts of the code)</a>
47
  * Starting line number (default is 1)
48
  * Local directory to search for local files
49
  * File extension detection
@@ -54,33 +55,37 @@ It also supports some neat features like:
54
  **Links**
55
 
56
  * <a href="https://github.com/aramkocharyan/crayon-syntax-highlighter" target="_blank">Beta Releases</a>
 
57
  * <a href="http://aksandbox.webege.com/?p=1" target="_blank">Live Demo</a>
58
- * <a href="http://ak.net84.net/projects/crayon-syntax-highlighter/" target="_blank">Short How-To</a>
59
 
60
  **Contributions**
61
 
62
  There are many ways you can help!
63
 
64
  * Make a Theme and share
65
- * Add support for your favourite <a href="http://ak.net84.net/projects/crayon-language-file-specification/" target="_blank">Language</a>
66
  * Write a post about your pastel experiences and share
67
  * <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=AW99EMEPQ4CFE&lc=AU&item_name=Crayon%20Syntax%20Highlighter%20Donation&item_number=crayon%2ddonate&currency_code=AUD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted" target="_blank">Donate</a> to the project
68
 
69
  **Supported Languages**
70
 
71
  Languages are defined in language files using Regular Expressions to capture elements.
72
- See the <a href="http://ak.net84.net/projects/crayon-language-file-specification/" target="_blank">Crayon Language File Specification</a> to learn how to make your own.
73
 
74
  * Default Language (one size fits all, highlights generic code)
75
  * ABAP
76
  * ActionScript
 
77
  * Apache
78
  * AppleScript
 
79
  * Assembly (x86)
80
  * AutoIt
81
  * C
82
  * C#
83
  * C++
 
84
  * CSS
85
  * Delphi/Pascal (thanks to <a href="http://squashbrain.com/" target="_blank">Chris McClenny</a>)
86
  * Diff (thanks to <a href="http://omniavin.co/post/262" target="_blank">omniavin</a>)
@@ -88,11 +93,12 @@ See the <a href="http://ak.net84.net/projects/crayon-language-file-specification
88
  * Go
89
  * Haskell
90
  * HTML (XML/XHTML)
 
91
  * Lua
92
  * Microsoft Registry (thanks to <a href="http://techexplored.com/2012/03/21/crayon-syntax-highlighter-reg-support/" target="_blank">techexplored.com</a>)
93
  * MIVA Script
94
  * Monkey (thanks to <a href="https://github.com/devolonter" target="_blank">Devolonter</a>)
95
- * MS-DOS Batch (thanks to <a href="http://www.amigalog.com/?p=334" target="_blank">http://www.amigalog.com/?p=334</a>)
96
  * Java
97
  * JavaScript
98
  * Objective-C
@@ -122,6 +128,7 @@ See the <a href="http://ak.net84.net/projects/crayon-language-file-specification
122
  * Lithuanian (thanks to <a href="http://www.host1free.com" target="_blank">Vincent G</a>)
123
  * Polish (thanks to <a href="https://github.com/toszcze" target="_blank">Bartosz Romanowski</a>)
124
  * Portuguese (thanks to <a href="http://www.adonai.eti.br" target="_blank">Adonai S. Canez</a>)
 
125
  * Spanish (thanks to <a href="http://www.hbravo.com/" target="_blank">Hermann Bravo</a>)
126
  * Russian (thanks to <a href="http://simplelib.com" target="_blank">Minimus</a> & <a href="http://atlocal.net/" target="_blank">Di_Skyer</a>)
127
  * Turkish (thanks to <a href="http://hakanertr.wordpress.com" target="_blank">Hakan</a>)
@@ -131,20 +138,22 @@ See the <a href="http://ak.net84.net/projects/crayon-language-file-specification
131
 
132
  These are helpful for discovering new features.
133
 
134
- * <a href="http://ak.net84.net/crayon/internal-post-management-crayon/" target="_blank">Internal Post Management in Crayon</a>
135
- * <a href="http://ak.net84.net/crayon/converting-legacy-tags-to-pre/" target="_blank">Converting Legacy Tags to &lt;pre&gt;</a>
136
- * <a href="http://ak.net84.net/crayon/crayon-with-bbpress/" target="_blank">Crayon with bbPress</a>
137
- * <a href="http://ak.net84.net/crayon/line-ranges-in-crayon/" target="_blank">Line Ranges in Crayon</a>
138
- * <a href="http://ak.net84.net/projects/crayon-tag-editor/" target="_blank">Crayon Tag Editor</a>
139
- * <a href="http://ak.net84.net/projects/mixed-language-highlighting-in-crayon/" target="_blank">Mixed Language Highlighting in Crayon</a>
140
- * <a href="http://ak.net84.net/projects/mini-tags-in-crayon/" target="_blank">Mini Tags And Plain Tags In Crayon</a>
141
- * <a href="http://ak.net84.net/crayon/inline-crayons/" target="_blank">Inline Tags</a>
142
- * <a href="http://ak.net84.net/projects/enqueuing-themes-and-fonts-in-crayon/" target="_blank">Enqueuing Themes and Fonts in Crayon</a>
143
 
144
  **The Press**
145
 
146
  A handful of articles from others written about Crayon, thanks guys!
147
 
 
 
148
  * <a href="http://icrunched.co/top-5-syntax-highlighter-wordpress-plugins/" target="_blank">Top 5 Syntax Highlighter WordPress Plugins</a>
149
  * <a href="http://themesplugins.com/wordpress-Plugin/add-php-java-html-codes-posts-pages/" target="_blank">Crayon Syntax Highlighter � Plugin</a>
150
  * <a href="http://bbpress.org/forums/topic/state-of-syntax-highlighter-support-in-bbpress-2/" target="_blank">State of syntax highlighter support in bbPress 2</a>
@@ -173,6 +182,7 @@ A handful of articles from others written about Crayon, thanks guys!
173
 
174
  Thanks to all those who donate to my project, your support keeps the Crayons going!
175
 
 
176
  * Joseph DeVenuta, USA
177
  * Iván Prego García, Spain
178
  * Johannes Luijten, (http://www.tweaking4all.com/, http://www.weethet.nl/), USA
@@ -211,7 +221,7 @@ Thanks to all those who donate to my project, your support keeps the Crayons goi
211
 
212
  = How do I use the Tag Editor? =
213
 
214
- The <a href="http://ak.net84.net/projects/crayon-tag-editor/" target="_blank">Tag Editor</a> provides a dialog box to add Crayons easily.
215
 
216
  = How do I use it manually? =
217
 
@@ -233,7 +243,7 @@ You can also use Mini Tags:
233
 
234
  <code>[php url="https://raw.github.com/somefile.php" /]</code>
235
 
236
- Please see the <a href="http://ak.net84.net/projects/crayon-syntax-highlighter/" target="_blank">documentation</a> for more details.
237
 
238
  = Why are the controls not working? =
239
 
@@ -261,6 +271,53 @@ Contact me at http://twitter.com/crayonsyntax or crayon.syntax@gmail.com.
261
 
262
  == Changelog ==
263
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
264
  = 2.0.0 =
265
  * ADDED:
266
  * Theme Editor allowing users to create and modify Crayon Themes!
@@ -321,7 +378,7 @@ Contact me at http://twitter.com/crayonsyntax or crayon.syntax@gmail.com.
321
  * MS-DOS batch language (thanks to <a href="http://www.amigalog.com/?p=334" target="_blank">http://www.amigalog.com/?p=334</a>)
322
  * Minor improvements
323
  * FIXED:
324
- * Fancybox issues have been fixed: http://ak.net84.net/crayon/initialising-fancybox-with-custom-objects/
325
  * max/min-height/width didn't work on Tag Editor
326
  * Width discrepancy before and after mouseover from 1px border
327
  * Before and after whitespace didn't display correctly
@@ -380,7 +437,7 @@ Contact me at http://twitter.com/crayonsyntax or crayon.syntax@gmail.com.
380
  * Integrated Tag Editor with Fancybox, switched from the discontinued ThickBox, a fair amount of changes took place.
381
  * Crayon should now appear pretty much anywhere TinyMCE does, and this can be tweaked to add more options later.
382
  * Added setting to disable Tag Editor on front end, and/or disable its settings.
383
- * Added the ability to specify <a href="http://ak.net84.net/crayon/line-ranges-in-crayon/" target="_blank">line ranges</a>
384
  * Added Microsoft Registry language thanks to <a href="http://techexplored.com/2012/03/21/crayon-syntax-highlighter-reg-support/" target="_blank">techexplored.com</a>
385
  * Added MIVA Script language
386
  * Added Transact-SQL language
@@ -593,7 +650,7 @@ Contact me at http://twitter.com/crayonsyntax or crayon.syntax@gmail.com.
593
  * "Always display scrollbars" now a checkbox
594
 
595
  = 1.7.19 =
596
- * Fixed issue with Crayons failing to load on pages with templates containing The Loop. http://ak.net84.net/crayon/failing-to-load-crayons-on-pages/
597
  * Objective-C operators improved
598
 
599
  = 1.7.18 =
@@ -661,9 +718,9 @@ Contact me at http://twitter.com/crayonsyntax or crayon.syntax@gmail.com.
661
  * Added namespacing to crayon.js to prevent conflicts
662
 
663
  = 1.7.3 =
664
- * Added Mini Tags and Plain Tags into Crayon. http://ak.net84.net/projects/mini-tags-in-crayon/
665
  * Fixed a bug causing RSS feeds to contain malformed HTML of Crayons, now it shows plain code with correct indentations. Thanks to Артём.
666
- * Updated help in Settings and http://ak.net84.net/projects/crayon-syntax-highlighter/
667
 
668
  = 1.7.2 =
669
  * Fixed a bug that prevented foreign languages from being initialised and used. Thanks to @west_323 for finding it.
@@ -672,7 +729,7 @@ Contact me at http://twitter.com/crayonsyntax or crayon.syntax@gmail.com.
672
  * Renamed Japanese GNU language code from ja_JP to ja.
673
 
674
  = 1.7.0 =
675
- * Added the ability to highlight multiple languages in a single Crayon! http://ak.net84.net/projects/mixed-language-highlighting-in-crayon/
676
  * A bunch of language improvements, a few CSS improvements, etc.
677
 
678
  = 1.6.6 =
@@ -695,7 +752,7 @@ The same applies to &lt;pre&gt; tags (not &lt; pre &gt;). The reason is to impro
695
 
696
  = 1.6.3 =
697
  * For those still having issues with CSS and JavaScript not laoding, I have added a new setting in Misc. that will allow you to either attempt to load these resources when needed if you have no issues with your theme or to force them to load on each page.
698
- * Please see: http://ak.net84.net/php/loading-css-and-javascript-only-when-required-in-a-wordpress-plugin/
699
 
700
  = 1.6.2 =
701
  * Added ability to use and define language aliases. eg. XML -> XHTML, cpp -> c++, py -> python
@@ -757,7 +814,7 @@ it's actually quite easy to edit - just contact me via email :)
757
  * Added some keywords to c++, changed sample code
758
 
759
  = 1.4.0 =
760
- * Added all other global settings for easy overriding: http://ak.net84.net/projects/crayon-settings/
761
  * Fixed issues with variables and entites in language regex
762
  * Added Epicgeeks theme made by Joe Newing of epicgeeks.net
763
  * Help updated
5
  Tags: syntax highlighter, syntax, highlighter, highlighting, crayon, code highlighter, bbpress
6
  Requires at least: 3.0
7
  Tested up to: 3.5
8
+ Stable tag: trunk
9
 
10
  Syntax Highlighter supporting multiple languages, themes, fonts, highlighting from a URL, local file or post text.
11
 
16
  custom language elements with regular expressions.
17
  It also supports some neat features like:
18
 
19
+ * Integrated <a href="http://aramk.com/crayon/crayon-theme-editor/" target="_blank">Theme Editor!</a>
20
+ * <a href="http://aramk.com/projects/crayon-tag-editor/" target="_blank">Tag Editor</a> in both Visual & HTML editors
21
  * Toggled plain code
22
  * Toggled line numbers
23
  * Copy/paste code
24
  * Open code in a new window (popup)
25
  * Line wrapping
26
  * Code expanding
27
+ * Minimizing
28
  * bbPress 2 support
29
  * <a href="http://bit.ly/ReRr0i" target="_blank">Converting legacy code in blog posts/comments to &lt;pre&gt;</a>
30
  * Remote request caching
31
+ * <a href="http://aramk.com/projects/mixed-language-highlighting-in-crayon/" target="_blank">Mixed Language Highlighting</a> in a single Crayon
32
+ * <a href="http://aramk.com/projects/mini-tags-in-crayon/" target="_blank">Mini Tags</a> like [php][/php]
33
+ * <a href="http://aramk.com/crayon/inline-crayons/" target="_blank">Inline Tags</a> floating in sentences
34
  * Crayons in comments
35
  * &#96;Backquotes&#96; become &lt;code&gt;
36
  * &lt;pre&gt; tag support, option to use <code>setting-value</code> in the class attribute
37
  * Valid HTML 5 markup
38
+ * <a href="http://aramk.com/projects/crayon-tag-editor/" target="_blank">Visual & HTML editor compatible</a>
39
  * Mobile/touchscreen device detection
40
  * Mouse event interaction (showing plain code on double click, toolbar on mouseover)
41
  * Tab sizes
44
  * Retina buttons
45
  * Striped lines
46
  * Line marking (for important lines)
47
+ * <a href="http://aramk.com/crayon/line-ranges-in-crayon/" target="_blank">Line ranges (showing only parts of the code)</a>
48
  * Starting line number (default is 1)
49
  * Local directory to search for local files
50
  * File extension detection
55
  **Links**
56
 
57
  * <a href="https://github.com/aramkocharyan/crayon-syntax-highlighter" target="_blank">Beta Releases</a>
58
+ * <a href="http://aramk.com/crayon/crayon-themes/" target="_blank">Themes Demo</a>
59
  * <a href="http://aksandbox.webege.com/?p=1" target="_blank">Live Demo</a>
60
+ * <a href="http://aramk.com/projects/crayon-syntax-highlighter/" target="_blank">Short How-To</a>
61
 
62
  **Contributions**
63
 
64
  There are many ways you can help!
65
 
66
  * Make a Theme and share
67
+ * Add support for your favourite <a href="http://aramk.com/projects/crayon-language-file-specification/" target="_blank">Language</a>
68
  * Write a post about your pastel experiences and share
69
  * <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=AW99EMEPQ4CFE&lc=AU&item_name=Crayon%20Syntax%20Highlighter%20Donation&item_number=crayon%2ddonate&currency_code=AUD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted" target="_blank">Donate</a> to the project
70
 
71
  **Supported Languages**
72
 
73
  Languages are defined in language files using Regular Expressions to capture elements.
74
+ See the <a href="http://aramk.com/projects/crayon-language-file-specification/" target="_blank">Crayon Language File Specification</a> to learn how to make your own.
75
 
76
  * Default Language (one size fits all, highlights generic code)
77
  * ABAP
78
  * ActionScript
79
+ * AmigaDOS (thanks to <a href="http://www.amigalog.com/" target="_blank">amigalog.com</a>)
80
  * Apache
81
  * AppleScript
82
+ * Arduino
83
  * Assembly (x86)
84
  * AutoIt
85
  * C
86
  * C#
87
  * C++
88
+ * CoffeeScript (thanks to <a href="http://firn.jp/crayon-coffeescript" target="_blank">Dai Akatsuka</a>)
89
  * CSS
90
  * Delphi/Pascal (thanks to <a href="http://squashbrain.com/" target="_blank">Chris McClenny</a>)
91
  * Diff (thanks to <a href="http://omniavin.co/post/262" target="_blank">omniavin</a>)
93
  * Go
94
  * Haskell
95
  * HTML (XML/XHTML)
96
+ * Lisp
97
  * Lua
98
  * Microsoft Registry (thanks to <a href="http://techexplored.com/2012/03/21/crayon-syntax-highlighter-reg-support/" target="_blank">techexplored.com</a>)
99
  * MIVA Script
100
  * Monkey (thanks to <a href="https://github.com/devolonter" target="_blank">Devolonter</a>)
101
+ * MS-DOS (thanks to <a href="http://www.amigalog.com/?p=334" target="_blank">http://www.amigalog.com/?p=334</a>)
102
  * Java
103
  * JavaScript
104
  * Objective-C
128
  * Lithuanian (thanks to <a href="http://www.host1free.com" target="_blank">Vincent G</a>)
129
  * Polish (thanks to <a href="https://github.com/toszcze" target="_blank">Bartosz Romanowski</a>)
130
  * Portuguese (thanks to <a href="http://www.adonai.eti.br" target="_blank">Adonai S. Canez</a>)
131
+ * Slovak (thanks to Branco, <a href="http://webhostinggeeks.com/blog/">http://webhostinggeeks.com/</a>)
132
  * Spanish (thanks to <a href="http://www.hbravo.com/" target="_blank">Hermann Bravo</a>)
133
  * Russian (thanks to <a href="http://simplelib.com" target="_blank">Minimus</a> & <a href="http://atlocal.net/" target="_blank">Di_Skyer</a>)
134
  * Turkish (thanks to <a href="http://hakanertr.wordpress.com" target="_blank">Hakan</a>)
138
 
139
  These are helpful for discovering new features.
140
 
141
+ * <a href="http://aramk.com/crayon/internal-post-management-crayon/" target="_blank">Internal Post Management in Crayon</a>
142
+ * <a href="http://aramk.com/crayon/converting-legacy-tags-to-pre/" target="_blank">Converting Legacy Tags to &lt;pre&gt;</a>
143
+ * <a href="http://aramk.com/crayon/crayon-with-bbpress/" target="_blank">Crayon with bbPress</a>
144
+ * <a href="http://aramk.com/crayon/line-ranges-in-crayon/" target="_blank">Line Ranges in Crayon</a>
145
+ * <a href="http://aramk.com/projects/crayon-tag-editor/" target="_blank">Crayon Tag Editor</a>
146
+ * <a href="http://aramk.com/projects/mixed-language-highlighting-in-crayon/" target="_blank">Mixed Language Highlighting in Crayon</a>
147
+ * <a href="http://aramk.com/projects/mini-tags-in-crayon/" target="_blank">Mini Tags And Plain Tags In Crayon</a>
148
+ * <a href="http://aramk.com/crayon/inline-crayons/" target="_blank">Inline Tags</a>
149
+ * <a href="http://aramk.com/projects/enqueuing-themes-and-fonts-in-crayon/" target="_blank">Enqueuing Themes and Fonts in Crayon</a>
150
 
151
  **The Press**
152
 
153
  A handful of articles from others written about Crayon, thanks guys!
154
 
155
+ * <a href="http://www.wordpressthemeshq.net/5-best-syntax-highlighter-plugins-for-wordpress/" target="_blank">5 Best Syntax Highlighter Plugins for WordPress</a>
156
+ * <a href="http://amecylia.com/how-to-post-source-code-wordpress/" target="_blank">How To Post Source Code In Wordpress</a>
157
  * <a href="http://icrunched.co/top-5-syntax-highlighter-wordpress-plugins/" target="_blank">Top 5 Syntax Highlighter WordPress Plugins</a>
158
  * <a href="http://themesplugins.com/wordpress-Plugin/add-php-java-html-codes-posts-pages/" target="_blank">Crayon Syntax Highlighter � Plugin</a>
159
  * <a href="http://bbpress.org/forums/topic/state-of-syntax-highlighter-support-in-bbpress-2/" target="_blank">State of syntax highlighter support in bbPress 2</a>
182
 
183
  Thanks to all those who donate to my project, your support keeps the Crayons going!
184
 
185
+ * Nico Hartung, (http://www.loggn.de/), Germany
186
  * Joseph DeVenuta, USA
187
  * Iván Prego García, Spain
188
  * Johannes Luijten, (http://www.tweaking4all.com/, http://www.weethet.nl/), USA
221
 
222
  = How do I use the Tag Editor? =
223
 
224
+ The <a href="http://aramk.com/projects/crayon-tag-editor/" target="_blank">Tag Editor</a> provides a dialog box to add Crayons easily.
225
 
226
  = How do I use it manually? =
227
 
243
 
244
  <code>[php url="https://raw.github.com/somefile.php" /]</code>
245
 
246
+ Please see the <a href="http://aramk.com/projects/crayon-syntax-highlighter/" target="_blank">documentation</a> for more details.
247
 
248
  = Why are the controls not working? =
249
 
271
 
272
  == Changelog ==
273
 
274
+ = 2.1.0 =
275
+ * ADDED:
276
+ * Arduino language
277
+ * LESS language
278
+ * Sass language
279
+ * Lisp language
280
+ * AmigaDOS language
281
+ * Added CoffeeScript thanks to http://firn.jp/crayon-coffeescript
282
+ * Line numbers right border in theme editor
283
+ * New Themes: Familiar, Idle, Tomorrow, Tomorrow Night, Github, VS2012, VS2012 Black
284
+ * Ability to minimize code
285
+ * Translation to Slovak
286
+ * FIXED:
287
+ * jQuery UI is no longer an external dependency; now using wpdialog(). Theme Editor updated to use wpdialog.
288
+ * Inline tags. See: https://github.com/aramkocharyan/crayon-syntax-highlighter/issues/57
289
+ * Tag Editor didn't work on front end
290
+ * Improved legacy tag conversion functions by removing false positives arising from duplicate regex
291
+ * Slightly faster conversion of legacy by delaying database writes until the end
292
+ * &-quot; is also converted now in HTML
293
+ * Position of color picker top is remembered
294
+ * Minor bug in saving themes causing field name mapping to be ignored.
295
+ * Added missing blank.gif in fancybox
296
+ * MS DOS language fixes
297
+ * Taken measures to prevent incorrect upload directory creating a folder in root.
298
+ * Theme fixes. 'border' is now split automatically into separate CSS rules.
299
+ * Monospaced font for Tag Editor
300
+ * "Attempt to load Crayon's CSS and JavaScript only when needed" setting improvements
301
+ * Logging improvements
302
+ * Unchecked property: Notice: Undefined property: WP_Query::$post
303
+ * Theme Editor PHP classes renamed to avoid conflicts
304
+ * Log uses strval() instead of ob_start() to avoid conflicts with other plugins using ob_start() without ob_end_flush() or similar
305
+
306
+ = 2.0.2 =
307
+ * FIXED:
308
+ * Converting tags failed to work since 2.0.0 - also fixed minor bugs leading to false positives for legacy tags.
309
+ * Copy function was calling invalid function, preventing duplication from taking place.
310
+ * Slashes are removed from server side input which was appearing from the change code dialog
311
+
312
+ = 2.0.1 =
313
+ * ADDED:
314
+ * Ability to change sample code in settings
315
+ * FIXED:
316
+ * Changes in ID definitions caused C++ and C# to fail loading.
317
+ * Fixed issues with minified CSS not loading in popup window
318
+ * Using wp_mkdir_p instead of mkdir for creating directories and such.
319
+ * Admin resource dependencies
320
+
321
  = 2.0.0 =
322
  * ADDED:
323
  * Theme Editor allowing users to create and modify Crayon Themes!
378
  * MS-DOS batch language (thanks to <a href="http://www.amigalog.com/?p=334" target="_blank">http://www.amigalog.com/?p=334</a>)
379
  * Minor improvements
380
  * FIXED:
381
+ * Fancybox issues have been fixed: http://aramk.com/crayon/initialising-fancybox-with-custom-objects/
382
  * max/min-height/width didn't work on Tag Editor
383
  * Width discrepancy before and after mouseover from 1px border
384
  * Before and after whitespace didn't display correctly
437
  * Integrated Tag Editor with Fancybox, switched from the discontinued ThickBox, a fair amount of changes took place.
438
  * Crayon should now appear pretty much anywhere TinyMCE does, and this can be tweaked to add more options later.
439
  * Added setting to disable Tag Editor on front end, and/or disable its settings.
440
+ * Added the ability to specify <a href="http://aramk.com/crayon/line-ranges-in-crayon/" target="_blank">line ranges</a>
441
  * Added Microsoft Registry language thanks to <a href="http://techexplored.com/2012/03/21/crayon-syntax-highlighter-reg-support/" target="_blank">techexplored.com</a>
442
  * Added MIVA Script language
443
  * Added Transact-SQL language
650
  * "Always display scrollbars" now a checkbox
651
 
652
  = 1.7.19 =
653
+ * Fixed issue with Crayons failing to load on pages with templates containing The Loop. http://aramk.com/crayon/failing-to-load-crayons-on-pages/
654
  * Objective-C operators improved
655
 
656
  = 1.7.18 =
718
  * Added namespacing to crayon.js to prevent conflicts
719
 
720
  = 1.7.3 =
721
+ * Added Mini Tags and Plain Tags into Crayon. http://aramk.com/projects/mini-tags-in-crayon/
722
  * Fixed a bug causing RSS feeds to contain malformed HTML of Crayons, now it shows plain code with correct indentations. Thanks to Артём.
723
+ * Updated help in Settings and http://aramk.com/projects/crayon-syntax-highlighter/
724
 
725
  = 1.7.2 =
726
  * Fixed a bug that prevented foreign languages from being initialised and used. Thanks to @west_323 for finding it.
729
  * Renamed Japanese GNU language code from ja_JP to ja.
730
 
731
  = 1.7.0 =
732
+ * Added the ability to highlight multiple languages in a single Crayon! http://aramk.com/projects/mixed-language-highlighting-in-crayon/
733
  * A bunch of language improvements, a few CSS improvements, etc.
734
 
735
  = 1.6.6 =
752
 
753
  = 1.6.3 =
754
  * For those still having issues with CSS and JavaScript not laoding, I have added a new setting in Misc. that will allow you to either attempt to load these resources when needed if you have no issues with your theme or to force them to load on each page.
755
+ * Please see: http://aramk.com/php/loading-css-and-javascript-only-when-required-in-a-wordpress-plugin/
756
 
757
  = 1.6.2 =
758
  * Added ability to use and define language aliases. eg. XML -> XHTML, cpp -> c++, py -> python
814
  * Added some keywords to c++, changed sample code
815
 
816
  = 1.4.0 =
817
+ * Added all other global settings for easy overriding: http://aramk.com/projects/crayon-settings/
818
  * Fixed issues with variables and entites in language regex
819
  * Added Epicgeeks theme made by Joe Newing of epicgeeks.net
820
  * Help updated
themes/ado/ado.css CHANGED
@@ -6,18 +6,27 @@ Author: Andrea Dell'Orco
6
  URL: http://www.adostudio.it/
7
  */
8
  .crayon-theme-ado {
9
- border: 1px #999 solid !important;
 
 
10
  text-shadow: none !important;
11
  background: #fdfdfd !important;
 
 
 
12
  }
13
  .crayon-theme-ado-inline {
14
- border: 1px solid #ddd !important;
 
 
15
  background: #fafafa !important;
16
  }
17
- .crayon-theme-ado .crayon-nums {
18
  background: #333333 !important;
19
  color: #DEDEDE !important;
20
- border-right: 1px solid #202020 !important;
 
 
21
  }
22
  .crayon-theme-ado .crayon-code::selection {
23
  background: #BBEEDA !important;
@@ -27,44 +36,27 @@ URL: http://www.adostudio.it/
27
  background: #BBEEDA !important;
28
  color: #269B6C !important;
29
  }
30
- .crayon-theme-ado::selection {
31
- background: transparent !important;
32
- }
33
- .crayon-theme-ado .crayon-toolbar::selection {
34
- background: transparent !important;
35
- }
36
- .crayon-theme-ado .crayon-toolbar *::selection {
37
- background: transparent !important;
38
- }
39
- .crayon-theme-ado .crayon-info::selection {
40
- background: transparent !important;
41
- }
42
- .crayon-theme-ado .crayon-info *::selection {
43
- background: transparent !important;
44
- }
45
- .crayon-theme-ado .crayon-nums::selection {
46
- background: transparent !important;
47
- }
48
- .crayon-theme-ado .crayon-nums *::selection {
49
  background: transparent !important;
50
  }
51
  .crayon-theme-ado .crayon-striped-line {
52
  background: #f7f7f7 !important;
53
- border: 1px #CCC !important;
54
  }
55
  .crayon-theme-ado .crayon-striped-num {
56
  background: #5B5B5B !important;
57
- border: 1px #333 !important;
58
  color: #fff !important;
59
  }
60
  .crayon-theme-ado .crayon-marked-line {
61
  background: #C7F1ED !important;
62
- border: 1px #9AE7DF !important;
 
63
  }
64
  .crayon-theme-ado .crayon-marked-num {
65
  color: #82DFC4 !important;
66
  background: #333333 !important;
67
- border-right: 1px solid #202020 !important;
 
 
68
  }
69
  .crayon-theme-ado .crayon-marked-line.crayon-striped-line {
70
  background: #B7EEE9 !important;
@@ -87,12 +79,16 @@ URL: http://www.adostudio.it/
87
  }
88
  .crayon-theme-ado .crayon-info {
89
  background: #E8E8E8 !important;
90
- border-bottom: 1px #888888 solid !important;
91
- color: #595959;
 
 
92
  }
93
  .crayon-theme-ado .crayon-toolbar {
94
  background: #DDD !important;
95
- border-bottom: 1px #BBB solid !important;
 
 
96
  }
97
  .crayon-theme-ado .crayon-toolbar > div {
98
  float: left !important;
@@ -106,27 +102,27 @@ URL: http://www.adostudio.it/
106
  .crayon-theme-ado .crayon-language {
107
  color: #999 !important;
108
  }
109
- .crayon-theme-ado a.crayon-button {
110
- background-color: transparent;
111
  }
112
- .crayon-theme-ado a.crayon-button:hover {
113
- background-color: #F2F2F2;
114
  color: #666;
115
  }
116
- .crayon-theme-ado a.crayon-button.crayon-pressed:hover {
117
- background-color: #F2F2F2;
118
  color: #666;
119
  }
120
- .crayon-theme-ado a.crayon-button.crayon-pressed {
121
- background-color: #BBB;
122
  color: #FFF;
123
  }
124
- .crayon-theme-ado a.crayon-button.crayon-pressed:active {
125
- background-color: #BBB;
126
  color: #FFF;
127
  }
128
- .crayon-theme-ado a.crayon-button:active {
129
- background-color: #BBB;
130
  color: #FFF;
131
  }
132
  .crayon-theme-ado .crayon-pre .c {
@@ -179,17 +175,12 @@ URL: http://www.adostudio.it/
179
  }
180
  .crayon-theme-ado .crayon-pre .n {
181
  color: #666 !important;
182
- font-style: italic;
183
  }
184
  .crayon-theme-ado .crayon-pre .f {
185
  color: #999 !important;
186
  }
187
- .crayon-syntax {
188
- -moz-border-radius: 5px;
189
- -webkit-border-radius: 5px;
190
- border-radius: 5px;
191
- }
192
- .crayon-table {
193
  -moz-border-radius: 5px;
194
  -webkit-border-radius: 5px;
195
  border-radius: 5px;
6
  URL: http://www.adostudio.it/
7
  */
8
  .crayon-theme-ado {
9
+ border-width: 1px !important;
10
+ border-color: #999 !important;
11
+ border-style: solid !important;
12
  text-shadow: none !important;
13
  background: #fdfdfd !important;
14
+ -moz-border-radius: 5px;
15
+ -webkit-border-radius: 5px;
16
+ border-radius: 5px;
17
  }
18
  .crayon-theme-ado-inline {
19
+ border-width: 1px !important;
20
+ border-color: #ddd !important;
21
+ border-style: solid !important;
22
  background: #fafafa !important;
23
  }
24
+ .crayon-theme-ado .crayon-table .crayon-nums {
25
  background: #333333 !important;
26
  color: #DEDEDE !important;
27
+ border-right-width: 1px !important;
28
+ border-right-style: solid !important;
29
+ border-right-color: #202020 !important;
30
  }
31
  .crayon-theme-ado .crayon-code::selection {
32
  background: #BBEEDA !important;
36
  background: #BBEEDA !important;
37
  color: #269B6C !important;
38
  }
39
+ .crayon-theme-ado *::selection {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  background: transparent !important;
41
  }
42
  .crayon-theme-ado .crayon-striped-line {
43
  background: #f7f7f7 !important;
 
44
  }
45
  .crayon-theme-ado .crayon-striped-num {
46
  background: #5B5B5B !important;
 
47
  color: #fff !important;
48
  }
49
  .crayon-theme-ado .crayon-marked-line {
50
  background: #C7F1ED !important;
51
+ border-width: 1px !important;
52
+ border-color: #9AE7DF !important;
53
  }
54
  .crayon-theme-ado .crayon-marked-num {
55
  color: #82DFC4 !important;
56
  background: #333333 !important;
57
+ border-width: 1px !important;
58
+ border-style: solid !important;
59
+ border-color: #202020 !important;
60
  }
61
  .crayon-theme-ado .crayon-marked-line.crayon-striped-line {
62
  background: #B7EEE9 !important;
79
  }
80
  .crayon-theme-ado .crayon-info {
81
  background: #E8E8E8 !important;
82
+ border-bottom-width: 1px !important;
83
+ border-bottom-style: solid !important;
84
+ border-bottom-color: #888888 !important;
85
+ color: #595959 !important;
86
  }
87
  .crayon-theme-ado .crayon-toolbar {
88
  background: #DDD !important;
89
+ border-bottom-width: 1px !important;
90
+ border-bottom-style: solid !important;
91
+ border-bottom-color: #BBB !important;
92
  }
93
  .crayon-theme-ado .crayon-toolbar > div {
94
  float: left !important;
102
  .crayon-theme-ado .crayon-language {
103
  color: #999 !important;
104
  }
105
+ .crayon-theme-ado .crayon-button {
106
+ background-color: transparent !important;
107
  }
108
+ .crayon-theme-ado .crayon-button:hover {
109
+ background-color: #F2F2F2 !important;
110
  color: #666;
111
  }
112
+ .crayon-theme-ado .crayon-button.crayon-pressed:hover {
113
+ background-color: #F2F2F2 !important;
114
  color: #666;
115
  }
116
+ .crayon-theme-ado .crayon-button.crayon-pressed {
117
+ background-color: #BBB !important;
118
  color: #FFF;
119
  }
120
+ .crayon-theme-ado .crayon-button.crayon-pressed:active {
121
+ background-color: #BBB !important;
122
  color: #FFF;
123
  }
124
+ .crayon-theme-ado .crayon-button:active {
125
+ background-color: #BBB !important;
126
  color: #FFF;
127
  }
128
  .crayon-theme-ado .crayon-pre .c {
175
  }
176
  .crayon-theme-ado .crayon-pre .n {
177
  color: #666 !important;
178
+ font-style: italic !important;
179
  }
180
  .crayon-theme-ado .crayon-pre .f {
181
  color: #999 !important;
182
  }
183
+ .crayon-theme-ado .crayon-table {
 
 
 
 
 
184
  -moz-border-radius: 5px;
185
  -webkit-border-radius: 5px;
186
  border-radius: 5px;
themes/classic-spaced/classic-spaced.css DELETED
@@ -1,190 +0,0 @@
1
- /*
2
- Theme Name: Classic Spaced
3
- Description: Clean, crisp and colorful.
4
- Version: 1.3
5
- Author: Aram Kocharyan
6
- Author URI: http://ak.net84.net/
7
- */
8
-
9
- /* Code Style ====================== */
10
- .crayon-theme-classic-spaced {
11
- border: 1px #999 solid !important;
12
- text-shadow: none !important;
13
- }
14
-
15
- .crayon-theme-classic-spaced,
16
- .crayon-theme-classic-spaced .crayon-nums,
17
- .crayon-theme-classic-spaced .crayon-plain,
18
- .crayon-theme-classic-spaced .crayon-pre {
19
- font-size: 12px !important;
20
- line-height: 20px !important;
21
- }
22
- .crayon-theme-classic-spaced .crayon-num,
23
- .crayon-theme-classic-spaced .crayon-line {
24
- height: 20px;
25
- }
26
-
27
- .crayon-theme-classic-spaced,
28
- .crayon-theme-classic-spaced .crayon-code {
29
- background: #fdfdfd !important;
30
- }
31
-
32
- /* Inline Style */
33
- .crayon-theme-classic-spaced-inline {
34
- border: 1px solid #ddd !important;
35
- background: #fafafa !important;
36
- }
37
-
38
- /* Line Numbers */
39
- .crayon-theme-classic-spaced .crayon-nums {
40
- background: #dfefff !important;
41
- color: #5499de !important;
42
- border-right: 1px solid #b3d3f3 !important;
43
- }
44
-
45
- /* Selection */
46
- .crayon-theme-classic-spaced .crayon-code::selection,
47
- .crayon-theme-classic-spaced .crayon-code *::selection {
48
- background: #ddeeff !important;
49
- color: #316ba5 !important;
50
- }
51
- .crayon-theme-classic-spaced::selection,
52
- .crayon-theme-classic-spaced .crayon-toolbar::selection,
53
- .crayon-theme-classic-spaced .crayon-toolbar *::selection,
54
- .crayon-theme-classic-spaced .crayon-info::selection,
55
- .crayon-theme-classic-spaced .crayon-info *::selection,
56
- .crayon-theme-classic-spaced .crayon-nums::selection,
57
- .crayon-theme-classic-spaced .crayon-nums *::selection {
58
- background: transparent !important;
59
- }
60
-
61
- /* Striped Lines */
62
- .crayon-theme-classic-spaced .crayon-striped-line {
63
- background: #f7f7f7 !important;
64
- border: 1px #CCC !important;
65
- }
66
- .crayon-theme-classic-spaced .crayon-striped-num {
67
- background: #c8e1fa !important;
68
- border: 1px #CCC !important;
69
- color: #317cc5 !important;
70
- }
71
-
72
- /* Marked Lines */
73
- .crayon-theme-classic-spaced .crayon-marked-line {
74
- background: #fffee2 !important;
75
- border: 1px #e9e579 !important;
76
- }
77
- .crayon-theme-classic-spaced .crayon-marked-num {
78
- color: #1561ac !important;
79
- background: #b3d3f4 !important;
80
- border: 1px #5999d9 !important;
81
- }
82
- .crayon-theme-classic-spaced .crayon-marked-line.crayon-striped-line {
83
- background: #faf8d1 !important;
84
- }
85
- .crayon-theme-classic-spaced .crayon-marked-num.crayon-striped-num {
86
- background: #9ec5ec !important;
87
- color: #105395 !important;
88
- }
89
- .crayon-theme-classic-spaced .crayon-marked-line.crayon-top,
90
- .crayon-theme-classic-spaced .crayon-marked-num.crayon-top {
91
- border-top-style: solid !important;
92
- }
93
- .crayon-theme-classic-spaced .crayon-marked-line.crayon-bottom,
94
- .crayon-theme-classic-spaced .crayon-marked-num.crayon-bottom {
95
- border-bottom-style: solid !important;
96
- }
97
-
98
- /* Info */
99
- .crayon-theme-classic-spaced .crayon-info {
100
- background: #faf9d7 !important;
101
- border-bottom: 1px #b1af5e solid !important;
102
- color: #7e7d34;
103
- }
104
-
105
- /* Toolbar */
106
- .crayon-theme-classic-spaced .crayon-toolbar {
107
- background: #DDD !important;
108
- border-bottom: 1px #BBB solid !important;
109
- }
110
- .crayon-theme-classic-spaced .crayon-toolbar > div {
111
- float: left !important;
112
- }
113
- .crayon-theme-classic-spaced .crayon-toolbar .crayon-tools {
114
- float: right !important;
115
- }
116
- .crayon-theme-classic-spaced .crayon-title {
117
- color: #333 !important;
118
- }
119
- .crayon-theme-classic-spaced .crayon-language {
120
- color: #999 !important;
121
- }
122
-
123
- /* Buttons */
124
- .crayon-theme-classic-spaced a.crayon-button {
125
- background-color: transparent;
126
- }
127
- .crayon-theme-classic-spaced a.crayon-button:hover,
128
- .crayon-theme-classic-spaced a.crayon-button.crayon-pressed:hover {
129
- background-color: #EEE;
130
- color: #666;
131
- }
132
- /* :active MUST come after :hover */
133
- .crayon-theme-classic-spaced a.crayon-button.crayon-pressed,
134
- .crayon-theme-classic-spaced a.crayon-button.crayon-pressed:active,
135
- .crayon-theme-classic-spaced a.crayon-button:active {
136
- background-color: #BCBCBC;
137
- color: #FFF;
138
- }
139
-
140
- /* End Code Style ================== */
141
-
142
- /* Syntax Highlighting ============= */
143
- .crayon-theme-classic-spaced .crayon-pre .c {
144
- color: #ff8000 !important;
145
- }
146
- .crayon-theme-classic-spaced .crayon-pre .p {
147
- color: #b85c00 !important;
148
- }
149
- .crayon-theme-classic-spaced .crayon-pre .s {
150
- color: #008000 !important;
151
- }
152
- .crayon-theme-classic-spaced .crayon-pre .k,
153
- .crayon-theme-classic-spaced .crayon-pre .st,
154
- .crayon-theme-classic-spaced .crayon-pre .r,
155
- .crayon-theme-classic-spaced .crayon-pre .t,
156
- .crayon-theme-classic-spaced .crayon-pre .m {
157
- color: #800080 !important;
158
- }
159
- .crayon-theme-classic-spaced .crayon-pre .ta {
160
- color: #FF0000 !important;
161
- }
162
- .crayon-theme-classic-spaced .crayon-pre .i {
163
- color: #000 !important;
164
- }
165
- .crayon-theme-classic-spaced .crayon-pre .v {
166
- color: #002D7A !important;
167
- }
168
- .crayon-theme-classic-spaced .crayon-pre .e {
169
- color: #004ed0 !important;
170
- }
171
- .crayon-theme-classic-spaced .crayon-pre .cn {
172
- color: #ce0000 !important;
173
- }
174
- .crayon-theme-classic-spaced .crayon-pre .o,
175
- .crayon-theme-classic-spaced .crayon-pre .h {
176
- color: #006fe0 !important;
177
- }
178
- .crayon-theme-classic-spaced .crayon-pre .sy {
179
- color: #333 !important;
180
- }
181
- .crayon-theme-classic-spaced .crayon-pre .n {
182
- color: #666 !important;
183
- font-style: italic;
184
- }
185
- .crayon-theme-classic-spaced .crayon-pre .f {
186
- color: #999 !important;
187
- }
188
- /* End Syntax Highlighting ========= */
189
-
190
- /* End Classic Scheme ============================================ */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
themes/classic/classic.css CHANGED
@@ -3,7 +3,7 @@ Name: Classic
3
  Description: Clean, crisp and colorful.
4
  Version: 1.3
5
  Author: Aram Kocharyan
6
- URL: http://ak.net84.net/
7
  */
8
  .crayon-theme-classic {
9
  border-width: 1px !important;
@@ -91,26 +91,26 @@ URL: http://ak.net84.net/
91
  .crayon-theme-classic .crayon-language {
92
  color: #999 !important;
93
  }
94
- .crayon-theme-classic a.crayon-button {
95
  background-color: transparent;
96
  }
97
- .crayon-theme-classic a.crayon-button:hover {
98
  background-color: #EEE;
99
  color: #666;
100
  }
101
- .crayon-theme-classic a.crayon-button.crayon-pressed:hover {
102
  background-color: #EEE;
103
  color: #666;
104
  }
105
- .crayon-theme-classic a.crayon-button.crayon-pressed {
106
  background-color: #BCBCBC;
107
  color: #FFF;
108
  }
109
- .crayon-theme-classic a.crayon-button.crayon-pressed:active {
110
  background-color: #BCBCBC;
111
  color: #FFF;
112
  }
113
- .crayon-theme-classic a.crayon-button:active {
114
  background-color: #BCBCBC;
115
  color: #FFF;
116
  }
3
  Description: Clean, crisp and colorful.
4
  Version: 1.3
5
  Author: Aram Kocharyan
6
+ URL: http://aramk.com/
7
  */
8
  .crayon-theme-classic {
9
  border-width: 1px !important;
91
  .crayon-theme-classic .crayon-language {
92
  color: #999 !important;
93
  }
94
+ .crayon-theme-classic .crayon-button {
95
  background-color: transparent;
96
  }
97
+ .crayon-theme-classic .crayon-button:hover {
98
  background-color: #EEE;
99
  color: #666;
100
  }
101
+ .crayon-theme-classic .crayon-button.crayon-pressed:hover {
102
  background-color: #EEE;
103
  color: #666;
104
  }
105
+ .crayon-theme-classic .crayon-button.crayon-pressed {
106
  background-color: #BCBCBC;
107
  color: #FFF;
108
  }
109
+ .crayon-theme-classic .crayon-button.crayon-pressed:active {
110
  background-color: #BCBCBC;
111
  color: #FFF;
112
  }
113
+ .crayon-theme-classic .crayon-button:active {
114
  background-color: #BCBCBC;
115
  color: #FFF;
116
  }
themes/epicgeeks/epicgeeks.css CHANGED
@@ -6,21 +6,27 @@ Author: J. Newing (synmuffin)
6
  URL: http://epicgeeks.net/
7
  */
8
  .crayon-theme-epicgeeks {
9
- border: 1px #e1e1e1 solid !important;
10
  text-shadow: none !important;
11
  background: #ffffe1 !important;
 
 
 
12
  }
13
  .crayon-theme-epicgeeks .crayon-code {
14
  background: #fdfdfd !important;
15
  }
16
  .crayon-theme-epicgeeks-inline {
17
- border: 1px solid #e1e1e1 !important;
 
 
18
  background: #ffffe1 !important;
19
  }
20
  .crayon-theme-epicgeeks .crayon-table .crayon-nums {
21
  background: #ffff9f !important;
22
  color: #333333 !important;
23
- border-right: 1px dashed #3cc0ff !important;
 
 
24
  }
25
  .crayon-theme-epicgeeks .crayon-code::selection {
26
  background: #ddeeff !important;
@@ -53,20 +59,26 @@ URL: http://epicgeeks.net/
53
  }
54
  .crayon-theme-epicgeeks .crayon-striped-line {
55
  background: #ffffd2 !important;
56
- border: 1px dashed #f0f0f0;
 
 
57
  }
58
  .crayon-theme-epicgeeks .crayon-striped-num {
59
  background: #ffff7c !important;
60
- border: 1px dashed #cccccc !important;
 
 
61
  }
62
  .crayon-theme-epicgeeks .crayon-marked-line {
63
  background: #fffee2 !important;
64
- border: 1px #e9e579 !important;
 
65
  }
66
  .crayon-theme-epicgeeks .crayon-marked-num {
67
  color: #1561ac !important;
68
  background: #f2f24b !important;
69
- border: 1px #E9E579 !important;
 
70
  }
71
  .crayon-theme-epicgeeks .crayon-marked-line.crayon-striped-line {
72
  background: #faf8d1 !important;
@@ -89,12 +101,16 @@ URL: http://epicgeeks.net/
89
  }
90
  .crayon-theme-epicgeeks .crayon-info {
91
  background: #faf9d7 !important;
92
- border-bottom: 1px #b1af5e dashed !important;
93
- color: #7e7d34;
 
 
94
  }
95
  .crayon-theme-epicgeeks .crayon-toolbar {
96
  background: #f9f9f9 !important;
97
- border-bottom: 1px #d2d2d2 solid !important;
 
 
98
  }
99
  .crayon-theme-epicgeeks .crayon-toolbar > div {
100
  float: left !important;
@@ -108,27 +124,27 @@ URL: http://epicgeeks.net/
108
  .crayon-theme-epicgeeks .crayon-language {
109
  color: #999 !important;
110
  }
111
- .crayon-theme-epicgeeks a.crayon-button {
112
- background-color: transparent;
113
  }
114
- .crayon-theme-epicgeeks a.crayon-button:hover {
115
- background-color: #EFEFEF;
116
  color: #666;
117
  }
118
- .crayon-theme-epicgeeks a.crayon-button.crayon-pressed:hover {
119
- background-color: #EFEFEF;
120
  color: #666;
121
  }
122
- .crayon-theme-epicgeeks a.crayon-button.crayon-pressed {
123
- background-color: #DDD;
124
  color: #FFF;
125
  }
126
- .crayon-theme-epicgeeks a.crayon-button.crayon-pressed:active {
127
- background-color: #DDD;
128
  color: #FFF;
129
  }
130
- .crayon-theme-epicgeeks a.crayon-button:active {
131
- background-color: #DDD;
132
  color: #FFF;
133
  }
134
  .crayon-theme-epicgeeks .crayon-pre .c {
@@ -178,7 +194,7 @@ URL: http://epicgeeks.net/
178
  }
179
  .crayon-theme-epicgeeks .crayon-pre .n {
180
  color: #b7b7b7 !important;
181
- font-style: italic;
182
  }
183
  .crayon-theme-epicgeeks .crayon-pre .f {
184
  color: #cfcfcf !important;
6
  URL: http://epicgeeks.net/
7
  */
8
  .crayon-theme-epicgeeks {
 
9
  text-shadow: none !important;
10
  background: #ffffe1 !important;
11
+ border-width: 1px !important;
12
+ border-color: #e1e1e1 !important;
13
+ border-style: solid !important;
14
  }
15
  .crayon-theme-epicgeeks .crayon-code {
16
  background: #fdfdfd !important;
17
  }
18
  .crayon-theme-epicgeeks-inline {
19
+ border-width: 1px !important;
20
+ border-color: #e1e1e1 !important;
21
+ border-style: solid !important;
22
  background: #ffffe1 !important;
23
  }
24
  .crayon-theme-epicgeeks .crayon-table .crayon-nums {
25
  background: #ffff9f !important;
26
  color: #333333 !important;
27
+ border-right-width: 1px !important;
28
+ border-right-color: #3cc0ff !important;
29
+ border-right-style: dashed !important;
30
  }
31
  .crayon-theme-epicgeeks .crayon-code::selection {
32
  background: #ddeeff !important;
59
  }
60
  .crayon-theme-epicgeeks .crayon-striped-line {
61
  background: #ffffd2 !important;
62
+ border-width: 1px !important;
63
+ border-color: #f0f0f0 !important;
64
+ border-style: dashed !important;
65
  }
66
  .crayon-theme-epicgeeks .crayon-striped-num {
67
  background: #ffff7c !important;
68
+ border-width: 1px !important;
69
+ border-color: #cccccc !important;
70
+ border-style: dashed !important;
71
  }
72
  .crayon-theme-epicgeeks .crayon-marked-line {
73
  background: #fffee2 !important;
74
+ border-width: 1px !important;
75
+ border-color: #e9e579 !important;
76
  }
77
  .crayon-theme-epicgeeks .crayon-marked-num {
78
  color: #1561ac !important;
79
  background: #f2f24b !important;
80
+ border-width: 1px !important;
81
+ border-color: #e9e579 !important;
82
  }
83
  .crayon-theme-epicgeeks .crayon-marked-line.crayon-striped-line {
84
  background: #faf8d1 !important;
101
  }
102
  .crayon-theme-epicgeeks .crayon-info {
103
  background: #faf9d7 !important;
104
+ border-bottom-width: 1px !important;
105
+ border-bottom-color: #b1af5e !important;
106
+ border-bottom-style: dashed !important;
107
+ color: #7e7d34 !important;
108
  }
109
  .crayon-theme-epicgeeks .crayon-toolbar {
110
  background: #f9f9f9 !important;
111
+ border-bottom-width: 1px !important;
112
+ border-bottom-color: #d2d2d2 !important;
113
+ border-bottom-style: solid !important;
114
  }
115
  .crayon-theme-epicgeeks .crayon-toolbar > div {
116
  float: left !important;
124
  .crayon-theme-epicgeeks .crayon-language {
125
  color: #999 !important;
126
  }
127
+ .crayon-theme-epicgeeks .crayon-button {
128
+ background-color: transparent !important;
129
  }
130
+ .crayon-theme-epicgeeks .crayon-button:hover {
131
+ background-color: #EFEFEF !important;
132
  color: #666;
133
  }
134
+ .crayon-theme-epicgeeks .crayon-button.crayon-pressed:hover {
135
+ background-color: #EFEFEF !important;
136
  color: #666;
137
  }
138
+ .crayon-theme-epicgeeks .crayon-button.crayon-pressed {
139
+ background-color: #DDD !important;
140
  color: #FFF;
141
  }
142
+ .crayon-theme-epicgeeks .crayon-button.crayon-pressed:active {
143
+ background-color: #DDD !important;
144
  color: #FFF;
145
  }
146
+ .crayon-theme-epicgeeks .crayon-button:active {
147
+ background-color: #DDD !important;
148
  color: #FFF;
149
  }
150
  .crayon-theme-epicgeeks .crayon-pre .c {
194
  }
195
  .crayon-theme-epicgeeks .crayon-pre .n {
196
  color: #b7b7b7 !important;
197
+ font-style: italic !important;
198
  }
199
  .crayon-theme-epicgeeks .crayon-pre .f {
200
  color: #cfcfcf !important;
themes/familiar/familiar.css ADDED
@@ -0,0 +1,166 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ Name: Familiar
3
+ Description: Looks like SyntaxHighlighter.
4
+ Version: 1.0
5
+ Author: Aram Kocharyan
6
+ URL: http://aramk.com/
7
+ */
8
+ .crayon-theme-familiar {
9
+ border-width: 1px !important;
10
+ text-shadow: none !important;
11
+ }
12
+ .crayon-theme-familiar-inline {
13
+ border-width: 1px !important;
14
+ border-color: #ddd !important;
15
+ border-style: solid !important;
16
+ background: #fafafa !important;
17
+ }
18
+ .crayon-theme-familiar .crayon-table .crayon-nums {
19
+ border-right-width: 3px !important;
20
+ border-right-style: solid !important;
21
+ border-right-color: #6ce26c !important;
22
+ padding-right: 5px !important;
23
+ color: #afafaf !important;
24
+ }
25
+ .crayon-theme-familiar *::selection {
26
+ background: transparent !important;
27
+ }
28
+ .crayon-theme-familiar .crayon-code *::selection {
29
+ background: #ddeeff !important;
30
+ color: #316ba5 !important;
31
+ }
32
+ .crayon-theme-familiar .crayon-striped-line {
33
+ background: #f9f9f9 !important;
34
+ }
35
+ .crayon-theme-familiar .crayon-striped-num {
36
+ color: #afafaf !important;
37
+ }
38
+ .crayon-theme-familiar .crayon-line {
39
+ padding-left: 10px !important;
40
+ }
41
+ .crayon-theme-familiar .crayon-marked-line {
42
+ background: #fffee2 !important;
43
+ border-width: 1px !important;
44
+ border-color: #e9e579 !important;
45
+ }
46
+ .crayon-theme-familiar .crayon-marked-num {
47
+ border-width: 1px !important;
48
+ color: #333333 !important;
49
+ }
50
+ .crayon-theme-familiar .crayon-marked-line.crayon-striped-line {
51
+ background: #faf8d1 !important;
52
+ }
53
+ .crayon-theme-familiar .crayon-marked-num.crayon-striped-num {
54
+ color: #333333 !important;
55
+ }
56
+ .crayon-theme-familiar .crayon-marked-line.crayon-top {
57
+ }
58
+ .crayon-theme-familiar .crayon-marked-num.crayon-top {
59
+ }
60
+ .crayon-theme-familiar .crayon-marked-line.crayon-bottom {
61
+ }
62
+ .crayon-theme-familiar .crayon-marked-num.crayon-bottom {
63
+ }
64
+ .crayon-theme-familiar .crayon-info {
65
+ background: #faf9d7 !important;
66
+ border-bottom-width: 1px !important;
67
+ border-bottom-color: #b1af5e !important;
68
+ border-bottom-style: solid !important;
69
+ color: #7e7d34 !important;
70
+ }
71
+ .crayon-theme-familiar .crayon-toolbar {
72
+ background: #eee !important;
73
+ border-bottom-width: 1px !important;
74
+ border-bottom-color: #dedede !important;
75
+ border-bottom-style: solid !important;
76
+ }
77
+ .crayon-theme-familiar .crayon-toolbar > div {
78
+ float: left !important;
79
+ }
80
+ .crayon-theme-familiar .crayon-toolbar .crayon-tools {
81
+ float: right !important;
82
+ }
83
+ .crayon-theme-familiar .crayon-title {
84
+ color: #333 !important;
85
+ }
86
+ .crayon-theme-familiar .crayon-language {
87
+ color: #999 !important;
88
+ }
89
+ .crayon-theme-familiar .crayon-button {
90
+ background-color: transparent !important;
91
+ }
92
+ .crayon-theme-familiar .crayon-button:hover {
93
+ background-color: #EEE !important;
94
+ color: #666;
95
+ }
96
+ .crayon-theme-familiar .crayon-button.crayon-pressed:hover {
97
+ background-color: #EEE !important;
98
+ color: #666;
99
+ }
100
+ .crayon-theme-familiar .crayon-button.crayon-pressed {
101
+ background-color: #BCBCBC !important;
102
+ color: #FFF;
103
+ }
104
+ .crayon-theme-familiar .crayon-button.crayon-pressed:active {
105
+ background-color: #BCBCBC !important;
106
+ color: #FFF;
107
+ }
108
+ .crayon-theme-familiar .crayon-button:active {
109
+ background-color: #BCBCBC !important;
110
+ color: #FFF;
111
+ }
112
+ .crayon-theme-familiar .crayon-pre .c {
113
+ color: #ff8000 !important;
114
+ }
115
+ .crayon-theme-familiar .crayon-pre .s {
116
+ color: #008000 !important;
117
+ }
118
+ .crayon-theme-familiar .crayon-pre .p {
119
+ color: #b85c00 !important;
120
+ }
121
+ .crayon-theme-familiar .crayon-pre .ta {
122
+ color: #FF0000 !important;
123
+ }
124
+ .crayon-theme-familiar .crayon-pre .k {
125
+ color: #800080 !important;
126
+ }
127
+ .crayon-theme-familiar .crayon-pre .st {
128
+ color: #800080 !important;
129
+ }
130
+ .crayon-theme-familiar .crayon-pre .r {
131
+ color: #800080 !important;
132
+ }
133
+ .crayon-theme-familiar .crayon-pre .t {
134
+ color: #800080 !important;
135
+ }
136
+ .crayon-theme-familiar .crayon-pre .m {
137
+ color: #800080 !important;
138
+ }
139
+ .crayon-theme-familiar .crayon-pre .i {
140
+ color: #000 !important;
141
+ }
142
+ .crayon-theme-familiar .crayon-pre .e {
143
+ color: #004ed0 !important;
144
+ }
145
+ .crayon-theme-familiar .crayon-pre .v {
146
+ color: #002D7A !important;
147
+ }
148
+ .crayon-theme-familiar .crayon-pre .cn {
149
+ color: #ce0000 !important;
150
+ }
151
+ .crayon-theme-familiar .crayon-pre .o {
152
+ color: #006fe0 !important;
153
+ }
154
+ .crayon-theme-familiar .crayon-pre .sy {
155
+ color: #333 !important;
156
+ }
157
+ .crayon-theme-familiar .crayon-pre .n {
158
+ color: #666 !important;
159
+ font-style: italic !important;
160
+ }
161
+ .crayon-theme-familiar .crayon-pre .f {
162
+ color: #999 !important;
163
+ }
164
+ .crayon-theme-familiar .crayon-pre .h {
165
+ color: #006fe0 !important;
166
+ }
themes/github/github.css ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ Name: Github
3
+ Description: Github like color.
4
+ Version: 1.0
5
+ Author: Dai Akatsuka
6
+ URL: http://firn.jp/
7
+ */
8
+ .crayon-theme-github {
9
+ margin-bottom: 25px !important;
10
+ border: 1px solid #dedede !important;
11
+ background-color: #f8f8ff !important;
12
+ font-size: 100% !important;
13
+ line-height: 130% !important;
14
+ }
15
+
16
+ .crayon-theme-github .crayon-toolbar {
17
+ border-bottom: 1px solid #dedede !important;
18
+ background-color: #eee !important;
19
+ }
20
+
21
+ .crayon-theme-github .crayon-toolbar .crayon-language,
22
+ .crayon-theme-github .crayon-toolbar .crayon-title {
23
+ font-size: 80% !important;
24
+ color: #666 !important;
25
+ }
26
+
27
+ .crayon-theme-github .crayon-table .crayon-nums {
28
+ background-color: #eee !important;
29
+ }
30
+
31
+ .crayon-theme-github .crayon-table .crayon-nums-content {
32
+ padding-top: 5px !important;
33
+ padding-bottom: 3px !important;
34
+ }
35
+
36
+ .crayon-theme-github .crayon-table .crayon-num {
37
+ min-width: 1.2em !important;
38
+ border-right: 1px solid #dedede !important;
39
+ text-align: right !important;
40
+ color: #aaa !important;
41
+ }
42
+
43
+ .crayon-theme-github .crayon-pre {
44
+ padding-top: 5px !important;
45
+ padding-bottom: 3px !important;
46
+ }
47
+
48
+ .crayon-theme-github .crayon-marked-line {
49
+ background: #fffee2 !important;
50
+
51
+ }
52
+ .crayon-theme-github .crayon-marked-num {
53
+ color: #1561ac !important;
54
+ background: #b3d3f4 !important;
55
+ border-width: 1px !important;
56
+ border-color: #5999d9 !important;
57
+ }
58
+
59
+ .crayon-theme-github .crayon-pre .c {
60
+ color: #999 !important;
61
+ font-style: italic !important;
62
+ }
63
+ .crayon-theme-github .crayon-pre .s {
64
+ color: #d14 !important;
65
+ }
66
+ .crayon-theme-github .crayon-pre .p {
67
+ color: #b85c00 !important;
68
+ }
69
+ .crayon-theme-github .crayon-pre .ta {
70
+ color: #FF0000 !important;
71
+ }
72
+ .crayon-theme-github .crayon-pre .k {
73
+ color: teal !important;
74
+ }
75
+ .crayon-theme-github .crayon-pre .st {
76
+ color: #000 !important;
77
+ font-weight: bold !important;
78
+ }
79
+ .crayon-theme-github .crayon-pre .r {
80
+ color: #000 !important;
81
+ font-weight: bold !important;
82
+ }
83
+ .crayon-theme-github .crayon-pre .t {
84
+ color: #800080 !important;
85
+ font-weight: bold !important;
86
+ }
87
+ .crayon-theme-github .crayon-pre .m {
88
+ color: #800080 !important;
89
+ }
90
+ .crayon-theme-github .crayon-pre .i {
91
+ color: #000 !important;
92
+ }
93
+ .crayon-theme-github .crayon-pre .e {
94
+ color: teal !important;
95
+ }
96
+ .crayon-theme-github .crayon-pre .v {
97
+ color: #002D7A !important;
98
+ }
99
+ .crayon-theme-github .crayon-pre .cn {
100
+ color: #099 !important;
101
+ }
102
+ .crayon-theme-github .crayon-pre .o {
103
+ color: #006fe0 !important;
104
+ }
105
+ .crayon-theme-github .crayon-pre .sy {
106
+ color: #333 !important;
107
+ }
108
+ .crayon-theme-github .crayon-pre .n {
109
+ color: #666 !important;
110
+ font-style: italic;
111
+ }
112
+ .crayon-theme-github .crayon-pre .f {
113
+ color: #999 !important;
114
+ }
115
+ .crayon-theme-github .crayon-pre .h {
116
+ color: #006fe0 !important;
117
+ }
themes/idle/idle.css ADDED
@@ -0,0 +1,173 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ Name: IDLE
3
+ Description: Pythonic.
4
+ Version: 1.0
5
+ Author: Aram Kocharyan
6
+ URL: http://aramk.com/
7
+ */
8
+ .crayon-theme-idle {
9
+ border-width: 1px !important;
10
+ border-color: #999 !important;
11
+ border-style: solid !important;
12
+ text-shadow: none !important;
13
+ background: #ffffff !important;
14
+ }
15
+ .crayon-theme-idle-inline {
16
+ border-width: 1px !important;
17
+ border-color: #ddd !important;
18
+ border-style: solid !important;
19
+ background: #fafafa !important;
20
+ }
21
+ .crayon-theme-idle .crayon-table .crayon-nums {
22
+ background: #f0f0f0 !important;
23
+ color: #b5b5b5 !important;
24
+ border-right-width: 1px !important;
25
+ border-right-style: solid !important;
26
+ }
27
+ .crayon-theme-idle *::selection {
28
+ background: transparent !important;
29
+ }
30
+ .crayon-theme-idle .crayon-code *::selection {
31
+ background: #ddeeff !important;
32
+ color: #316ba5 !important;
33
+ }
34
+ .crayon-theme-idle .crayon-striped-line {
35
+ background: #f9f9f9 !important;
36
+ }
37
+ .crayon-theme-idle .crayon-striped-num {
38
+ background: #e2e2e2 !important;
39
+ color: #979797 !important;
40
+ }
41
+ .crayon-theme-idle .crayon-marked-line {
42
+ background: #fffee2 !important;
43
+ border-width: 1px !important;
44
+ border-color: #e9e579 !important;
45
+ }
46
+ .crayon-theme-idle .crayon-marked-num {
47
+ color: #818181 !important;
48
+ background: #d1d1d1 !important;
49
+ border-width: 1px !important;
50
+ border-color: #acacac !important;
51
+ }
52
+ .crayon-theme-idle .crayon-marked-line.crayon-striped-line {
53
+ background: #faf8d1 !important;
54
+ }
55
+ .crayon-theme-idle .crayon-marked-num.crayon-striped-num {
56
+ background: #c0c0c0 !important;
57
+ color: #626262 !important;
58
+ }
59
+ .crayon-theme-idle .crayon-marked-line.crayon-top {
60
+ border-top-style: solid !important;
61
+ }
62
+ .crayon-theme-idle .crayon-marked-num.crayon-top {
63
+ border-top-style: solid !important;
64
+ }
65
+ .crayon-theme-idle .crayon-marked-line.crayon-bottom {
66
+ border-bottom-style: solid !important;
67
+ }
68
+ .crayon-theme-idle .crayon-marked-num.crayon-bottom {
69
+ border-bottom-style: solid !important;
70
+ }
71
+ .crayon-theme-idle .crayon-info {
72
+ background: #faf9d7 !important;
73
+ border-bottom-width: 1px !important;
74
+ border-bottom-color: #b1af5e !important;
75
+ border-bottom-style: solid !important;
76
+ color: #7e7d34 !important;
77
+ }
78
+ .crayon-theme-idle .crayon-toolbar {
79
+ background: #DDD !important;
80
+ border-bottom-width: 1px !important;
81
+ border-bottom-color: #BBB !important;
82
+ border-bottom-style: solid !important;
83
+ }
84
+ .crayon-theme-idle .crayon-toolbar > div {
85
+ float: left !important;
86
+ }
87
+ .crayon-theme-idle .crayon-toolbar .crayon-tools {
88
+ float: right !important;
89
+ }
90
+ .crayon-theme-idle .crayon-title {
91
+ color: #333 !important;
92
+ }
93
+ .crayon-theme-idle .crayon-language {
94
+ color: #999 !important;
95
+ }
96
+ .crayon-theme-idle .crayon-button {
97
+ background-color: transparent !important;
98
+ }
99
+ .crayon-theme-idle .crayon-button:hover {
100
+ background-color: #EEE !important;
101
+ color: #666;
102
+ }
103
+ .crayon-theme-idle .crayon-button.crayon-pressed:hover {
104
+ background-color: #EEE !important;
105
+ color: #666;
106
+ }
107
+ .crayon-theme-idle .crayon-button.crayon-pressed {
108
+ background-color: #BCBCBC !important;
109
+ color: #FFF;
110
+ }
111
+ .crayon-theme-idle .crayon-button.crayon-pressed:active {
112
+ background-color: #BCBCBC !important;
113
+ color: #FFF;
114
+ }
115
+ .crayon-theme-idle .crayon-button:active {
116
+ background-color: #BCBCBC !important;
117
+ color: #FFF;
118
+ }
119
+ .crayon-theme-idle .crayon-pre .c {
120
+ color: #a9a9a9 !important;
121
+ }
122
+ .crayon-theme-idle .crayon-pre .s {
123
+ color: #00ae5d !important;
124
+ }
125
+ .crayon-theme-idle .crayon-pre .p {
126
+ color: #b85c00 !important;
127
+ }
128
+ .crayon-theme-idle .crayon-pre .ta {
129
+ color: #000000 !important;
130
+ }
131
+ .crayon-theme-idle .crayon-pre .k {
132
+ color: #bf54b6 !important;
133
+ }
134
+ .crayon-theme-idle .crayon-pre .st {
135
+ color: #ff6b2a !important;
136
+ }
137
+ .crayon-theme-idle .crayon-pre .r {
138
+ color: #ff6b2a !important;
139
+ }
140
+ .crayon-theme-idle .crayon-pre .t {
141
+ color: #ff6b2a !important;
142
+ }
143
+ .crayon-theme-idle .crayon-pre .m {
144
+ color: #ff6b2a !important;
145
+ }
146
+ .crayon-theme-idle .crayon-pre .i {
147
+ color: #000 !important;
148
+ }
149
+ .crayon-theme-idle .crayon-pre .e {
150
+ color: #2a6dca !important;
151
+ }
152
+ .crayon-theme-idle .crayon-pre .v {
153
+ color: #000000 !important;
154
+ }
155
+ .crayon-theme-idle .crayon-pre .cn {
156
+ color: #000000 !important;
157
+ }
158
+ .crayon-theme-idle .crayon-pre .o {
159
+ color: #ff6b2a !important;
160
+ }
161
+ .crayon-theme-idle .crayon-pre .sy {
162
+ color: #0d0000 !important;
163
+ }
164
+ .crayon-theme-idle .crayon-pre .n {
165
+ color: #666 !important;
166
+ font-style: italic !important;
167
+ }
168
+ .crayon-theme-idle .crayon-pre .f {
169
+ color: #999 !important;
170
+ }
171
+ .crayon-theme-idle .crayon-pre .h {
172
+ color: #006fe0 !important;
173
+ }
themes/neon/neon.css CHANGED
@@ -6,25 +6,31 @@ Author: Di_Skyer
6
  URL: http://atlocal.net/
7
  */
8
  .crayon-theme-neon {
9
- border: 1px #333 solid !important;
10
  text-shadow: none !important;
11
  color: #fff;
12
  background: #2d2d2d !important;
 
 
 
13
  }
14
  .crayon-theme-neon .crayon-code {
15
  background: #2d2d2d !important;
16
  }
17
  .crayon-theme-neon-inline {
18
- border: 1px solid #333 !important;
19
  background: #333 !important;
 
 
 
20
  }
21
  .crayon-theme-neon span {
22
  color: #999 !important;
23
  }
24
- .crayon-theme-neon .crayon-nums {
25
- border-right: 1px solid #333 !important;
26
  color: #333 !important;
27
  background: #777777 !important;
 
 
 
28
  }
29
  .crayon-theme-neon .crayon-code::selection {
30
  background: #ddeeff !important;
@@ -60,21 +66,25 @@ URL: http://atlocal.net/
60
  }
61
  .crayon-theme-neon .crayon-striped-line {
62
  background: #000 !important;
63
- border: 1px #171717 !important;
 
64
  }
65
  .crayon-theme-neon .crayon-striped-num {
66
  background: #aaa !important;
67
- border: 1px #CCC !important;
68
  color: #555 !important;
 
 
69
  }
70
  .crayon-theme-neon .crayon-marked-line {
71
  background: #484844 !important;
72
- border: 1px #222 !important;
 
73
  }
74
  .crayon-theme-neon .crayon-marked-num {
75
  color: #555 !important;
76
  background: #bbb !important;
77
- border: 1px #777 !important;
 
78
  }
79
  .crayon-theme-neon .crayon-marked-line.crayon-striped-line {
80
  background: #51514d !important;
@@ -97,12 +107,16 @@ URL: http://atlocal.net/
97
  }
98
  .crayon-theme-neon .crayon-info {
99
  background: #faf9d7 !important;
100
- border-bottom: 1px #b1af5e solid !important;
101
- color: #7e7d34;
 
 
102
  }
103
  .crayon-theme-neon .crayon-toolbar {
104
  background: #b2b2b2 !important;
105
- border-bottom: 1px #666 solid !important;
 
 
106
  }
107
  .crayon-theme-neon .crayon-toolbar > div {
108
  float: left !important;
@@ -119,27 +133,27 @@ URL: http://atlocal.net/
119
  .crayon-theme-neon .crayon-toolbar .crayon-mixed-highlight {
120
  background-position: -24px center;
121
  }
122
- .crayon-theme-neon a.crayon-button {
123
- background-color: transparent;
124
  }
125
- .crayon-theme-neon a.crayon-button:hover {
126
- background-color: #ccc;
127
  color: #666;
128
  }
129
- .crayon-theme-neon a.crayon-button.crayon-pressed:hover {
130
- background-color: #ccc;
131
  color: #666;
132
  }
133
- .crayon-theme-neon a.crayon-button.crayon-pressed {
134
- background-color: #999;
135
  color: #ccc;
136
  }
137
- .crayon-theme-neon a.crayon-button.crayon-pressed:active {
138
- background-color: #999;
139
  color: #ccc;
140
  }
141
- .crayon-theme-neon a.crayon-button:active {
142
- background-color: #999;
143
  color: #ccc;
144
  }
145
  .crayon-theme-neon .crayon-pre .c {
@@ -150,23 +164,23 @@ URL: http://atlocal.net/
150
  }
151
  .crayon-theme-neon .crayon-pre .k {
152
  color: #EEEE33 !important;
153
- font-weight: bold;
154
  }
155
  .crayon-theme-neon .crayon-pre .st {
156
  color: #EEEE33 !important;
157
- font-weight: bold;
158
  }
159
  .crayon-theme-neon .crayon-pre .r {
160
  color: #EEEE33 !important;
161
- font-weight: bold;
162
  }
163
  .crayon-theme-neon .crayon-pre .t {
164
  color: #EEEE33 !important;
165
- font-weight: bold;
166
  }
167
  .crayon-theme-neon .crayon-pre .m {
168
  color: #EEEE33 !important;
169
- font-weight: bold;
170
  }
171
  .crayon-theme-neon .crayon-pre .ta {
172
  color: #AAA !important;
@@ -194,7 +208,7 @@ URL: http://atlocal.net/
194
  }
195
  .crayon-theme-neon .crayon-pre .n {
196
  color: #726e73 !important;
197
- font-style: italic;
198
  }
199
  .crayon-theme-neon .crayon-pre .f {
200
  color: #595959 !important;
6
  URL: http://atlocal.net/
7
  */
8
  .crayon-theme-neon {
 
9
  text-shadow: none !important;
10
  color: #fff;
11
  background: #2d2d2d !important;
12
+ border-style: solid !important;
13
+ border-width: 1px !important;
14
+ border-color: #333 !important;
15
  }
16
  .crayon-theme-neon .crayon-code {
17
  background: #2d2d2d !important;
18
  }
19
  .crayon-theme-neon-inline {
 
20
  background: #333 !important;
21
+ border-style: solid !important;
22
+ border-width: 1px !important;
23
+ border-color: #333 !important;
24
  }
25
  .crayon-theme-neon span {
26
  color: #999 !important;
27
  }
28
+ .crayon-theme-neon .crayon-table .crayon-nums {
 
29
  color: #333 !important;
30
  background: #777777 !important;
31
+ border-right-style: solid !important;
32
+ border-right-width: 1px !important;
33
+ border-right-color: #333 !important;
34
  }
35
  .crayon-theme-neon .crayon-code::selection {
36
  background: #ddeeff !important;
66
  }
67
  .crayon-theme-neon .crayon-striped-line {
68
  background: #000 !important;
69
+ border-width: 1px !important;
70
+ border-color: #171717 !important;
71
  }
72
  .crayon-theme-neon .crayon-striped-num {
73
  background: #aaa !important;
 
74
  color: #555 !important;
75
+ border-width: 1px !important;
76
+ border-color: #CCC !important;
77
  }
78
  .crayon-theme-neon .crayon-marked-line {
79
  background: #484844 !important;
80
+ border-width: 1px !important;
81
+ border-color: #222 !important;
82
  }
83
  .crayon-theme-neon .crayon-marked-num {
84
  color: #555 !important;
85
  background: #bbb !important;
86
+ border-width: 1px !important;
87
+ border-color: #777 !important;
88
  }
89
  .crayon-theme-neon .crayon-marked-line.crayon-striped-line {
90
  background: #51514d !important;
107
  }
108
  .crayon-theme-neon .crayon-info {
109
  background: #faf9d7 !important;
110
+ color: #7e7d34 !important;
111
+ border-bottom-style: solid !important;
112
+ border-bottom-width: 1px !important;
113
+ border-bottom-color: #b1af5e !important;
114
  }
115
  .crayon-theme-neon .crayon-toolbar {
116
  background: #b2b2b2 !important;
117
+ border-bottom-style: solid !important;
118
+ border-bottom-width: 1px !important;
119
+ border-bottom-color: #666 !important;
120
  }
121
  .crayon-theme-neon .crayon-toolbar > div {
122
  float: left !important;
133
  .crayon-theme-neon .crayon-toolbar .crayon-mixed-highlight {
134
  background-position: -24px center;
135
  }
136
+ .crayon-theme-neon .crayon-button {
137
+ background-color: transparent !important;
138
  }
139
+ .crayon-theme-neon .crayon-button:hover {
140
+ background-color: #ccc !important;
141
  color: #666;
142
  }
143
+ .crayon-theme-neon .crayon-button.crayon-pressed:hover {
144
+ background-color: #ccc !important;
145
  color: #666;
146
  }
147
+ .crayon-theme-neon .crayon-button.crayon-pressed {
148
+ background-color: #999 !important;
149
  color: #ccc;
150
  }
151
+ .crayon-theme-neon .crayon-button.crayon-pressed:active {
152
+ background-color: #999 !important;
153
  color: #ccc;
154
  }
155
+ .crayon-theme-neon .crayon-button:active {
156
+ background-color: #999 !important;
157
  color: #ccc;
158
  }
159
  .crayon-theme-neon .crayon-pre .c {
164
  }
165
  .crayon-theme-neon .crayon-pre .k {
166
  color: #EEEE33 !important;
167
+ font-weight: bold !important;
168
  }
169
  .crayon-theme-neon .crayon-pre .st {
170
  color: #EEEE33 !important;
171
+ font-weight: bold !important;
172
  }
173
  .crayon-theme-neon .crayon-pre .r {
174
  color: #EEEE33 !important;
175
+ font-weight: bold !important;
176
  }
177
  .crayon-theme-neon .crayon-pre .t {
178
  color: #EEEE33 !important;
179
+ font-weight: bold !important;
180
  }
181
  .crayon-theme-neon .crayon-pre .m {
182
  color: #EEEE33 !important;
183
+ font-weight: bold !important;
184
  }
185
  .crayon-theme-neon .crayon-pre .ta {
186
  color: #AAA !important;
208
  }
209
  .crayon-theme-neon .crayon-pre .n {
210
  color: #726e73 !important;
211
+ font-style: italic !important;
212
  }
213
  .crayon-theme-neon .crayon-pre .f {
214
  color: #595959 !important;
themes/phiphou/phiphou.css DELETED
@@ -1,202 +0,0 @@
1
- /*
2
- Theme Name : SonOfObsidian
3
- Description : Inspired from http://studiostyl.es/schemes/son-of-obsidian
4
- Version: 1.0
5
- Original Author : http://studiostyl.es/users/135
6
- Author : Phiphou
7
- Author URI : http://blog.phiphou.com
8
- Author Twitter: @__phiphou__
9
- */
10
-
11
- /* code style ====================== */
12
- .crayon-theme-phiphou {
13
- border: 1px #999 solid !important;
14
- text-shadow: none !important;
15
- }
16
-
17
- .crayon-theme-phiphou .crayon-code {
18
- background: #22282a !important;
19
- color: #f1f2f3 !important;
20
- }
21
-
22
- /* inline style */
23
- .crayon-theme-phiphou-inline {
24
- border: 1px solid #ddd !important;
25
- background: #fafafa !important;
26
- }
27
-
28
- /* line numbers */
29
- .crayon-theme-phiphou .crayon-nums {
30
- background: #22282a !important;
31
- color: #808080 !important;
32
- border-right: 1px solid #475459 !important;
33
- }
34
-
35
- /* selection */
36
- .crayon-theme-phiphou .crayon-code::selection,
37
- .crayon-theme-phiphou .crayon-code *::selection {
38
- background: #7c9299 !important;
39
- color: #FFFFFF !important;
40
- }
41
-
42
- .crayon-theme-phiphou::selection,
43
- .crayon-theme-phiphou .crayon-toolbar::selection,
44
- .crayon-theme-phiphou .crayon-toolbar *::selection,
45
- .crayon-theme-phiphou .crayon-info::selection,
46
- .crayon-theme-phiphou .crayon-info *::selection,
47
- .crayon-theme-phiphou .crayon-nums::selection,
48
- .crayon-theme-phiphou .crayon-nums *::selection {
49
- background: transparent !important;
50
- }
51
-
52
- /* striped lines */
53
- .crayon-theme-phiphou .crayon-striped-line {
54
- background: #22282a !important;
55
- border: 1px #ccc !important;
56
- }
57
- .crayon-theme-phiphou .crayon-striped-num {
58
- background: #293134 !important;
59
- border: 1px #22282a !important;
60
- color: #808080 !important;
61
- }
62
-
63
- /* marked lines */
64
- .crayon-theme-phiphou .crayon-marked-line {
65
- background: #40292c !important;
66
- border: 1px #996b72 !important;
67
- }
68
-
69
- .crayon-theme-phiphou .crayon-marked-num {
70
- color: #808080 !important;
71
- background: #40292c !important;
72
- border: 1px #996b72 !important;
73
- }
74
-
75
- .crayon-theme-phiphou .crayon-marked-line.crayon-striped-line {
76
- background: #40292c !important;
77
- }
78
-
79
- .crayon-theme-phiphou .crayon-marked-num.crayon-striped-num {
80
- background: #663d43 !important;
81
- border: 1px #996b72 !important;
82
- color: #808080 !important;
83
- }
84
-
85
- .crayon-theme-phiphou .crayon-marked-line.crayon-top,
86
- .crayon-theme-phiphou .crayon-marked-num.crayon-top {
87
- border-top-style: solid !important;
88
- }
89
-
90
- .crayon-theme-phiphou .crayon-marked-line.crayon-bottom,
91
- .crayon-theme-phiphou .crayon-marked-num.crayon-bottom {
92
- border-bottom-style: solid !important;
93
- }
94
-
95
- /* info */
96
- .crayon-theme-phiphou .crayon-info {
97
- background: #faf9d7 !important;
98
- border-bottom: 1px #b1af5e solid !important;
99
- color: #7e7d34;
100
- }
101
-
102
- /* toolbar */
103
- .crayon-theme-phiphou .crayon-toolbar {
104
- background: #ddd !important;
105
- border-bottom: 1px #bbb solid !important;
106
- }
107
-
108
- .crayon-theme-phiphou .crayon-toolbar > div {
109
- float: left !important;
110
- }
111
-
112
- .crayon-theme-phiphou .crayon-toolbar .crayon-tools {
113
- float: right !important;
114
- }
115
-
116
- .crayon-theme-phiphou .crayon-title {
117
- color: #333 !important;
118
- }
119
-
120
- .crayon-theme-phiphou .crayon-language {
121
- color: #999 !important;
122
- }
123
-
124
- /* buttons */
125
- .crayon-theme-phiphou a.crayon-button {
126
- background-color: transparent;
127
- }
128
-
129
- .crayon-theme-phiphou a.crayon-button:hover,
130
- .crayon-theme-phiphou a.crayon-button.crayon-pressed:hover {
131
- background-color: #eee;
132
- color: #666;
133
- }
134
- /* :active must come after :hover */
135
- .crayon-theme-phiphou a.crayon-button.crayon-pressed,
136
- .crayon-theme-phiphou a.crayon-button.crayon-pressed:active,
137
- .crayon-theme-phiphou a.crayon-button:active {
138
- background-color: #bcbcbc;
139
- color: #fff;
140
- }
141
-
142
- /* end code style ================== */
143
-
144
- /* syntax highlighting ============= */
145
- .crayon-theme-phiphou .crayon-pre .c {
146
- color: #66747b !important;
147
- }
148
- .crayon-theme-phiphou .crayon-pre .p {
149
- color: #00FF00 !important;
150
- }
151
- .crayon-theme-phiphou .crayon-pre .s {
152
- color: #ec7600 !important;
153
- }
154
- .crayon-theme-phiphou .crayon-pre .k {
155
- color: #a082bd !important;
156
- }
157
- .crayon-theme-phiphou .crayon-pre .st {
158
- color: #a082bd !important;
159
- }
160
- .crayon-theme-phiphou .crayon-pre .r {
161
- color: #a082bd !important;
162
- }
163
- .crayon-theme-phiphou .crayon-pre .t {
164
- color: #a082bd !important;
165
- }
166
- .crayon-theme-phiphou .crayon-pre .m {
167
- color: #a082bd !important;
168
- }
169
- .crayon-theme-phiphou .crayon-pre .ta {
170
- color: #99daf9 !important;
171
- }
172
- .crayon-theme-phiphou .crayon-pre .i {
173
- color: #678cb1 !important;
174
- }
175
- .crayon-theme-phiphou .crayon-pre .v {
176
- color: #678cb1 !important;
177
- }
178
- .crayon-theme-phiphou .crayon-pre .e {
179
- color: #95c763 !important;
180
- }
181
- .crayon-theme-phiphou .crayon-pre .cn {
182
- color: #99daf9 !important;
183
- }
184
- .crayon-theme-phiphou .crayon-pre .o {
185
- color: #ffcd22 !important;
186
- }
187
- .crayon-theme-phiphou .crayon-pre .h {
188
- color: #ffcd22 !important;
189
- }
190
- .crayon-theme-phiphou .crayon-pre .sy {
191
- color: #f1f2f3 !important;
192
- }
193
- .crayon-theme-phiphou .crayon-pre .n {
194
- color: #f1f2f3 !important;
195
- font-style: italic;
196
- }
197
- .crayon-theme-phiphou .crayon-pre .f {
198
- }
199
-
200
- /* end syntax highlighting ========= */
201
-
202
- /* end classic scheme ============================================ */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
themes/solarized-dark/solarized-dark.css CHANGED
@@ -9,21 +9,24 @@ Maintainer URL: http://eduantech.com/
9
  Notes: I don't provide striped lines because it would break the original purpose of this colorscheme.
10
  */
11
  .crayon-theme-solarized-dark {
12
- border: 1px #999 solid !important;
13
  text-shadow: none !important;
14
  background: #002b36 !important;
 
 
 
15
  }
16
  .crayon-theme-solarized-dark .crayon-code {
17
  background: #002b36 !important;
18
  }
19
  .crayon-theme-solarized-dark-inline {
20
- border: 1px solid #ddd !important;
21
  background: #002b36 !important;
 
 
 
22
  }
23
- .crayon-theme-solarized-dark .crayon-nums {
24
  background: #073642 !important;
25
  color: #586e75 !important;
26
- border-right: 1px solid #b3d3f3 !important;
27
  }
28
  .crayon-theme-solarized-dark .crayon-code::selection {
29
  background: #ddeeff !important;
@@ -56,12 +59,14 @@ Notes: I don't provide striped lines because it would break the original purpose
56
  }
57
  .crayon-theme-solarized-dark .crayon-striped-line {
58
  background: #002b36 !important;
59
- border: 1px #CCC !important;
 
60
  }
61
  .crayon-theme-solarized-dark .crayon-striped-num {
62
- border: 1px #CCC !important;
63
  color: #586e75 !important;
64
  background: #073642 !important;
 
 
65
  }
66
  .crayon-theme-solarized-dark .crayon-marked-line {
67
  background: #073642 !important;
@@ -98,12 +103,16 @@ Notes: I don't provide striped lines because it would break the original purpose
98
  }
99
  .crayon-theme-solarized-dark .crayon-info {
100
  background: #faf9d7 !important;
101
- border-bottom: 1px #b1af5e solid !important;
102
- color: #7e7d34;
 
 
103
  }
104
  .crayon-theme-solarized-dark .crayon-toolbar {
105
  background: #DDD !important;
106
- border-bottom: 1px #BBB solid !important;
 
 
107
  }
108
  .crayon-theme-solarized-dark .crayon-toolbar > div {
109
  float: left !important;
@@ -117,27 +126,27 @@ Notes: I don't provide striped lines because it would break the original purpose
117
  .crayon-theme-solarized-dark .crayon-language {
118
  color: #999 !important;
119
  }
120
- .crayon-theme-solarized-dark a.crayon-button {
121
- background-color: transparent;
122
  }
123
- .crayon-theme-solarized-dark a.crayon-button:hover {
124
- background-color: #EEE;
125
  color: #666;
126
  }
127
- .crayon-theme-solarized-dark a.crayon-button.crayon-pressed:hover {
128
- background-color: #EEE;
129
  color: #666;
130
  }
131
- .crayon-theme-solarized-dark a.crayon-button.crayon-pressed {
132
- background-color: #BCBCBC;
133
  color: #FFF;
134
  }
135
- .crayon-theme-solarized-dark a.crayon-button.crayon-pressed:active {
136
- background-color: #BCBCBC;
137
  color: #FFF;
138
  }
139
- .crayon-theme-solarized-dark a.crayon-button:active {
140
- background-color: #BCBCBC;
141
  color: #FFF;
142
  }
143
  .crayon-theme-solarized-dark .crayon-pre .c {
@@ -181,7 +190,7 @@ Notes: I don't provide striped lines because it would break the original purpose
181
  }
182
  .crayon-theme-solarized-dark .crayon-pre .n {
183
  color: #666 !important;
184
- font-style: italic;
185
  }
186
  .crayon-theme-solarized-dark .crayon-pre .f {
187
  color: #999 !important;
9
  Notes: I don't provide striped lines because it would break the original purpose of this colorscheme.
10
  */
11
  .crayon-theme-solarized-dark {
 
12
  text-shadow: none !important;
13
  background: #002b36 !important;
14
+ border-style: solid !important;
15
+ border-width: 1px !important;
16
+ border-color: #999 !important;
17
  }
18
  .crayon-theme-solarized-dark .crayon-code {
19
  background: #002b36 !important;
20
  }
21
  .crayon-theme-solarized-dark-inline {
 
22
  background: #002b36 !important;
23
+ border-style: solid !important;
24
+ border-width: 1px !important;
25
+ border-color: #ddd !important;
26
  }
27
+ .crayon-theme-solarized-dark .crayon-table .crayon-nums {
28
  background: #073642 !important;
29
  color: #586e75 !important;
 
30
  }
31
  .crayon-theme-solarized-dark .crayon-code::selection {
32
  background: #ddeeff !important;
59
  }
60
  .crayon-theme-solarized-dark .crayon-striped-line {
61
  background: #002b36 !important;
62
+ border-width: 1px !important;
63
+ border-color: #CCC !important;
64
  }
65
  .crayon-theme-solarized-dark .crayon-striped-num {
 
66
  color: #586e75 !important;
67
  background: #073642 !important;
68
+ border-width: 1px !important;
69
+ border-color: #CCC !important;
70
  }
71
  .crayon-theme-solarized-dark .crayon-marked-line {
72
  background: #073642 !important;
103
  }
104
  .crayon-theme-solarized-dark .crayon-info {
105
  background: #faf9d7 !important;
106
+ color: #7e7d34 !important;
107
+ border-bottom-style: solid !important;
108
+ border-bottom-width: 1px !important;
109
+ border-bottom-color: #b1af5e !important;
110
  }
111
  .crayon-theme-solarized-dark .crayon-toolbar {
112
  background: #DDD !important;
113
+ border-bottom-style: solid !important;
114
+ border-bottom-width: 1px !important;
115
+ border-bottom-color: #BBB !important;
116
  }
117
  .crayon-theme-solarized-dark .crayon-toolbar > div {
118
  float: left !important;
126
  .crayon-theme-solarized-dark .crayon-language {
127
  color: #999 !important;
128
  }
129
+ .crayon-theme-solarized-dark .crayon-button {
130
+ background-color: transparent !important;
131
  }
132
+ .crayon-theme-solarized-dark .crayon-button:hover {
133
+ background-color: #EEE !important;
134
  color: #666;
135
  }
136
+ .crayon-theme-solarized-dark .crayon-button.crayon-pressed:hover {
137
+ background-color: #EEE !important;
138
  color: #666;
139
  }
140
+ .crayon-theme-solarized-dark .crayon-button.crayon-pressed {
141
+ background-color: #BCBCBC !important;
142
  color: #FFF;
143
  }
144
+ .crayon-theme-solarized-dark .crayon-button.crayon-pressed:active {
145
+ background-color: #BCBCBC !important;
146
  color: #FFF;
147
  }
148
+ .crayon-theme-solarized-dark .crayon-button:active {
149
+ background-color: #BCBCBC !important;
150
  color: #FFF;
151
  }
152
  .crayon-theme-solarized-dark .crayon-pre .c {
190
  }
191
  .crayon-theme-solarized-dark .crayon-pre .n {
192
  color: #666 !important;
193
+ font-style: italic !important;
194
  }
195
  .crayon-theme-solarized-dark .crayon-pre .f {
196
  color: #999 !important;
themes/solarized-light/solarized-light.css CHANGED
@@ -9,21 +9,24 @@ Maintainer URL: http://eduantech.com/
9
  Notes: I don't provide striped lines because it would break the original purpose of this colorscheme.
10
  */
11
  .crayon-theme-solarized-light {
12
- border: 1px #999 solid !important;
13
  text-shadow: none !important;
14
  background: #fdf6e3 !important;
 
 
 
15
  }
16
  .crayon-theme-solarized-light .crayon-code {
17
  background: #fdf6e3 !important;
18
  }
19
  .crayon-theme-solarized-light-inline {
20
- border: 1px solid #ddd !important;
21
  background: #fdf6e3 !important;
 
 
 
22
  }
23
- .crayon-theme-solarized-light .crayon-nums {
24
  background: #eee8d5 !important;
25
  color: #93a1a1 !important;
26
- border-right: 1px solid #b3d3f3 !important;
27
  }
28
  .crayon-theme-solarized-light .crayon-code::selection {
29
  background: #ddeeff !important;
@@ -56,12 +59,14 @@ Notes: I don't provide striped lines because it would break the original purpose
56
  }
57
  .crayon-theme-solarized-light .crayon-striped-line {
58
  background: #fdf6e3 !important;
59
- border: 1px #CCC !important;
 
60
  }
61
  .crayon-theme-solarized-light .crayon-striped-num {
62
- border: 1px #CCC !important;
63
  color: #93a1a1 !important;
64
  background: #eee8d5 !important;
 
 
65
  }
66
  .crayon-theme-solarized-light .crayon-marked-line {
67
  background: #eee8d5 !important;
@@ -98,12 +103,16 @@ Notes: I don't provide striped lines because it would break the original purpose
98
  }
99
  .crayon-theme-solarized-light .crayon-info {
100
  background: #faf9d7 !important;
101
- border-bottom: 1px #b1af5e solid !important;
102
- color: #7e7d34;
 
 
103
  }
104
  .crayon-theme-solarized-light .crayon-toolbar {
105
  background: #DDD !important;
106
- border-bottom: 1px #BBB solid !important;
 
 
107
  }
108
  .crayon-theme-solarized-light .crayon-toolbar > div {
109
  float: left !important;
@@ -117,27 +126,27 @@ Notes: I don't provide striped lines because it would break the original purpose
117
  .crayon-theme-solarized-light .crayon-language {
118
  color: #999 !important;
119
  }
120
- .crayon-theme-solarized-light a.crayon-button {
121
- background-color: transparent;
122
  }
123
- .crayon-theme-solarized-light a.crayon-button:hover {
124
- background-color: #EEE;
125
  color: #666;
126
  }
127
- .crayon-theme-solarized-light a.crayon-button.crayon-pressed:hover {
128
- background-color: #EEE;
129
  color: #666;
130
  }
131
- .crayon-theme-solarized-light a.crayon-button.crayon-pressed {
132
- background-color: #BCBCBC;
133
  color: #FFF;
134
  }
135
- .crayon-theme-solarized-light a.crayon-button.crayon-pressed:active {
136
- background-color: #BCBCBC;
137
  color: #FFF;
138
  }
139
- .crayon-theme-solarized-light a.crayon-button:active {
140
- background-color: #BCBCBC;
141
  color: #FFF;
142
  }
143
  .crayon-theme-solarized-light .crayon-pre .c {
@@ -181,7 +190,7 @@ Notes: I don't provide striped lines because it would break the original purpose
181
  }
182
  .crayon-theme-solarized-light .crayon-pre .n {
183
  color: #666 !important;
184
- font-style: italic;
185
  }
186
  .crayon-theme-solarized-light .crayon-pre .f {
187
  color: #999 !important;
9
  Notes: I don't provide striped lines because it would break the original purpose of this colorscheme.
10
  */
11
  .crayon-theme-solarized-light {
 
12
  text-shadow: none !important;
13
  background: #fdf6e3 !important;
14
+ border-style: solid !important;
15
+ border-width: 1px !important;
16
+ border-color: #999 !important;
17
  }
18
  .crayon-theme-solarized-light .crayon-code {
19
  background: #fdf6e3 !important;
20
  }
21
  .crayon-theme-solarized-light-inline {
 
22
  background: #fdf6e3 !important;
23
+ border-style: solid !important;
24
+ border-width: 1px !important;
25
+ border-color: #ddd !important;
26
  }
27
+ .crayon-theme-solarized-light .crayon-table .crayon-nums {
28
  background: #eee8d5 !important;
29
  color: #93a1a1 !important;
 
30
  }
31
  .crayon-theme-solarized-light .crayon-code::selection {
32
  background: #ddeeff !important;
59
  }
60
  .crayon-theme-solarized-light .crayon-striped-line {
61
  background: #fdf6e3 !important;
62
+ border-width: 1px !important;
63
+ border-color: #CCC !important;
64
  }
65
  .crayon-theme-solarized-light .crayon-striped-num {
 
66
  color: #93a1a1 !important;
67
  background: #eee8d5 !important;
68
+ border-width: 1px !important;
69
+ border-color: #CCC !important;
70
  }
71
  .crayon-theme-solarized-light .crayon-marked-line {
72
  background: #eee8d5 !important;
103
  }
104
  .crayon-theme-solarized-light .crayon-info {
105
  background: #faf9d7 !important;
106
+ color: #7e7d34 !important;
107
+ border-bottom-style: solid !important;
108
+ border-bottom-width: 1px !important;
109
+ border-bottom-color: #b1af5e !important;
110
  }
111
  .crayon-theme-solarized-light .crayon-toolbar {
112
  background: #DDD !important;
113
+ border-bottom-style: solid !important;
114
+ border-bottom-width: 1px !important;
115
+ border-bottom-color: #BBB !important;
116
  }
117
  .crayon-theme-solarized-light .crayon-toolbar > div {
118
  float: left !important;
126
  .crayon-theme-solarized-light .crayon-language {
127
  color: #999 !important;
128
  }
129
+ .crayon-theme-solarized-light .crayon-button {
130
+ background-color: transparent !important;
131
  }
132
+ .crayon-theme-solarized-light .crayon-button:hover {
133
+ background-color: #EEE !important;
134
  color: #666;
135
  }
136
+ .crayon-theme-solarized-light .crayon-button.crayon-pressed:hover {
137
+ background-color: #EEE !important;
138
  color: #666;
139
  }
140
+ .crayon-theme-solarized-light .crayon-button.crayon-pressed {
141
+ background-color: #BCBCBC !important;
142
  color: #FFF;
143
  }
144
+ .crayon-theme-solarized-light .crayon-button.crayon-pressed:active {
145
+ background-color: #BCBCBC !important;
146
  color: #FFF;
147
  }
148
+ .crayon-theme-solarized-light .crayon-button:active {
149
+ background-color: #BCBCBC !important;
150
  color: #FFF;
151
  }
152
  .crayon-theme-solarized-light .crayon-pre .c {
190
  }
191
  .crayon-theme-solarized-light .crayon-pre .n {
192
  color: #666 !important;
193
+ font-style: italic !important;
194
  }
195
  .crayon-theme-solarized-light .crayon-pre .f {
196
  color: #999 !important;
themes/son-of-obsidian/son-of-obsidian.css CHANGED
@@ -8,18 +8,22 @@ URL: http://blog.phiphou.com
8
  Twitter: @__phiphou__
9
  */
10
  .crayon-theme-son-of-obsidian {
11
- border: 1px solid #ddd !important;
12
  text-shadow: none !important;
13
  background: #fafafa !important;
 
 
 
14
  }
15
  .crayon-theme-son-of-obsidian .crayon-code {
16
  background: #22282a !important;
17
  color: #f1f2f3 !important;
18
  }
19
- .crayon-theme-son-of-obsidian .crayon-nums {
20
  background: #22282a !important;
21
  color: #808080 !important;
22
- border-right: 1px solid #475459 !important;
 
 
23
  }
24
  .crayon-theme-son-of-obsidian .crayon-code::selection {
25
  background: #7c9299 !important;
@@ -52,29 +56,34 @@ Twitter: @__phiphou__
52
  }
53
  .crayon-theme-son-of-obsidian .crayon-striped-line {
54
  background: #22282a !important;
55
- border: 1px #ccc !important;
 
56
  }
57
  .crayon-theme-son-of-obsidian .crayon-striped-num {
58
  background: #293134 !important;
59
- border: 1px #22282a !important;
60
  color: #808080 !important;
 
 
61
  }
62
  .crayon-theme-son-of-obsidian .crayon-marked-line {
63
  background: #40292c !important;
64
- border: 1px #996b72 !important;
 
65
  }
66
  .crayon-theme-son-of-obsidian .crayon-marked-num {
67
  color: #808080 !important;
68
  background: #40292c !important;
69
- border: 1px #996b72 !important;
 
70
  }
71
  .crayon-theme-son-of-obsidian .crayon-marked-line.crayon-striped-line {
72
  background: #40292c !important;
73
  }
74
  .crayon-theme-son-of-obsidian .crayon-marked-num.crayon-striped-num {
75
  background: #663d43 !important;
76
- border: 1px #996b72 !important;
77
  color: #808080 !important;
 
 
78
  }
79
  .crayon-theme-son-of-obsidian .crayon-marked-line.crayon-top {
80
  border-top-style: solid !important;
@@ -90,12 +99,16 @@ Twitter: @__phiphou__
90
  }
91
  .crayon-theme-son-of-obsidian .crayon-info {
92
  background: #faf9d7 !important;
93
- border-bottom: 1px #b1af5e solid !important;
94
- color: #7e7d34;
 
 
95
  }
96
  .crayon-theme-son-of-obsidian .crayon-toolbar {
97
  background: #ddd !important;
98
- border-bottom: 1px #bbb solid !important;
 
 
99
  }
100
  .crayon-theme-son-of-obsidian .crayon-toolbar > div {
101
  float: left !important;
@@ -109,27 +122,27 @@ Twitter: @__phiphou__
109
  .crayon-theme-son-of-obsidian .crayon-language {
110
  color: #999 !important;
111
  }
112
- .crayon-theme-son-of-obsidian a.crayon-button {
113
- background-color: transparent;
114
  }
115
- .crayon-theme-son-of-obsidian a.crayon-button:hover {
116
- background-color: #eee;
117
  color: #666;
118
  }
119
- .crayon-theme-son-of-obsidian a.crayon-button.crayon-pressed:hover {
120
- background-color: #eee;
121
  color: #666;
122
  }
123
- .crayon-theme-son-of-obsidian a.crayon-button.crayon-pressed {
124
- background-color: #bcbcbc;
125
  color: #fff;
126
  }
127
- .crayon-theme-son-of-obsidian a.crayon-button.crayon-pressed:active {
128
- background-color: #bcbcbc;
129
  color: #fff;
130
  }
131
- .crayon-theme-son-of-obsidian a.crayon-button:active {
132
- background-color: #bcbcbc;
133
  color: #fff;
134
  }
135
  .crayon-theme-son-of-obsidian .crayon-pre .c {
@@ -182,7 +195,7 @@ Twitter: @__phiphou__
182
  }
183
  .crayon-theme-son-of-obsidian .crayon-pre .n {
184
  color: #f1f2f3 !important;
185
- font-style: italic;
186
  }
187
  .crayon-theme-son-of-obsidian .crayon-pre .f {
188
  }
8
  Twitter: @__phiphou__
9
  */
10
  .crayon-theme-son-of-obsidian {
 
11
  text-shadow: none !important;
12
  background: #fafafa !important;
13
+ border-style: solid !important;
14
+ border-width: 1px !important;
15
+ border-color: #ddd !important;
16
  }
17
  .crayon-theme-son-of-obsidian .crayon-code {
18
  background: #22282a !important;
19
  color: #f1f2f3 !important;
20
  }
21
+ .crayon-theme-son-of-obsidian .crayon-table .crayon-nums {
22
  background: #22282a !important;
23
  color: #808080 !important;
24
+ border-right-style: solid !important;
25
+ border-right-width: 1px !important;
26
+ border-right-color: #475459 !important;
27
  }
28
  .crayon-theme-son-of-obsidian .crayon-code::selection {
29
  background: #7c9299 !important;
56
  }
57
  .crayon-theme-son-of-obsidian .crayon-striped-line {
58
  background: #22282a !important;
59
+ border-width: 1px !important;
60
+ border-color: #ccc !important;
61
  }
62
  .crayon-theme-son-of-obsidian .crayon-striped-num {
63
  background: #293134 !important;
 
64
  color: #808080 !important;
65
+ border-width: 1px !important;
66
+ border-color: #22282a !important;
67
  }
68
  .crayon-theme-son-of-obsidian .crayon-marked-line {
69
  background: #40292c !important;
70
+ border-width: 1px !important;
71
+ border-color: #996b72 !important;
72
  }
73
  .crayon-theme-son-of-obsidian .crayon-marked-num {
74
  color: #808080 !important;
75
  background: #40292c !important;
76
+ border-width: 1px !important;
77
+ border-color: #996b72 !important;
78
  }
79
  .crayon-theme-son-of-obsidian .crayon-marked-line.crayon-striped-line {
80
  background: #40292c !important;
81
  }
82
  .crayon-theme-son-of-obsidian .crayon-marked-num.crayon-striped-num {
83
  background: #663d43 !important;
 
84
  color: #808080 !important;
85
+ border-width: 1px !important;
86
+ border-color: #996b72 !important;
87
  }
88
  .crayon-theme-son-of-obsidian .crayon-marked-line.crayon-top {
89
  border-top-style: solid !important;
99
  }
100
  .crayon-theme-son-of-obsidian .crayon-info {
101
  background: #faf9d7 !important;
102
+ color: #7e7d34 !important;
103
+ border-bottom-style: solid !important;
104
+ border-bottom-width: 1px !important;
105
+ border-bottom-color: #b1af5e !important;
106
  }
107
  .crayon-theme-son-of-obsidian .crayon-toolbar {
108
  background: #ddd !important;
109
+ border-bottom-style: solid !important;
110
+ border-bottom-width: 1px !important;
111
+ border-bottom-color: #bbb !important;
112
  }
113
  .crayon-theme-son-of-obsidian .crayon-toolbar > div {
114
  float: left !important;
122
  .crayon-theme-son-of-obsidian .crayon-language {
123
  color: #999 !important;
124
  }
125
+ .crayon-theme-son-of-obsidian .crayon-button {
126
+ background-color: transparent !important;
127
  }
128
+ .crayon-theme-son-of-obsidian .crayon-button:hover {
129
+ background-color: #eee !important;
130
  color: #666;
131
  }
132
+ .crayon-theme-son-of-obsidian .crayon-button.crayon-pressed:hover {
133
+ background-color: #eee !important;
134
  color: #666;
135
  }
136
+ .crayon-theme-son-of-obsidian .crayon-button.crayon-pressed {
137
+ background-color: #bcbcbc !important;
138
  color: #fff;
139
  }
140
+ .crayon-theme-son-of-obsidian .crayon-button.crayon-pressed:active {
141
+ background-color: #bcbcbc !important;
142
  color: #fff;
143
  }
144
+ .crayon-theme-son-of-obsidian .crayon-button:active {
145
+ background-color: #bcbcbc !important;
146
  color: #fff;
147
  }
148
  .crayon-theme-son-of-obsidian .crayon-pre .c {
195
  }
196
  .crayon-theme-son-of-obsidian .crayon-pre .n {
197
  color: #f1f2f3 !important;
198
+ font-style: italic !important;
199
  }
200
  .crayon-theme-son-of-obsidian .crayon-pre .f {
201
  }
themes/tomorrow-night/tomorrow-night.css ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ Name: Tomorrow Night
3
+ Description: Based on https://github.com/ChrisKempson/Tomorrow-Theme/
4
+ Version: 1.0
5
+ Author: Aram Kocharyan
6
+ URL: http://aramk.com/
7
+ */
8
+ .crayon-theme-tomorrow-night {
9
+ border-width: 1px !important;
10
+ border-color: #000000 !important;
11
+ border-style: solid !important;
12
+ text-shadow: none !important;
13
+ background: #27292c !important;
14
+ }
15
+ .crayon-theme-tomorrow-night-inline {
16
+ border-width: 1px !important;
17
+ border-color: #000000 !important;
18
+ border-style: solid !important;
19
+ background: #27292c !important;
20
+ }
21
+ .crayon-theme-tomorrow-night .crayon-table .crayon-nums {
22
+ background: #4b4d4f !important;
23
+ color: #898989 !important;
24
+ border-right-width: 1px !important;
25
+ }
26
+ .crayon-theme-tomorrow-night *::selection {
27
+ background: transparent !important;
28
+ }
29
+ .crayon-theme-tomorrow-night .crayon-code *::selection {
30
+ background: #ddeeff !important;
31
+ color: #316ba5 !important;
32
+ }
33
+ .crayon-theme-tomorrow-night .crayon-striped-line {
34
+ background: #202326 !important;
35
+ }
36
+ .crayon-theme-tomorrow-night .crayon-striped-num {
37
+ background: #3a3c3d !important;
38
+ color: #979797 !important;
39
+ }
40
+ .crayon-theme-tomorrow-night .crayon-marked-line {
41
+ background: #303030 !important;
42
+ border-width: 1px !important;
43
+ border-color: #3a3a47 !important;
44
+ }
45
+ .crayon-theme-tomorrow-night .crayon-marked-num {
46
+ color: #9e9e9e !important;
47
+ background: #434343 !important;
48
+ border-width: 1px !important;
49
+ border-color: #595959 !important;
50
+ }
51
+ .crayon-theme-tomorrow-night .crayon-marked-line.crayon-striped-line {
52
+ background: #2b2b2b !important;
53
+ }
54
+ .crayon-theme-tomorrow-night .crayon-marked-num.crayon-striped-num {
55
+ background: #383838 !important;
56
+ color: #9e9e9e !important;
57
+ }
58
+ .crayon-theme-tomorrow-night .crayon-marked-line.crayon-top {
59
+ border-top-style: solid !important;
60
+ }
61
+ .crayon-theme-tomorrow-night .crayon-marked-num.crayon-top {
62
+ border-top-style: solid !important;
63
+ }
64
+ .crayon-theme-tomorrow-night .crayon-marked-line.crayon-bottom {
65
+ border-bottom-style: solid !important;
66
+ }
67
+ .crayon-theme-tomorrow-night .crayon-marked-num.crayon-bottom {
68
+ border-bottom-style: solid !important;
69
+ }
70
+ .crayon-theme-tomorrow-night .crayon-info {
71
+ background: #faf9d7 !important;
72
+ border-bottom-width: 1px !important;
73
+ border-bottom-color: #b1af5e !important;
74
+ border-bottom-style: solid !important;
75
+ color: #7e7d34 !important;
76
+ }
77
+ .crayon-theme-tomorrow-night .crayon-toolbar {
78
+ background: #919191 !important;
79
+ border-bottom-width: 1px !important;
80
+ border-bottom-color: #2e2e2e !important;
81
+ border-bottom-style: solid !important;
82
+ }
83
+ .crayon-theme-tomorrow-night .crayon-toolbar > div {
84
+ float: left !important;
85
+ }
86
+ .crayon-theme-tomorrow-night .crayon-toolbar .crayon-tools {
87
+ float: right !important;
88
+ }
89
+ .crayon-theme-tomorrow-night .crayon-title {
90
+ color: #2a2a2a !important;
91
+ }
92
+ .crayon-theme-tomorrow-night .crayon-language {
93
+ color: #494949 !important;
94
+ }
95
+ .crayon-theme-tomorrow-night .crayon-button {
96
+ }
97
+ .crayon-theme-tomorrow-night .crayon-button:hover {
98
+ background-color: #bcbcbc !important;
99
+ color: #666;
100
+ }
101
+ .crayon-theme-tomorrow-night .crayon-button.crayon-pressed:hover {
102
+ background-color: #bcbcbc !important;
103
+ color: #666;
104
+ }
105
+ .crayon-theme-tomorrow-night .crayon-button.crayon-pressed {
106
+ background-color: #626262 !important;
107
+ color: #FFF;
108
+ }
109
+ .crayon-theme-tomorrow-night .crayon-button.crayon-pressed:active {
110
+ background-color: #626262 !important;
111
+ color: #FFF;
112
+ }
113
+ .crayon-theme-tomorrow-night .crayon-button:active {
114
+ background-color: #bcbcbc !important;
115
+ color: #FFF;
116
+ }
117
+ .crayon-theme-tomorrow-night .crayon-pre .c {
118
+ color: #a7a8a2 !important;
119
+ }
120
+ .crayon-theme-tomorrow-night .crayon-pre .s {
121
+ color: #b2af75 !important;
122
+ }
123
+ .crayon-theme-tomorrow-night .crayon-pre .p {
124
+ color: #b85c00 !important;
125
+ }
126
+ .crayon-theme-tomorrow-night .crayon-pre .ta {
127
+ color: #e79663 !important;
128
+ }
129
+ .crayon-theme-tomorrow-night .crayon-pre .k {
130
+ color: #92afc1 !important;
131
+ }
132
+ .crayon-theme-tomorrow-night .crayon-pre .st {
133
+ color: #92afc1 !important;
134
+ }
135
+ .crayon-theme-tomorrow-night .crayon-pre .r {
136
+ color: #92afc1 !important;
137
+ }
138
+ .crayon-theme-tomorrow-night .crayon-pre .t {
139
+ color: #bba7c5 !important;
140
+ }
141
+ .crayon-theme-tomorrow-night .crayon-pre .m {
142
+ color: #bba7c5 !important;
143
+ }
144
+ .crayon-theme-tomorrow-night .crayon-pre .i {
145
+ color: #c7c7c7 !important;
146
+ }
147
+ .crayon-theme-tomorrow-night .crayon-pre .e {
148
+ color: #e8ce91 !important;
149
+ }
150
+ .crayon-theme-tomorrow-night .crayon-pre .v {
151
+ color: #d87c7b !important;
152
+ }
153
+ .crayon-theme-tomorrow-night .crayon-pre .cn {
154
+ color: #e7a37a !important;
155
+ }
156
+ .crayon-theme-tomorrow-night .crayon-pre .o {
157
+ color: #99c9c4 !important;
158
+ }
159
+ .crayon-theme-tomorrow-night .crayon-pre .sy {
160
+ color: #c9d2d1 !important;
161
+ }
162
+ .crayon-theme-tomorrow-night .crayon-pre .n {
163
+ color: #666 !important;
164
+ font-style: italic !important;
165
+ }
166
+ .crayon-theme-tomorrow-night .crayon-pre .f {
167
+ color: #999 !important;
168
+ }
169
+ .crayon-theme-tomorrow-night .crayon-pre .h {
170
+ color: #006fe0 !important;
171
+ }
themes/tomorrow/tomorrow.css ADDED
@@ -0,0 +1,172 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ Name: Tomorrow
3
+ Description: Based on https://github.com/ChrisKempson/Tomorrow-Theme/
4
+ Version: 1.0
5
+ Author: Aram Kocharyan
6
+ URL: http://aramk.com/
7
+ */
8
+ .crayon-theme-tomorrow {
9
+ border-width: 1px !important;
10
+ border-color: #999 !important;
11
+ border-style: solid !important;
12
+ text-shadow: none !important;
13
+ background: #ffffff !important;
14
+ }
15
+ .crayon-theme-tomorrow-inline {
16
+ border-width: 1px !important;
17
+ border-color: #ddd !important;
18
+ border-style: solid !important;
19
+ background: #fafafa !important;
20
+ }
21
+ .crayon-theme-tomorrow .crayon-table .crayon-nums {
22
+ background: #f0f0f0 !important;
23
+ color: #b5b5b5 !important;
24
+ border-right-width: 1px !important;
25
+ }
26
+ .crayon-theme-tomorrow *::selection {
27
+ background: transparent !important;
28
+ }
29
+ .crayon-theme-tomorrow .crayon-code *::selection {
30
+ background: #ddeeff !important;
31
+ color: #316ba5 !important;
32
+ }
33
+ .crayon-theme-tomorrow .crayon-striped-line {
34
+ background: #f9f9f9 !important;
35
+ }
36
+ .crayon-theme-tomorrow .crayon-striped-num {
37
+ background: #e2e2e2 !important;
38
+ color: #979797 !important;
39
+ }
40
+ .crayon-theme-tomorrow .crayon-marked-line {
41
+ background: #fffee2 !important;
42
+ border-width: 1px !important;
43
+ border-color: #e9e579 !important;
44
+ }
45
+ .crayon-theme-tomorrow .crayon-marked-num {
46
+ color: #818181 !important;
47
+ background: #d1d1d1 !important;
48
+ border-width: 1px !important;
49
+ border-color: #acacac !important;
50
+ }
51
+ .crayon-theme-tomorrow .crayon-marked-line.crayon-striped-line {
52
+ background: #faf8d1 !important;
53
+ }
54
+ .crayon-theme-tomorrow .crayon-marked-num.crayon-striped-num {
55
+ background: #c0c0c0 !important;
56
+ color: #626262 !important;
57
+ }
58
+ .crayon-theme-tomorrow .crayon-marked-line.crayon-top {
59
+ border-top-style: solid !important;
60
+ }
61
+ .crayon-theme-tomorrow .crayon-marked-num.crayon-top {
62
+ border-top-style: solid !important;
63
+ }
64
+ .crayon-theme-tomorrow .crayon-marked-line.crayon-bottom {
65
+ border-bottom-style: solid !important;
66
+ }
67
+ .crayon-theme-tomorrow .crayon-marked-num.crayon-bottom {
68
+ border-bottom-style: solid !important;
69
+ }
70
+ .crayon-theme-tomorrow .crayon-info {
71
+ background: #faf9d7 !important;
72
+ border-bottom-width: 1px !important;
73
+ border-bottom-color: #b1af5e !important;
74
+ border-bottom-style: solid !important;
75
+ color: #7e7d34 !important;
76
+ }
77
+ .crayon-theme-tomorrow .crayon-toolbar {
78
+ background: #DDD !important;
79
+ border-bottom-width: 1px !important;
80
+ border-bottom-color: #BBB !important;
81
+ border-bottom-style: solid !important;
82
+ }
83
+ .crayon-theme-tomorrow .crayon-toolbar > div {
84
+ float: left !important;
85
+ }
86
+ .crayon-theme-tomorrow .crayon-toolbar .crayon-tools {
87
+ float: right !important;
88
+ }
89
+ .crayon-theme-tomorrow .crayon-title {
90
+ color: #333 !important;
91
+ }
92
+ .crayon-theme-tomorrow .crayon-language {
93
+ color: #999 !important;
94
+ }
95
+ .crayon-theme-tomorrow .crayon-button {
96
+ background-color: transparent !important;
97
+ }
98
+ .crayon-theme-tomorrow .crayon-button:hover {
99
+ background-color: #EEE !important;
100
+ color: #666;
101
+ }
102
+ .crayon-theme-tomorrow .crayon-button.crayon-pressed:hover {
103
+ background-color: #EEE !important;
104
+ color: #666;
105
+ }
106
+ .crayon-theme-tomorrow .crayon-button.crayon-pressed {
107
+ background-color: #BCBCBC !important;
108
+ color: #FFF;
109
+ }
110
+ .crayon-theme-tomorrow .crayon-button.crayon-pressed:active {
111
+ background-color: #BCBCBC !important;
112
+ color: #FFF;
113
+ }
114
+ .crayon-theme-tomorrow .crayon-button:active {
115
+ background-color: #BCBCBC !important;
116
+ color: #FFF;
117
+ }
118
+ .crayon-theme-tomorrow .crayon-pre .c {
119
+ color: #a7a19e !important;
120
+ }
121
+ .crayon-theme-tomorrow .crayon-pre .s {
122
+ color: #839a31 !important;
123
+ }
124
+ .crayon-theme-tomorrow .crayon-pre .p {
125
+ color: #b85c00 !important;
126
+ }
127
+ .crayon-theme-tomorrow .crayon-pre .ta {
128
+ color: #fa9844 !important;
129
+ }
130
+ .crayon-theme-tomorrow .crayon-pre .k {
131
+ color: #6687b7 !important;
132
+ }
133
+ .crayon-theme-tomorrow .crayon-pre .st {
134
+ color: #6687b7 !important;
135
+ }
136
+ .crayon-theme-tomorrow .crayon-pre .r {
137
+ color: #6687b7 !important;
138
+ }
139
+ .crayon-theme-tomorrow .crayon-pre .t {
140
+ color: #9d72b2 !important;
141
+ }
142
+ .crayon-theme-tomorrow .crayon-pre .m {
143
+ color: #9d72b2 !important;
144
+ }
145
+ .crayon-theme-tomorrow .crayon-pre .i {
146
+ color: #000 !important;
147
+ }
148
+ .crayon-theme-tomorrow .crayon-pre .e {
149
+ color: #e3ae3a !important;
150
+ }
151
+ .crayon-theme-tomorrow .crayon-pre .v {
152
+ color: #d73c3b !important;
153
+ }
154
+ .crayon-theme-tomorrow .crayon-pre .cn {
155
+ color: #000000 !important;
156
+ }
157
+ .crayon-theme-tomorrow .crayon-pre .o {
158
+ color: #48a9ae !important;
159
+ }
160
+ .crayon-theme-tomorrow .crayon-pre .sy {
161
+ color: #0d0000 !important;
162
+ }
163
+ .crayon-theme-tomorrow .crayon-pre .n {
164
+ color: #666 !important;
165
+ font-style: italic !important;
166
+ }
167
+ .crayon-theme-tomorrow .crayon-pre .f {
168
+ color: #999 !important;
169
+ }
170
+ .crayon-theme-tomorrow .crayon-pre .h {
171
+ color: #006fe0 !important;
172
+ }
themes/twilight/twilight.css CHANGED
@@ -3,28 +3,34 @@ Name: Twilight
3
  Description: Dark and elegant.
4
  Version: 1.3
5
  Author: Aram Kocharyan
6
- URL: http://ak.net84.net/
7
  */
8
  .crayon-theme-twilight {
9
- border: 1px #333 solid !important;
10
  text-shadow: none !important;
11
  color: #fff;
12
  background: #2d2d2d !important;
 
 
 
13
  }
14
  .crayon-theme-twilight .crayon-code {
15
  background: #2d2d2d !important;
16
  }
17
  .crayon-theme-twilight-inline {
18
- border: 1px solid #333 !important;
19
  background: #333 !important;
 
 
 
20
  }
21
  .crayon-theme-twilight span {
22
  color: #999 !important;
23
  }
24
- .crayon-theme-twilight .crayon-nums {
25
- border-right: 1px solid #333 !important;
26
  color: #333 !important;
27
  background: #909090 !important;
 
 
 
28
  }
29
  .crayon-theme-twilight .crayon-code::selection {
30
  background: #ddeeff !important;
@@ -57,21 +63,25 @@ URL: http://ak.net84.net/
57
  }
58
  .crayon-theme-twilight .crayon-striped-line {
59
  background: #343434 !important;
60
- border: 1px #171717 !important;
 
61
  }
62
  .crayon-theme-twilight .crayon-striped-num {
63
  background: #aaa !important;
64
- border: 1px #CCC !important;
65
  color: #555 !important;
 
 
66
  }
67
  .crayon-theme-twilight .crayon-marked-line {
68
  background: #484844 !important;
69
- border: 1px #222 !important;
 
70
  }
71
  .crayon-theme-twilight .crayon-marked-num {
72
  color: #555 !important;
73
  background: #bbb !important;
74
- border: 1px #777 !important;
 
75
  }
76
  .crayon-theme-twilight .crayon-marked-line.crayon-striped-line {
77
  background: #51514d !important;
@@ -94,12 +104,16 @@ URL: http://ak.net84.net/
94
  }
95
  .crayon-theme-twilight .crayon-info {
96
  background: #faf9d7 !important;
97
- border-bottom: 1px #b1af5e solid !important;
98
- color: #7e7d34;
 
 
99
  }
100
  .crayon-theme-twilight .crayon-toolbar {
101
  background: #b2b2b2 !important;
102
- border-bottom: 1px #666 solid !important;
 
 
103
  }
104
  .crayon-theme-twilight .crayon-toolbar > div {
105
  float: left !important;
@@ -116,27 +130,27 @@ URL: http://ak.net84.net/
116
  .crayon-theme-twilight .crayon-toolbar .crayon-mixed-highlight {
117
  background-position: -24px center;
118
  }
119
- .crayon-theme-twilight a.crayon-button {
120
- background-color: transparent;
121
  }
122
- .crayon-theme-twilight a.crayon-button:hover {
123
- background-color: #ccc;
124
  color: #666;
125
  }
126
- .crayon-theme-twilight a.crayon-button.crayon-pressed:hover {
127
- background-color: #ccc;
128
  color: #666;
129
  }
130
- .crayon-theme-twilight a.crayon-button.crayon-pressed {
131
- background-color: #999;
132
  color: #ccc;
133
  }
134
- .crayon-theme-twilight a.crayon-button.crayon-pressed:active {
135
- background-color: #999;
136
  color: #ccc;
137
  }
138
- .crayon-theme-twilight a.crayon-button:active {
139
- background-color: #999;
140
  color: #ccc;
141
  }
142
  .crayon-theme-twilight .crayon-pre .c {
@@ -189,7 +203,7 @@ URL: http://ak.net84.net/
189
  }
190
  .crayon-theme-twilight .crayon-pre .n {
191
  color: #726e73 !important;
192
- font-style: italic;
193
  }
194
  .crayon-theme-twilight .crayon-pre .f {
195
  color: #595959 !important;
3
  Description: Dark and elegant.
4
  Version: 1.3
5
  Author: Aram Kocharyan
6
+ URL: http://aramk.com/
7
  */
8
  .crayon-theme-twilight {
 
9
  text-shadow: none !important;
10
  color: #fff;
11
  background: #2d2d2d !important;
12
+ border-style: solid !important;
13
+ border-width: 1px !important;
14
+ border-color: #333 !important;
15
  }
16
  .crayon-theme-twilight .crayon-code {
17
  background: #2d2d2d !important;
18
  }
19
  .crayon-theme-twilight-inline {
 
20
  background: #333 !important;
21
+ border-style: solid !important;
22
+ border-width: 1px !important;
23
+ border-color: #333 !important;
24
  }
25
  .crayon-theme-twilight span {
26
  color: #999 !important;
27
  }
28
+ .crayon-theme-twilight .crayon-table .crayon-nums {
 
29
  color: #333 !important;
30
  background: #909090 !important;
31
+ border-right-style: solid !important;
32
+ border-right-width: 1px !important;
33
+ border-right-color: #333 !important;
34
  }
35
  .crayon-theme-twilight .crayon-code::selection {
36
  background: #ddeeff !important;
63
  }
64
  .crayon-theme-twilight .crayon-striped-line {
65
  background: #343434 !important;
66
+ border-width: 1px !important;
67
+ border-color: #171717 !important;
68
  }
69
  .crayon-theme-twilight .crayon-striped-num {
70
  background: #aaa !important;
 
71
  color: #555 !important;
72
+ border-width: 1px !important;
73
+ border-color: #CCC !important;
74
  }
75
  .crayon-theme-twilight .crayon-marked-line {
76
  background: #484844 !important;
77
+ border-width: 1px !important;
78
+ border-color: #222 !important;
79
  }
80
  .crayon-theme-twilight .crayon-marked-num {
81
  color: #555 !important;
82
  background: #bbb !important;
83
+ border-width: 1px !important;
84
+ border-color: #777 !important;
85
  }
86
  .crayon-theme-twilight .crayon-marked-line.crayon-striped-line {
87
  background: #51514d !important;
104
  }
105
  .crayon-theme-twilight .crayon-info {
106
  background: #faf9d7 !important;
107
+ color: #7e7d34 !important;
108
+ border-bottom-style: solid !important;
109
+ border-bottom-width: 1px !important;
110
+ border-bottom-color: #b1af5e !important;
111
  }
112
  .crayon-theme-twilight .crayon-toolbar {
113
  background: #b2b2b2 !important;
114
+ border-bottom-style: solid !important;
115
+ border-bottom-width: 1px !important;
116
+ border-bottom-color: #666 !important;
117
  }
118
  .crayon-theme-twilight .crayon-toolbar > div {
119
  float: left !important;
130
  .crayon-theme-twilight .crayon-toolbar .crayon-mixed-highlight {
131
  background-position: -24px center;
132
  }
133
+ .crayon-theme-twilight .crayon-button {
134
+ background-color: transparent !important;
135
  }
136
+ .crayon-theme-twilight .crayon-button:hover {
137
+ background-color: #ccc !important;
138
  color: #666;
139
  }
140
+ .crayon-theme-twilight .crayon-button.crayon-pressed:hover {
141
+ background-color: #ccc !important;
142
  color: #666;
143
  }
144
+ .crayon-theme-twilight .crayon-button.crayon-pressed {
145
+ background-color: #999 !important;
146
  color: #ccc;
147
  }
148
+ .crayon-theme-twilight .crayon-button.crayon-pressed:active {
149
+ background-color: #999 !important;
150
  color: #ccc;
151
  }
152
+ .crayon-theme-twilight .crayon-button:active {
153
+ background-color: #999 !important;
154
  color: #ccc;
155
  }
156
  .crayon-theme-twilight .crayon-pre .c {
203
  }
204
  .crayon-theme-twilight .crayon-pre .n {
205
  color: #726e73 !important;
206
+ font-style: italic !important;
207
  }
208
  .crayon-theme-twilight .crayon-pre .f {
209
  color: #595959 !important;
themes/vs2012-black/vs2012-black.css ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ Name: VS2012 Black
3
+ Description: Visual Studio 2012 Black Theme
4
+ Version: 0.1
5
+ Author: Nikolay Zahariev
6
+ Url: http://nikolayzahariev.com/
7
+ */
8
+ .crayon-theme-vs2012-black {
9
+ border-width: 1px !important;
10
+ border-color: #999 !important;
11
+ border-style: solid !important;
12
+ text-shadow: none !important;
13
+ background: #363232 !important;
14
+ }
15
+ .crayon-theme-vs2012-black-inline {
16
+ border-width: 1px !important;
17
+ border-color: #ddd !important;
18
+ border-style: solid !important;
19
+ background: #1b5b89 !important;
20
+ }
21
+ .crayon-theme-vs2012-black .crayon-table .crayon-nums {
22
+ background: #363232 !important;
23
+ color: #1ba2c6 !important;
24
+ }
25
+ .crayon-theme-vs2012-black *::selection {
26
+ background: transparent !important;
27
+ }
28
+ .crayon-theme-vs2012-black .crayon-code *::selection {
29
+ background: #ddeeff !important;
30
+ color: #316ba5 !important;
31
+ }
32
+ .crayon-theme-vs2012-black .crayon-striped-line {
33
+ background: #363232 !important;
34
+ }
35
+ .crayon-theme-vs2012-black .crayon-striped-num {
36
+ background: #363232 !important;
37
+ color: #1ba2c6 !important;
38
+ }
39
+ .crayon-theme-vs2012-black .crayon-marked-line {
40
+ background: #1b5b89 !important;
41
+ border-width: 1px !important;
42
+ border-color: #433636 !important;
43
+ }
44
+ .crayon-theme-vs2012-black .crayon-marked-num {
45
+ color: #1ba2c6 !important;
46
+ background: #363232 !important;
47
+ border-width: 1px !important;
48
+ border-color: #363232 !important;
49
+ }
50
+ .crayon-theme-vs2012-black .crayon-marked-line.crayon-striped-line {
51
+ background: #363232 !important;
52
+ }
53
+ .crayon-theme-vs2012-black .crayon-marked-num.crayon-striped-num {
54
+ background: #363232 !important;
55
+ color: #1ba2c6 !important;
56
+ }
57
+ .crayon-theme-vs2012-black .crayon-marked-line.crayon-top {
58
+ border-top-style: solid !important;
59
+ }
60
+ .crayon-theme-vs2012-black .crayon-marked-num.crayon-top {
61
+ border-top-style: solid !important;
62
+ }
63
+ .crayon-theme-vs2012-black .crayon-marked-line.crayon-bottom {
64
+ border-bottom-style: solid !important;
65
+ }
66
+ .crayon-theme-vs2012-black .crayon-marked-num.crayon-bottom {
67
+ border-bottom-style: solid !important;
68
+ }
69
+ .crayon-theme-vs2012-black .crayon-info {
70
+ background: #faf9d7 !important;
71
+ border-bottom-width: 1px !important;
72
+ border-bottom-color: #b1af5e !important;
73
+ border-bottom-style: solid !important;
74
+ color: #7e7d34 !important;
75
+ }
76
+ .crayon-theme-vs2012-black .crayon-toolbar {
77
+ background: #DDD !important;
78
+ border-bottom-width: 1px !important;
79
+ border-bottom-color: #BBB !important;
80
+ border-bottom-style: solid !important;
81
+ }
82
+ .crayon-theme-vs2012-black .crayon-toolbar > div {
83
+ float: left !important;
84
+ }
85
+ .crayon-theme-vs2012-black .crayon-toolbar .crayon-tools {
86
+ float: right !important;
87
+ }
88
+ .crayon-theme-vs2012-black .crayon-title {
89
+ color: #333 !important;
90
+ }
91
+ .crayon-theme-vs2012-black .crayon-language {
92
+ color: #999 !important;
93
+ }
94
+ .crayon-theme-vs2012-black a.crayon-button {
95
+ background-color: transparent !important;
96
+ }
97
+ .crayon-theme-vs2012-black a.crayon-button:hover {
98
+ background-color: #EEE !important;
99
+ color: #666;
100
+ }
101
+ .crayon-theme-vs2012-black a.crayon-button.crayon-pressed:hover {
102
+ background-color: #EEE !important;
103
+ color: #666;
104
+ }
105
+ .crayon-theme-vs2012-black a.crayon-button.crayon-pressed {
106
+ background-color: #BCBCBC !important;
107
+ color: #FFF;
108
+ }
109
+ .crayon-theme-vs2012-black a.crayon-button.crayon-pressed:active {
110
+ background-color: #BCBCBC !important;
111
+ color: #FFF;
112
+ }
113
+ .crayon-theme-vs2012-black a.crayon-button:active {
114
+ background-color: #BCBCBC !important;
115
+ color: #FFF;
116
+ }
117
+ .crayon-theme-vs2012-black .crayon-pre .c {
118
+ color: #458b45 !important;
119
+ }
120
+ .crayon-theme-vs2012-black .crayon-pre .s {
121
+ color: #b78686 !important;
122
+ }
123
+ .crayon-theme-vs2012-black .crayon-pre .p {
124
+ color: #7f7c79 !important;
125
+ }
126
+ .crayon-theme-vs2012-black .crayon-pre .ta {
127
+ color: #FF0000 !important;
128
+ }
129
+ .crayon-theme-vs2012-black .crayon-pre .k {
130
+ color: #94ccfd !important;
131
+ }
132
+ .crayon-theme-vs2012-black .crayon-pre .st {
133
+ color: #94ccfd !important;
134
+ }
135
+ .crayon-theme-vs2012-black .crayon-pre .r {
136
+ color: #94ccfd !important;
137
+ }
138
+ .crayon-theme-vs2012-black .crayon-pre .t {
139
+ color: #94ccfd !important;
140
+ }
141
+ .crayon-theme-vs2012-black .crayon-pre .m {
142
+ color: #94ccfd !important;
143
+ }
144
+ .crayon-theme-vs2012-black .crayon-pre .i {
145
+ color: #6bdacc !important;
146
+ }
147
+ .crayon-theme-vs2012-black .crayon-pre .e {
148
+ color: #ffffff !important;
149
+ }
150
+ .crayon-theme-vs2012-black .crayon-pre .v {
151
+ color: #e3e8ea !important;
152
+ }
153
+ .crayon-theme-vs2012-black .crayon-pre .cn {
154
+ color: #ffffff !important;
155
+ }
156
+ .crayon-theme-vs2012-black .crayon-pre .o {
157
+ color: #ffffff !important;
158
+ }
159
+ .crayon-theme-vs2012-black .crayon-pre .sy {
160
+ color: #ffffff !important;
161
+ }
162
+ .crayon-theme-vs2012-black .crayon-pre .n {
163
+ color: #666 !important;
164
+ font-style: italic !important;
165
+ }
166
+ .crayon-theme-vs2012-black .crayon-pre .f {
167
+ color: #ffffff !important;
168
+ }
169
+ .crayon-theme-vs2012-black .crayon-pre .h {
170
+ color: #006fe0 !important;
171
+ }
themes/vs2012/vs2012.css ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ Name: VS2012
3
+ Description: Visual Studio 2012 Light Theme
4
+ Version: 0.1
5
+ Author: Nikolay Zahariev
6
+ Url: http://nikolayzahariev.com/
7
+ */
8
+ .crayon-theme-vs2012 {
9
+ border-width: 1px !important;
10
+ border-color: #999 !important;
11
+ border-style: solid !important;
12
+ text-shadow: none !important;
13
+ background: #ffffff !important;
14
+ }
15
+ .crayon-theme-vs2012-inline {
16
+ border-width: 1px !important;
17
+ border-color: #ddd !important;
18
+ border-style: solid !important;
19
+ background: #ffffff !important;
20
+ }
21
+ .crayon-theme-vs2012 .crayon-table .crayon-nums {
22
+ background: #ffffff !important;
23
+ color: #8ac1f8 !important;
24
+ }
25
+ .crayon-theme-vs2012 *::selection {
26
+ background: transparent !important;
27
+ }
28
+ .crayon-theme-vs2012 .crayon-code *::selection {
29
+ background: #ddeeff !important;
30
+ color: #316ba5 !important;
31
+ }
32
+ .crayon-theme-vs2012 .crayon-striped-line {
33
+ background: #ffffff !important;
34
+ }
35
+ .crayon-theme-vs2012 .crayon-striped-num {
36
+ background: #ffffff !important;
37
+ color: #8ac1f8 !important;
38
+ }
39
+ .crayon-theme-vs2012 .crayon-marked-line {
40
+ background: #d7dfe3 !important;
41
+ border-width: 1px !important;
42
+ border-color: #ffffff !important;
43
+ }
44
+ .crayon-theme-vs2012 .crayon-marked-num {
45
+ color: #8ac1f8 !important;
46
+ background: #ffffff !important;
47
+ border-width: 1px !important;
48
+ border-color: #ffffff !important;
49
+ }
50
+ .crayon-theme-vs2012 .crayon-marked-line.crayon-striped-line {
51
+ background: #ffffff !important;
52
+ }
53
+ .crayon-theme-vs2012 .crayon-marked-num.crayon-striped-num {
54
+ background: #ffffff !important;
55
+ color: #8ac1f8 !important;
56
+ }
57
+ .crayon-theme-vs2012 .crayon-marked-line.crayon-top {
58
+ border-top-style: solid !important;
59
+ }
60
+ .crayon-theme-vs2012 .crayon-marked-num.crayon-top {
61
+ border-top-style: solid !important;
62
+ }
63
+ .crayon-theme-vs2012 .crayon-marked-line.crayon-bottom {
64
+ border-bottom-style: solid !important;
65
+ }
66
+ .crayon-theme-vs2012 .crayon-marked-num.crayon-bottom {
67
+ border-bottom-style: solid !important;
68
+ }
69
+ .crayon-theme-vs2012 .crayon-info {
70
+ background: #faf9d7 !important;
71
+ border-bottom-width: 1px !important;
72
+ border-bottom-color: #b1af5e !important;
73
+ border-bottom-style: solid !important;
74
+ color: #7e7d34 !important;
75
+ }
76
+ .crayon-theme-vs2012 .crayon-toolbar {
77
+ background: #DDD !important;
78
+ border-bottom-width: 1px !important;
79
+ border-bottom-color: #BBB !important;
80
+ border-bottom-style: solid !important;
81
+ }
82
+ .crayon-theme-vs2012 .crayon-toolbar > div {
83
+ float: left !important;
84
+ }
85
+ .crayon-theme-vs2012 .crayon-toolbar .crayon-tools {
86
+ float: right !important;
87
+ }
88
+ .crayon-theme-vs2012 .crayon-title {
89
+ color: #333 !important;
90
+ }
91
+ .crayon-theme-vs2012 .crayon-language {
92
+ color: #999 !important;
93
+ }
94
+ .crayon-theme-vs2012 a.crayon-button {
95
+ background-color: transparent !important;
96
+ }
97
+ .crayon-theme-vs2012 a.crayon-button:hover {
98
+ background-color: #EEE !important;
99
+ color: #666;
100
+ }
101
+ .crayon-theme-vs2012 a.crayon-button.crayon-pressed:hover {
102
+ background-color: #EEE !important;
103
+ color: #666;
104
+ }
105
+ .crayon-theme-vs2012 a.crayon-button.crayon-pressed {
106
+ background-color: #BCBCBC !important;
107
+ color: #FFF;
108
+ }
109
+ .crayon-theme-vs2012 a.crayon-button.crayon-pressed:active {
110
+ background-color: #BCBCBC !important;
111
+ color: #FFF;
112
+ }
113
+ .crayon-theme-vs2012 a.crayon-button:active {
114
+ background-color: #BCBCBC !important;
115
+ color: #FFF;
116
+ }
117
+ .crayon-theme-vs2012 .crayon-pre .c {
118
+ color: #008000 !important;
119
+ }
120
+ .crayon-theme-vs2012 .crayon-pre .s {
121
+ color: #6e1717 !important;
122
+ }
123
+ .crayon-theme-vs2012 .crayon-pre .p {
124
+ color: #b85c00 !important;
125
+ }
126
+ .crayon-theme-vs2012 .crayon-pre .ta {
127
+ color: #FF0000 !important;
128
+ }
129
+ .crayon-theme-vs2012 .crayon-pre .k {
130
+ color: #3215eb !important;
131
+ }
132
+ .crayon-theme-vs2012 .crayon-pre .st {
133
+ color: #3215eb !important;
134
+ }
135
+ .crayon-theme-vs2012 .crayon-pre .r {
136
+ color: #3215eb !important;
137
+ }
138
+ .crayon-theme-vs2012 .crayon-pre .t {
139
+ color: #3215eb !important;
140
+ }
141
+ .crayon-theme-vs2012 .crayon-pre .m {
142
+ color: #3215eb !important;
143
+ }
144
+ .crayon-theme-vs2012 .crayon-pre .i {
145
+ color: #15a6eb !important;
146
+ }
147
+ .crayon-theme-vs2012 .crayon-pre .e {
148
+ color: #000000 !important;
149
+ }
150
+ .crayon-theme-vs2012 .crayon-pre .v {
151
+ color: #002D7A !important;
152
+ }
153
+ .crayon-theme-vs2012 .crayon-pre .cn {
154
+ color: #000000 !important;
155
+ }
156
+ .crayon-theme-vs2012 .crayon-pre .o {
157
+ color: #006fe0 !important;
158
+ }
159
+ .crayon-theme-vs2012 .crayon-pre .sy {
160
+ color: #333 !important;
161
+ }
162
+ .crayon-theme-vs2012 .crayon-pre .n {
163
+ color: #666 !important;
164
+ font-style: italic !important;
165
+ }
166
+ .crayon-theme-vs2012 .crayon-pre .f {
167
+ color: #ffffff !important;
168
+ }
169
+ .crayon-theme-vs2012 .crayon-pre .h {
170
+ color: #006fe0 !important;
171
+ }
trans/crayon-syntax-highlighter-de_DE.po CHANGED
@@ -506,7 +506,7 @@ msgstr ""
506
  #. translators: plugin header field 'AuthorURI'
507
  #: crayon_wp.class.php:0
508
  #@ crayon-syntax-highlighter
509
- msgid "http://ak.net84.net/"
510
  msgstr ""
511
 
512
  #. translators: plugin header field 'Author'
@@ -518,7 +518,7 @@ msgstr ""
518
  #. translators: plugin header field 'PluginURI'
519
  #: crayon_wp.class.php:0
520
  #@ crayon-syntax-highlighter
521
- msgid "http://ak.net84.net/projects/crayon-syntax-highlighter"
522
  msgstr ""
523
 
524
  #. translators: plugin header field 'Description'
506
  #. translators: plugin header field 'AuthorURI'
507
  #: crayon_wp.class.php:0
508
  #@ crayon-syntax-highlighter
509
+ msgid "http://aramk.com/"
510
  msgstr ""
511
 
512
  #. translators: plugin header field 'Author'
518
  #. translators: plugin header field 'PluginURI'
519
  #: crayon_wp.class.php:0
520
  #@ crayon-syntax-highlighter
521
+ msgid "http://aramk.com/projects/crayon-syntax-highlighter"
522
  msgstr ""
523
 
524
  #. translators: plugin header field 'Description'
trans/crayon-syntax-highlighter-nl_NL.po CHANGED
@@ -505,7 +505,7 @@ msgstr ""
505
  #@ crayon-syntax-highlighter
506
  #. translators: plugin header field 'AuthorURI'
507
  #: crayon_wp.class.php:0
508
- msgid "http://ak.net84.net/"
509
  msgstr ""
510
 
511
  #@ crayon-syntax-highlighter
@@ -517,7 +517,7 @@ msgstr ""
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 ""
522
 
523
  #@ crayon-syntax-highlighter
505
  #@ crayon-syntax-highlighter
506
  #. translators: plugin header field 'AuthorURI'
507
  #: crayon_wp.class.php:0
508
+ msgid "http://aramk.com/"
509
  msgstr ""
510
 
511
  #@ crayon-syntax-highlighter
517
  #@ crayon-syntax-highlighter
518
  #. translators: plugin header field 'PluginURI'
519
  #: crayon_wp.class.php:0
520
+ msgid "http://aramk.com/projects/crayon-syntax-highlighter"
521
  msgstr ""
522
 
523
  #@ crayon-syntax-highlighter
trans/crayon-syntax-highlighter-pl_PL.po CHANGED
@@ -846,7 +846,7 @@ msgstr ""
846
  #. translators: plugin header field 'PluginURI'
847
  #: crayon_wp.class.php:0
848
  #@ crayon-syntax-highlighter
849
- msgid "http://ak.net84.net/projects/crayon-syntax-highlighter"
850
  msgstr ""
851
 
852
  #. translators: plugin header field 'Description'
@@ -864,7 +864,7 @@ msgstr ""
864
  #. translators: plugin header field 'AuthorURI'
865
  #: crayon_wp.class.php:0
866
  #@ crayon-syntax-highlighter
867
- msgid "http://ak.net84.net/"
868
  msgstr ""
869
 
870
  #: util/tag-editor/crayon_tag_editor_wp.class.php:64
846
  #. translators: plugin header field 'PluginURI'
847
  #: crayon_wp.class.php:0
848
  #@ crayon-syntax-highlighter
849
+ msgid "http://aramk.com/projects/crayon-syntax-highlighter"
850
  msgstr ""
851
 
852
  #. translators: plugin header field 'Description'
864
  #. translators: plugin header field 'AuthorURI'
865
  #: crayon_wp.class.php:0
866
  #@ crayon-syntax-highlighter
867
+ msgid "http://aramk.com/"
868
  msgstr ""
869
 
870
  #: util/tag-editor/crayon_tag_editor_wp.class.php:64
trans/crayon-syntax-highlighter-sk_SK.mo ADDED
Binary file
trans/crayon-syntax-highlighter-sk_SK.po ADDED
@@ -0,0 +1,967 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: to je, prevedene\n"
4
+ "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: \n"
6
+ "Last-Translator: \n"
7
+ "Language-Team: \n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=iso-8859-1\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Generator: Poedit 1.5.4\n"
12
+
13
+ # @ crayon-syntax-highlighter
14
+ #: crayon_settings.class.php:155 crayon_settings.class.php:159
15
+ msgid "Max"
16
+ msgstr "Max"
17
+
18
+ # @ crayon-syntax-highlighter
19
+ #: crayon_settings.class.php:155 crayon_settings.class.php:159
20
+ msgid "Min"
21
+ msgstr "Min"
22
+
23
+ # @ crayon-syntax-highlighter
24
+ #: crayon_settings.class.php:155 crayon_settings.class.php:159
25
+ msgid "Static"
26
+ msgstr "Staticke"
27
+
28
+ # @ crayon-syntax-highlighter
29
+ #: crayon_settings.class.php:157 crayon_settings.class.php:161
30
+ #: crayon_settings_wp.class.php:580 crayon_settings_wp.class.php:589
31
+ #: crayon_settings_wp.class.php:698
32
+ msgid "Pixels"
33
+ msgstr "Pixelov"
34
+
35
+ # @ crayon-syntax-highlighter
36
+ #: crayon_settings.class.php:157 crayon_settings.class.php:161
37
+ msgid "Percent"
38
+ msgstr "Percent"
39
+
40
+ # @ crayon-syntax-highlighter
41
+ #: crayon_settings.class.php:170
42
+ msgid "None"
43
+ msgstr "Ziadny"
44
+
45
+ # @ crayon-syntax-highlighter
46
+ #: crayon_settings.class.php:170
47
+ msgid "Left"
48
+ msgstr "Dolava"
49
+
50
+ # @ crayon-syntax-highlighter
51
+ #: crayon_settings.class.php:170
52
+ msgid "Center"
53
+ msgstr "Centrum"
54
+
55
+ # @ crayon-syntax-highlighter
56
+ #: crayon_settings.class.php:170
57
+ msgid "Right"
58
+ msgstr "Pravo"
59
+
60
+ # @ crayon-syntax-highlighter
61
+ #: crayon_settings.class.php:172 crayon_settings.class.php:196
62
+ msgid "On MouseOver"
63
+ msgstr "Na MouseOver"
64
+
65
+ # @ crayon-syntax-highlighter
66
+ #: crayon_settings.class.php:172 crayon_settings.class.php:178
67
+ msgid "Always"
68
+ msgstr "Vzdy"
69
+
70
+ # @ crayon-syntax-highlighter
71
+ #: crayon_settings.class.php:172 crayon_settings.class.php:178
72
+ msgid "Never"
73
+ msgstr "Nikdy"
74
+
75
+ # @ crayon-syntax-highlighter
76
+ #: crayon_settings.class.php:178
77
+ msgid "When Found"
78
+ msgstr "Ked nasiel"
79
+
80
+ # @ crayon-syntax-highlighter
81
+ #: crayon_settings.class.php:196
82
+ msgid "On Double Click"
83
+ msgstr "Dvakrat kliknite na"
84
+
85
+ # @ crayon-syntax-highlighter
86
+ #: crayon_settings.class.php:196
87
+ msgid "On Single Click"
88
+ msgstr "Na jedno kliknutie"
89
+
90
+ # @ crayon-syntax-highlighter
91
+ #: crayon_settings.class.php:203
92
+ msgid "An error has occurred. Please try again later."
93
+ msgstr "Vyskytla sa chyba. Please try again later."
94
+
95
+ # @ crayon-syntax-highlighter
96
+ #: crayon_settings_wp.class.php:44 crayon_settings_wp.class.php:132
97
+ #: crayon_settings_wp.class.php:870 util/tag-editor/crayon_te_content.php:132
98
+ msgid "Settings"
99
+ msgstr "Nastavenia"
100
+
101
+ # @ crayon-syntax-highlighter
102
+ #: crayon_settings_wp.class.php:113
103
+ msgid "You do not have sufficient permissions to access this page."
104
+ msgstr "Nemate dostatocne povolenia na pristup k tejto stranke."
105
+
106
+ # @ crayon-syntax-highlighter
107
+ #: crayon_settings_wp.class.php:144
108
+ msgid "Save Changes"
109
+ msgstr "Ulozit zmeny"
110
+
111
+ # @ crayon-syntax-highlighter
112
+ #: crayon_settings_wp.class.php:150
113
+ msgid "Reset Settings"
114
+ msgstr "Reset nastavenia"
115
+
116
+ # @ crayon-syntax-highlighter
117
+ #: crayon_settings_wp.class.php:557
118
+ msgid "Height"
119
+ msgstr "Vyska"
120
+
121
+ # @ crayon-syntax-highlighter
122
+ #: crayon_settings_wp.class.php:563
123
+ msgid "Width"
124
+ msgstr "Sirka"
125
+
126
+ # @ crayon-syntax-highlighter
127
+ #: crayon_settings_wp.class.php:569
128
+ msgid "Top Margin"
129
+ msgstr "Horny okraj"
130
+
131
+ # @ crayon-syntax-highlighter
132
+ #: crayon_settings_wp.class.php:570
133
+ msgid "Bottom Margin"
134
+ msgstr "Spodny okraj"
135
+
136
+ # @ crayon-syntax-highlighter
137
+ #: crayon_settings_wp.class.php:571 crayon_settings_wp.class.php:576
138
+ msgid "Left Margin"
139
+ msgstr "Lavy okraj"
140
+
141
+ # @ crayon-syntax-highlighter
142
+ #: crayon_settings_wp.class.php:572 crayon_settings_wp.class.php:576
143
+ msgid "Right Margin"
144
+ msgstr "Pravom okraji"
145
+
146
+ # @ crayon-syntax-highlighter
147
+ #: crayon_settings_wp.class.php:582
148
+ msgid "Horizontal Alignment"
149
+ msgstr "Vodorovne zarovnanie"
150
+
151
+ # @ crayon-syntax-highlighter
152
+ #: crayon_settings_wp.class.php:585
153
+ msgid "Allow floating elements to surround Crayon"
154
+ msgstr "Povolit plavajuce prvky, ktore obklopuju pastelka"
155
+
156
+ # @ crayon-syntax-highlighter
157
+ #: crayon_settings_wp.class.php:595
158
+ msgid "Display the Toolbar"
159
+ msgstr "Zobrazit panel s nastrojmi"
160
+
161
+ # @ crayon-syntax-highlighter
162
+ #: crayon_settings_wp.class.php:598
163
+ msgid "Overlay the toolbar on code rather than push it down when possible"
164
+ msgstr "Prekrytie liste kod skor nez tlacit nadol, ak je to mozne"
165
+
166
+ # @ crayon-syntax-highlighter
167
+ #: crayon_settings_wp.class.php:599
168
+ msgid "Toggle the toolbar on single click when it is overlayed"
169
+ msgstr "Prepnut panel s nastrojmi na jedno kliknutie, kedy je prekryje"
170
+
171
+ # @ crayon-syntax-highlighter
172
+ #: crayon_settings_wp.class.php:600
173
+ msgid "Delay hiding the toolbar on MouseOut"
174
+ msgstr "Skrytie panela s nastrojmi na MouseOut oneskorenie"
175
+
176
+ # @ crayon-syntax-highlighter
177
+ #: crayon_settings_wp.class.php:602
178
+ msgid "Display the title when provided"
179
+ msgstr "Zobrazit nazov poskytovane"
180
+
181
+ # @ crayon-syntax-highlighter
182
+ #: crayon_settings_wp.class.php:603
183
+ msgid "Display the language"
184
+ msgstr "Jazyk zobrazenia"
185
+
186
+ # @ crayon-syntax-highlighter
187
+ #: crayon_settings_wp.class.php:610
188
+ msgid "Display striped code lines"
189
+ msgstr "Zobrazi pruhovane kod ciary"
190
+
191
+ # @ crayon-syntax-highlighter
192
+ #: crayon_settings_wp.class.php:611
193
+ msgid "Enable line marking for important lines"
194
+ msgstr "Povolit line oznacenie pre dolezite riadky"
195
+
196
+ # @ crayon-syntax-highlighter
197
+ #: crayon_settings_wp.class.php:613
198
+ msgid "Display line numbers by default"
199
+ msgstr "Predvolene zobrazovat cisla riadkov"
200
+
201
+ # @ crayon-syntax-highlighter
202
+ #: crayon_settings_wp.class.php:614
203
+ msgid "Enable line number toggling"
204
+ msgstr "Povolit prepinanie cislo riadku"
205
+
206
+ # @ crayon-syntax-highlighter
207
+ #: crayon_settings_wp.class.php:617
208
+ msgid "Start line numbers from"
209
+ msgstr "Zaciatku cisla riadkov z"
210
+
211
+ # @ crayon-syntax-highlighter
212
+ #: crayon_settings_wp.class.php:627
213
+ msgid "When no language is provided, use the fallback"
214
+ msgstr "Ked je k dispozicii ziadny jazyk, pouzit zalozne"
215
+
216
+ # @ crayon-syntax-highlighter
217
+ #: crayon_settings_wp.class.php:634
218
+ msgid "Parsing was successful"
219
+ msgstr "Analyza bola uspesna"
220
+
221
+ # @ crayon-syntax-highlighter
222
+ #: crayon_settings_wp.class.php:634
223
+ msgid "Parsing was unsuccessful"
224
+ msgstr "Analyza bola neuspesna"
225
+
226
+ # @ crayon-syntax-highlighter
227
+ #: crayon_settings_wp.class.php:640
228
+ #, php-format
229
+ msgid "The selected language with id %s could not be loaded"
230
+ msgstr "Zvoleny jazyk s identifikaciou %s sa nepodarilo nacitat"
231
+
232
+ # @ crayon-syntax-highlighter
233
+ #: crayon_settings_wp.class.php:643
234
+ msgid "Show Languages"
235
+ msgstr "Zobrazit jazyky"
236
+
237
+ # @ crayon-syntax-highlighter
238
+ #: crayon_settings_wp.class.php:679
239
+ msgid "Enable Live Preview"
240
+ msgstr "Povolit zivu ukazku"
241
+
242
+ # @ crayon-syntax-highlighter
243
+ #: crayon_settings_wp.class.php:684
244
+ #, php-format
245
+ msgid "The selected theme with id %s could not be loaded"
246
+ msgstr "Vybraty motiv s identifikaciou %s sa nepodarilo nacitat"
247
+
248
+ # @ crayon-syntax-highlighter
249
+ #: crayon_settings_wp.class.php:696
250
+ msgid "Custom Font Size"
251
+ msgstr "Vlastnu velkost pisma"
252
+
253
+ # @ crayon-syntax-highlighter
254
+ #: crayon_settings_wp.class.php:701
255
+ #, php-format
256
+ msgid "The selected font with id %s could not be loaded"
257
+ msgstr "Vybrate pismo s identifikaciou %s sa nepodarilo nacitat"
258
+
259
+ # @ crayon-syntax-highlighter
260
+ #: crayon_settings_wp.class.php:712
261
+ msgid "Enable plain code view and display"
262
+ msgstr "Povolit zobrazenie holy kod a zobrazovat"
263
+
264
+ # @ crayon-syntax-highlighter
265
+ #: crayon_settings_wp.class.php:717
266
+ msgid "Enable code copy/paste"
267
+ msgstr "Povolit kod kopirovat/vlozit"
268
+
269
+ # @ crayon-syntax-highlighter
270
+ #: crayon_settings_wp.class.php:719
271
+ msgid "Enable opening code in a window"
272
+ msgstr "Povolit otvorenie kod v okne"
273
+
274
+ # @ crayon-syntax-highlighter
275
+ #: crayon_settings_wp.class.php:733
276
+ msgid "Tab size in spaces"
277
+ msgstr "Kartu velkost v priestoroch"
278
+
279
+ # @ crayon-syntax-highlighter
280
+ #: crayon_settings_wp.class.php:727
281
+ msgid "Remove whitespace surrounding the shortcode content"
282
+ msgstr "Odstrante medzery okolo kratky obsah"
283
+
284
+ # @ crayon-syntax-highlighter
285
+ #: crayon_settings_wp.class.php:752
286
+ msgid ""
287
+ "When loading local files and a relative path is given for the URL, use the "
288
+ "absolute path"
289
+ msgstr ""
290
+ "Pri nacitani lokalnych suborov a relativnu cestu je dana pre URL, zadajte "
291
+ "absolutnu cestu"
292
+
293
+ # @ crayon-syntax-highlighter
294
+ #: crayon_settings_wp.class.php:778
295
+ msgid "Clear the cache used to store remote code requests"
296
+ msgstr "Vymazte vyrovnavaciu pamat pouziva na ulozenie kodu na dialku ziadosti"
297
+
298
+ # @ crayon-syntax-highlighter
299
+ #: crayon_settings_wp.class.php:780
300
+ msgid "Clear Now"
301
+ msgstr "Teraz vymazat"
302
+
303
+ # @ crayon-syntax-highlighter
304
+ #: crayon_settings_wp.class.php:786
305
+ msgid "Disable mouse gestures for touchscreen devices (eg. MouseOver)"
306
+ msgstr ""
307
+ "Zakazat gesta mysou pre zariadenia s dotykovou obrazovkou (napr. MouseOver)"
308
+
309
+ # @ crayon-syntax-highlighter
310
+ #: crayon_settings_wp.class.php:787
311
+ msgid "Disable animations"
312
+ msgstr "Vypnut animacie"
313
+
314
+ # @ crayon-syntax-highlighter
315
+ #: crayon_settings_wp.class.php:788
316
+ msgid "Disable runtime stats"
317
+ msgstr "Zakazat runtime statistiky"
318
+
319
+ # @ crayon-syntax-highlighter
320
+ #: crayon_settings_wp.class.php:794
321
+ msgid "Log errors for individual Crayons"
322
+ msgstr "Zaznamenat chyby pre individualne pastelky"
323
+
324
+ # @ crayon-syntax-highlighter
325
+ #: crayon_settings_wp.class.php:795
326
+ msgid "Log system-wide errors"
327
+ msgstr "Dennik systemovych chyb"
328
+
329
+ # @ crayon-syntax-highlighter
330
+ #: crayon_settings_wp.class.php:796
331
+ msgid "Display custom message for errors"
332
+ msgstr "Vlastna sprava zobrazenie chyb"
333
+
334
+ # @ crayon-syntax-highlighter
335
+ #: crayon_settings_wp.class.php:808
336
+ msgid "Show Log"
337
+ msgstr "Zobrazit dennik"
338
+
339
+ # @ crayon-syntax-highlighter
340
+ #: crayon_settings_wp.class.php:810
341
+ msgid "Clear Log"
342
+ msgstr "Vymazat dennik"
343
+
344
+ # @ crayon-syntax-highlighter
345
+ #: crayon_settings_wp.class.php:811
346
+ msgid "Email Admin"
347
+ msgstr "E-mail Admin"
348
+
349
+ # @ crayon-syntax-highlighter
350
+ #: crayon_settings_wp.class.php:813
351
+ msgid "Email Developer"
352
+ msgstr "Email Developer"
353
+
354
+ # @ crayon-syntax-highlighter
355
+ #: crayon_settings_wp.class.php:829
356
+ msgid "Version"
357
+ msgstr "Verzia"
358
+
359
+ # @ crayon-syntax-highlighter
360
+ #: crayon_settings_wp.class.php:831
361
+ msgid "Developer"
362
+ msgstr "Developer"
363
+
364
+ # @ crayon-syntax-highlighter
365
+ #: crayon_settings_wp.class.php:858
366
+ msgid ""
367
+ "The result of innumerable hours of hard work over many months. It's an "
368
+ "ongoing project, keep me motivated!"
369
+ msgstr ""
370
+ "Vysledkom nespocetnych hodinach tvrdej prace za mnoho mesiacov. To je "
371
+ "prebiehajuci projekt, aby ma motivovane!"
372
+
373
+ # @ crayon-syntax-highlighter
374
+ #: crayon_settings_wp.class.php:675
375
+ #, php-format
376
+ msgid ""
377
+ "Change the %1$sfallback language%2$s to change the sample code. Lines 5-7 "
378
+ "are marked."
379
+ msgstr ""
380
+ "Zmenit %1$sfallback jazyk %2$ s zmenit kod vzorky. Riadky 5-7 su oznacene."
381
+
382
+ # @ crayon-syntax-highlighter
383
+ #: crayon_settings.class.php:143
384
+ msgid "Hourly"
385
+ msgstr "Hodinove"
386
+
387
+ # @ crayon-syntax-highlighter
388
+ #: crayon_settings.class.php:143
389
+ msgid "Daily"
390
+ msgstr "Denne"
391
+
392
+ # @ crayon-syntax-highlighter
393
+ #: crayon_settings.class.php:144
394
+ msgid "Weekly"
395
+ msgstr "Tyzdenny"
396
+
397
+ # @ crayon-syntax-highlighter
398
+ #: crayon_settings.class.php:144
399
+ msgid "Monthly"
400
+ msgstr "Mesacne"
401
+
402
+ # @ crayon-syntax-highlighter
403
+ #: crayon_settings.class.php:145
404
+ msgid "Immediately"
405
+ msgstr "Okamzite"
406
+
407
+ # @ crayon-syntax-highlighter
408
+ #: crayon_settings_wp.class.php:542
409
+ msgid "Crayon Help"
410
+ msgstr "Pastelka pomoc"
411
+
412
+ # @ crayon-syntax-highlighter
413
+ #: crayon_settings_wp.class.php:781
414
+ msgid "Attempt to load Crayon's CSS and JavaScript only when needed"
415
+ msgstr "Pokus o nacitanie pastelka je CSS a JavaScript len v pripade potreby"
416
+
417
+ # @ crayon-syntax-highlighter
418
+ #: crayon_settings_wp.class.php:755
419
+ msgid "Followed by your relative URL."
420
+ msgstr "Nasleduje relativne URL."
421
+
422
+ # @ crayon-syntax-highlighter
423
+ #: crayon_settings_wp.class.php:815
424
+ msgid "The log is currently empty."
425
+ msgstr "Log je prazdny."
426
+
427
+ # @ crayon-syntax-highlighter
428
+ #: crayon_settings_wp.class.php:817
429
+ msgid "The log file exists and is writable."
430
+ msgstr "Subor dennika existuje a zapisovat."
431
+
432
+ # @ crayon-syntax-highlighter
433
+ #: crayon_settings_wp.class.php:817
434
+ msgid "The log file exists and is not writable."
435
+ msgstr "Subor dennika existuje a nie je zapisovatelna."
436
+
437
+ # @ crayon-syntax-highlighter
438
+ #: crayon_settings_wp.class.php:819
439
+ msgid "The log file does not exist and is not writable."
440
+ msgstr "Subor dennika existuje a nie je zapisovatelna."
441
+
442
+ # @ crayon-syntax-highlighter
443
+ #: crayon_settings_wp.class.php:633
444
+ #, php-format
445
+ msgid "%d language has been detected."
446
+ msgstr "%d languages have been detected."
447
+
448
+ # @ crayon-syntax-highlighter
449
+ #: crayon_settings_wp.class.php:746
450
+ msgid "Capture &lt;pre&gt; tags as Crayons"
451
+ msgstr "Zachytit &amp;lt;pre&amp;gt; Tagy ako pastelky"
452
+
453
+ # @ crayon-syntax-highlighter
454
+ #: crayon_settings_wp.class.php:731
455
+ msgid "Show Mixed Language Icon (+)"
456
+ msgstr "Zobrazit zmiesany jazyk ikonu (+)"
457
+
458
+ # @ crayon-syntax-highlighter
459
+ #: crayon_settings_wp.class.php:729
460
+ msgid "Allow Mixed Language Highlighting with delimiters and tags."
461
+ msgstr "Umoznoval zmiesany jazyk zvyraznenie oddelovace a Tagy."
462
+
463
+ # @ crayon-syntax-highlighter
464
+ #: crayon_settings_wp.class.php:742
465
+ msgid "Capture Mini Tags like [php][/php] as Crayons."
466
+ msgstr "Zachytit Mini Tagy ako [php] [/ php] ako pastelky."
467
+
468
+ # @ crayon-syntax-highlighter
469
+ #: crayon_settings_wp.class.php:747
470
+ msgid "Enable [plain][/plain] tag."
471
+ msgstr "Povolit [obycajneho] [/plain] tag."
472
+
473
+ # @ crayon-syntax-highlighter
474
+ #: crayon_settings.class.php:196
475
+ msgid "Disable Mouse Events"
476
+ msgstr "Vypnut mys udalostiach"
477
+
478
+ # @ crayon-syntax-highlighter
479
+ #: crayon_settings_wp.class.php:715
480
+ msgid "Enable plain code toggling"
481
+ msgstr "Povolit prepinanie holy kod"
482
+
483
+ # @ crayon-syntax-highlighter
484
+ #: crayon_settings_wp.class.php:716
485
+ msgid "Show the plain code by default"
486
+ msgstr "Predvolene Zobrazit kod holy"
487
+
488
+ # @ crayon-syntax-highlighter
489
+ #. translators: plugin header field 'Name'
490
+ #: crayon_wp.class.php:0
491
+ msgid "Crayon Syntax Highlighter"
492
+ msgstr "Pastelka Syntax Highlighter"
493
+
494
+ # @ crayon-syntax-highlighter
495
+ #. translators: plugin header field 'AuthorURI'
496
+ #: crayon_wp.class.php:0
497
+ msgid "http://aramk.com/"
498
+ msgstr "http://aramk.com/"
499
+
500
+ # @ crayon-syntax-highlighter
501
+ #. translators: plugin header field 'Author'
502
+ #: crayon_wp.class.php:0
503
+ msgid "Aram Kocharyan"
504
+ msgstr "Aram Kocharyan"
505
+
506
+ # @ crayon-syntax-highlighter
507
+ #. translators: plugin header field 'PluginURI'
508
+ #: crayon_wp.class.php:0
509
+ msgid "http://aramk.com/projects/crayon-syntax-highlighter"
510
+ msgstr "http://aramk.com/projects/Crayon-syntax-Highlighter"
511
+
512
+ # @ crayon-syntax-highlighter
513
+ #. translators: plugin header field 'Description'
514
+ #: crayon_wp.class.php:0
515
+ msgid ""
516
+ "Supports multiple languages, themes, highlighting from a URL, local file or "
517
+ "post text."
518
+ msgstr ""
519
+ "Podporuje viacero jazykov, temy, zvyraznenie z URL, lokalny subor alebo post "
520
+ "text."
521
+
522
+ # @ crayon-syntax-highlighter
523
+ #: crayon_settings_wp.class.php:874
524
+ msgid "Donate"
525
+ msgstr "Darovat"
526
+
527
+ # @ crayon-syntax-highlighter
528
+ #: crayon_settings_wp.class.php:326
529
+ msgid "General"
530
+ msgstr "Vseobecne"
531
+
532
+ # @ crayon-syntax-highlighter
533
+ #: crayon_settings_wp.class.php:327
534
+ msgid "Theme"
535
+ msgstr "Tema"
536
+
537
+ # @ crayon-syntax-highlighter
538
+ #: crayon_settings_wp.class.php:328
539
+ msgid "Font"
540
+ msgstr "Pismo"
541
+
542
+ # @ crayon-syntax-highlighter
543
+ #: crayon_settings_wp.class.php:329
544
+ msgid "Metrics"
545
+ msgstr "Metriky"
546
+
547
+ # @ crayon-syntax-highlighter
548
+ #: crayon_settings_wp.class.php:330
549
+ msgid "Toolbar"
550
+ msgstr "Panel s nastrojmi"
551
+
552
+ # @ crayon-syntax-highlighter
553
+ #: crayon_settings_wp.class.php:331
554
+ msgid "Lines"
555
+ msgstr "Riadky"
556
+
557
+ # @ crayon-syntax-highlighter
558
+ #: crayon_settings_wp.class.php:332 util/tag-editor/crayon_te_content.php:100
559
+ msgid "Code"
560
+ msgstr "Kod"
561
+
562
+ # @ crayon-syntax-highlighter
563
+ #: crayon_settings_wp.class.php:334
564
+ msgid "Languages"
565
+ msgstr "Jazyky"
566
+
567
+ # @ crayon-syntax-highlighter
568
+ #: crayon_settings_wp.class.php:335
569
+ msgid "Files"
570
+ msgstr "Subory"
571
+
572
+ # @ crayon-syntax-highlighter
573
+ #: crayon_settings_wp.class.php:338
574
+ msgid "Misc"
575
+ msgstr "Misc"
576
+
577
+ # @ crayon-syntax-highlighter
578
+ #: crayon_settings_wp.class.php:341
579
+ msgid "Debug"
580
+ msgstr "Debug"
581
+
582
+ # @ crayon-syntax-highlighter
583
+ #: crayon_settings_wp.class.php:342
584
+ msgid "Errors"
585
+ msgstr "Chyby"
586
+
587
+ # @ crayon-syntax-highlighter
588
+ #: crayon_settings_wp.class.php:343
589
+ msgid "Log"
590
+ msgstr "Dennik"
591
+
592
+ # @ crayon-syntax-highlighter
593
+ #: crayon_settings_wp.class.php:346
594
+ msgid "About"
595
+ msgstr "O"
596
+
597
+ # @ crayon-syntax-highlighter
598
+ #: crayon_settings_wp.class.php:681
599
+ msgid "Enqueue themes in the header (more efficient)."
600
+ msgstr "Enqueue temy v hlavicke (efektivnejsie)."
601
+
602
+ # @ crayon-syntax-highlighter
603
+ #: crayon_settings_wp.class.php:707
604
+ msgid "Enqueue fonts in the header (more efficient)."
605
+ msgstr "Enqueue pisma v hlavicke (efektivnejsie)."
606
+
607
+ # @ crayon-syntax-highlighter
608
+ #: crayon_settings_wp.class.php:669 crayon_settings_wp.class.php:670
609
+ msgid "Loading..."
610
+ msgstr "Nacitava sa..."
611
+
612
+ # @ crayon-syntax-highlighter
613
+ #: crayon_settings_wp.class.php:872
614
+ #: util/theme-editor/theme_editor_content.php:27
615
+ msgid "Theme Editor"
616
+ msgstr "Tema Editor"
617
+
618
+ # @ crayon-syntax-highlighter
619
+ #: crayon_settings_wp.class.php:720
620
+ msgid "Always display scrollbars"
621
+ msgstr "Vzdy Zobrazit posuvace"
622
+
623
+ # @ crayon-syntax-highlighter
624
+ #: crayon_settings_wp.class.php:782
625
+ msgid "Disable enqueuing for page templates that may contain The Loop."
626
+ msgstr "Zakazat enqueuing pre stranky sablony, ktore mozu obsahovat slucky."
627
+
628
+ # @ crayon-syntax-highlighter
629
+ #: crayon_settings_wp.class.php:785
630
+ msgid "Load Crayons only from the main Wordpress query"
631
+ msgstr "Nacitat pastelky len z hlavneho dotazu Wordpress"
632
+
633
+ # @ crayon-syntax-highlighter
634
+ #: util/theme-editor/theme_editor_content.php:39
635
+ msgid "Back To Settings"
636
+ msgstr "Spat na nastavenia"
637
+
638
+ # @ crayon-syntax-highlighter
639
+ #: crayon_settings_wp.class.php:832
640
+ msgid "Translators"
641
+ msgstr "Prekladatelia"
642
+
643
+ # @ crayon-syntax-highlighter
644
+ #: crayon_formatter.class.php:275
645
+ msgid "Toggle Plain Code"
646
+ msgstr "Obycajny Prepnut kod"
647
+
648
+ # @ crayon-syntax-highlighter
649
+ #: crayon_formatter.class.php:278
650
+ msgid "Copy Plain Code"
651
+ msgstr "Kod kopie obycajny"
652
+
653
+ # @ crayon-syntax-highlighter
654
+ #: crayon_formatter.class.php:280
655
+ msgid "Open Code In New Window"
656
+ msgstr "Otvorene kod v novom okne"
657
+
658
+ # @ crayon-syntax-highlighter
659
+ #: crayon_formatter.class.php:282
660
+ msgid "Toggle Line Numbers"
661
+ msgstr "Prepnut cisla riadkov"
662
+
663
+ # @ crayon-syntax-highlighter
664
+ #: crayon_formatter.class.php:285
665
+ msgid "Contains Mixed Languages"
666
+ msgstr "Obsahuje zmiesanym jazykmi"
667
+
668
+ # @ crayon-syntax-highlighter
669
+ #: crayon_settings_wp.class.php:808
670
+ msgid "Hide Log"
671
+ msgstr "Skryt Log"
672
+
673
+ # @ crayon-syntax-highlighter
674
+ #: crayon_formatter.class.php:278
675
+ #, php-format
676
+ msgid "Press %s to Copy, %s to Paste"
677
+ msgstr "Stlacte %s kopii, %s na pasty"
678
+
679
+ # @ crayon-syntax-highlighter
680
+ #: crayon_settings_wp.class.php:333
681
+ msgid "Tags"
682
+ msgstr "Tagy"
683
+
684
+ # @ crayon-syntax-highlighter
685
+ #: crayon_settings_wp.class.php:587
686
+ msgid "Inline Margin"
687
+ msgstr "Riadkove rozpatie"
688
+
689
+ # @ crayon-syntax-highlighter
690
+ #: crayon_settings_wp.class.php:743
691
+ msgid "Capture Inline Tags like {php}{/php} inside sentences."
692
+ msgstr "Zachytit Inline Tagy ako {php} {/ php} vnutri vety."
693
+
694
+ # @ crayon-syntax-highlighter
695
+ #: crayon_settings_wp.class.php:745
696
+ msgid "Capture `backquotes` as &lt;code&gt;"
697
+ msgstr "Zachytit &quot;backquotes&quot; ako &amp;lt;code&amp;gt;"
698
+
699
+ # @ crayon-syntax-highlighter
700
+ #: crayon_settings_wp.class.php:783
701
+ msgid "Allow Crayons inside comments"
702
+ msgstr "Povolit pastelky vnutri komentare"
703
+
704
+ # @ crayon-syntax-highlighter
705
+ #: crayon_settings_wp.class.php:744
706
+ msgid "Wrap Inline Tags"
707
+ msgstr "Zabal Inline Tagy"
708
+
709
+ # @ crayon-syntax-highlighter
710
+ #: crayon_settings_wp.class.php:337
711
+ msgid "Tag Editor"
712
+ msgstr "Tag Editor"
713
+
714
+ # @ crayon-syntax-highlighter
715
+ #: crayon_settings_wp.class.php:652 crayon_settings_wp.class.php:681
716
+ #: crayon_settings_wp.class.php:707 crayon_settings_wp.class.php:729
717
+ #: crayon_settings_wp.class.php:742 crayon_settings_wp.class.php:743
718
+ #: crayon_settings_wp.class.php:744 crayon_settings_wp.class.php:745
719
+ #: crayon_settings_wp.class.php:746 crayon_settings_wp.class.php:747
720
+ #: crayon_settings_wp.class.php:769 crayon_settings_wp.class.php:772
721
+ #: crayon_settings_wp.class.php:781 crayon_settings_wp.class.php:782
722
+ msgid "?"
723
+ msgstr "?"
724
+
725
+ # @ crayon-syntax-highlighter
726
+ #: crayon_settings_wp.class.php:723
727
+ msgid "Decode HTML entities in code"
728
+ msgstr "Dekodovat HTML entity v kode"
729
+
730
+ # @ crayon-syntax-highlighter
731
+ #: crayon_settings_wp.class.php:725
732
+ msgid "Decode HTML entities in attributes"
733
+ msgstr "Dekodovat HTML entity v atributy"
734
+
735
+ # @ crayon-syntax-highlighter
736
+ #: crayon_settings_wp.class.php:770
737
+ #, php-format
738
+ msgid ""
739
+ "Use %s to separate setting names from values in the &lt;pre&gt; class "
740
+ "attribute"
741
+ msgstr ""
742
+ "Pomocou %s samostatne nastavenie nazvy z hodnot v atribute triedy &amp;lt;"
743
+ "pre&amp;gt;"
744
+
745
+ # @ crayon-syntax-highlighter
746
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:67
747
+ msgid "Add Crayon Code"
748
+ msgstr "Pridat kod pastelka"
749
+
750
+ # @ crayon-syntax-highlighter
751
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:68
752
+ msgid "Edit Crayon Code"
753
+ msgstr "Upravit kod pastelka"
754
+
755
+ # @ crayon-syntax-highlighter
756
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:69
757
+ msgid "Add"
758
+ msgstr "Pridat"
759
+
760
+ # @ crayon-syntax-highlighter
761
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:70
762
+ msgid "Save"
763
+ msgstr "Ulozit"
764
+
765
+ # @ crayon-syntax-highlighter
766
+ #: util/tag-editor/crayon_te_content.php:76
767
+ msgid "Title"
768
+ msgstr "Nazov"
769
+
770
+ # @ crayon-syntax-highlighter
771
+ #: util/tag-editor/crayon_te_content.php:78
772
+ msgid "A short description"
773
+ msgstr "Kratky popis"
774
+
775
+ # @ crayon-syntax-highlighter
776
+ #: util/tag-editor/crayon_te_content.php:81
777
+ msgid "Inline"
778
+ msgstr "Inline"
779
+
780
+ # @ crayon-syntax-highlighter
781
+ #: util/tag-editor/crayon_te_content.php:90
782
+ msgid "Language"
783
+ msgstr "Jazyk"
784
+
785
+ # @ crayon-syntax-highlighter
786
+ #: util/tag-editor/crayon_te_content.php:95
787
+ msgid "Marked Lines"
788
+ msgstr "Oznacene riadky"
789
+
790
+ # @ crayon-syntax-highlighter
791
+ #: util/tag-editor/crayon_te_content.php:96
792
+ msgid "(e.g. 1,2,3-5)"
793
+ msgstr "(napr. 1,2,3-5)"
794
+
795
+ # @ crayon-syntax-highlighter
796
+ #: util/tag-editor/crayon_te_content.php:100
797
+ msgid "Clear"
798
+ msgstr "Jasne"
799
+
800
+ # @ crayon-syntax-highlighter
801
+ #: util/tag-editor/crayon_te_content.php:101
802
+ msgid "Paste your code here, or type it in manually."
803
+ msgstr "Vlozte vas kod tu, alebo vpiste ho manualne."
804
+
805
+ # @ crayon-syntax-highlighter
806
+ #: util/tag-editor/crayon_te_content.php:104
807
+ msgid "URL"
808
+ msgstr "URL"
809
+
810
+ # @ crayon-syntax-highlighter
811
+ #: util/tag-editor/crayon_te_content.php:106
812
+ msgid "Relative local path or absolute URL"
813
+ msgstr "Relativna lokalna cesta alebo absolutna adresa URL"
814
+
815
+ # @ crayon-syntax-highlighter
816
+ #: util/tag-editor/crayon_te_content.php:109
817
+ msgid ""
818
+ "If the URL fails to load, the code above will be shown instead. If no code "
819
+ "exists, an error is shown."
820
+ msgstr ""
821
+ "Ak adresa URL nie je schopny nacitat, vyssie uvedeny kod sa zobrazi miesto. "
822
+ "Ak neexistuje ziadny kod, zobrazi sa chyba."
823
+
824
+ # @ crayon-syntax-highlighter
825
+ #: util/tag-editor/crayon_te_content.php:111
826
+ #, php-format
827
+ msgid ""
828
+ "If a relative local path is given it will be appended to %s - which is "
829
+ "defined in %sCrayon &gt; Settings &gt; Files%s."
830
+ msgstr ""
831
+ "Ak je dany lokalna relativna cesta sa pridaju k %s - ktora je definovana v "
832
+ "% sCrayon &amp;gt; Nastavenia &amp;gt; subory % s."
833
+
834
+ # @ crayon-syntax-highlighter
835
+ #: util/tag-editor/crayon_te_content.php:135
836
+ msgid "Change the following settings to override their global values."
837
+ msgstr "Zmenit tieto nastavenia prepisat ich globalnej hodnoty."
838
+
839
+ # @ crayon-syntax-highlighter
840
+ #: util/tag-editor/crayon_te_content.php:137
841
+ msgid "Only changes (shown yellow) are applied."
842
+ msgstr "Su pouzite iba zmeny (zobrazeny zlty)."
843
+
844
+ # @ crayon-syntax-highlighter
845
+ #: util/tag-editor/crayon_te_content.php:139
846
+ #, php-format
847
+ msgid ""
848
+ "Future changes to the global settings under %sCrayon &gt; Settings%s won't "
849
+ "affect overridden settings."
850
+ msgstr ""
851
+ "Buducnosti zmeni na globalne nastavenia podla % sCrayon &amp;gt; Nastavenie "
852
+ "% s neovplyvni prepisana nastavenia."
853
+
854
+ # @ crayon-syntax-highlighter
855
+ #: crayon_settings_wp.class.php:784
856
+ msgid "Remove Crayons from excerpts"
857
+ msgstr "Odstranit pastelky z uryvky"
858
+
859
+ # @ crayon-syntax-highlighter
860
+ #: crayon_formatter.class.php:276
861
+ msgid "Toggle Line Wrap"
862
+ msgstr "Prepnut zalomenie riadka"
863
+
864
+ # @ crayon-syntax-highlighter
865
+ #: crayon_settings_wp.class.php:336
866
+ msgid "Posts"
867
+ msgstr "Prispevky"
868
+
869
+ # @ crayon-syntax-highlighter
870
+ #: crayon_settings_wp.class.php:612
871
+ msgid "Enable line ranges for showing only parts of code"
872
+ msgstr "Povolit rozsahy riadok zobrazujuci iba casti kodu"
873
+
874
+ # @ crayon-syntax-highlighter
875
+ #: crayon_settings_wp.class.php:615
876
+ msgid "Wrap lines by default"
877
+ msgstr "Lamat riadky v predvolenom nastaveni"
878
+
879
+ # @ crayon-syntax-highlighter
880
+ #: crayon_settings_wp.class.php:616
881
+ msgid "Enable line wrap toggling"
882
+ msgstr "Povolit line zabal prepinanie"
883
+
884
+ # @ crayon-syntax-highlighter
885
+ #: crayon_settings_wp.class.php:652
886
+ msgid "Show Crayon Posts"
887
+ msgstr "Zobrazit prispevky pastelka"
888
+
889
+ # @ crayon-syntax-highlighter
890
+ #: crayon_settings_wp.class.php:669
891
+ msgid "Edit"
892
+ msgstr "Upravit"
893
+
894
+ # @ crayon-syntax-highlighter
895
+ #: crayon_settings_wp.class.php:670
896
+ msgid "Create"
897
+ msgstr "Vytvorit"
898
+
899
+ # @ crayon-syntax-highlighter
900
+ #: crayon_settings_wp.class.php:735
901
+ msgid "Blank lines before code:"
902
+ msgstr "Prazdne riadky pred kod:"
903
+
904
+ # @ crayon-syntax-highlighter
905
+ #: crayon_settings_wp.class.php:737
906
+ msgid "Blank lines after code:"
907
+ msgstr "Prazdne riadky po kod:"
908
+
909
+ # @ crayon-syntax-highlighter
910
+ #: crayon_settings_wp.class.php:762
911
+ msgid "Convert Legacy Tags"
912
+ msgstr "Previest Legacy Tagy"
913
+
914
+ # @ crayon-syntax-highlighter
915
+ #: crayon_settings_wp.class.php:765
916
+ msgid "No Legacy Tags Found"
917
+ msgstr "Nenasli sa ziadne znacky Legacy"
918
+
919
+ # @ crayon-syntax-highlighter
920
+ #: crayon_settings_wp.class.php:769
921
+ msgid "Convert existing Crayon tags to Tag Editor format (&lt;pre&gt;)"
922
+ msgstr ""
923
+ "Konvertovat existujuceho pastelka znacky Tag Editor formatu (&amp;lt;pre&amp;"
924
+ "gt;)"
925
+
926
+ # @ crayon-syntax-highlighter
927
+ #: crayon_settings_wp.class.php:773
928
+ msgid "Display the Tag Editor in any TinyMCE instances on the frontend"
929
+ msgstr "Zobrazenie Tag Editor v pripadnej TinyMCE rozhranie"
930
+
931
+ # @ crayon-syntax-highlighter
932
+ #: crayon_settings_wp.class.php:774
933
+ msgid "Display Tag Editor settings on the frontend"
934
+ msgstr "Tag Editor nastavenia displeja, rozhranie"
935
+
936
+ # @ crayon-syntax-highlighter
937
+ #. translators: plugin header field 'Version'
938
+ #: crayon_wp.class.php:0
939
+ msgid "1.13.1"
940
+ msgstr "1.13.1"
941
+
942
+ # @ crayon-syntax-highlighter
943
+ #: util/tag-editor/crayon_te_content.php:85
944
+ msgid "Don't Highlight"
945
+ msgstr "Nechcem vyzdvihnut"
946
+
947
+ # @ crayon-syntax-highlighter
948
+ #: util/tag-editor/crayon_te_content.php:93
949
+ msgid "Line Range"
950
+ msgstr "Riadok rozsahu"
951
+
952
+ # @ crayon-syntax-highlighter
953
+ #: util/tag-editor/crayon_te_content.php:94
954
+ msgid "(e.g. 3-5 or 3)"
955
+ msgstr "(napr. 3-5 alebo 3)"
956
+
957
+ # @ crayon-syntax-highlighter
958
+ #: util/theme-editor/theme_editor_content.php:32
959
+ #, php-format
960
+ msgid "Editing \"%s\" Theme"
961
+ msgstr "Upravu \"%s\" temu"
962
+
963
+ # @ crayon-syntax-highlighter
964
+ #: util/theme-editor/theme_editor_content.php:34
965
+ #, php-format
966
+ msgid "Creating Theme From \"%s\""
967
+ msgstr "Vytvorenie temu z \"%s\""
trans/crayon-syntax-highlighter-tr_TR.mo CHANGED
Binary file
trans/crayon-syntax-highlighter-tr_TR.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-12-10 08:40+0200\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: HakanEr <hakanerwptr@gmail.com>\n"
8
  "Language-Team: hakaner <hakanerwptr@gmail.com>\n"
@@ -22,43 +22,43 @@ msgstr ""
22
  "X-Poedit-SearchPath-1: ..\n"
23
 
24
  # @ crayon-syntax-highlighter
25
- #: ../crayon_formatter.class.php:269
26
  msgid "Toggle Plain Code"
27
  msgstr "Düz Koda Geç"
28
 
29
  # @ crayon-syntax-highlighter
30
- #: ../crayon_formatter.class.php:270
31
  msgid "Toggle Line Wrap"
32
  msgstr "Satır Sarımına Geç"
33
 
34
  # @ crayon-syntax-highlighter
35
- #: ../crayon_formatter.class.php:271
36
  msgid "Expand Code"
37
  msgstr "Kodu Genişlet"
38
 
39
  # @ crayon-syntax-highlighter
40
- #: ../crayon_formatter.class.php:273
41
  #, php-format
42
  msgid "Press %s to Copy, %s to Paste"
43
  msgstr "%s ile Kopyala, %s ile Yapıştır"
44
 
45
  # @ crayon-syntax-highlighter
46
- #: ../crayon_formatter.class.php:273
47
  msgid "Copy Plain Code"
48
  msgstr "Düz Kodu Kopyala"
49
 
50
  # @ crayon-syntax-highlighter
51
- #: ../crayon_formatter.class.php:275
52
  msgid "Open Code In New Window"
53
  msgstr "Kodu Yeni Pencerede Aç"
54
 
55
  # @ crayon-syntax-highlighter
56
- #: ../crayon_formatter.class.php:277
57
  msgid "Toggle Line Numbers"
58
  msgstr "Satır Numaralarına Geç"
59
 
60
  # @ crayon-syntax-highlighter
61
- #: ../crayon_formatter.class.php:280
62
  msgid "Contains Mixed Languages"
63
  msgstr "Karışık Diller içerir"
64
 
@@ -104,8 +104,8 @@ msgstr "Sabit"
104
 
105
  # @ crayon-syntax-highlighter
106
  #: ../crayon_settings.class.php:159 ../crayon_settings.class.php:163
107
- #: ../crayon_settings_wp.class.php:676 ../crayon_settings_wp.class.php:685
108
- #: ../crayon_settings_wp.class.php:947
109
  msgid "Pixels"
110
  msgstr "Piksel"
111
 
@@ -175,473 +175,509 @@ msgid "An error has occurred. Please try again later."
175
  msgstr "Bir hata meydana geldi. Daha sonra tekrar deneyin."
176
 
177
  # @ crayon-syntax-highlighter
178
- #: ../crayon_settings_wp.class.php:49 ../crayon_settings_wp.class.php:151
179
- #: ../crayon_settings_wp.class.php:1127
180
- #: ../util/tag-editor/crayon_tag_editor_wp.class.php:241
181
  msgid "Settings"
182
  msgstr "Ayarlar"
183
 
 
 
 
 
 
 
 
 
 
 
 
 
184
  # @ crayon-syntax-highlighter
185
- #: ../crayon_settings_wp.class.php:130
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
186
  msgid "You do not have sufficient permissions to access this page."
187
  msgstr "Bu sayfaya erişmek için yeterli izinlere sahip değilsiniz."
188
 
189
  # @ crayon-syntax-highlighter
190
- #: ../crayon_settings_wp.class.php:166
191
  msgid "Save Changes"
192
  msgstr "Kaydet"
193
 
194
  # @ crayon-syntax-highlighter
195
- #: ../crayon_settings_wp.class.php:173
196
  msgid "Reset Settings"
197
  msgstr "Ayarları Sıfırla"
198
 
199
  # @ crayon-syntax-highlighter
200
- #: ../crayon_settings_wp.class.php:418
201
  msgid "General"
202
  msgstr "Genel"
203
 
204
  # @ crayon-syntax-highlighter
205
- #: ../crayon_settings_wp.class.php:419
206
  msgid "Theme"
207
  msgstr "Tema"
208
 
209
  # @ crayon-syntax-highlighter
210
- #: ../crayon_settings_wp.class.php:420
211
  msgid "Font"
212
  msgstr "Font"
213
 
214
  # @ crayon-syntax-highlighter
215
- #: ../crayon_settings_wp.class.php:421
216
  msgid "Metrics"
217
  msgstr "Ölçüler"
218
 
219
  # @ crayon-syntax-highlighter
220
- #: ../crayon_settings_wp.class.php:422
 
221
  msgid "Toolbar"
222
  msgstr "Araç Çubuğu"
223
 
224
  # @ crayon-syntax-highlighter
225
- #: ../crayon_settings_wp.class.php:423
 
226
  msgid "Lines"
227
  msgstr "Satırlar"
228
 
229
  # @ crayon-syntax-highlighter
230
- #: ../crayon_settings_wp.class.php:424
231
- #: ../util/tag-editor/crayon_tag_editor_wp.class.php:204
232
  msgid "Code"
233
  msgstr "Kod"
234
 
235
  # @ crayon-syntax-highlighter
236
- #: ../crayon_settings_wp.class.php:425
237
  msgid "Tags"
238
  msgstr "Etiketler"
239
 
240
  # @ crayon-syntax-highlighter
241
- #: ../crayon_settings_wp.class.php:426
242
  msgid "Languages"
243
  msgstr "Diller"
244
 
245
  # @ crayon-syntax-highlighter
246
- #: ../crayon_settings_wp.class.php:427
247
  msgid "Files"
248
  msgstr "Dosyalar"
249
 
250
- #: ../crayon_settings_wp.class.php:428
251
  msgid "Posts"
252
  msgstr "Yazılar"
253
 
254
  # @ crayon-syntax-highlighter
255
- #: ../crayon_settings_wp.class.php:429
256
  msgid "Tag Editor"
257
  msgstr "Etiket Düzenleyici"
258
 
259
  # @ crayon-syntax-highlighter
260
- #: ../crayon_settings_wp.class.php:430
261
  msgid "Misc"
262
  msgstr "Çeşitli"
263
 
264
  # @ crayon-syntax-highlighter
265
- #: ../crayon_settings_wp.class.php:433
266
  msgid "Debug"
267
  msgstr "Hata Ayıklama"
268
 
269
  # @ crayon-syntax-highlighter
270
- #: ../crayon_settings_wp.class.php:434
271
  msgid "Errors"
272
  msgstr "Hatalar"
273
 
274
  # @ crayon-syntax-highlighter
275
- #: ../crayon_settings_wp.class.php:435
276
  msgid "Log"
277
  msgstr "Günlük"
278
 
279
  # @ crayon-syntax-highlighter
280
- #: ../crayon_settings_wp.class.php:438
281
  msgid "About"
282
  msgstr "Hakkında"
283
 
284
  # @ crayon-syntax-highlighter
285
- #: ../crayon_settings_wp.class.php:638
286
- msgid "Crayon Help"
287
- msgstr "Crayon Yardım"
288
-
289
- # @ crayon-syntax-highlighter
290
- #: ../crayon_settings_wp.class.php:653
291
  msgid "Height"
292
  msgstr "Yükseklik"
293
 
294
  # @ crayon-syntax-highlighter
295
- #: ../crayon_settings_wp.class.php:659
296
  msgid "Width"
297
  msgstr "Genişlik"
298
 
299
  # @ crayon-syntax-highlighter
300
- #: ../crayon_settings_wp.class.php:665
301
  msgid "Top Margin"
302
  msgstr "Üst Boşluk"
303
 
304
  # @ crayon-syntax-highlighter
305
- #: ../crayon_settings_wp.class.php:666
306
  msgid "Bottom Margin"
307
  msgstr "Alt Boşluk"
308
 
309
  # @ crayon-syntax-highlighter
310
- #: ../crayon_settings_wp.class.php:667 ../crayon_settings_wp.class.php:672
311
  msgid "Left Margin"
312
  msgstr "Sol Boşluk"
313
 
314
  # @ crayon-syntax-highlighter
315
- #: ../crayon_settings_wp.class.php:668 ../crayon_settings_wp.class.php:672
316
  msgid "Right Margin"
317
  msgstr "Sağ Boşluk"
318
 
319
  # @ crayon-syntax-highlighter
320
- #: ../crayon_settings_wp.class.php:678
321
  msgid "Horizontal Alignment"
322
  msgstr "Yatay Hizalama"
323
 
324
  # @ crayon-syntax-highlighter
325
- #: ../crayon_settings_wp.class.php:681
326
  msgid "Allow floating elements to surround Crayon"
327
  msgstr "Geçişli elementleri Crayon çevrelemeye izin ver"
328
 
329
  # @ crayon-syntax-highlighter
330
- #: ../crayon_settings_wp.class.php:683
331
  msgid "Inline Margin"
332
  msgstr "Satıriçi Boşluk"
333
 
334
  # @ crayon-syntax-highlighter
335
- #: ../crayon_settings_wp.class.php:691
336
  msgid "Display the Toolbar"
337
  msgstr "Araç çubuğunu göster"
338
 
339
  # @ crayon-syntax-highlighter
340
- #: ../crayon_settings_wp.class.php:694
341
  msgid "Overlay the toolbar on code rather than push it down when possible"
342
  msgstr "Araç çubuğunu mümkünse kodları aşağı itmek yerine üstte göster"
343
 
344
  # @ crayon-syntax-highlighter
345
- #: ../crayon_settings_wp.class.php:695
346
  msgid "Toggle the toolbar on single click when it is overlayed"
347
  msgstr "Araç çubuğu üste çıktığında tek tıkla gizle"
348
 
349
  # @ crayon-syntax-highlighter
350
- #: ../crayon_settings_wp.class.php:696
351
  msgid "Delay hiding the toolbar on MouseOut"
352
  msgstr "Fare dışa çıktığında araç çubuğunu gizlemek için bekle"
353
 
354
  # @ crayon-syntax-highlighter
355
- #: ../crayon_settings_wp.class.php:698
356
  msgid "Display the title when provided"
357
  msgstr "Varsa başlığı görüntüle"
358
 
359
  # @ crayon-syntax-highlighter
360
- #: ../crayon_settings_wp.class.php:699
361
  msgid "Display the language"
362
  msgstr "Dilleri göster"
363
 
364
  # @ crayon-syntax-highlighter
365
- #: ../crayon_settings_wp.class.php:706
366
  msgid "Display striped code lines"
367
  msgstr "Şeritli kod satırını göster"
368
 
369
  # @ crayon-syntax-highlighter
370
- #: ../crayon_settings_wp.class.php:707
371
  msgid "Enable line marking for important lines"
372
  msgstr "Önemli satırlar için satır işaretleme etkin"
373
 
374
- #: ../crayon_settings_wp.class.php:708
375
  msgid "Enable line ranges for showing only parts of code"
376
  msgstr "Kodun sadece bir parçasını gösteren satır aralıklarını etkinleştir"
377
 
378
  # @ crayon-syntax-highlighter
379
- #: ../crayon_settings_wp.class.php:709
380
  msgid "Display line numbers by default"
381
  msgstr "Varsayılan olarak satır numaralarını göster"
382
 
383
  # @ crayon-syntax-highlighter
384
- #: ../crayon_settings_wp.class.php:710
385
  msgid "Enable line number toggling"
386
  msgstr "Satır numaraları geçişi etkin"
387
 
388
  # @ crayon-syntax-highlighter
389
- #: ../crayon_settings_wp.class.php:711
390
  msgid "Wrap lines by default"
391
  msgstr "Varsayılan olarak satırları sar"
392
 
393
  # @ crayon-syntax-highlighter
394
- #: ../crayon_settings_wp.class.php:712
395
  msgid "Enable line wrap toggling"
396
  msgstr "Satır sarıma geçişi etkin"
397
 
398
  # @ crayon-syntax-highlighter
399
- #: ../crayon_settings_wp.class.php:713
400
  msgid "Start line numbers from"
401
  msgstr "Satır numarasını buradan başlat"
402
 
403
  # @ crayon-syntax-highlighter
404
- #: ../crayon_settings_wp.class.php:724
405
  msgid "When no language is provided, use the fallback"
406
  msgstr "Belirlenmiş bir dil olmadığında son çareyi kullan"
407
 
408
  # @ crayon-syntax-highlighter
409
- #: ../crayon_settings_wp.class.php:730
410
  #, php-format
411
  msgid "%d language has been detected."
412
  msgstr "%d dil tespit edildi."
413
 
414
  # @ crayon-syntax-highlighter
415
- #: ../crayon_settings_wp.class.php:731
416
  msgid "Parsing was successful"
417
  msgstr "Ayrıştırma başarılı"
418
 
419
  # @ crayon-syntax-highlighter
420
- #: ../crayon_settings_wp.class.php:731
421
  msgid "Parsing was unsuccessful"
422
  msgstr "Ayrıştırma başarılı değil"
423
 
424
  # @ crayon-syntax-highlighter
425
- #: ../crayon_settings_wp.class.php:737
426
  #, php-format
427
  msgid "The selected language with id %s could not be loaded"
428
  msgstr "ID %s ile seçilen dil yüklenemedi"
429
 
430
  # @ crayon-syntax-highlighter
431
- #: ../crayon_settings_wp.class.php:740
432
  msgid "Show Languages"
433
  msgstr "Dilleri Göster"
434
 
435
- #: ../crayon_settings_wp.class.php:776
436
  msgid "Show Crayon Posts"
437
  msgstr "Crayon Yazıları Göster"
438
 
439
- #: ../crayon_settings_wp.class.php:777
440
  msgid "Refresh"
441
  msgstr "Yenile"
442
 
443
- #: ../crayon_settings_wp.class.php:802
444
  msgid "ID"
445
  msgstr "ID"
446
 
447
  # @ crayon-syntax-highlighter
448
- #: ../crayon_settings_wp.class.php:802
449
  #: ../util/tag-editor/crayon_tag_editor_wp.class.php:182
 
450
  msgid "Title"
451
  msgstr "Başlık"
452
 
453
- #: ../crayon_settings_wp.class.php:802
454
  msgid "Posted"
455
  msgstr "Yayınlandı"
456
 
457
- #: ../crayon_settings_wp.class.php:802
458
  msgid "Modifed"
459
  msgstr "Değiştirildi"
460
 
461
- #: ../crayon_settings_wp.class.php:802
462
  msgid "Contains Legacy Tags?"
463
  msgstr "Eski Etiketleri İçersin?"
464
 
465
- #: ../crayon_settings_wp.class.php:822
466
- msgid "Yes"
467
- msgstr "Evet"
468
-
469
- # @ crayon-syntax-highlighter
470
- #: ../crayon_settings_wp.class.php:822
471
- msgid "No"
472
- msgstr "Hayır"
473
-
474
- #: ../crayon_settings_wp.class.php:906
475
  msgid "Edit"
476
  msgstr "Düzenle"
477
 
478
- #: ../crayon_settings_wp.class.php:906
 
479
  msgid "Duplicate"
480
- msgstr "Mükerrer"
481
 
482
- #: ../crayon_settings_wp.class.php:906
483
- msgid "Create"
484
- msgstr "Oluştur"
485
 
486
- #: ../crayon_settings_wp.class.php:906
 
487
  msgid "Delete"
488
  msgstr "Sil"
489
 
490
  # @ crayon-syntax-highlighter
491
- #: ../crayon_settings_wp.class.php:908
492
  msgid "Loading..."
493
  msgstr "Yükleniyor..."
494
 
 
 
 
 
 
495
  # @ crayon-syntax-highlighter
496
- #: ../crayon_settings_wp.class.php:923
497
  #, php-format
498
  msgid ""
499
- "Change the %1$sfallback language%2$s to change the sample code. Lines 5-7 "
500
- "are marked."
501
  msgstr ""
502
- "Örnek kodu değiştirmek için %1$sSon çare dili%2$s değiştirin. 5-7 satırlar "
503
- "işaretli."
504
 
505
  # @ crayon-syntax-highlighter
506
- #: ../crayon_settings_wp.class.php:928
507
  msgid "Enable Live Preview"
508
  msgstr "Ön izleme etkin"
509
 
510
  # @ crayon-syntax-highlighter
511
- #: ../crayon_settings_wp.class.php:930
512
  msgid "Enqueue themes in the header (more efficient)."
513
  msgstr "Temaları header içinde kuyrukla (daha etkin)."
514
 
515
  # @ crayon-syntax-highlighter
516
- #: ../crayon_settings_wp.class.php:933
517
  #, php-format
518
  msgid "The selected theme with id %s could not be loaded"
519
  msgstr "ID %s ile seçilen tema yüklenemedi"
520
 
521
  # @ crayon-syntax-highlighter
522
- #: ../crayon_settings_wp.class.php:945
523
  msgid "Custom Font Size"
524
  msgstr "Kişisel Font Boyutu"
525
 
526
  # @ crayon-syntax-highlighter
527
- #: ../crayon_settings_wp.class.php:950
528
  #, php-format
529
  msgid "The selected font with id %s could not be loaded"
530
  msgstr "ID %s ile seçilen font yüklenemedi"
531
 
532
  # @ crayon-syntax-highlighter
533
- #: ../crayon_settings_wp.class.php:956
534
  msgid "Enqueue fonts in the header (more efficient)."
535
  msgstr "Fontları header içinde kuyrukla (daha etkin)."
536
 
537
  # @ crayon-syntax-highlighter
538
- #: ../crayon_settings_wp.class.php:961
539
  msgid "Enable plain code view and display"
540
  msgstr "Düz kod görünümü ve görüntüleme etkin"
541
 
542
  # @ crayon-syntax-highlighter
543
- #: ../crayon_settings_wp.class.php:964
544
  msgid "Enable plain code toggling"
545
  msgstr "Düz kod geçişi etkin"
546
 
547
  # @ crayon-syntax-highlighter
548
- #: ../crayon_settings_wp.class.php:965
549
  msgid "Show the plain code by default"
550
  msgstr "Düz kodu varsayılan olarak göster"
551
 
552
  # @ crayon-syntax-highlighter
553
- #: ../crayon_settings_wp.class.php:966
554
  msgid "Enable code copy/paste"
555
  msgstr "Kod kopyala/yapıştır etkin"
556
 
557
  # @ crayon-syntax-highlighter
558
- #: ../crayon_settings_wp.class.php:968
559
  msgid "Enable opening code in a window"
560
  msgstr "Kodları bir pencerede açma etkin"
561
 
562
  # @ crayon-syntax-highlighter
563
- #: ../crayon_settings_wp.class.php:969
564
  msgid "Always display scrollbars"
565
  msgstr "Kaydırma çubuğu her zaman göster"
566
 
567
- #: ../crayon_settings_wp.class.php:970
568
  msgid "Expand code beyond page borders on mouseover"
569
  msgstr "Fare üzerindeyken sayfa sınırları dışında kodu genişlet"
570
 
571
- #: ../crayon_settings_wp.class.php:971
572
  msgid "Enable code expanding toggling when possible"
573
  msgstr "Mümkün olduğunda kod genişletme geçişlerini etkinleştir"
574
 
575
  # @ crayon-syntax-highlighter
576
- #: ../crayon_settings_wp.class.php:974
577
  msgid "Decode HTML entities in code"
578
  msgstr "HTML varlıkları kod içinde çöz"
579
 
580
  # @ crayon-syntax-highlighter
581
- #: ../crayon_settings_wp.class.php:976
582
  msgid "Decode HTML entities in attributes"
583
  msgstr "HTML varlıkları nitelikler içinde çöz"
584
 
585
  # @ crayon-syntax-highlighter
586
- #: ../crayon_settings_wp.class.php:978
587
  msgid "Remove whitespace surrounding the shortcode content"
588
  msgstr "Kısakod içeriğini çevreleyen beyaz alanları kaldır"
589
 
590
  # @ crayon-syntax-highlighter
591
- #: ../crayon_settings_wp.class.php:980
592
  msgid "Allow Mixed Language Highlighting with delimiters and tags."
593
  msgstr "Sınırlayıcılar ve etiketler ile Karışık Dil Vurgulamaya izin ver."
594
 
595
  # @ crayon-syntax-highlighter
596
- #: ../crayon_settings_wp.class.php:982
597
  msgid "Show Mixed Language Icon (+)"
598
  msgstr "Karışık Dil Simgesini Göster (+)"
599
 
600
  # @ crayon-syntax-highlighter
601
- #: ../crayon_settings_wp.class.php:984
602
  msgid "Tab size in spaces"
603
  msgstr "Boşluk sekme boyutu"
604
 
605
- #: ../crayon_settings_wp.class.php:986
606
  msgid "Blank lines before code:"
607
  msgstr "Kod öncesi boş satırlar:"
608
 
609
- #: ../crayon_settings_wp.class.php:988
610
  msgid "Blank lines after code:"
611
  msgstr "Kod sonrası boş satırlar:"
612
 
 
 
 
 
 
 
 
 
 
 
613
  # @ crayon-syntax-highlighter
614
- #: ../crayon_settings_wp.class.php:993
615
  msgid "Capture Mini Tags like [php][/php] as Crayons."
616
  msgstr "Crayons olarak [php][/php] gibi küçük etiketleri yakala."
617
 
618
  # @ crayon-syntax-highlighter
619
- #: ../crayon_settings_wp.class.php:994
620
  msgid "Capture Inline Tags like {php}{/php} inside sentences."
621
  msgstr "Cümle içinde {php}{/php} gibi satıriçi etiketleri yakalayın."
622
 
623
  # @ crayon-syntax-highlighter
624
- #: ../crayon_settings_wp.class.php:995
625
  msgid "Wrap Inline Tags"
626
  msgstr "Satıriçi Etiketleri Sar"
627
 
628
  # @ crayon-syntax-highlighter
629
- #: ../crayon_settings_wp.class.php:996
630
  msgid "Capture `backquotes` as &lt;code&gt;"
631
  msgstr "&lt;code&gt; olarak `backquotes` yakalayın"
632
 
633
  # @ crayon-syntax-highlighter
634
- #: ../crayon_settings_wp.class.php:997
635
  msgid "Capture &lt;pre&gt; tags as Crayons"
636
  msgstr "&lt;pre&gt; etiketleri Crayons olarak yakala"
637
 
638
  # @ crayon-syntax-highlighter
639
- #: ../crayon_settings_wp.class.php:998
640
  msgid "Enable [plain][/plain] tag."
641
  msgstr "[plain][/plain] etiketi etkin."
642
 
643
  # @ crayon-syntax-highlighter
644
- #: ../crayon_settings_wp.class.php:1003
645
  msgid ""
646
  "When loading local files and a relative path is given for the URL, use the "
647
  "absolute path"
@@ -650,20 +686,24 @@ msgstr ""
650
  "yolu kullan"
651
 
652
  # @ crayon-syntax-highlighter
653
- #: ../crayon_settings_wp.class.php:1006
654
  msgid "Followed by your relative URL."
655
  msgstr "Bağlantılı URL tarafından izlendi."
656
 
657
- #: ../crayon_settings_wp.class.php:1013
658
  msgid "Convert Legacy Tags"
659
  msgstr "Eski Etiketleri Dönüştür"
660
 
661
- #: ../crayon_settings_wp.class.php:1016
662
  msgid "No Legacy Tags Found"
663
  msgstr "Eski Etiketler Bulunamadı"
664
 
 
 
 
 
665
  # @ crayon-syntax-highlighter
666
- #: ../crayon_settings_wp.class.php:1021
667
  #, php-format
668
  msgid ""
669
  "Use %s to separate setting names from values in the &lt;pre&gt; class "
@@ -672,7 +712,7 @@ msgstr ""
672
  "%s kullanarak &lt;pre&gt; sınıf niteliği içinde ayar adlarını değerlerden "
673
  "ayır"
674
 
675
- #: ../crayon_settings_wp.class.php:1024
676
  msgid ""
677
  "Display the Tag Editor in any TinyMCE instances on the frontend (e.g. "
678
  "bbPress)"
@@ -680,139 +720,139 @@ msgstr ""
680
  "Önyüzdeki herhangi bir TinyMCE örneğinde Etiket Düzenleyicisini göster (örn. "
681
  "bbPress)"
682
 
683
- #: ../crayon_settings_wp.class.php:1025
684
  msgid "Display Tag Editor settings on the frontend"
685
  msgstr "Önyüzde Etiket Düzenleyici ayarlarını göster"
686
 
687
  # @ crayon-syntax-highlighter
688
- #: ../crayon_settings_wp.class.php:1029
689
  msgid "Clear the cache used to store remote code requests"
690
  msgstr "Uzak kod isteklerini depolamak için ön belleği temizle"
691
 
692
  # @ crayon-syntax-highlighter
693
- #: ../crayon_settings_wp.class.php:1031
694
  msgid "Clear Now"
695
  msgstr "Şimdi Temizle"
696
 
697
  # @ crayon-syntax-highlighter
698
- #: ../crayon_settings_wp.class.php:1032
699
  msgid "Attempt to load Crayon's CSS and JavaScript only when needed"
700
  msgstr "Sadece ihtiyaç olduğunda Crayon CSS ve JavaScript yüklemeyi dene"
701
 
702
  # @ crayon-syntax-highlighter
703
- #: ../crayon_settings_wp.class.php:1033
704
  msgid "Disable enqueuing for page templates that may contain The Loop."
705
  msgstr "Döngü içeren sayfa şablonları için kuyruklama devre dışı."
706
 
707
  # @ crayon-syntax-highlighter
708
- #: ../crayon_settings_wp.class.php:1034
709
  msgid "Allow Crayons inside comments"
710
  msgstr "Yorum içinde Crayons izini verin"
711
 
712
  # @ crayon-syntax-highlighter
713
- #: ../crayon_settings_wp.class.php:1035
714
  msgid "Remove Crayons from excerpts"
715
  msgstr "Crayon'ı alıntılardan çıkar"
716
 
717
  # @ crayon-syntax-highlighter
718
- #: ../crayon_settings_wp.class.php:1036
719
  msgid "Load Crayons only from the main Wordpress query"
720
  msgstr "Sadece ana Wordpress sorgusundan Crayons yükle"
721
 
722
  # @ crayon-syntax-highlighter
723
- #: ../crayon_settings_wp.class.php:1037
724
  msgid "Disable mouse gestures for touchscreen devices (eg. MouseOver)"
725
  msgstr ""
726
  "Dokunmatik cihazlar için fare hareketlerini devre dışı bırak (örn. Fare "
727
  "Üzerinde)"
728
 
729
  # @ crayon-syntax-highlighter
730
- #: ../crayon_settings_wp.class.php:1038
731
  msgid "Disable animations"
732
  msgstr "Animasyonlar devre dışı"
733
 
734
  # @ crayon-syntax-highlighter
735
- #: ../crayon_settings_wp.class.php:1039
736
  msgid "Disable runtime stats"
737
  msgstr "İşlem istatistikleri devre dışı"
738
 
739
  # @ crayon-syntax-highlighter
740
- #: ../crayon_settings_wp.class.php:1045
741
  msgid "Log errors for individual Crayons"
742
  msgstr "Özgün Crayons hataları günlükle"
743
 
744
  # @ crayon-syntax-highlighter
745
- #: ../crayon_settings_wp.class.php:1046
746
  msgid "Log system-wide errors"
747
  msgstr "Sistem-geneli hataları günlükle"
748
 
749
  # @ crayon-syntax-highlighter
750
- #: ../crayon_settings_wp.class.php:1047
751
  msgid "Display custom message for errors"
752
  msgstr "Hatalar için kişisel mesaj göster"
753
 
754
  # @ crayon-syntax-highlighter
755
- #: ../crayon_settings_wp.class.php:1059
756
  msgid "Show Log"
757
  msgstr "Günlüğü Göster"
758
 
759
  # @ crayon-syntax-highlighter
760
- #: ../crayon_settings_wp.class.php:1059
761
  msgid "Hide Log"
762
  msgstr "Günlüğü Gizle"
763
 
764
  # @ crayon-syntax-highlighter
765
- #: ../crayon_settings_wp.class.php:1061
766
  msgid "Clear Log"
767
  msgstr "Günlüğü Temizle"
768
 
769
  # @ crayon-syntax-highlighter
770
- #: ../crayon_settings_wp.class.php:1062
771
  msgid "Email Admin"
772
  msgstr "Yönetici E-Posta"
773
 
774
  # @ crayon-syntax-highlighter
775
- #: ../crayon_settings_wp.class.php:1064
776
  msgid "Email Developer"
777
  msgstr "Geliştirici E-Posta"
778
 
779
  # @ crayon-syntax-highlighter
780
- #: ../crayon_settings_wp.class.php:1066
781
  msgid "The log is currently empty."
782
  msgstr "Günlük şu anda boş."
783
 
784
  # @ crayon-syntax-highlighter
785
- #: ../crayon_settings_wp.class.php:1068
786
  msgid "The log file exists and is writable."
787
  msgstr "Günlük dosyası var ve yazılabilir."
788
 
789
  # @ crayon-syntax-highlighter
790
- #: ../crayon_settings_wp.class.php:1068
791
  msgid "The log file exists and is not writable."
792
  msgstr "Günlük dosyası var ve yazılabilir değil."
793
 
794
  # @ crayon-syntax-highlighter
795
- #: ../crayon_settings_wp.class.php:1070
796
  msgid "The log file does not exist and is not writable."
797
  msgstr "Günlük dosyası yok ve yazılabilir değil."
798
 
799
  # @ crayon-syntax-highlighter
800
- #: ../crayon_settings_wp.class.php:1080
801
  msgid "Version"
802
  msgstr "Sürüm"
803
 
804
  # @ crayon-syntax-highlighter
805
- #: ../crayon_settings_wp.class.php:1082
806
  msgid "Developer"
807
  msgstr "Geliştirici"
808
 
809
  # @ crayon-syntax-highlighter
810
- #: ../crayon_settings_wp.class.php:1083
811
  msgid "Translators"
812
  msgstr "Çevirmenler"
813
 
814
  # @ crayon-syntax-highlighter
815
- #: ../crayon_settings_wp.class.php:1111
816
  msgid ""
817
  "The result of innumerable hours of hard work over many months. It's an "
818
  "ongoing project, keep me motivated!"
@@ -821,12 +861,18 @@ msgstr ""
821
  "projedir, motivasyonumu arttırın!"
822
 
823
  # @ crayon-syntax-highlighter
824
- #: ../crayon_settings_wp.class.php:1121
825
  msgid "?"
826
  msgstr "?"
827
 
828
  # @ crayon-syntax-highlighter
829
- #: ../crayon_settings_wp.class.php:1128
 
 
 
 
 
 
830
  msgid "Donate"
831
  msgstr "Bağış"
832
 
@@ -847,6 +893,7 @@ msgstr "Ekle"
847
 
848
  # @ crayon-syntax-highlighter
849
  #: ../util/tag-editor/crayon_tag_editor_wp.class.php:67
 
850
  msgid "Save"
851
  msgstr "Kaydet"
852
 
@@ -865,6 +912,7 @@ msgstr "Kısa açıklama"
865
 
866
  # @ crayon-syntax-highlighter
867
  #: ../util/tag-editor/crayon_tag_editor_wp.class.php:186
 
868
  msgid "Inline"
869
  msgstr "Satıriçi"
870
 
@@ -875,6 +923,7 @@ msgstr "Vurgulama"
875
 
876
  # @ crayon-syntax-highlighter
877
  #: ../util/tag-editor/crayon_tag_editor_wp.class.php:193
 
878
  msgid "Language"
879
  msgstr "Dil"
880
 
@@ -898,27 +947,27 @@ msgid "(e.g. 1,2,3-5)"
898
  msgstr "(örn. 1,2,3-5)"
899
 
900
  # @ crayon-syntax-highlighter
901
- #: ../util/tag-editor/crayon_tag_editor_wp.class.php:206
902
  msgid "Clear"
903
  msgstr "Temizle"
904
 
905
  # @ crayon-syntax-highlighter
906
- #: ../util/tag-editor/crayon_tag_editor_wp.class.php:210
907
  msgid "Paste your code here, or type it in manually."
908
  msgstr "Kodu buraya yapıştır, ya da onu el ile yaz."
909
 
910
  # @ crayon-syntax-highlighter
911
- #: ../util/tag-editor/crayon_tag_editor_wp.class.php:214
912
  msgid "URL"
913
  msgstr "URL"
914
 
915
  # @ crayon-syntax-highlighter
916
- #: ../util/tag-editor/crayon_tag_editor_wp.class.php:216
917
  msgid "Relative local path or absolute URL"
918
  msgstr "İlgili yerel yol veya tam URL"
919
 
920
  # @ crayon-syntax-highlighter
921
- #: ../util/tag-editor/crayon_tag_editor_wp.class.php:219
922
  msgid ""
923
  "If the URL fails to load, the code above will be shown instead. If no code "
924
  "exists, an error is shown."
@@ -927,7 +976,7 @@ msgstr ""
927
  "herhangi bir kod yoksa, bir hata görünür."
928
 
929
  # @ crayon-syntax-highlighter
930
- #: ../util/tag-editor/crayon_tag_editor_wp.class.php:221
931
  #, php-format
932
  msgid ""
933
  "If a relative local path is given it will be appended to %s - which is "
@@ -937,17 +986,17 @@ msgstr ""
937
  "Ayarlar &gt; Dosyalar%s içinde belirtildiği gibi."
938
 
939
  # @ crayon-syntax-highlighter
940
- #: ../util/tag-editor/crayon_tag_editor_wp.class.php:246
941
  msgid "Change the following settings to override their global values."
942
  msgstr "Genel değerleri geçersiz kılmak için aşağıdaki ayarları değiştirin."
943
 
944
  # @ crayon-syntax-highlighter
945
- #: ../util/tag-editor/crayon_tag_editor_wp.class.php:248
946
  msgid "Only changes (shown yellow) are applied."
947
  msgstr "Sadece değişiklikler (sarı ile gösterilir) uygulanır."
948
 
949
  # @ crayon-syntax-highlighter
950
- #: ../util/tag-editor/crayon_tag_editor_wp.class.php:250
951
  #, php-format
952
  msgid ""
953
  "Future changes to the global settings under %sCrayon &gt; Settings%s won't "
@@ -956,27 +1005,243 @@ msgstr ""
956
  "%sCrayon &gt; Ayarlar%s altındaki genel ayarların gelecek değişiklikleri, "
957
  "geçersiz ayarları etkilemez."
958
 
 
 
 
 
959
  # @ crayon-syntax-highlighter
960
- #: ../util/theme-editor/theme_editor_content.php:23
961
- msgid "Theme Editor"
962
- msgstr "Tema Düzenleyici"
 
 
 
 
 
 
 
 
963
 
964
- #: ../util/theme-editor/theme_editor_content.php:29
965
  #, php-format
966
- msgid "Editing \"%s\" Theme"
967
- msgstr "\"%s\" Teması Düzenleme"
968
 
969
- #: ../util/theme-editor/theme_editor_content.php:31
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
970
  #, php-format
971
- msgid "Creating Theme From \"%s\""
972
- msgstr "\"%s\" İçinden Tema Oluştur"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
973
 
974
  # @ crayon-syntax-highlighter
975
- #: ../util/theme-editor/theme_editor_content.php:37
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
976
  msgid "Back To Settings"
977
  msgstr "Ayarlara Geri Dön"
978
 
979
- #~ msgid "Convert existing Crayon tags to Tag Editor format (&lt;pre&gt;)"
980
- #~ msgstr ""
981
- #~ "Mevcut Crayon etiketleri Etiket Düzenleyici biçimine dönüştür (&lt;"
982
- #~ "pre&gt;)"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  msgstr ""
3
  "Project-Id-Version: crayon-syntax-highlighter\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2013-01-11 14:56+0200\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: HakanEr <hakanerwptr@gmail.com>\n"
8
  "Language-Team: hakaner <hakanerwptr@gmail.com>\n"
22
  "X-Poedit-SearchPath-1: ..\n"
23
 
24
  # @ crayon-syntax-highlighter
25
+ #: ../crayon_formatter.class.php:274
26
  msgid "Toggle Plain Code"
27
  msgstr "Düz Koda Geç"
28
 
29
  # @ crayon-syntax-highlighter
30
+ #: ../crayon_formatter.class.php:275
31
  msgid "Toggle Line Wrap"
32
  msgstr "Satır Sarımına Geç"
33
 
34
  # @ crayon-syntax-highlighter
35
+ #: ../crayon_formatter.class.php:276
36
  msgid "Expand Code"
37
  msgstr "Kodu Genişlet"
38
 
39
  # @ crayon-syntax-highlighter
40
+ #: ../crayon_formatter.class.php:278
41
  #, php-format
42
  msgid "Press %s to Copy, %s to Paste"
43
  msgstr "%s ile Kopyala, %s ile Yapıştır"
44
 
45
  # @ crayon-syntax-highlighter
46
+ #: ../crayon_formatter.class.php:278
47
  msgid "Copy Plain Code"
48
  msgstr "Düz Kodu Kopyala"
49
 
50
  # @ crayon-syntax-highlighter
51
+ #: ../crayon_formatter.class.php:280
52
  msgid "Open Code In New Window"
53
  msgstr "Kodu Yeni Pencerede Aç"
54
 
55
  # @ crayon-syntax-highlighter
56
+ #: ../crayon_formatter.class.php:282
57
  msgid "Toggle Line Numbers"
58
  msgstr "Satır Numaralarına Geç"
59
 
60
  # @ crayon-syntax-highlighter
61
+ #: ../crayon_formatter.class.php:285
62
  msgid "Contains Mixed Languages"
63
  msgstr "Karışık Diller içerir"
64
 
104
 
105
  # @ crayon-syntax-highlighter
106
  #: ../crayon_settings.class.php:159 ../crayon_settings.class.php:163
107
+ #: ../crayon_settings_wp.class.php:722 ../crayon_settings_wp.class.php:731
108
+ #: ../crayon_settings_wp.class.php:1005
109
  msgid "Pixels"
110
  msgstr "Piksel"
111
 
175
  msgstr "Bir hata meydana geldi. Daha sonra tekrar deneyin."
176
 
177
  # @ crayon-syntax-highlighter
178
+ #: ../crayon_settings_wp.class.php:51 ../crayon_settings_wp.class.php:189
179
+ #: ../crayon_settings_wp.class.php:1195
180
+ #: ../util/tag-editor/crayon_tag_editor_wp.class.php:245
181
  msgid "Settings"
182
  msgstr "Ayarlar"
183
 
184
+ #: ../crayon_settings_wp.class.php:157
185
+ msgid "Prompt"
186
+ msgstr "Komut İstemi"
187
+
188
+ #: ../crayon_settings_wp.class.php:158
189
+ msgid "Value"
190
+ msgstr "Değer"
191
+
192
+ #: ../crayon_settings_wp.class.php:159
193
+ msgid "Alert"
194
+ msgstr "İkaz"
195
+
196
  # @ crayon-syntax-highlighter
197
+ #: ../crayon_settings_wp.class.php:160 ../crayon_settings_wp.class.php:868
198
+ msgid "No"
199
+ msgstr "Hayır"
200
+
201
+ #: ../crayon_settings_wp.class.php:161 ../crayon_settings_wp.class.php:868
202
+ msgid "Yes"
203
+ msgstr "Evet"
204
+
205
+ #: ../crayon_settings_wp.class.php:162
206
+ msgid "Confirm"
207
+ msgstr "Onayla"
208
+
209
+ # @ crayon-syntax-highlighter
210
+ #: ../crayon_settings_wp.class.php:163
211
+ msgid "Change Code"
212
+ msgstr "Kodu Değiştir"
213
+
214
+ # @ crayon-syntax-highlighter
215
+ #: ../crayon_settings_wp.class.php:171
216
  msgid "You do not have sufficient permissions to access this page."
217
  msgstr "Bu sayfaya erişmek için yeterli izinlere sahip değilsiniz."
218
 
219
  # @ crayon-syntax-highlighter
220
+ #: ../crayon_settings_wp.class.php:204
221
  msgid "Save Changes"
222
  msgstr "Kaydet"
223
 
224
  # @ crayon-syntax-highlighter
225
+ #: ../crayon_settings_wp.class.php:211
226
  msgid "Reset Settings"
227
  msgstr "Ayarları Sıfırla"
228
 
229
  # @ crayon-syntax-highlighter
230
+ #: ../crayon_settings_wp.class.php:458
231
  msgid "General"
232
  msgstr "Genel"
233
 
234
  # @ crayon-syntax-highlighter
235
+ #: ../crayon_settings_wp.class.php:459
236
  msgid "Theme"
237
  msgstr "Tema"
238
 
239
  # @ crayon-syntax-highlighter
240
+ #: ../crayon_settings_wp.class.php:460
241
  msgid "Font"
242
  msgstr "Font"
243
 
244
  # @ crayon-syntax-highlighter
245
+ #: ../crayon_settings_wp.class.php:461
246
  msgid "Metrics"
247
  msgstr "Ölçüler"
248
 
249
  # @ crayon-syntax-highlighter
250
+ #: ../crayon_settings_wp.class.php:462
251
+ #: ../util/theme-editor/theme_editor.php:273
252
  msgid "Toolbar"
253
  msgstr "Araç Çubuğu"
254
 
255
  # @ crayon-syntax-highlighter
256
+ #: ../crayon_settings_wp.class.php:463
257
+ #: ../util/theme-editor/theme_editor.php:271
258
  msgid "Lines"
259
  msgstr "Satırlar"
260
 
261
  # @ crayon-syntax-highlighter
262
+ #: ../crayon_settings_wp.class.php:464
263
+ #: ../util/tag-editor/crayon_tag_editor_wp.class.php:205
264
  msgid "Code"
265
  msgstr "Kod"
266
 
267
  # @ crayon-syntax-highlighter
268
+ #: ../crayon_settings_wp.class.php:465
269
  msgid "Tags"
270
  msgstr "Etiketler"
271
 
272
  # @ crayon-syntax-highlighter
273
+ #: ../crayon_settings_wp.class.php:466
274
  msgid "Languages"
275
  msgstr "Diller"
276
 
277
  # @ crayon-syntax-highlighter
278
+ #: ../crayon_settings_wp.class.php:467
279
  msgid "Files"
280
  msgstr "Dosyalar"
281
 
282
+ #: ../crayon_settings_wp.class.php:468
283
  msgid "Posts"
284
  msgstr "Yazılar"
285
 
286
  # @ crayon-syntax-highlighter
287
+ #: ../crayon_settings_wp.class.php:469
288
  msgid "Tag Editor"
289
  msgstr "Etiket Düzenleyici"
290
 
291
  # @ crayon-syntax-highlighter
292
+ #: ../crayon_settings_wp.class.php:470
293
  msgid "Misc"
294
  msgstr "Çeşitli"
295
 
296
  # @ crayon-syntax-highlighter
297
+ #: ../crayon_settings_wp.class.php:473
298
  msgid "Debug"
299
  msgstr "Hata Ayıklama"
300
 
301
  # @ crayon-syntax-highlighter
302
+ #: ../crayon_settings_wp.class.php:474
303
  msgid "Errors"
304
  msgstr "Hatalar"
305
 
306
  # @ crayon-syntax-highlighter
307
+ #: ../crayon_settings_wp.class.php:475
308
  msgid "Log"
309
  msgstr "Günlük"
310
 
311
  # @ crayon-syntax-highlighter
312
+ #: ../crayon_settings_wp.class.php:478
313
  msgid "About"
314
  msgstr "Hakkında"
315
 
316
  # @ crayon-syntax-highlighter
317
+ #: ../crayon_settings_wp.class.php:699
 
 
 
 
 
318
  msgid "Height"
319
  msgstr "Yükseklik"
320
 
321
  # @ crayon-syntax-highlighter
322
+ #: ../crayon_settings_wp.class.php:705
323
  msgid "Width"
324
  msgstr "Genişlik"
325
 
326
  # @ crayon-syntax-highlighter
327
+ #: ../crayon_settings_wp.class.php:711
328
  msgid "Top Margin"
329
  msgstr "Üst Boşluk"
330
 
331
  # @ crayon-syntax-highlighter
332
+ #: ../crayon_settings_wp.class.php:712
333
  msgid "Bottom Margin"
334
  msgstr "Alt Boşluk"
335
 
336
  # @ crayon-syntax-highlighter
337
+ #: ../crayon_settings_wp.class.php:713 ../crayon_settings_wp.class.php:718
338
  msgid "Left Margin"
339
  msgstr "Sol Boşluk"
340
 
341
  # @ crayon-syntax-highlighter
342
+ #: ../crayon_settings_wp.class.php:714 ../crayon_settings_wp.class.php:718
343
  msgid "Right Margin"
344
  msgstr "Sağ Boşluk"
345
 
346
  # @ crayon-syntax-highlighter
347
+ #: ../crayon_settings_wp.class.php:724
348
  msgid "Horizontal Alignment"
349
  msgstr "Yatay Hizalama"
350
 
351
  # @ crayon-syntax-highlighter
352
+ #: ../crayon_settings_wp.class.php:727
353
  msgid "Allow floating elements to surround Crayon"
354
  msgstr "Geçişli elementleri Crayon çevrelemeye izin ver"
355
 
356
  # @ crayon-syntax-highlighter
357
+ #: ../crayon_settings_wp.class.php:729
358
  msgid "Inline Margin"
359
  msgstr "Satıriçi Boşluk"
360
 
361
  # @ crayon-syntax-highlighter
362
+ #: ../crayon_settings_wp.class.php:737
363
  msgid "Display the Toolbar"
364
  msgstr "Araç çubuğunu göster"
365
 
366
  # @ crayon-syntax-highlighter
367
+ #: ../crayon_settings_wp.class.php:740
368
  msgid "Overlay the toolbar on code rather than push it down when possible"
369
  msgstr "Araç çubuğunu mümkünse kodları aşağı itmek yerine üstte göster"
370
 
371
  # @ crayon-syntax-highlighter
372
+ #: ../crayon_settings_wp.class.php:741
373
  msgid "Toggle the toolbar on single click when it is overlayed"
374
  msgstr "Araç çubuğu üste çıktığında tek tıkla gizle"
375
 
376
  # @ crayon-syntax-highlighter
377
+ #: ../crayon_settings_wp.class.php:742
378
  msgid "Delay hiding the toolbar on MouseOut"
379
  msgstr "Fare dışa çıktığında araç çubuğunu gizlemek için bekle"
380
 
381
  # @ crayon-syntax-highlighter
382
+ #: ../crayon_settings_wp.class.php:744
383
  msgid "Display the title when provided"
384
  msgstr "Varsa başlığı görüntüle"
385
 
386
  # @ crayon-syntax-highlighter
387
+ #: ../crayon_settings_wp.class.php:745
388
  msgid "Display the language"
389
  msgstr "Dilleri göster"
390
 
391
  # @ crayon-syntax-highlighter
392
+ #: ../crayon_settings_wp.class.php:752
393
  msgid "Display striped code lines"
394
  msgstr "Şeritli kod satırını göster"
395
 
396
  # @ crayon-syntax-highlighter
397
+ #: ../crayon_settings_wp.class.php:753
398
  msgid "Enable line marking for important lines"
399
  msgstr "Önemli satırlar için satır işaretleme etkin"
400
 
401
+ #: ../crayon_settings_wp.class.php:754
402
  msgid "Enable line ranges for showing only parts of code"
403
  msgstr "Kodun sadece bir parçasını gösteren satır aralıklarını etkinleştir"
404
 
405
  # @ crayon-syntax-highlighter
406
+ #: ../crayon_settings_wp.class.php:755
407
  msgid "Display line numbers by default"
408
  msgstr "Varsayılan olarak satır numaralarını göster"
409
 
410
  # @ crayon-syntax-highlighter
411
+ #: ../crayon_settings_wp.class.php:756
412
  msgid "Enable line number toggling"
413
  msgstr "Satır numaraları geçişi etkin"
414
 
415
  # @ crayon-syntax-highlighter
416
+ #: ../crayon_settings_wp.class.php:757
417
  msgid "Wrap lines by default"
418
  msgstr "Varsayılan olarak satırları sar"
419
 
420
  # @ crayon-syntax-highlighter
421
+ #: ../crayon_settings_wp.class.php:758
422
  msgid "Enable line wrap toggling"
423
  msgstr "Satır sarıma geçişi etkin"
424
 
425
  # @ crayon-syntax-highlighter
426
+ #: ../crayon_settings_wp.class.php:759
427
  msgid "Start line numbers from"
428
  msgstr "Satır numarasını buradan başlat"
429
 
430
  # @ crayon-syntax-highlighter
431
+ #: ../crayon_settings_wp.class.php:770
432
  msgid "When no language is provided, use the fallback"
433
  msgstr "Belirlenmiş bir dil olmadığında son çareyi kullan"
434
 
435
  # @ crayon-syntax-highlighter
436
+ #: ../crayon_settings_wp.class.php:776
437
  #, php-format
438
  msgid "%d language has been detected."
439
  msgstr "%d dil tespit edildi."
440
 
441
  # @ crayon-syntax-highlighter
442
+ #: ../crayon_settings_wp.class.php:777
443
  msgid "Parsing was successful"
444
  msgstr "Ayrıştırma başarılı"
445
 
446
  # @ crayon-syntax-highlighter
447
+ #: ../crayon_settings_wp.class.php:777
448
  msgid "Parsing was unsuccessful"
449
  msgstr "Ayrıştırma başarılı değil"
450
 
451
  # @ crayon-syntax-highlighter
452
+ #: ../crayon_settings_wp.class.php:783
453
  #, php-format
454
  msgid "The selected language with id %s could not be loaded"
455
  msgstr "ID %s ile seçilen dil yüklenemedi"
456
 
457
  # @ crayon-syntax-highlighter
458
+ #: ../crayon_settings_wp.class.php:786
459
  msgid "Show Languages"
460
  msgstr "Dilleri Göster"
461
 
462
+ #: ../crayon_settings_wp.class.php:822
463
  msgid "Show Crayon Posts"
464
  msgstr "Crayon Yazıları Göster"
465
 
466
+ #: ../crayon_settings_wp.class.php:823
467
  msgid "Refresh"
468
  msgstr "Yenile"
469
 
470
+ #: ../crayon_settings_wp.class.php:848
471
  msgid "ID"
472
  msgstr "ID"
473
 
474
  # @ crayon-syntax-highlighter
475
+ #: ../crayon_settings_wp.class.php:848
476
  #: ../util/tag-editor/crayon_tag_editor_wp.class.php:182
477
+ #: ../util/theme-editor/theme_editor.php:287
478
  msgid "Title"
479
  msgstr "Başlık"
480
 
481
+ #: ../crayon_settings_wp.class.php:848
482
  msgid "Posted"
483
  msgstr "Yayınlandı"
484
 
485
+ #: ../crayon_settings_wp.class.php:848
486
  msgid "Modifed"
487
  msgstr "Değiştirildi"
488
 
489
+ #: ../crayon_settings_wp.class.php:848
490
  msgid "Contains Legacy Tags?"
491
  msgstr "Eski Etiketleri İçersin?"
492
 
493
+ #: ../crayon_settings_wp.class.php:963
 
 
 
 
 
 
 
 
 
494
  msgid "Edit"
495
  msgstr "Düzenle"
496
 
497
+ #: ../crayon_settings_wp.class.php:963
498
+ #: ../util/theme-editor/theme_editor.php:184
499
  msgid "Duplicate"
500
+ msgstr "Çoğalt"
501
 
502
+ #: ../crayon_settings_wp.class.php:963
503
+ msgid "Submit"
504
+ msgstr "Gönder"
505
 
506
+ #: ../crayon_settings_wp.class.php:964
507
+ #: ../util/theme-editor/theme_editor.php:181
508
  msgid "Delete"
509
  msgstr "Sil"
510
 
511
  # @ crayon-syntax-highlighter
512
+ #: ../crayon_settings_wp.class.php:966
513
  msgid "Loading..."
514
  msgstr "Yükleniyor..."
515
 
516
+ #: ../crayon_settings_wp.class.php:968
517
+ msgid "Duplicate a Stock Theme into a User Theme to allow editing."
518
+ msgstr ""
519
+ "Düzenleyebilmek için, bir Kullanıcı Teması içine bir Hazır Tema çoğaltın."
520
+
521
  # @ crayon-syntax-highlighter
522
+ #: ../crayon_settings_wp.class.php:979
523
  #, php-format
524
  msgid ""
525
+ "Change the %1$sfallback language%2$s to change the sample code or %3$schange "
526
+ "it manually%4$s. Lines 5-7 are marked."
527
  msgstr ""
528
+ "Örnek kodu değiştirmek için %1$sSon çare dilini%2$s değiştirin veya %3$sonu "
529
+ "el ile%4$s değiştirin. 5-7 satırlar işaretli."
530
 
531
  # @ crayon-syntax-highlighter
532
+ #: ../crayon_settings_wp.class.php:986
533
  msgid "Enable Live Preview"
534
  msgstr "Ön izleme etkin"
535
 
536
  # @ crayon-syntax-highlighter
537
+ #: ../crayon_settings_wp.class.php:988
538
  msgid "Enqueue themes in the header (more efficient)."
539
  msgstr "Temaları header içinde kuyrukla (daha etkin)."
540
 
541
  # @ crayon-syntax-highlighter
542
+ #: ../crayon_settings_wp.class.php:991
543
  #, php-format
544
  msgid "The selected theme with id %s could not be loaded"
545
  msgstr "ID %s ile seçilen tema yüklenemedi"
546
 
547
  # @ crayon-syntax-highlighter
548
+ #: ../crayon_settings_wp.class.php:1003
549
  msgid "Custom Font Size"
550
  msgstr "Kişisel Font Boyutu"
551
 
552
  # @ crayon-syntax-highlighter
553
+ #: ../crayon_settings_wp.class.php:1008
554
  #, php-format
555
  msgid "The selected font with id %s could not be loaded"
556
  msgstr "ID %s ile seçilen font yüklenemedi"
557
 
558
  # @ crayon-syntax-highlighter
559
+ #: ../crayon_settings_wp.class.php:1014
560
  msgid "Enqueue fonts in the header (more efficient)."
561
  msgstr "Fontları header içinde kuyrukla (daha etkin)."
562
 
563
  # @ crayon-syntax-highlighter
564
+ #: ../crayon_settings_wp.class.php:1019
565
  msgid "Enable plain code view and display"
566
  msgstr "Düz kod görünümü ve görüntüleme etkin"
567
 
568
  # @ crayon-syntax-highlighter
569
+ #: ../crayon_settings_wp.class.php:1022
570
  msgid "Enable plain code toggling"
571
  msgstr "Düz kod geçişi etkin"
572
 
573
  # @ crayon-syntax-highlighter
574
+ #: ../crayon_settings_wp.class.php:1023
575
  msgid "Show the plain code by default"
576
  msgstr "Düz kodu varsayılan olarak göster"
577
 
578
  # @ crayon-syntax-highlighter
579
+ #: ../crayon_settings_wp.class.php:1024
580
  msgid "Enable code copy/paste"
581
  msgstr "Kod kopyala/yapıştır etkin"
582
 
583
  # @ crayon-syntax-highlighter
584
+ #: ../crayon_settings_wp.class.php:1026
585
  msgid "Enable opening code in a window"
586
  msgstr "Kodları bir pencerede açma etkin"
587
 
588
  # @ crayon-syntax-highlighter
589
+ #: ../crayon_settings_wp.class.php:1027
590
  msgid "Always display scrollbars"
591
  msgstr "Kaydırma çubuğu her zaman göster"
592
 
593
+ #: ../crayon_settings_wp.class.php:1028
594
  msgid "Expand code beyond page borders on mouseover"
595
  msgstr "Fare üzerindeyken sayfa sınırları dışında kodu genişlet"
596
 
597
+ #: ../crayon_settings_wp.class.php:1029
598
  msgid "Enable code expanding toggling when possible"
599
  msgstr "Mümkün olduğunda kod genişletme geçişlerini etkinleştir"
600
 
601
  # @ crayon-syntax-highlighter
602
+ #: ../crayon_settings_wp.class.php:1032
603
  msgid "Decode HTML entities in code"
604
  msgstr "HTML varlıkları kod içinde çöz"
605
 
606
  # @ crayon-syntax-highlighter
607
+ #: ../crayon_settings_wp.class.php:1034
608
  msgid "Decode HTML entities in attributes"
609
  msgstr "HTML varlıkları nitelikler içinde çöz"
610
 
611
  # @ crayon-syntax-highlighter
612
+ #: ../crayon_settings_wp.class.php:1036
613
  msgid "Remove whitespace surrounding the shortcode content"
614
  msgstr "Kısakod içeriğini çevreleyen beyaz alanları kaldır"
615
 
616
  # @ crayon-syntax-highlighter
617
+ #: ../crayon_settings_wp.class.php:1038
618
  msgid "Allow Mixed Language Highlighting with delimiters and tags."
619
  msgstr "Sınırlayıcılar ve etiketler ile Karışık Dil Vurgulamaya izin ver."
620
 
621
  # @ crayon-syntax-highlighter
622
+ #: ../crayon_settings_wp.class.php:1040
623
  msgid "Show Mixed Language Icon (+)"
624
  msgstr "Karışık Dil Simgesini Göster (+)"
625
 
626
  # @ crayon-syntax-highlighter
627
+ #: ../crayon_settings_wp.class.php:1042
628
  msgid "Tab size in spaces"
629
  msgstr "Boşluk sekme boyutu"
630
 
631
+ #: ../crayon_settings_wp.class.php:1044
632
  msgid "Blank lines before code:"
633
  msgstr "Kod öncesi boş satırlar:"
634
 
635
+ #: ../crayon_settings_wp.class.php:1046
636
  msgid "Blank lines after code:"
637
  msgstr "Kod sonrası boş satırlar:"
638
 
639
+ #: ../crayon_settings_wp.class.php:1051
640
+ #, php-format
641
+ msgid ""
642
+ "Using this markup for Mini Tags and Inline tags is now %sdepreciated%s! Use "
643
+ "the %sTag Editor%s instead and convert legacy tags."
644
+ msgstr ""
645
+ "Mini Etiketler ve Satır içi etiketler için bu biçimlendirmeyi kullanmak "
646
+ "artık %sdeğer yitimine%s tabi tutulur! Onun yerine %sEtiket Düzenleyiciyi%s "
647
+ "kullanın ve eski etiketleri dönüştürün."
648
+
649
  # @ crayon-syntax-highlighter
650
+ #: ../crayon_settings_wp.class.php:1052
651
  msgid "Capture Mini Tags like [php][/php] as Crayons."
652
  msgstr "Crayons olarak [php][/php] gibi küçük etiketleri yakala."
653
 
654
  # @ crayon-syntax-highlighter
655
+ #: ../crayon_settings_wp.class.php:1053
656
  msgid "Capture Inline Tags like {php}{/php} inside sentences."
657
  msgstr "Cümle içinde {php}{/php} gibi satıriçi etiketleri yakalayın."
658
 
659
  # @ crayon-syntax-highlighter
660
+ #: ../crayon_settings_wp.class.php:1054
661
  msgid "Wrap Inline Tags"
662
  msgstr "Satıriçi Etiketleri Sar"
663
 
664
  # @ crayon-syntax-highlighter
665
+ #: ../crayon_settings_wp.class.php:1055
666
  msgid "Capture `backquotes` as &lt;code&gt;"
667
  msgstr "&lt;code&gt; olarak `backquotes` yakalayın"
668
 
669
  # @ crayon-syntax-highlighter
670
+ #: ../crayon_settings_wp.class.php:1056
671
  msgid "Capture &lt;pre&gt; tags as Crayons"
672
  msgstr "&lt;pre&gt; etiketleri Crayons olarak yakala"
673
 
674
  # @ crayon-syntax-highlighter
675
+ #: ../crayon_settings_wp.class.php:1057
676
  msgid "Enable [plain][/plain] tag."
677
  msgstr "[plain][/plain] etiketi etkin."
678
 
679
  # @ crayon-syntax-highlighter
680
+ #: ../crayon_settings_wp.class.php:1062
681
  msgid ""
682
  "When loading local files and a relative path is given for the URL, use the "
683
  "absolute path"
686
  "yolu kullan"
687
 
688
  # @ crayon-syntax-highlighter
689
+ #: ../crayon_settings_wp.class.php:1065
690
  msgid "Followed by your relative URL."
691
  msgstr "Bağlantılı URL tarafından izlendi."
692
 
693
+ #: ../crayon_settings_wp.class.php:1072
694
  msgid "Convert Legacy Tags"
695
  msgstr "Eski Etiketleri Dönüştür"
696
 
697
+ #: ../crayon_settings_wp.class.php:1075
698
  msgid "No Legacy Tags Found"
699
  msgstr "Eski Etiketler Bulunamadı"
700
 
701
+ #: ../crayon_settings_wp.class.php:1079
702
+ msgid "Encode"
703
+ msgstr "Kodla"
704
+
705
  # @ crayon-syntax-highlighter
706
+ #: ../crayon_settings_wp.class.php:1081
707
  #, php-format
708
  msgid ""
709
  "Use %s to separate setting names from values in the &lt;pre&gt; class "
712
  "%s kullanarak &lt;pre&gt; sınıf niteliği içinde ayar adlarını değerlerden "
713
  "ayır"
714
 
715
+ #: ../crayon_settings_wp.class.php:1084
716
  msgid ""
717
  "Display the Tag Editor in any TinyMCE instances on the frontend (e.g. "
718
  "bbPress)"
720
  "Önyüzdeki herhangi bir TinyMCE örneğinde Etiket Düzenleyicisini göster (örn. "
721
  "bbPress)"
722
 
723
+ #: ../crayon_settings_wp.class.php:1085
724
  msgid "Display Tag Editor settings on the frontend"
725
  msgstr "Önyüzde Etiket Düzenleyici ayarlarını göster"
726
 
727
  # @ crayon-syntax-highlighter
728
+ #: ../crayon_settings_wp.class.php:1089
729
  msgid "Clear the cache used to store remote code requests"
730
  msgstr "Uzak kod isteklerini depolamak için ön belleği temizle"
731
 
732
  # @ crayon-syntax-highlighter
733
+ #: ../crayon_settings_wp.class.php:1091
734
  msgid "Clear Now"
735
  msgstr "Şimdi Temizle"
736
 
737
  # @ crayon-syntax-highlighter
738
+ #: ../crayon_settings_wp.class.php:1092
739
  msgid "Attempt to load Crayon's CSS and JavaScript only when needed"
740
  msgstr "Sadece ihtiyaç olduğunda Crayon CSS ve JavaScript yüklemeyi dene"
741
 
742
  # @ crayon-syntax-highlighter
743
+ #: ../crayon_settings_wp.class.php:1093
744
  msgid "Disable enqueuing for page templates that may contain The Loop."
745
  msgstr "Döngü içeren sayfa şablonları için kuyruklama devre dışı."
746
 
747
  # @ crayon-syntax-highlighter
748
+ #: ../crayon_settings_wp.class.php:1094
749
  msgid "Allow Crayons inside comments"
750
  msgstr "Yorum içinde Crayons izini verin"
751
 
752
  # @ crayon-syntax-highlighter
753
+ #: ../crayon_settings_wp.class.php:1095
754
  msgid "Remove Crayons from excerpts"
755
  msgstr "Crayon'ı alıntılardan çıkar"
756
 
757
  # @ crayon-syntax-highlighter
758
+ #: ../crayon_settings_wp.class.php:1096
759
  msgid "Load Crayons only from the main Wordpress query"
760
  msgstr "Sadece ana Wordpress sorgusundan Crayons yükle"
761
 
762
  # @ crayon-syntax-highlighter
763
+ #: ../crayon_settings_wp.class.php:1097
764
  msgid "Disable mouse gestures for touchscreen devices (eg. MouseOver)"
765
  msgstr ""
766
  "Dokunmatik cihazlar için fare hareketlerini devre dışı bırak (örn. Fare "
767
  "Üzerinde)"
768
 
769
  # @ crayon-syntax-highlighter
770
+ #: ../crayon_settings_wp.class.php:1098
771
  msgid "Disable animations"
772
  msgstr "Animasyonlar devre dışı"
773
 
774
  # @ crayon-syntax-highlighter
775
+ #: ../crayon_settings_wp.class.php:1099
776
  msgid "Disable runtime stats"
777
  msgstr "İşlem istatistikleri devre dışı"
778
 
779
  # @ crayon-syntax-highlighter
780
+ #: ../crayon_settings_wp.class.php:1105
781
  msgid "Log errors for individual Crayons"
782
  msgstr "Özgün Crayons hataları günlükle"
783
 
784
  # @ crayon-syntax-highlighter
785
+ #: ../crayon_settings_wp.class.php:1106
786
  msgid "Log system-wide errors"
787
  msgstr "Sistem-geneli hataları günlükle"
788
 
789
  # @ crayon-syntax-highlighter
790
+ #: ../crayon_settings_wp.class.php:1107
791
  msgid "Display custom message for errors"
792
  msgstr "Hatalar için kişisel mesaj göster"
793
 
794
  # @ crayon-syntax-highlighter
795
+ #: ../crayon_settings_wp.class.php:1119
796
  msgid "Show Log"
797
  msgstr "Günlüğü Göster"
798
 
799
  # @ crayon-syntax-highlighter
800
+ #: ../crayon_settings_wp.class.php:1119
801
  msgid "Hide Log"
802
  msgstr "Günlüğü Gizle"
803
 
804
  # @ crayon-syntax-highlighter
805
+ #: ../crayon_settings_wp.class.php:1121
806
  msgid "Clear Log"
807
  msgstr "Günlüğü Temizle"
808
 
809
  # @ crayon-syntax-highlighter
810
+ #: ../crayon_settings_wp.class.php:1122
811
  msgid "Email Admin"
812
  msgstr "Yönetici E-Posta"
813
 
814
  # @ crayon-syntax-highlighter
815
+ #: ../crayon_settings_wp.class.php:1124
816
  msgid "Email Developer"
817
  msgstr "Geliştirici E-Posta"
818
 
819
  # @ crayon-syntax-highlighter
820
+ #: ../crayon_settings_wp.class.php:1126
821
  msgid "The log is currently empty."
822
  msgstr "Günlük şu anda boş."
823
 
824
  # @ crayon-syntax-highlighter
825
+ #: ../crayon_settings_wp.class.php:1128
826
  msgid "The log file exists and is writable."
827
  msgstr "Günlük dosyası var ve yazılabilir."
828
 
829
  # @ crayon-syntax-highlighter
830
+ #: ../crayon_settings_wp.class.php:1128
831
  msgid "The log file exists and is not writable."
832
  msgstr "Günlük dosyası var ve yazılabilir değil."
833
 
834
  # @ crayon-syntax-highlighter
835
+ #: ../crayon_settings_wp.class.php:1130
836
  msgid "The log file does not exist and is not writable."
837
  msgstr "Günlük dosyası yok ve yazılabilir değil."
838
 
839
  # @ crayon-syntax-highlighter
840
+ #: ../crayon_settings_wp.class.php:1140
841
  msgid "Version"
842
  msgstr "Sürüm"
843
 
844
  # @ crayon-syntax-highlighter
845
+ #: ../crayon_settings_wp.class.php:1142
846
  msgid "Developer"
847
  msgstr "Geliştirici"
848
 
849
  # @ crayon-syntax-highlighter
850
+ #: ../crayon_settings_wp.class.php:1143
851
  msgid "Translators"
852
  msgstr "Çevirmenler"
853
 
854
  # @ crayon-syntax-highlighter
855
+ #: ../crayon_settings_wp.class.php:1179
856
  msgid ""
857
  "The result of innumerable hours of hard work over many months. It's an "
858
  "ongoing project, keep me motivated!"
861
  "projedir, motivasyonumu arttırın!"
862
 
863
  # @ crayon-syntax-highlighter
864
+ #: ../crayon_settings_wp.class.php:1189
865
  msgid "?"
866
  msgstr "?"
867
 
868
  # @ crayon-syntax-highlighter
869
+ #: ../crayon_settings_wp.class.php:1196
870
+ #: ../util/theme-editor/theme_editor.php:309
871
+ msgid "Theme Editor"
872
+ msgstr "Tema Düzenleyici"
873
+
874
+ # @ crayon-syntax-highlighter
875
+ #: ../crayon_settings_wp.class.php:1197
876
  msgid "Donate"
877
  msgstr "Bağış"
878
 
893
 
894
  # @ crayon-syntax-highlighter
895
  #: ../util/tag-editor/crayon_tag_editor_wp.class.php:67
896
+ #: ../util/theme-editor/theme_editor.php:325
897
  msgid "Save"
898
  msgstr "Kaydet"
899
 
912
 
913
  # @ crayon-syntax-highlighter
914
  #: ../util/tag-editor/crayon_tag_editor_wp.class.php:186
915
+ #: ../util/theme-editor/theme_editor.php:291
916
  msgid "Inline"
917
  msgstr "Satıriçi"
918
 
923
 
924
  # @ crayon-syntax-highlighter
925
  #: ../util/tag-editor/crayon_tag_editor_wp.class.php:193
926
+ #: ../util/theme-editor/theme_editor.php:295
927
  msgid "Language"
928
  msgstr "Dil"
929
 
947
  msgstr "(örn. 1,2,3-5)"
948
 
949
  # @ crayon-syntax-highlighter
950
+ #: ../util/tag-editor/crayon_tag_editor_wp.class.php:208
951
  msgid "Clear"
952
  msgstr "Temizle"
953
 
954
  # @ crayon-syntax-highlighter
955
+ #: ../util/tag-editor/crayon_tag_editor_wp.class.php:212
956
  msgid "Paste your code here, or type it in manually."
957
  msgstr "Kodu buraya yapıştır, ya da onu el ile yaz."
958
 
959
  # @ crayon-syntax-highlighter
960
+ #: ../util/tag-editor/crayon_tag_editor_wp.class.php:216
961
  msgid "URL"
962
  msgstr "URL"
963
 
964
  # @ crayon-syntax-highlighter
965
+ #: ../util/tag-editor/crayon_tag_editor_wp.class.php:218
966
  msgid "Relative local path or absolute URL"
967
  msgstr "İlgili yerel yol veya tam URL"
968
 
969
  # @ crayon-syntax-highlighter
970
+ #: ../util/tag-editor/crayon_tag_editor_wp.class.php:221
971
  msgid ""
972
  "If the URL fails to load, the code above will be shown instead. If no code "
973
  "exists, an error is shown."
976
  "herhangi bir kod yoksa, bir hata görünür."
977
 
978
  # @ crayon-syntax-highlighter
979
+ #: ../util/tag-editor/crayon_tag_editor_wp.class.php:223
980
  #, php-format
981
  msgid ""
982
  "If a relative local path is given it will be appended to %s - which is "
986
  "Ayarlar &gt; Dosyalar%s içinde belirtildiği gibi."
987
 
988
  # @ crayon-syntax-highlighter
989
+ #: ../util/tag-editor/crayon_tag_editor_wp.class.php:250
990
  msgid "Change the following settings to override their global values."
991
  msgstr "Genel değerleri geçersiz kılmak için aşağıdaki ayarları değiştirin."
992
 
993
  # @ crayon-syntax-highlighter
994
+ #: ../util/tag-editor/crayon_tag_editor_wp.class.php:252
995
  msgid "Only changes (shown yellow) are applied."
996
  msgstr "Sadece değişiklikler (sarı ile gösterilir) uygulanır."
997
 
998
  # @ crayon-syntax-highlighter
999
+ #: ../util/tag-editor/crayon_tag_editor_wp.class.php:254
1000
  #, php-format
1001
  msgid ""
1002
  "Future changes to the global settings under %sCrayon &gt; Settings%s won't "
1005
  "%sCrayon &gt; Ayarlar%s altındaki genel ayarların gelecek değişiklikleri, "
1006
  "geçersiz ayarları etkilemez."
1007
 
1008
+ #: ../util/theme-editor/theme_editor.php:177
1009
+ msgid "User-Defined Theme"
1010
+ msgstr "Kullanıcı-Tanımlı Tema"
1011
+
1012
  # @ crayon-syntax-highlighter
1013
+ #: ../util/theme-editor/theme_editor.php:178
1014
+ msgid "Stock Theme"
1015
+ msgstr "Hazır Tema"
1016
+
1017
+ #: ../util/theme-editor/theme_editor.php:179
1018
+ msgid "Success!"
1019
+ msgstr "Başarılı!"
1020
+
1021
+ #: ../util/theme-editor/theme_editor.php:180
1022
+ msgid "Failed!"
1023
+ msgstr "Başarısız!"
1024
 
1025
+ #: ../util/theme-editor/theme_editor.php:182
1026
  #, php-format
1027
+ msgid "Are you sure you want to delete the \"%s\" theme?"
1028
+ msgstr "\"%s\" temasını silmek istediğinizden emin misiniz?"
1029
 
1030
+ #: ../util/theme-editor/theme_editor.php:183
1031
+ msgid "Delete failed!"
1032
+ msgstr "Silme başarısız!"
1033
+
1034
+ #: ../util/theme-editor/theme_editor.php:185
1035
+ msgid "New Name"
1036
+ msgstr "Yeni İsim"
1037
+
1038
+ #: ../util/theme-editor/theme_editor.php:186
1039
+ msgid "Duplicate failed!"
1040
+ msgstr "Çoğaltma başarısız!"
1041
+
1042
+ #: ../util/theme-editor/theme_editor.php:187
1043
+ msgid "Please check the log for details."
1044
+ msgstr "Lütfen ayrıntılar için günlüğü kontrol edin."
1045
+
1046
+ #: ../util/theme-editor/theme_editor.php:188
1047
+ msgid "Are you sure you want to discard all changes?"
1048
+ msgstr "Tüm değişiklikleri iptal etmek istediğinizden emin misiniz?"
1049
+
1050
+ #: ../util/theme-editor/theme_editor.php:189
1051
  #, php-format
1052
+ msgid "Editing Theme: %s"
1053
+ msgstr "Tema Düzenleme: %s"
1054
+
1055
+ #: ../util/theme-editor/theme_editor.php:190
1056
+ #, php-format
1057
+ msgid "Creating Theme: %s"
1058
+ msgstr "Tema Oluşturma: %s"
1059
+
1060
+ #: ../util/theme-editor/theme_editor.php:191
1061
+ msgid "Submit Your Theme"
1062
+ msgstr "Temanızı Gönderin"
1063
+
1064
+ #: ../util/theme-editor/theme_editor.php:192
1065
+ msgid "Submit your User Theme for inclusion as a Stock Theme in Crayon!"
1066
+ msgstr ""
1067
+ "Crayon içine bir Hazır Tema olarak eklenmesi için Kullanıcı Temanızı "
1068
+ "gönderin!"
1069
+
1070
+ #: ../util/theme-editor/theme_editor.php:193
1071
+ msgid "Message"
1072
+ msgstr "Mesaj"
1073
+
1074
+ #: ../util/theme-editor/theme_editor.php:194
1075
+ msgid "Please include this theme in Crayon!"
1076
+ msgstr "Lütfen bu temayı Crayon içine dahil edin!"
1077
+
1078
+ # @ crayon-syntax-highlighter
1079
+ #: ../util/theme-editor/theme_editor.php:195
1080
+ msgid "Submit was successful."
1081
+ msgstr "Gönderme başarılı."
1082
+
1083
+ #: ../util/theme-editor/theme_editor.php:196
1084
+ msgid "Submit failed!"
1085
+ msgstr "Gönderme başarısız!"
1086
+
1087
+ #: ../util/theme-editor/theme_editor.php:268
1088
+ msgid "Information"
1089
+ msgstr "Bilgi"
1090
+
1091
+ # @ crayon-syntax-highlighter
1092
+ #: ../util/theme-editor/theme_editor.php:269
1093
+ msgid "Highlighting"
1094
+ msgstr "Vurgulama"
1095
+
1096
+ #: ../util/theme-editor/theme_editor.php:270
1097
+ msgid "Frame"
1098
+ msgstr "Çerçeve"
1099
 
1100
  # @ crayon-syntax-highlighter
1101
+ #: ../util/theme-editor/theme_editor.php:272
1102
+ msgid "Line Numbers"
1103
+ msgstr "Satır Numaralarına Geç"
1104
+
1105
+ #: ../util/theme-editor/theme_editor.php:275
1106
+ msgid "Background"
1107
+ msgstr "Arkaplan"
1108
+
1109
+ #: ../util/theme-editor/theme_editor.php:276
1110
+ msgid "Text"
1111
+ msgstr "Metin"
1112
+
1113
+ #: ../util/theme-editor/theme_editor.php:277
1114
+ msgid "Border"
1115
+ msgstr "Kenarlık"
1116
+
1117
+ #: ../util/theme-editor/theme_editor.php:278
1118
+ msgid "Top Border"
1119
+ msgstr "Üst Kenar"
1120
+
1121
+ # @ crayon-syntax-highlighter
1122
+ #: ../util/theme-editor/theme_editor.php:279
1123
+ msgid "Bottom Border"
1124
+ msgstr "Alt Kenarlık"
1125
+
1126
+ #: ../util/theme-editor/theme_editor.php:281
1127
+ msgid "Hover"
1128
+ msgstr "Vurgu"
1129
+
1130
+ #: ../util/theme-editor/theme_editor.php:282
1131
+ msgid "Active"
1132
+ msgstr "Aktif"
1133
+
1134
+ #: ../util/theme-editor/theme_editor.php:283
1135
+ msgid "Pressed"
1136
+ msgstr "Sıkıştırıldı"
1137
+
1138
+ #: ../util/theme-editor/theme_editor.php:284
1139
+ msgid "Pressed & Hover"
1140
+ msgstr "Sıkıştırma & Vurgu"
1141
+
1142
+ #: ../util/theme-editor/theme_editor.php:285
1143
+ msgid "Pressed & Active"
1144
+ msgstr "Sıkıştırma & Aktif"
1145
+
1146
+ #: ../util/theme-editor/theme_editor.php:288
1147
+ msgid "Buttons"
1148
+ msgstr "Butonlar"
1149
+
1150
+ #: ../util/theme-editor/theme_editor.php:290
1151
+ msgid "Normal"
1152
+ msgstr "Normal"
1153
+
1154
+ #: ../util/theme-editor/theme_editor.php:292
1155
+ msgid "Striped"
1156
+ msgstr "Şeritli"
1157
+
1158
+ # @ crayon-syntax-highlighter
1159
+ #: ../util/theme-editor/theme_editor.php:293
1160
+ msgid "Marked"
1161
+ msgstr "İşaretlendi"
1162
+
1163
+ #: ../util/theme-editor/theme_editor.php:294
1164
+ msgid "Striped & Marked"
1165
+ msgstr "Şeritli & İşaretli"
1166
+
1167
+ # @ crayon-syntax-highlighter
1168
+ #: ../util/theme-editor/theme_editor.php:324
1169
  msgid "Back To Settings"
1170
  msgstr "Ayarlara Geri Dön"
1171
 
1172
+ #: ../util/theme-editor/theme_editor.php:363
1173
+ msgid "Comment"
1174
+ msgstr "Yorum"
1175
+
1176
+ #: ../util/theme-editor/theme_editor.php:364
1177
+ msgid "String"
1178
+ msgstr "Dize"
1179
+
1180
+ #: ../util/theme-editor/theme_editor.php:365
1181
+ msgid "Preprocessor"
1182
+ msgstr "Ön işlemci"
1183
+
1184
+ # @ crayon-syntax-highlighter
1185
+ #: ../util/theme-editor/theme_editor.php:366
1186
+ msgid "Tag"
1187
+ msgstr "Etiket"
1188
+
1189
+ #: ../util/theme-editor/theme_editor.php:367
1190
+ msgid "Keyword"
1191
+ msgstr "Anahtar kelime"
1192
+
1193
+ #: ../util/theme-editor/theme_editor.php:368
1194
+ msgid "Statement"
1195
+ msgstr "Açıklama"
1196
+
1197
+ #: ../util/theme-editor/theme_editor.php:369
1198
+ msgid "Reserved"
1199
+ msgstr "Rezerve"
1200
+
1201
+ #: ../util/theme-editor/theme_editor.php:370
1202
+ msgid "Type"
1203
+ msgstr "Tür"
1204
+
1205
+ #: ../util/theme-editor/theme_editor.php:371
1206
+ msgid "Modifier"
1207
+ msgstr "Değiştirici"
1208
+
1209
+ #: ../util/theme-editor/theme_editor.php:372
1210
+ msgid "Identifier"
1211
+ msgstr "Tanımlayıcı"
1212
+
1213
+ #: ../util/theme-editor/theme_editor.php:373
1214
+ msgid "Entity"
1215
+ msgstr "Öğe"
1216
+
1217
+ #: ../util/theme-editor/theme_editor.php:374
1218
+ msgid "Variable"
1219
+ msgstr "Değişken"
1220
+
1221
+ #: ../util/theme-editor/theme_editor.php:375
1222
+ msgid "Constant"
1223
+ msgstr "Sabit"
1224
+
1225
+ #: ../util/theme-editor/theme_editor.php:376
1226
+ msgid "Operator"
1227
+ msgstr "Operatör"
1228
+
1229
+ #: ../util/theme-editor/theme_editor.php:377
1230
+ msgid "Symbol"
1231
+ msgstr "Sembol"
1232
+
1233
+ #: ../util/theme-editor/theme_editor.php:378
1234
+ msgid "Notation"
1235
+ msgstr "Notasyon"
1236
+
1237
+ #: ../util/theme-editor/theme_editor.php:379
1238
+ msgid "Faded"
1239
+ msgstr "Soluk"
1240
+
1241
+ #: ../util/theme-editor/theme_editor.php:380
1242
+ msgid "HTML"
1243
+ msgstr "HTML"
1244
+
1245
+ #: ../util/theme-editor/theme_editor.php:507
1246
+ msgid "(Used for Copy/Paste)"
1247
+ msgstr "(Kopyala/Yapıştır için kullanılır)"
trans/crayon-syntax-highlighter-zh_CN.mo CHANGED
Binary file
trans/crayon-syntax-highlighter-zh_CN.po CHANGED
@@ -1,967 +1,2393 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: Crayon Syntax Highlighter v1.14\n"
4
- "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: \n"
6
- "PO-Revision-Date: 2012-12-01 08:03:47+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:275
23
- #@ crayon-syntax-highlighter
24
- msgid "Toggle Plain Code"
25
- msgstr "纯文本显示代码"
26
-
27
- #: crayon_formatter.class.php:278
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:278
34
- #@ crayon-syntax-highlighter
35
- msgid "Copy Plain Code"
36
- msgstr "复制代码"
37
-
38
- #: crayon_formatter.class.php:280
39
- #@ crayon-syntax-highlighter
40
- msgid "Open Code In New Window"
41
- msgstr "在新窗口中显示代码"
42
-
43
- #: crayon_formatter.class.php:282
44
- #@ crayon-syntax-highlighter
45
- msgid "Toggle Line Numbers"
46
- msgstr "切换是否显示行编号"
47
-
48
- #: crayon_formatter.class.php:285
49
- #@ crayon-syntax-highlighter
50
- msgid "Contains Mixed Languages"
51
- msgstr "含多种语言"
52
-
53
- #: crayon_settings.class.php:143
54
- #@ crayon-syntax-highlighter
55
- msgid "Hourly"
56
- msgstr "每小时"
57
-
58
- #: crayon_settings.class.php:143
59
- #@ crayon-syntax-highlighter
60
- msgid "Daily"
61
- msgstr "每天"
62
-
63
- #: crayon_settings.class.php:144
64
- #@ crayon-syntax-highlighter
65
- msgid "Weekly"
66
- msgstr "每周"
67
-
68
- #: crayon_settings.class.php:144
69
- #@ crayon-syntax-highlighter
70
- msgid "Monthly"
71
- msgstr "每月"
72
-
73
- #: crayon_settings.class.php:145
74
- #@ crayon-syntax-highlighter
75
- msgid "Immediately"
76
- msgstr "立刻"
77
-
78
- #: crayon_settings.class.php:155
79
- #: crayon_settings.class.php:159
80
- #@ crayon-syntax-highlighter
81
- msgid "Max"
82
- msgstr "最大"
83
-
84
- #: crayon_settings.class.php:155
85
- #: crayon_settings.class.php:159
86
- #@ crayon-syntax-highlighter
87
- msgid "Min"
88
- msgstr "最小"
89
-
90
- #: crayon_settings.class.php:155
91
- #: crayon_settings.class.php:159
92
- #@ crayon-syntax-highlighter
93
- msgid "Static"
94
- msgstr "指定"
95
-
96
- #: crayon_settings.class.php:157
97
- #: crayon_settings.class.php:161
98
- #: crayon_settings_wp.class.php:582
99
- #: crayon_settings_wp.class.php:591
100
- #: crayon_settings_wp.class.php:811
101
- #@ crayon-syntax-highlighter
102
- msgid "Pixels"
103
- msgstr "px"
104
-
105
- #: crayon_settings.class.php:157
106
- #: crayon_settings.class.php:161
107
- #@ crayon-syntax-highlighter
108
- msgid "Percent"
109
- msgstr "%"
110
-
111
- #: crayon_settings.class.php:170
112
- #@ crayon-syntax-highlighter
113
- msgid "None"
114
- msgstr "从不"
115
-
116
- #: crayon_settings.class.php:170
117
- #@ crayon-syntax-highlighter
118
- msgid "Left"
119
- msgstr "左对齐"
120
-
121
- #: crayon_settings.class.php:170
122
- #@ crayon-syntax-highlighter
123
- msgid "Center"
124
- msgstr "居中"
125
-
126
- #: crayon_settings.class.php:170
127
- #@ crayon-syntax-highlighter
128
- msgid "Right"
129
- msgstr "右对齐"
130
-
131
- #: crayon_settings.class.php:172
132
- #: crayon_settings.class.php:196
133
- #@ crayon-syntax-highlighter
134
- msgid "On MouseOver"
135
- msgstr "鼠标经过"
136
-
137
- #: crayon_settings.class.php:172
138
- #: crayon_settings.class.php:178
139
- #@ crayon-syntax-highlighter
140
- msgid "Always"
141
- msgstr "始终显示"
142
-
143
- #: crayon_settings.class.php:172
144
- #: crayon_settings.class.php:178
145
- #@ crayon-syntax-highlighter
146
- msgid "Never"
147
- msgstr "从不显示"
148
-
149
- #: crayon_settings.class.php:178
150
- #@ crayon-syntax-highlighter
151
- msgid "When Found"
152
- msgstr "当发现时"
153
-
154
- #: crayon_settings.class.php:196
155
- #@ crayon-syntax-highlighter
156
- msgid "On Double Click"
157
- msgstr "双击"
158
-
159
- #: crayon_settings.class.php:196
160
- #@ crayon-syntax-highlighter
161
- msgid "On Single Click"
162
- msgstr "单击"
163
-
164
- #: crayon_settings.class.php:196
165
- #@ crayon-syntax-highlighter
166
- msgid "Disable Mouse Events"
167
- msgstr "禁止鼠标行为"
168
-
169
- #: crayon_settings.class.php:203
170
- #@ crayon-syntax-highlighter
171
- msgid "An error has occurred. Please try again later."
172
- msgstr "发生错误,请稍后重试。"
173
-
174
- #: crayon_settings_wp.class.php:45
175
- #: crayon_settings_wp.class.php:130
176
- #: crayon_settings_wp.class.php:983
177
- #: util/tag-editor/crayon_tag_editor_wp.class.php:242
178
- #@ crayon-syntax-highlighter
179
- msgid "Settings"
180
- msgstr "设置"
181
-
182
- #: crayon_settings_wp.class.php:108
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:145
188
- #@ crayon-syntax-highlighter
189
- msgid "Save Changes"
190
- msgstr "保存设置"
191
-
192
- #: crayon_settings_wp.class.php:152
193
- #@ crayon-syntax-highlighter
194
- msgid "Reset Settings"
195
- msgstr "初始化设置"
196
-
197
- #: crayon_settings_wp.class.php:328
198
- #@ crayon-syntax-highlighter
199
- msgid "General"
200
- msgstr "一般"
201
-
202
- #: crayon_settings_wp.class.php:329
203
- #@ crayon-syntax-highlighter
204
- msgid "Theme"
205
- msgstr "主题"
206
-
207
- #: crayon_settings_wp.class.php:330
208
- #@ crayon-syntax-highlighter
209
- msgid "Font"
210
- msgstr "字体"
211
-
212
- #: crayon_settings_wp.class.php:331
213
- #@ crayon-syntax-highlighter
214
- msgid "Metrics"
215
- msgstr "排版"
216
-
217
- #: crayon_settings_wp.class.php:332
218
- #@ crayon-syntax-highlighter
219
- msgid "Toolbar"
220
- msgstr "工具栏"
221
-
222
- #: crayon_settings_wp.class.php:333
223
- #@ crayon-syntax-highlighter
224
- msgid "Lines"
225
- msgstr ""
226
-
227
- #: crayon_settings_wp.class.php:334
228
- #: util/tag-editor/crayon_tag_editor_wp.class.php:205
229
- #@ crayon-syntax-highlighter
230
- msgid "Code"
231
- msgstr "代码"
232
-
233
- #: crayon_settings_wp.class.php:335
234
- #@ crayon-syntax-highlighter
235
- msgid "Tags"
236
- msgstr "标签"
237
-
238
- #: crayon_settings_wp.class.php:336
239
- #@ crayon-syntax-highlighter
240
- msgid "Languages"
241
- msgstr "语言"
242
-
243
- #: crayon_settings_wp.class.php:337
244
- #@ crayon-syntax-highlighter
245
- msgid "Files"
246
- msgstr "文件"
247
-
248
- #: crayon_settings_wp.class.php:339
249
- #@ crayon-syntax-highlighter
250
- msgid "Tag Editor"
251
- msgstr "标签编辑器"
252
-
253
- #: crayon_settings_wp.class.php:340
254
- #@ crayon-syntax-highlighter
255
- msgid "Misc"
256
- msgstr "其它"
257
-
258
- #: crayon_settings_wp.class.php:343
259
- #@ crayon-syntax-highlighter
260
- msgid "Debug"
261
- msgstr "调试"
262
-
263
- #: crayon_settings_wp.class.php:344
264
- #@ crayon-syntax-highlighter
265
- msgid "Errors"
266
- msgstr "错误"
267
-
268
- #: crayon_settings_wp.class.php:345
269
- #@ crayon-syntax-highlighter
270
- msgid "Log"
271
- msgstr "日志"
272
-
273
- #: crayon_settings_wp.class.php:348
274
- #@ crayon-syntax-highlighter
275
- msgid "About"
276
- msgstr "关于"
277
-
278
- #: crayon_settings_wp.class.php:544
279
- #@ crayon-syntax-highlighter
280
- msgid "Crayon Help"
281
- msgstr "帮助"
282
-
283
- #: crayon_settings_wp.class.php:559
284
- #@ crayon-syntax-highlighter
285
- msgid "Height"
286
- msgstr "高"
287
-
288
- #: crayon_settings_wp.class.php:565
289
- #@ crayon-syntax-highlighter
290
- msgid "Width"
291
- msgstr "宽"
292
-
293
- #: crayon_settings_wp.class.php:571
294
- #@ crayon-syntax-highlighter
295
- msgid "Top Margin"
296
- msgstr "顶部外边距"
297
-
298
- #: crayon_settings_wp.class.php:572
299
- #@ crayon-syntax-highlighter
300
- msgid "Bottom Margin"
301
- msgstr "底部外边距"
302
-
303
- #: crayon_settings_wp.class.php:573
304
- #: crayon_settings_wp.class.php:578
305
- #@ crayon-syntax-highlighter
306
- msgid "Left Margin"
307
- msgstr "左外边距"
308
-
309
- #: crayon_settings_wp.class.php:574
310
- #: crayon_settings_wp.class.php:578
311
- #@ crayon-syntax-highlighter
312
- msgid "Right Margin"
313
- msgstr "右外边距"
314
-
315
- #: crayon_settings_wp.class.php:584
316
- #@ crayon-syntax-highlighter
317
- msgid "Horizontal Alignment"
318
- msgstr "对齐方式"
319
-
320
- #: crayon_settings_wp.class.php:587
321
- #@ crayon-syntax-highlighter
322
- msgid "Allow floating elements to surround Crayon"
323
- msgstr "允许插件代码周围使用浮动元素"
324
-
325
- #: crayon_settings_wp.class.php:589
326
- #@ crayon-syntax-highlighter
327
- msgid "Inline Margin"
328
- msgstr "行内间距"
329
-
330
- #: crayon_settings_wp.class.php:597
331
- #@ crayon-syntax-highlighter
332
- msgid "Display the Toolbar"
333
- msgstr "工具栏显示方式:"
334
-
335
- #: crayon_settings_wp.class.php:600
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:601
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:602
346
- #@ crayon-syntax-highlighter
347
- msgid "Delay hiding the toolbar on MouseOut"
348
- msgstr "工具栏消失附带延迟效果"
349
-
350
- #: crayon_settings_wp.class.php:604
351
- #@ crayon-syntax-highlighter
352
- msgid "Display the title when provided"
353
- msgstr "有标题则显示标题"
354
-
355
- #: crayon_settings_wp.class.php:605
356
- #@ crayon-syntax-highlighter
357
- msgid "Display the language"
358
- msgstr "显示语言方式:"
359
-
360
- #: crayon_settings_wp.class.php:612
361
- #@ crayon-syntax-highlighter
362
- msgid "Display striped code lines"
363
- msgstr "条纹显示代码"
364
-
365
- #: crayon_settings_wp.class.php:613
366
- #@ crayon-syntax-highlighter
367
- msgid "Enable line marking for important lines"
368
- msgstr "允许关键行高亮"
369
-
370
- #: crayon_settings_wp.class.php:615
371
- #@ crayon-syntax-highlighter
372
- msgid "Display line numbers by default"
373
- msgstr "默认显示行编号"
374
-
375
- #: crayon_settings_wp.class.php:616
376
- #@ crayon-syntax-highlighter
377
- msgid "Enable line number toggling"
378
- msgstr "允许切换显示行编号"
379
-
380
- #: crayon_settings_wp.class.php:619
381
- #@ crayon-syntax-highlighter
382
- msgid "Start line numbers from"
383
- msgstr "行编号始于"
384
-
385
- #: crayon_settings_wp.class.php:629
386
- #@ crayon-syntax-highlighter
387
- msgid "When no language is provided, use the fallback"
388
- msgstr "当没指定语言,则默认语言为"
389
-
390
- #: crayon_settings_wp.class.php:635
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:636
399
- #@ crayon-syntax-highlighter
400
- msgid "Parsing was successful"
401
- msgstr "加载完成"
402
-
403
- #: crayon_settings_wp.class.php:636
404
- #@ crayon-syntax-highlighter
405
- msgid "Parsing was unsuccessful"
406
- msgstr "加载失败"
407
-
408
- #: crayon_settings_wp.class.php:642
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:645
415
- #@ crayon-syntax-highlighter
416
- msgid "Show Languages"
417
- msgstr "显示全部语言"
418
-
419
- #: crayon_settings_wp.class.php:782
420
- #: crayon_settings_wp.class.php:783
421
- #@ crayon-syntax-highlighter
422
- msgid "Loading..."
423
- msgstr "载入中..."
424
-
425
- #: crayon_settings_wp.class.php:985
426
- #: util/theme-editor/theme_editor_content.php:27
427
- #@ crayon-syntax-highlighter
428
- msgid "Theme Editor"
429
- msgstr "主题编辑器"
430
-
431
- #: crayon_settings_wp.class.php:788
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:792
438
- #@ crayon-syntax-highlighter
439
- msgid "Enable Live Preview"
440
- msgstr "允许即时预览"
441
-
442
- #: crayon_settings_wp.class.php:794
443
- #@ crayon-syntax-highlighter
444
- msgid "Enqueue themes in the header (more efficient)."
445
- msgstr "在头部就加载主题(推荐)"
446
-
447
- #: crayon_settings_wp.class.php:680
448
- #: crayon_settings_wp.class.php:794
449
- #: crayon_settings_wp.class.php:820
450
- #: crayon_settings_wp.class.php:842
451
- #: crayon_settings_wp.class.php:855
452
- #: crayon_settings_wp.class.php:856
453
- #: crayon_settings_wp.class.php:857
454
- #: crayon_settings_wp.class.php:858
455
- #: crayon_settings_wp.class.php:859
456
- #: crayon_settings_wp.class.php:860
457
- #: crayon_settings_wp.class.php:882
458
- #: crayon_settings_wp.class.php:885
459
- #: crayon_settings_wp.class.php:894
460
- #: crayon_settings_wp.class.php:895
461
- #@ crayon-syntax-highlighter
462
- msgid "?"
463
- msgstr ""
464
-
465
- #: crayon_settings_wp.class.php:797
466
- #, php-format
467
- #@ crayon-syntax-highlighter
468
- msgid "The selected theme with id %s could not be loaded"
469
- msgstr "ID为 %s 的主题加载失败"
470
-
471
- #: crayon_settings_wp.class.php:809
472
- #@ crayon-syntax-highlighter
473
- msgid "Custom Font Size"
474
- msgstr "字体大小"
475
-
476
- #: crayon_settings_wp.class.php:814
477
- #, php-format
478
- #@ crayon-syntax-highlighter
479
- msgid "The selected font with id %s could not be loaded"
480
- msgstr "ID为 %s 的字体加载失败"
481
-
482
- #: crayon_settings_wp.class.php:820
483
- #@ crayon-syntax-highlighter
484
- msgid "Enqueue fonts in the header (more efficient)."
485
- msgstr "在头部就加载字体(推荐)"
486
-
487
- #: crayon_settings_wp.class.php:825
488
- #@ crayon-syntax-highlighter
489
- msgid "Enable plain code view and display"
490
- msgstr "允许纯文本显示代码且显示方式为"
491
-
492
- #: crayon_settings_wp.class.php:828
493
- #@ crayon-syntax-highlighter
494
- msgid "Enable plain code toggling"
495
- msgstr "允许切换纯文本显示代码"
496
-
497
- #: crayon_settings_wp.class.php:829
498
- #@ crayon-syntax-highlighter
499
- msgid "Show the plain code by default"
500
- msgstr "默认纯文本显示代码"
501
-
502
- #: crayon_settings_wp.class.php:830
503
- #@ crayon-syntax-highlighter
504
- msgid "Enable code copy/paste"
505
- msgstr "允许代码复制/粘贴"
506
-
507
- #: crayon_settings_wp.class.php:832
508
- #@ crayon-syntax-highlighter
509
- msgid "Enable opening code in a window"
510
- msgstr "允许新窗口显示代码"
511
-
512
- #: crayon_settings_wp.class.php:833
513
- #@ crayon-syntax-highlighter
514
- msgid "Always display scrollbars"
515
- msgstr "总是显示滚动条"
516
-
517
- #: crayon_settings_wp.class.php:846
518
- #@ crayon-syntax-highlighter
519
- msgid "Tab size in spaces"
520
- msgstr "Tab 等于几个空格"
521
-
522
- #: crayon_settings_wp.class.php:836
523
- #@ crayon-syntax-highlighter
524
- msgid "Decode HTML entities in code"
525
- msgstr "在代码中进行 HTML 解码"
526
-
527
- #: crayon_settings_wp.class.php:838
528
- #@ crayon-syntax-highlighter
529
- msgid "Decode HTML entities in attributes"
530
- msgstr "在属性中进行 HTML 解码"
531
-
532
- #: crayon_settings_wp.class.php:840
533
- #@ crayon-syntax-highlighter
534
- msgid "Remove whitespace surrounding the shortcode content"
535
- msgstr "删除短代码周围的空白"
536
-
537
- #: crayon_settings_wp.class.php:842
538
- #@ crayon-syntax-highlighter
539
- msgid "Allow Mixed Language Highlighting with delimiters and tags."
540
- msgstr "允许多重语言高亮使用分隔符和标签"
541
-
542
- #: crayon_settings_wp.class.php:844
543
- #@ crayon-syntax-highlighter
544
- msgid "Show Mixed Language Icon (+)"
545
- msgstr "显示多重语言图标 (+)"
546
-
547
- #: crayon_settings_wp.class.php:855
548
- #@ crayon-syntax-highlighter
549
- msgid "Capture Mini Tags like [php][/php] as Crayons."
550
- msgstr "使用迷你标签(如[php][/php])"
551
-
552
- #: crayon_settings_wp.class.php:856
553
- #@ crayon-syntax-highlighter
554
- msgid "Capture Inline Tags like {php}{/php} inside sentences."
555
- msgstr "捕获如{php}{/php}形式的行内标签"
556
-
557
- #: crayon_settings_wp.class.php:857
558
- #@ crayon-syntax-highlighter
559
- msgid "Wrap Inline Tags"
560
- msgstr "行内标签自动换行"
561
-
562
- #: crayon_settings_wp.class.php:858
563
- #@ crayon-syntax-highlighter
564
- msgid "Capture `backquotes` as &lt;code&gt;"
565
- msgstr "把 `反引号` 绑定为 &lt;code&gt;"
566
-
567
- #: crayon_settings_wp.class.php:859
568
- #@ crayon-syntax-highlighter
569
- msgid "Capture &lt;pre&gt; tags as Crayons"
570
- msgstr "指定 &lt;pre&gt; 为插件所有"
571
-
572
- #: crayon_settings_wp.class.php:860
573
- #@ crayon-syntax-highlighter
574
- msgid "Enable [plain][/plain] tag."
575
- msgstr "启用 [plain][/plain] 标签"
576
-
577
- #: crayon_settings_wp.class.php:865
578
- #@ crayon-syntax-highlighter
579
- msgid "When loading local files and a relative path is given for the URL, use the absolute path"
580
- msgstr "当 URL 为相对路径,使用的绝对路径为"
581
-
582
- #: crayon_settings_wp.class.php:868
583
- #@ crayon-syntax-highlighter
584
- msgid "Followed by your relative URL."
585
- msgstr "置于相对路径之前"
586
-
587
- #: crayon_settings_wp.class.php:883
588
- #, php-format
589
- #@ crayon-syntax-highlighter
590
- msgid "Use %s to separate setting names from values in the &lt;pre&gt; class attribute"
591
- msgstr "&lt;pre&gt; 标签中使用 %s 分割每个属性与属性值。"
592
-
593
- #: crayon_settings_wp.class.php:891
594
- #@ crayon-syntax-highlighter
595
- msgid "Clear the cache used to store remote code requests"
596
- msgstr "清理用于存储远程代码的缓存频率"
597
-
598
- #: crayon_settings_wp.class.php:893
599
- #@ crayon-syntax-highlighter
600
- msgid "Clear Now"
601
- msgstr "立刻清理"
602
-
603
- #: crayon_settings_wp.class.php:894
604
- #@ crayon-syntax-highlighter
605
- msgid "Attempt to load Crayon's CSS and JavaScript only when needed"
606
- msgstr "按需加载插件的 CSS 与 JavaScript"
607
-
608
- #: crayon_settings_wp.class.php:895
609
- #@ crayon-syntax-highlighter
610
- msgid "Disable enqueuing for page templates that may contain The Loop."
611
- msgstr ""
612
-
613
- #: crayon_settings_wp.class.php:896
614
- #@ crayon-syntax-highlighter
615
- msgid "Allow Crayons inside comments"
616
- msgstr "允许在评论中使用"
617
-
618
- #: crayon_settings_wp.class.php:898
619
- #@ crayon-syntax-highlighter
620
- msgid "Load Crayons only from the main Wordpress query"
621
- msgstr ""
622
-
623
- #: crayon_settings_wp.class.php:899
624
- #@ crayon-syntax-highlighter
625
- msgid "Disable mouse gestures for touchscreen devices (eg. MouseOver)"
626
- msgstr "使用触屏设备时禁止鼠标行为(如鼠标经过)"
627
-
628
- #: crayon_settings_wp.class.php:900
629
- #@ crayon-syntax-highlighter
630
- msgid "Disable animations"
631
- msgstr "禁止动画效果"
632
-
633
- #: crayon_settings_wp.class.php:901
634
- #@ crayon-syntax-highlighter
635
- msgid "Disable runtime stats"
636
- msgstr "禁止运行时间统计"
637
-
638
- #: crayon_settings_wp.class.php:907
639
- #@ crayon-syntax-highlighter
640
- msgid "Log errors for individual Crayons"
641
- msgstr "使用独立的错误日志"
642
-
643
- #: crayon_settings_wp.class.php:908
644
- #@ crayon-syntax-highlighter
645
- msgid "Log system-wide errors"
646
- msgstr "启用系统错误日志"
647
-
648
- #: crayon_settings_wp.class.php:909
649
- #@ crayon-syntax-highlighter
650
- msgid "Display custom message for errors"
651
- msgstr "自定义错误提示"
652
-
653
- #: crayon_settings_wp.class.php:921
654
- #@ crayon-syntax-highlighter
655
- msgid "Show Log"
656
- msgstr "显示日志"
657
-
658
- #: crayon_settings_wp.class.php:921
659
- #@ crayon-syntax-highlighter
660
- msgid "Hide Log"
661
- msgstr "隐藏日志"
662
-
663
- #: crayon_settings_wp.class.php:923
664
- #@ crayon-syntax-highlighter
665
- msgid "Clear Log"
666
- msgstr "清理日志"
667
-
668
- #: crayon_settings_wp.class.php:924
669
- #@ crayon-syntax-highlighter
670
- msgid "Email Admin"
671
- msgstr "发邮件给管理员"
672
-
673
- #: crayon_settings_wp.class.php:926
674
- #@ crayon-syntax-highlighter
675
- msgid "Email Developer"
676
- msgstr "发邮件给开发者"
677
-
678
- #: crayon_settings_wp.class.php:928
679
- #@ crayon-syntax-highlighter
680
- msgid "The log is currently empty."
681
- msgstr "日志为空,"
682
-
683
- #: crayon_settings_wp.class.php:930
684
- #@ crayon-syntax-highlighter
685
- msgid "The log file exists and is writable."
686
- msgstr "日志文件存在并可写。"
687
-
688
- #: crayon_settings_wp.class.php:930
689
- #@ crayon-syntax-highlighter
690
- msgid "The log file exists and is not writable."
691
- msgstr "日志文件存在但不可写。"
692
-
693
- #: crayon_settings_wp.class.php:932
694
- #@ crayon-syntax-highlighter
695
- msgid "The log file does not exist and is not writable."
696
- msgstr "日志文件不存在且不可写。"
697
-
698
- #: crayon_settings_wp.class.php:942
699
- #@ crayon-syntax-highlighter
700
- msgid "Version"
701
- msgstr "版本"
702
-
703
- #: crayon_settings_wp.class.php:944
704
- #@ crayon-syntax-highlighter
705
- msgid "Developer"
706
- msgstr "开发者"
707
-
708
- #: crayon_settings_wp.class.php:945
709
- #@ crayon-syntax-highlighter
710
- msgid "Translators"
711
- msgstr "翻译者"
712
-
713
- #: crayon_settings_wp.class.php:971
714
- #@ crayon-syntax-highlighter
715
- msgid "The result of innumerable hours of hard work over many months. It's an ongoing project, keep me motivated!"
716
- msgstr "本插件是数月辛勤劳动的结果,为了让它不断的完善,如果你喜欢它,请告诉我!"
717
-
718
- #: crayon_settings_wp.class.php:987
719
- #@ crayon-syntax-highlighter
720
- msgid "Donate"
721
- msgstr "捐助"
722
-
723
- #. translators: plugin header field 'Name'
724
- #: crayon_wp.class.php:0
725
- #@ crayon-syntax-highlighter
726
- msgid "Crayon Syntax Highlighter"
727
- msgstr ""
728
-
729
- #. translators: plugin header field 'PluginURI'
730
- #: crayon_wp.class.php:0
731
- #@ crayon-syntax-highlighter
732
- msgid "http://ak.net84.net/projects/crayon-syntax-highlighter"
733
- msgstr ""
734
-
735
- #. translators: plugin header field 'Description'
736
- #: crayon_wp.class.php:0
737
- #@ crayon-syntax-highlighter
738
- msgid "Supports multiple languages, themes, highlighting from a URL, local file or post text."
739
- msgstr "支持多种和多重语言高亮,丰富的高亮主题;无论是本地还是远端的文件,或文本代码,都能一律高亮!"
740
-
741
- #. translators: plugin header field 'Author'
742
- #: crayon_wp.class.php:0
743
- #@ crayon-syntax-highlighter
744
- msgid "Aram Kocharyan"
745
- msgstr ""
746
-
747
- #. translators: plugin header field 'AuthorURI'
748
- #: crayon_wp.class.php:0
749
- #@ crayon-syntax-highlighter
750
- msgid "http://ak.net84.net/"
751
- msgstr ""
752
-
753
- #: util/tag-editor/crayon_tag_editor_wp.class.php:64
754
- #@ crayon-syntax-highlighter
755
- msgid "Add Crayon Code"
756
- msgstr "插入代码高亮"
757
-
758
- #: util/tag-editor/crayon_tag_editor_wp.class.php:65
759
- #@ crayon-syntax-highlighter
760
- msgid "Edit Crayon Code"
761
- msgstr "编辑代码高亮"
762
-
763
- #: util/tag-editor/crayon_tag_editor_wp.class.php:66
764
- #@ crayon-syntax-highlighter
765
- msgid "Add"
766
- msgstr "插入"
767
-
768
- #: util/tag-editor/crayon_tag_editor_wp.class.php:67
769
- #@ crayon-syntax-highlighter
770
- msgid "Save"
771
- msgstr "保存"
772
-
773
- #: util/tag-editor/crayon_tag_editor_wp.class.php:183
774
- #@ crayon-syntax-highlighter
775
- msgid "Title"
776
- msgstr "标题"
777
-
778
- #: util/tag-editor/crayon_tag_editor_wp.class.php:185
779
- #@ crayon-syntax-highlighter
780
- msgid "A short description"
781
- msgstr "一段简短的描述"
782
-
783
- #: util/tag-editor/crayon_tag_editor_wp.class.php:187
784
- #@ crayon-syntax-highlighter
785
- msgid "Inline"
786
- msgstr "行内"
787
-
788
- #: util/tag-editor/crayon_tag_editor_wp.class.php:194
789
- #@ crayon-syntax-highlighter
790
- msgid "Language"
791
- msgstr "语言"
792
-
793
- #: util/tag-editor/crayon_tag_editor_wp.class.php:199
794
- #@ crayon-syntax-highlighter
795
- msgid "Marked Lines"
796
- msgstr "关键行"
797
-
798
- #: util/tag-editor/crayon_tag_editor_wp.class.php:200
799
- #@ crayon-syntax-highlighter
800
- msgid "(e.g. 1,2,3-5)"
801
- msgstr "(如 1,2,3-5)"
802
-
803
- #: util/tag-editor/crayon_tag_editor_wp.class.php:207
804
- #@ crayon-syntax-highlighter
805
- msgid "Clear"
806
- msgstr "清理"
807
-
808
- #: util/tag-editor/crayon_tag_editor_wp.class.php:211
809
- #@ crayon-syntax-highlighter
810
- msgid "Paste your code here, or type it in manually."
811
- msgstr "粘贴代码到这里,或者手工输入。"
812
-
813
- #: util/tag-editor/crayon_tag_editor_wp.class.php:215
814
- #@ crayon-syntax-highlighter
815
- msgid "URL"
816
- msgstr "URL"
817
-
818
- #: util/tag-editor/crayon_tag_editor_wp.class.php:217
819
- #@ crayon-syntax-highlighter
820
- msgid "Relative local path or absolute URL"
821
- msgstr "相对路径或绝对路径 URL"
822
-
823
- #: util/tag-editor/crayon_tag_editor_wp.class.php:220
824
- #@ crayon-syntax-highlighter
825
- msgid "If the URL fails to load, the code above will be shown instead. If no code exists, an error is shown."
826
- msgstr "如果 URL 不能加载,将会使用下面的代码代替显示,如果也没有代码,则显示错误提示。"
827
-
828
- #: util/tag-editor/crayon_tag_editor_wp.class.php:222
829
- #, php-format
830
- #@ crayon-syntax-highlighter
831
- msgid "If a relative local path is given it will be appended to %s - which is defined in %sCrayon &gt; Settings &gt; Files%s."
832
- msgstr "如果是相对路径,则前面的路径将是 %s (在 %sCrayon &gt; Settings &gt; Files%s 里面设置)"
833
-
834
- #: util/tag-editor/crayon_tag_editor_wp.class.php:247
835
- #@ crayon-syntax-highlighter
836
- msgid "Change the following settings to override their global values."
837
- msgstr "以下设置优先级高于默认设置,"
838
-
839
- #: util/tag-editor/crayon_tag_editor_wp.class.php:249
840
- #@ crayon-syntax-highlighter
841
- msgid "Only changes (shown yellow) are applied."
842
- msgstr "只有背景色为黄色的选项优先级会高于默认设置,"
843
-
844
- #: util/tag-editor/crayon_tag_editor_wp.class.php:251
845
- #, php-format
846
- #@ crayon-syntax-highlighter
847
- msgid "Future changes to the global settings under %sCrayon &gt; Settings%s won't affect overridden settings."
848
- msgstr "其它设置会沿用默认设置(%s点击前往设置%s)。"
849
-
850
- #: util/theme-editor/theme_editor_content.php:39
851
- #@ crayon-syntax-highlighter
852
- msgid "Back To Settings"
853
- msgstr "返回设置"
854
-
855
- #: crayon_settings_wp.class.php:897
856
- #@ crayon-syntax-highlighter
857
- msgid "Remove Crayons from excerpts"
858
- msgstr "文章摘要不启用代码高亮"
859
-
860
- #: crayon_formatter.class.php:276
861
- #@ crayon-syntax-highlighter
862
- msgid "Toggle Line Wrap"
863
- msgstr "切换自动换行"
864
-
865
- #: crayon_settings_wp.class.php:338
866
- #@ crayon-syntax-highlighter
867
- msgid "Posts"
868
- msgstr "文章"
869
-
870
- #: crayon_settings_wp.class.php:614
871
- #@ crayon-syntax-highlighter
872
- msgid "Enable line ranges for showing only parts of code"
873
- msgstr "开启 指定显示的行 功能"
874
-
875
- #: crayon_settings_wp.class.php:617
876
- #@ crayon-syntax-highlighter
877
- msgid "Wrap lines by default"
878
- msgstr "默认自动换行"
879
-
880
- #: crayon_settings_wp.class.php:618
881
- #@ crayon-syntax-highlighter
882
- msgid "Enable line wrap toggling"
883
- msgstr "允许切换自动换行"
884
-
885
- #: crayon_settings_wp.class.php:680
886
- #@ crayon-syntax-highlighter
887
- msgid "Show Crayon Posts"
888
- msgstr "显示已使用代码高亮的文章"
889
-
890
- #: crayon_settings_wp.class.php:782
891
- #@ crayon-syntax-highlighter
892
- msgid "Edit"
893
- msgstr "编辑"
894
-
895
- #: crayon_settings_wp.class.php:783
896
- #@ crayon-syntax-highlighter
897
- msgid "Create"
898
- msgstr "创建"
899
-
900
- #: crayon_settings_wp.class.php:848
901
- #@ crayon-syntax-highlighter
902
- msgid "Blank lines before code:"
903
- msgstr "代码高亮前的空行数:"
904
-
905
- #: crayon_settings_wp.class.php:850
906
- #@ crayon-syntax-highlighter
907
- msgid "Blank lines after code:"
908
- msgstr "代码高亮后的空行数:"
909
-
910
- #: crayon_settings_wp.class.php:875
911
- #@ crayon-syntax-highlighter
912
- msgid "Convert Legacy Tags"
913
- msgstr "转换迷你标签"
914
-
915
- #: crayon_settings_wp.class.php:878
916
- #@ crayon-syntax-highlighter
917
- msgid "No Legacy Tags Found"
918
- msgstr "暂无迷你标签"
919
-
920
- #: crayon_settings_wp.class.php:882
921
- #@ crayon-syntax-highlighter
922
- msgid "Convert existing Crayon tags to Tag Editor format (&lt;pre&gt;)"
923
- msgstr "转换已使用的迷你标签为兼容性更好的标准格式 (&lt;pre&gt;)"
924
-
925
- #: crayon_settings_wp.class.php:886
926
- #@ crayon-syntax-highlighter
927
- msgid "Display the Tag Editor in any TinyMCE instances on the frontend"
928
- msgstr "在前端的 TinyMCE 编辑器显示标签编辑器"
929
-
930
- #: crayon_settings_wp.class.php:887
931
- #@ crayon-syntax-highlighter
932
- msgid "Display Tag Editor settings on the frontend"
933
- msgstr "在前端显示标签编辑器的设置"
934
-
935
- #. translators: plugin header field 'Version'
936
- #: crayon_wp.class.php:0
937
- #@ crayon-syntax-highlighter
938
- msgid "1.14"
939
- msgstr ""
940
-
941
- #: util/tag-editor/crayon_tag_editor_wp.class.php:189
942
- #@ crayon-syntax-highlighter
943
- msgid "Don't Highlight"
944
- msgstr "取消高亮"
945
-
946
- #: util/tag-editor/crayon_tag_editor_wp.class.php:197
947
- #@ crayon-syntax-highlighter
948
- msgid "Line Range"
949
- msgstr "指定显示的行"
950
-
951
- #: util/tag-editor/crayon_tag_editor_wp.class.php:198
952
- #@ crayon-syntax-highlighter
953
- msgid "(e.g. 3-5 or 3)"
954
- msgstr "(如 3-5 或 3)"
955
-
956
- #: util/theme-editor/theme_editor_content.php:32
957
- #, php-format
958
- #@ crayon-syntax-highlighter
959
- msgid "Editing \"%s\" Theme"
960
- msgstr ""
961
-
962
- #: util/theme-editor/theme_editor_content.php:34
963
- #, php-format
964
- #@ crayon-syntax-highlighter
965
- msgid "Creating Theme From \"%s\""
966
- msgstr ""
967
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ <<<<<<< HEAD
4
+ <<<<<<< HEAD
5
+ "Project-Id-Version: Crayon Syntax Highlighter v2.0.2\n"
6
+ "Report-Msgid-Bugs-To: \n"
7
+ "POT-Creation-Date: \n"
8
+ "PO-Revision-Date: 2013-01-04 18:27:03+0000\n"
9
+ =======
10
+ =======
11
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
12
+ "Project-Id-Version: Crayon Syntax Highlighter v2.0.1\n"
13
+ "Report-Msgid-Bugs-To: \n"
14
+ "POT-Creation-Date: \n"
15
+ "PO-Revision-Date: 2013-01-01 15:31:12+0000\n"
16
+ <<<<<<< HEAD
17
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
18
+ =======
19
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
20
+ "Last-Translator: admin <admin@neverno.me>\n"
21
+ "Language-Team: \n"
22
+ "MIME-Version: 1.0\n"
23
+ "Content-Type: text/plain; charset=UTF-8\n"
24
+ "Content-Transfer-Encoding: 8bit\n"
25
+ "Plural-Forms: nplurals=2; plural=1;\n"
26
+ "X-Poedit-Language: Chinese\n"
27
+ "X-Poedit-Country: PEOPLE'S REPUBLIC OF CHINA\n"
28
+ "X-Poedit-SourceCharset: utf-8\n"
29
+ "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"
30
+ "X-Poedit-Basepath: ../\n"
31
+ "X-Poedit-Bookmarks: \n"
32
+ "X-Poedit-SearchPath-0: .\n"
33
+ "X-Textdomain-Support: yes"
34
+
35
+ #: crayon_formatter.class.php:274
36
+ #@ crayon-syntax-highlighter
37
+ msgid "Toggle Plain Code"
38
+ msgstr "纯文本显示代码"
39
+
40
+ #: crayon_formatter.class.php:278
41
+ #, php-format
42
+ #@ crayon-syntax-highlighter
43
+ msgid "Press %s to Copy, %s to Paste"
44
+ msgstr "使用 %s 复制,使用 %s 粘贴。"
45
+
46
+ #: crayon_formatter.class.php:278
47
+ #@ crayon-syntax-highlighter
48
+ msgid "Copy Plain Code"
49
+ msgstr "复制代码"
50
+
51
+ #: crayon_formatter.class.php:280
52
+ #@ crayon-syntax-highlighter
53
+ msgid "Open Code In New Window"
54
+ msgstr "在新窗口中显示代码"
55
+
56
+ #: crayon_formatter.class.php:282
57
+ #@ crayon-syntax-highlighter
58
+ msgid "Toggle Line Numbers"
59
+ <<<<<<< HEAD
60
+ <<<<<<< HEAD
61
+ msgstr "切换显示行编号"
62
+ =======
63
+ msgstr "切换是否显示行编号"
64
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
65
+ =======
66
+ msgstr "切换是否显示行编号"
67
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
68
+
69
+ #: crayon_formatter.class.php:285
70
+ #@ crayon-syntax-highlighter
71
+ msgid "Contains Mixed Languages"
72
+ msgstr "含多种语言"
73
+
74
+ #: crayon_settings.class.php:145
75
+ #@ crayon-syntax-highlighter
76
+ msgid "Hourly"
77
+ msgstr "每小时"
78
+
79
+ #: crayon_settings.class.php:145
80
+ #@ crayon-syntax-highlighter
81
+ msgid "Daily"
82
+ msgstr "每天"
83
+
84
+ #: crayon_settings.class.php:146
85
+ #@ crayon-syntax-highlighter
86
+ msgid "Weekly"
87
+ msgstr "每周"
88
+
89
+ #: crayon_settings.class.php:146
90
+ #@ crayon-syntax-highlighter
91
+ msgid "Monthly"
92
+ msgstr "每月"
93
+
94
+ #: crayon_settings.class.php:147
95
+ #@ crayon-syntax-highlighter
96
+ msgid "Immediately"
97
+ msgstr "立刻"
98
+
99
+ #: crayon_settings.class.php:157
100
+ #: crayon_settings.class.php:161
101
+ #@ crayon-syntax-highlighter
102
+ msgid "Max"
103
+ msgstr "最大"
104
+
105
+ #: crayon_settings.class.php:157
106
+ #: crayon_settings.class.php:161
107
+ #@ crayon-syntax-highlighter
108
+ msgid "Min"
109
+ msgstr "最小"
110
+
111
+ #: crayon_settings.class.php:157
112
+ #: crayon_settings.class.php:161
113
+ #@ crayon-syntax-highlighter
114
+ msgid "Static"
115
+ msgstr "指定"
116
+
117
+ #: crayon_settings.class.php:159
118
+ #: crayon_settings.class.php:163
119
+ #: crayon_settings_wp.class.php:722
120
+ #: crayon_settings_wp.class.php:731
121
+ <<<<<<< HEAD
122
+ <<<<<<< HEAD
123
+ #: crayon_settings_wp.class.php:1005
124
+ =======
125
+ #: crayon_settings_wp.class.php:1004
126
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
127
+ =======
128
+ #: crayon_settings_wp.class.php:1004
129
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
130
+ #@ crayon-syntax-highlighter
131
+ msgid "Pixels"
132
+ msgstr "px"
133
+
134
+ #: crayon_settings.class.php:159
135
+ #: crayon_settings.class.php:163
136
+ #@ crayon-syntax-highlighter
137
+ msgid "Percent"
138
+ msgstr "%"
139
+
140
+ #: crayon_settings.class.php:172
141
+ #@ crayon-syntax-highlighter
142
+ msgid "None"
143
+ msgstr "从不"
144
+
145
+ #: crayon_settings.class.php:172
146
+ #@ crayon-syntax-highlighter
147
+ msgid "Left"
148
+ msgstr "左对齐"
149
+
150
+ #: crayon_settings.class.php:172
151
+ #@ crayon-syntax-highlighter
152
+ msgid "Center"
153
+ msgstr "居中"
154
+
155
+ #: crayon_settings.class.php:172
156
+ #@ crayon-syntax-highlighter
157
+ msgid "Right"
158
+ msgstr "右对齐"
159
+
160
+ #: crayon_settings.class.php:174
161
+ #: crayon_settings.class.php:198
162
+ #@ crayon-syntax-highlighter
163
+ msgid "On MouseOver"
164
+ msgstr "鼠标经过"
165
+
166
+ #: crayon_settings.class.php:174
167
+ #: crayon_settings.class.php:180
168
+ #@ crayon-syntax-highlighter
169
+ msgid "Always"
170
+ msgstr "始终显示"
171
+
172
+ #: crayon_settings.class.php:174
173
+ #: crayon_settings.class.php:180
174
+ #@ crayon-syntax-highlighter
175
+ msgid "Never"
176
+ msgstr "从不显示"
177
+
178
+ #: crayon_settings.class.php:180
179
+ #@ crayon-syntax-highlighter
180
+ msgid "When Found"
181
+ <<<<<<< HEAD
182
+ <<<<<<< HEAD
183
+ msgstr "当有指定时"
184
+ =======
185
+ msgstr "当发现时"
186
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
187
+ =======
188
+ msgstr "当发现时"
189
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
190
+
191
+ #: crayon_settings.class.php:198
192
+ #@ crayon-syntax-highlighter
193
+ msgid "On Double Click"
194
+ msgstr "双击"
195
+
196
+ #: crayon_settings.class.php:198
197
+ #@ crayon-syntax-highlighter
198
+ msgid "On Single Click"
199
+ msgstr "单击"
200
+
201
+ #: crayon_settings.class.php:198
202
+ #@ crayon-syntax-highlighter
203
+ msgid "Disable Mouse Events"
204
+ msgstr "禁止鼠标行为"
205
+
206
+ #: crayon_settings.class.php:205
207
+ #@ crayon-syntax-highlighter
208
+ msgid "An error has occurred. Please try again later."
209
+ msgstr "发生错误,请稍后重试。"
210
+
211
+ #: crayon_settings_wp.class.php:51
212
+ #: crayon_settings_wp.class.php:189
213
+ <<<<<<< HEAD
214
+ <<<<<<< HEAD
215
+ #: crayon_settings_wp.class.php:1195
216
+ =======
217
+ #: crayon_settings_wp.class.php:1194
218
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
219
+ =======
220
+ #: crayon_settings_wp.class.php:1194
221
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
222
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:245
223
+ #@ crayon-syntax-highlighter
224
+ msgid "Settings"
225
+ msgstr "设置"
226
+
227
+ #: crayon_settings_wp.class.php:171
228
+ #@ crayon-syntax-highlighter
229
+ msgid "You do not have sufficient permissions to access this page."
230
+ msgstr "无权限访问此页面"
231
+
232
+ #: crayon_settings_wp.class.php:204
233
+ #@ crayon-syntax-highlighter
234
+ msgid "Save Changes"
235
+ msgstr "保存设置"
236
+
237
+ #: crayon_settings_wp.class.php:211
238
+ #@ crayon-syntax-highlighter
239
+ msgid "Reset Settings"
240
+ msgstr "初始化设置"
241
+
242
+ #: crayon_settings_wp.class.php:458
243
+ #@ crayon-syntax-highlighter
244
+ msgid "General"
245
+ msgstr "一般"
246
+
247
+ #: crayon_settings_wp.class.php:459
248
+ #@ crayon-syntax-highlighter
249
+ msgid "Theme"
250
+ msgstr "主题"
251
+
252
+ #: crayon_settings_wp.class.php:460
253
+ #@ crayon-syntax-highlighter
254
+ msgid "Font"
255
+ msgstr "字体"
256
+
257
+ #: crayon_settings_wp.class.php:461
258
+ #@ crayon-syntax-highlighter
259
+ msgid "Metrics"
260
+ msgstr "排版"
261
+
262
+ #: crayon_settings_wp.class.php:462
263
+ #: util/theme-editor/theme_editor.php:273
264
+ #@ crayon-syntax-highlighter
265
+ msgid "Toolbar"
266
+ msgstr "工具栏"
267
+
268
+ #: crayon_settings_wp.class.php:463
269
+ #: util/theme-editor/theme_editor.php:271
270
+ #@ crayon-syntax-highlighter
271
+ msgid "Lines"
272
+ msgstr "行"
273
+
274
+ #: crayon_settings_wp.class.php:464
275
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:205
276
+ #@ crayon-syntax-highlighter
277
+ msgid "Code"
278
+ msgstr "代码"
279
+
280
+ #: crayon_settings_wp.class.php:465
281
+ #@ crayon-syntax-highlighter
282
+ msgid "Tags"
283
+ msgstr "标签"
284
+
285
+ #: crayon_settings_wp.class.php:466
286
+ #@ crayon-syntax-highlighter
287
+ msgid "Languages"
288
+ msgstr "语言"
289
+
290
+ #: crayon_settings_wp.class.php:467
291
+ #@ crayon-syntax-highlighter
292
+ msgid "Files"
293
+ msgstr "文件"
294
+
295
+ #: crayon_settings_wp.class.php:469
296
+ #@ crayon-syntax-highlighter
297
+ msgid "Tag Editor"
298
+ msgstr "标签编辑器"
299
+
300
+ #: crayon_settings_wp.class.php:470
301
+ #@ crayon-syntax-highlighter
302
+ msgid "Misc"
303
+ msgstr "其它"
304
+
305
+ #: crayon_settings_wp.class.php:473
306
+ #@ crayon-syntax-highlighter
307
+ msgid "Debug"
308
+ msgstr "调试"
309
+
310
+ #: crayon_settings_wp.class.php:474
311
+ #@ crayon-syntax-highlighter
312
+ msgid "Errors"
313
+ msgstr "错误"
314
+
315
+ #: crayon_settings_wp.class.php:475
316
+ #@ crayon-syntax-highlighter
317
+ msgid "Log"
318
+ msgstr "日志"
319
+
320
+ #: crayon_settings_wp.class.php:478
321
+ #@ crayon-syntax-highlighter
322
+ msgid "About"
323
+ msgstr "关于"
324
+
325
+ #: crayon_settings_wp.class.php:699
326
+ #@ crayon-syntax-highlighter
327
+ msgid "Height"
328
+ msgstr ""
329
+
330
+ #: crayon_settings_wp.class.php:705
331
+ #@ crayon-syntax-highlighter
332
+ msgid "Width"
333
+ msgstr ""
334
+
335
+ #: crayon_settings_wp.class.php:711
336
+ #@ crayon-syntax-highlighter
337
+ msgid "Top Margin"
338
+ msgstr "顶部外边距"
339
+
340
+ #: crayon_settings_wp.class.php:712
341
+ #@ crayon-syntax-highlighter
342
+ msgid "Bottom Margin"
343
+ msgstr "底部外边距"
344
+
345
+ #: crayon_settings_wp.class.php:713
346
+ #: crayon_settings_wp.class.php:718
347
+ #@ crayon-syntax-highlighter
348
+ msgid "Left Margin"
349
+ msgstr "左外边距"
350
+
351
+ #: crayon_settings_wp.class.php:714
352
+ #: crayon_settings_wp.class.php:718
353
+ #@ crayon-syntax-highlighter
354
+ msgid "Right Margin"
355
+ msgstr "右外边距"
356
+
357
+ #: crayon_settings_wp.class.php:724
358
+ #@ crayon-syntax-highlighter
359
+ msgid "Horizontal Alignment"
360
+ msgstr "对齐方式"
361
+
362
+ #: crayon_settings_wp.class.php:727
363
+ #@ crayon-syntax-highlighter
364
+ msgid "Allow floating elements to surround Crayon"
365
+ msgstr "允许插件代码周围使用浮动元素"
366
+
367
+ #: crayon_settings_wp.class.php:729
368
+ #@ crayon-syntax-highlighter
369
+ msgid "Inline Margin"
370
+ msgstr "行内间距"
371
+
372
+ #: crayon_settings_wp.class.php:737
373
+ #@ crayon-syntax-highlighter
374
+ msgid "Display the Toolbar"
375
+ msgstr "工具栏显示方式:"
376
+
377
+ #: crayon_settings_wp.class.php:740
378
+ #@ crayon-syntax-highlighter
379
+ msgid "Overlay the toolbar on code rather than push it down when possible"
380
+ <<<<<<< HEAD
381
+ <<<<<<< HEAD
382
+ msgstr "工具栏悬浮在代码上而不是把代码推下去"
383
+ =======
384
+ msgstr ""
385
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
386
+ =======
387
+ msgstr ""
388
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
389
+
390
+ #: crayon_settings_wp.class.php:741
391
+ #@ crayon-syntax-highlighter
392
+ msgid "Toggle the toolbar on single click when it is overlayed"
393
+ <<<<<<< HEAD
394
+ <<<<<<< HEAD
395
+ msgstr "当工具栏悬浮时单击隐藏工具栏"
396
+ =======
397
+ msgstr ""
398
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
399
+ =======
400
+ msgstr ""
401
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
402
+
403
+ #: crayon_settings_wp.class.php:742
404
+ #@ crayon-syntax-highlighter
405
+ msgid "Delay hiding the toolbar on MouseOut"
406
+ msgstr "工具栏消失附带延迟效果"
407
+
408
+ #: crayon_settings_wp.class.php:744
409
+ #@ crayon-syntax-highlighter
410
+ msgid "Display the title when provided"
411
+ msgstr "有标题则显示标题"
412
+
413
+ #: crayon_settings_wp.class.php:745
414
+ #@ crayon-syntax-highlighter
415
+ msgid "Display the language"
416
+ msgstr "显示语言方式:"
417
+
418
+ #: crayon_settings_wp.class.php:752
419
+ #@ crayon-syntax-highlighter
420
+ msgid "Display striped code lines"
421
+ msgstr "条纹显示代码"
422
+
423
+ #: crayon_settings_wp.class.php:753
424
+ #@ crayon-syntax-highlighter
425
+ msgid "Enable line marking for important lines"
426
+ msgstr "允许关键行高亮"
427
+
428
+ #: crayon_settings_wp.class.php:755
429
+ #@ crayon-syntax-highlighter
430
+ msgid "Display line numbers by default"
431
+ msgstr "默认显示行编号"
432
+
433
+ #: crayon_settings_wp.class.php:756
434
+ #@ crayon-syntax-highlighter
435
+ msgid "Enable line number toggling"
436
+ msgstr "允许切换显示行编号"
437
+
438
+ #: crayon_settings_wp.class.php:759
439
+ #@ crayon-syntax-highlighter
440
+ msgid "Start line numbers from"
441
+ msgstr "行编号始于"
442
+
443
+ #: crayon_settings_wp.class.php:770
444
+ #@ crayon-syntax-highlighter
445
+ msgid "When no language is provided, use the fallback"
446
+ <<<<<<< HEAD
447
+ <<<<<<< HEAD
448
+ msgstr "当没指定语言, 则默认语言为"
449
+ =======
450
+ msgstr "当没指定语言,则默认语言为"
451
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
452
+ =======
453
+ msgstr "当没指定语言,则默认语言为"
454
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
455
+
456
+ #: crayon_settings_wp.class.php:776
457
+ #, php-format
458
+ #@ crayon-syntax-highlighter
459
+ msgid "%d language has been detected."
460
+ msgid_plural "%d languages have been detected."
461
+ <<<<<<< HEAD
462
+ <<<<<<< HEAD
463
+ msgstr[0] "已支持 %d 种语言,"
464
+ msgstr[1] "已支持 %d 种语言,"
465
+ =======
466
+ msgstr[0] "已支持 %d 种语言。"
467
+ msgstr[1] "已支持 %d 种语言。"
468
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
469
+ =======
470
+ msgstr[0] "已支持 %d 种语言。"
471
+ msgstr[1] "已支持 %d 种语言。"
472
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
473
+
474
+ #: crayon_settings_wp.class.php:777
475
+ #@ crayon-syntax-highlighter
476
+ msgid "Parsing was successful"
477
+ msgstr "加载完成"
478
+
479
+ #: crayon_settings_wp.class.php:777
480
+ #@ crayon-syntax-highlighter
481
+ msgid "Parsing was unsuccessful"
482
+ msgstr "加载失败"
483
+
484
+ #: crayon_settings_wp.class.php:783
485
+ #, php-format
486
+ #@ crayon-syntax-highlighter
487
+ msgid "The selected language with id %s could not be loaded"
488
+ msgstr "ID为 %s 的语言加载失败"
489
+
490
+ #: crayon_settings_wp.class.php:786
491
+ #@ crayon-syntax-highlighter
492
+ msgid "Show Languages"
493
+ msgstr "显示全部语言"
494
+
495
+ <<<<<<< HEAD
496
+ <<<<<<< HEAD
497
+ #: crayon_settings_wp.class.php:966
498
+ #@ crayon-syntax-highlighter
499
+ msgid "Loading..."
500
+ msgstr "载入中"
501
+
502
+ #: crayon_settings_wp.class.php:1196
503
+ =======
504
+ =======
505
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
506
+ #: crayon_settings_wp.class.php:965
507
+ #@ crayon-syntax-highlighter
508
+ msgid "Loading..."
509
+ msgstr "载入中..."
510
+
511
+ #: crayon_settings_wp.class.php:1195
512
+ <<<<<<< HEAD
513
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
514
+ =======
515
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
516
+ #: util/theme-editor/theme_editor.php:309
517
+ #@ crayon-syntax-highlighter
518
+ msgid "Theme Editor"
519
+ msgstr "主题编辑器"
520
+
521
+ <<<<<<< HEAD
522
+ <<<<<<< HEAD
523
+ #: crayon_settings_wp.class.php:986
524
+ =======
525
+ #: crayon_settings_wp.class.php:985
526
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
527
+ =======
528
+ #: crayon_settings_wp.class.php:985
529
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
530
+ #@ crayon-syntax-highlighter
531
+ msgid "Enable Live Preview"
532
+ msgstr "允许即时预览"
533
+
534
+ <<<<<<< HEAD
535
+ <<<<<<< HEAD
536
+ #: crayon_settings_wp.class.php:988
537
+ =======
538
+ #: crayon_settings_wp.class.php:987
539
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
540
+ =======
541
+ #: crayon_settings_wp.class.php:987
542
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
543
+ #@ crayon-syntax-highlighter
544
+ msgid "Enqueue themes in the header (more efficient)."
545
+ msgstr "在头部就加载主题(推荐)"
546
+
547
+ <<<<<<< HEAD
548
+ <<<<<<< HEAD
549
+ #: crayon_settings_wp.class.php:1189
550
+ =======
551
+ #: crayon_settings_wp.class.php:1188
552
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
553
+ =======
554
+ #: crayon_settings_wp.class.php:1188
555
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
556
+ #@ crayon-syntax-highlighter
557
+ msgid "?"
558
+ msgstr "?"
559
+
560
+ <<<<<<< HEAD
561
+ <<<<<<< HEAD
562
+ #: crayon_settings_wp.class.php:991
563
+ =======
564
+ #: crayon_settings_wp.class.php:990
565
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
566
+ =======
567
+ #: crayon_settings_wp.class.php:990
568
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
569
+ #, php-format
570
+ #@ crayon-syntax-highlighter
571
+ msgid "The selected theme with id %s could not be loaded"
572
+ msgstr "ID为 %s 的主题加载失败"
573
+
574
+ <<<<<<< HEAD
575
+ <<<<<<< HEAD
576
+ #: crayon_settings_wp.class.php:1003
577
+ =======
578
+ #: crayon_settings_wp.class.php:1002
579
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
580
+ =======
581
+ #: crayon_settings_wp.class.php:1002
582
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
583
+ #@ crayon-syntax-highlighter
584
+ msgid "Custom Font Size"
585
+ msgstr "字体大小"
586
+
587
+ <<<<<<< HEAD
588
+ <<<<<<< HEAD
589
+ #: crayon_settings_wp.class.php:1008
590
+ =======
591
+ #: crayon_settings_wp.class.php:1007
592
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
593
+ =======
594
+ #: crayon_settings_wp.class.php:1007
595
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
596
+ #, php-format
597
+ #@ crayon-syntax-highlighter
598
+ msgid "The selected font with id %s could not be loaded"
599
+ msgstr "ID为 %s 的字体加载失败"
600
+
601
+ <<<<<<< HEAD
602
+ <<<<<<< HEAD
603
+ #: crayon_settings_wp.class.php:1014
604
+ =======
605
+ #: crayon_settings_wp.class.php:1013
606
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
607
+ =======
608
+ #: crayon_settings_wp.class.php:1013
609
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
610
+ #@ crayon-syntax-highlighter
611
+ msgid "Enqueue fonts in the header (more efficient)."
612
+ msgstr "在头部就加载字体(推荐)"
613
+
614
+ <<<<<<< HEAD
615
+ <<<<<<< HEAD
616
+ #: crayon_settings_wp.class.php:1019
617
+ =======
618
+ #: crayon_settings_wp.class.php:1018
619
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
620
+ =======
621
+ #: crayon_settings_wp.class.php:1018
622
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
623
+ #@ crayon-syntax-highlighter
624
+ msgid "Enable plain code view and display"
625
+ msgstr "允许纯文本显示代码且显示方式为"
626
+
627
+ <<<<<<< HEAD
628
+ <<<<<<< HEAD
629
+ #: crayon_settings_wp.class.php:1022
630
+ =======
631
+ #: crayon_settings_wp.class.php:1021
632
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
633
+ =======
634
+ #: crayon_settings_wp.class.php:1021
635
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
636
+ #@ crayon-syntax-highlighter
637
+ msgid "Enable plain code toggling"
638
+ msgstr "允许切换纯文本显示代码"
639
+
640
+ <<<<<<< HEAD
641
+ <<<<<<< HEAD
642
+ #: crayon_settings_wp.class.php:1023
643
+ =======
644
+ #: crayon_settings_wp.class.php:1022
645
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
646
+ =======
647
+ #: crayon_settings_wp.class.php:1022
648
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
649
+ #@ crayon-syntax-highlighter
650
+ msgid "Show the plain code by default"
651
+ msgstr "默认纯文本显示代码"
652
+
653
+ <<<<<<< HEAD
654
+ <<<<<<< HEAD
655
+ #: crayon_settings_wp.class.php:1024
656
+ =======
657
+ #: crayon_settings_wp.class.php:1023
658
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
659
+ =======
660
+ #: crayon_settings_wp.class.php:1023
661
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
662
+ #@ crayon-syntax-highlighter
663
+ msgid "Enable code copy/paste"
664
+ msgstr "允许代码复制/粘贴"
665
+
666
+ <<<<<<< HEAD
667
+ <<<<<<< HEAD
668
+ #: crayon_settings_wp.class.php:1026
669
+ =======
670
+ #: crayon_settings_wp.class.php:1025
671
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
672
+ =======
673
+ #: crayon_settings_wp.class.php:1025
674
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
675
+ #@ crayon-syntax-highlighter
676
+ msgid "Enable opening code in a window"
677
+ msgstr "允许新窗口显示代码"
678
+
679
+ <<<<<<< HEAD
680
+ <<<<<<< HEAD
681
+ #: crayon_settings_wp.class.php:1027
682
+ =======
683
+ #: crayon_settings_wp.class.php:1026
684
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
685
+ =======
686
+ #: crayon_settings_wp.class.php:1026
687
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
688
+ #@ crayon-syntax-highlighter
689
+ msgid "Always display scrollbars"
690
+ msgstr "总是显示滚动条"
691
+
692
+ <<<<<<< HEAD
693
+ <<<<<<< HEAD
694
+ #: crayon_settings_wp.class.php:1042
695
+ =======
696
+ #: crayon_settings_wp.class.php:1041
697
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
698
+ =======
699
+ #: crayon_settings_wp.class.php:1041
700
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
701
+ #@ crayon-syntax-highlighter
702
+ msgid "Tab size in spaces"
703
+ msgstr "Tab 等于几个空格"
704
+
705
+ <<<<<<< HEAD
706
+ <<<<<<< HEAD
707
+ #: crayon_settings_wp.class.php:1032
708
+ #@ crayon-syntax-highlighter
709
+ msgid "Decode HTML entities in code"
710
+ msgstr "在代码中进行 HTML 转义"
711
+
712
+ #: crayon_settings_wp.class.php:1034
713
+ #@ crayon-syntax-highlighter
714
+ msgid "Decode HTML entities in attributes"
715
+ msgstr "在属性中进行 HTML 转义"
716
+
717
+ #: crayon_settings_wp.class.php:1036
718
+ =======
719
+ =======
720
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
721
+ #: crayon_settings_wp.class.php:1031
722
+ #@ crayon-syntax-highlighter
723
+ msgid "Decode HTML entities in code"
724
+ msgstr "在代码中进行 HTML 解码"
725
+
726
+ #: crayon_settings_wp.class.php:1033
727
+ #@ crayon-syntax-highlighter
728
+ msgid "Decode HTML entities in attributes"
729
+ msgstr "在属性中进行 HTML 解码"
730
+
731
+ #: crayon_settings_wp.class.php:1035
732
+ <<<<<<< HEAD
733
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
734
+ =======
735
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
736
+ #@ crayon-syntax-highlighter
737
+ msgid "Remove whitespace surrounding the shortcode content"
738
+ msgstr "删除短代码周围的空白"
739
+
740
+ <<<<<<< HEAD
741
+ <<<<<<< HEAD
742
+ #: crayon_settings_wp.class.php:1038
743
+ =======
744
+ #: crayon_settings_wp.class.php:1037
745
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
746
+ =======
747
+ #: crayon_settings_wp.class.php:1037
748
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
749
+ #@ crayon-syntax-highlighter
750
+ msgid "Allow Mixed Language Highlighting with delimiters and tags."
751
+ msgstr "允许多重语言高亮使用分隔符和标签"
752
+
753
+ <<<<<<< HEAD
754
+ <<<<<<< HEAD
755
+ #: crayon_settings_wp.class.php:1040
756
+ =======
757
+ #: crayon_settings_wp.class.php:1039
758
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
759
+ =======
760
+ #: crayon_settings_wp.class.php:1039
761
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
762
+ #@ crayon-syntax-highlighter
763
+ msgid "Show Mixed Language Icon (+)"
764
+ msgstr "显示多重语言图标 (+)"
765
+
766
+ <<<<<<< HEAD
767
+ <<<<<<< HEAD
768
+ #: crayon_settings_wp.class.php:1052
769
+ =======
770
+ #: crayon_settings_wp.class.php:1051
771
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
772
+ =======
773
+ #: crayon_settings_wp.class.php:1051
774
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
775
+ #@ crayon-syntax-highlighter
776
+ msgid "Capture Mini Tags like [php][/php] as Crayons."
777
+ msgstr "使用迷你标签(如[php][/php])"
778
+
779
+ <<<<<<< HEAD
780
+ <<<<<<< HEAD
781
+ #: crayon_settings_wp.class.php:1053
782
+ =======
783
+ #: crayon_settings_wp.class.php:1052
784
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
785
+ =======
786
+ #: crayon_settings_wp.class.php:1052
787
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
788
+ #@ crayon-syntax-highlighter
789
+ msgid "Capture Inline Tags like {php}{/php} inside sentences."
790
+ msgstr "捕获如{php}{/php}形式的行内标签"
791
+
792
+ <<<<<<< HEAD
793
+ <<<<<<< HEAD
794
+ #: crayon_settings_wp.class.php:1054
795
+ =======
796
+ #: crayon_settings_wp.class.php:1053
797
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
798
+ =======
799
+ #: crayon_settings_wp.class.php:1053
800
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
801
+ #@ crayon-syntax-highlighter
802
+ msgid "Wrap Inline Tags"
803
+ msgstr "行内标签自动换行"
804
+
805
+ <<<<<<< HEAD
806
+ <<<<<<< HEAD
807
+ #: crayon_settings_wp.class.php:1055
808
+ #@ crayon-syntax-highlighter
809
+ msgid "Capture `backquotes` as &lt;code&gt;"
810
+ msgstr "捕获 `反引号` 为 &lt;code&gt; 标签"
811
+
812
+ #: crayon_settings_wp.class.php:1056
813
+ #@ crayon-syntax-highlighter
814
+ msgid "Capture &lt;pre&gt; tags as Crayons"
815
+ msgstr "捕获 &lt;pre&gt; 标签为插件所用"
816
+
817
+ #: crayon_settings_wp.class.php:1057
818
+ =======
819
+ =======
820
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
821
+ #: crayon_settings_wp.class.php:1054
822
+ #@ crayon-syntax-highlighter
823
+ msgid "Capture `backquotes` as &lt;code&gt;"
824
+ msgstr "把 `反引号` 绑定为 &lt;code&gt;"
825
+
826
+ #: crayon_settings_wp.class.php:1055
827
+ #@ crayon-syntax-highlighter
828
+ msgid "Capture &lt;pre&gt; tags as Crayons"
829
+ msgstr "指定 &lt;pre&gt; 为插件所有"
830
+
831
+ #: crayon_settings_wp.class.php:1056
832
+ <<<<<<< HEAD
833
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
834
+ =======
835
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
836
+ #@ crayon-syntax-highlighter
837
+ msgid "Enable [plain][/plain] tag."
838
+ msgstr "启用 [plain][/plain] 标签"
839
+
840
+ <<<<<<< HEAD
841
+ <<<<<<< HEAD
842
+ #: crayon_settings_wp.class.php:1062
843
+ =======
844
+ #: crayon_settings_wp.class.php:1061
845
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
846
+ =======
847
+ #: crayon_settings_wp.class.php:1061
848
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
849
+ #@ crayon-syntax-highlighter
850
+ msgid "When loading local files and a relative path is given for the URL, use the absolute path"
851
+ msgstr "当 URL 为相对路径,使用的绝对路径为"
852
+
853
+ <<<<<<< HEAD
854
+ <<<<<<< HEAD
855
+ #: crayon_settings_wp.class.php:1065
856
+ =======
857
+ #: crayon_settings_wp.class.php:1064
858
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
859
+ =======
860
+ #: crayon_settings_wp.class.php:1064
861
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
862
+ #@ crayon-syntax-highlighter
863
+ msgid "Followed by your relative URL."
864
+ msgstr "置于相对路径之前"
865
+
866
+ <<<<<<< HEAD
867
+ <<<<<<< HEAD
868
+ #: crayon_settings_wp.class.php:1081
869
+ =======
870
+ #: crayon_settings_wp.class.php:1080
871
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
872
+ =======
873
+ #: crayon_settings_wp.class.php:1080
874
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
875
+ #, php-format
876
+ #@ crayon-syntax-highlighter
877
+ msgid "Use %s to separate setting names from values in the &lt;pre&gt; class attribute"
878
+ msgstr "&lt;pre&gt; 标签中使用 %s 分割每个属性与属性值。"
879
+
880
+ <<<<<<< HEAD
881
+ <<<<<<< HEAD
882
+ #: crayon_settings_wp.class.php:1089
883
+ =======
884
+ #: crayon_settings_wp.class.php:1088
885
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
886
+ =======
887
+ #: crayon_settings_wp.class.php:1088
888
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
889
+ #@ crayon-syntax-highlighter
890
+ msgid "Clear the cache used to store remote code requests"
891
+ msgstr "清理用于存储远程代码的缓存频率"
892
+
893
+ <<<<<<< HEAD
894
+ <<<<<<< HEAD
895
+ #: crayon_settings_wp.class.php:1091
896
+ =======
897
+ #: crayon_settings_wp.class.php:1090
898
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
899
+ =======
900
+ #: crayon_settings_wp.class.php:1090
901
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
902
+ #@ crayon-syntax-highlighter
903
+ msgid "Clear Now"
904
+ msgstr "立刻清理"
905
+
906
+ <<<<<<< HEAD
907
+ <<<<<<< HEAD
908
+ #: crayon_settings_wp.class.php:1092
909
+ =======
910
+ #: crayon_settings_wp.class.php:1091
911
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
912
+ =======
913
+ #: crayon_settings_wp.class.php:1091
914
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
915
+ #@ crayon-syntax-highlighter
916
+ msgid "Attempt to load Crayon's CSS and JavaScript only when needed"
917
+ msgstr "按需加载插件的 CSS JavaScript"
918
+
919
+ <<<<<<< HEAD
920
+ <<<<<<< HEAD
921
+ #: crayon_settings_wp.class.php:1093
922
+ =======
923
+ #: crayon_settings_wp.class.php:1092
924
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
925
+ =======
926
+ #: crayon_settings_wp.class.php:1092
927
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
928
+ #@ crayon-syntax-highlighter
929
+ msgid "Disable enqueuing for page templates that may contain The Loop."
930
+ msgstr ""
931
+
932
+ <<<<<<< HEAD
933
+ <<<<<<< HEAD
934
+ #: crayon_settings_wp.class.php:1094
935
+ =======
936
+ #: crayon_settings_wp.class.php:1093
937
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
938
+ =======
939
+ #: crayon_settings_wp.class.php:1093
940
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
941
+ #@ crayon-syntax-highlighter
942
+ msgid "Allow Crayons inside comments"
943
+ msgstr "允许在评论中使用"
944
+
945
+ <<<<<<< HEAD
946
+ <<<<<<< HEAD
947
+ #: crayon_settings_wp.class.php:1096
948
+ =======
949
+ #: crayon_settings_wp.class.php:1095
950
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
951
+ =======
952
+ #: crayon_settings_wp.class.php:1095
953
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
954
+ #@ crayon-syntax-highlighter
955
+ msgid "Load Crayons only from the main Wordpress query"
956
+ msgstr ""
957
+
958
+ <<<<<<< HEAD
959
+ <<<<<<< HEAD
960
+ #: crayon_settings_wp.class.php:1097
961
+ #@ crayon-syntax-highlighter
962
+ msgid "Disable mouse gestures for touchscreen devices (eg. MouseOver)"
963
+ msgstr "触屏设备禁止鼠标行为(如鼠标经过)"
964
+
965
+ #: crayon_settings_wp.class.php:1098
966
+ =======
967
+ =======
968
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
969
+ #: crayon_settings_wp.class.php:1096
970
+ #@ crayon-syntax-highlighter
971
+ msgid "Disable mouse gestures for touchscreen devices (eg. MouseOver)"
972
+ msgstr "使用触屏设备时禁止鼠标行为(如鼠标经过)"
973
+
974
+ #: crayon_settings_wp.class.php:1097
975
+ <<<<<<< HEAD
976
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
977
+ =======
978
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
979
+ #@ crayon-syntax-highlighter
980
+ msgid "Disable animations"
981
+ msgstr "禁止动画效果"
982
+
983
+ <<<<<<< HEAD
984
+ <<<<<<< HEAD
985
+ #: crayon_settings_wp.class.php:1099
986
+ #@ crayon-syntax-highlighter
987
+ msgid "Disable runtime stats"
988
+ msgstr ""
989
+
990
+ #: crayon_settings_wp.class.php:1105
991
+ #@ crayon-syntax-highlighter
992
+ msgid "Log errors for individual Crayons"
993
+ msgstr ""
994
+
995
+ #: crayon_settings_wp.class.php:1106
996
+ #@ crayon-syntax-highlighter
997
+ msgid "Log system-wide errors"
998
+ msgstr ""
999
+
1000
+ #: crayon_settings_wp.class.php:1107
1001
+ =======
1002
+ =======
1003
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1004
+ #: crayon_settings_wp.class.php:1098
1005
+ #@ crayon-syntax-highlighter
1006
+ msgid "Disable runtime stats"
1007
+ msgstr "禁止运行时间统计"
1008
+
1009
+ #: crayon_settings_wp.class.php:1104
1010
+ #@ crayon-syntax-highlighter
1011
+ msgid "Log errors for individual Crayons"
1012
+ msgstr "使用独立的错误日志"
1013
+
1014
+ #: crayon_settings_wp.class.php:1105
1015
+ #@ crayon-syntax-highlighter
1016
+ msgid "Log system-wide errors"
1017
+ msgstr "启用系统错误日志"
1018
+
1019
+ #: crayon_settings_wp.class.php:1106
1020
+ <<<<<<< HEAD
1021
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1022
+ =======
1023
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1024
+ #@ crayon-syntax-highlighter
1025
+ msgid "Display custom message for errors"
1026
+ msgstr "自定义错误提示"
1027
+
1028
+ <<<<<<< HEAD
1029
+ <<<<<<< HEAD
1030
+ #: crayon_settings_wp.class.php:1119
1031
+ =======
1032
+ #: crayon_settings_wp.class.php:1118
1033
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1034
+ =======
1035
+ #: crayon_settings_wp.class.php:1118
1036
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1037
+ #@ crayon-syntax-highlighter
1038
+ msgid "Show Log"
1039
+ msgstr "显示日志"
1040
+
1041
+ <<<<<<< HEAD
1042
+ <<<<<<< HEAD
1043
+ #: crayon_settings_wp.class.php:1119
1044
+ =======
1045
+ #: crayon_settings_wp.class.php:1118
1046
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1047
+ =======
1048
+ #: crayon_settings_wp.class.php:1118
1049
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1050
+ #@ crayon-syntax-highlighter
1051
+ msgid "Hide Log"
1052
+ msgstr "隐藏日志"
1053
+
1054
+ <<<<<<< HEAD
1055
+ <<<<<<< HEAD
1056
+ #: crayon_settings_wp.class.php:1121
1057
+ =======
1058
+ #: crayon_settings_wp.class.php:1120
1059
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1060
+ =======
1061
+ #: crayon_settings_wp.class.php:1120
1062
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1063
+ #@ crayon-syntax-highlighter
1064
+ msgid "Clear Log"
1065
+ msgstr "清理日志"
1066
+
1067
+ <<<<<<< HEAD
1068
+ <<<<<<< HEAD
1069
+ #: crayon_settings_wp.class.php:1122
1070
+ =======
1071
+ #: crayon_settings_wp.class.php:1121
1072
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1073
+ =======
1074
+ #: crayon_settings_wp.class.php:1121
1075
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1076
+ #@ crayon-syntax-highlighter
1077
+ msgid "Email Admin"
1078
+ msgstr "发邮件给管理员"
1079
+
1080
+ <<<<<<< HEAD
1081
+ <<<<<<< HEAD
1082
+ #: crayon_settings_wp.class.php:1124
1083
+ =======
1084
+ #: crayon_settings_wp.class.php:1123
1085
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1086
+ =======
1087
+ #: crayon_settings_wp.class.php:1123
1088
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1089
+ #@ crayon-syntax-highlighter
1090
+ msgid "Email Developer"
1091
+ msgstr "发邮件给开发者"
1092
+
1093
+ <<<<<<< HEAD
1094
+ <<<<<<< HEAD
1095
+ #: crayon_settings_wp.class.php:1126
1096
+ =======
1097
+ #: crayon_settings_wp.class.php:1125
1098
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1099
+ =======
1100
+ #: crayon_settings_wp.class.php:1125
1101
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1102
+ #@ crayon-syntax-highlighter
1103
+ msgid "The log is currently empty."
1104
+ msgstr "日志为空,"
1105
+
1106
+ <<<<<<< HEAD
1107
+ <<<<<<< HEAD
1108
+ #: crayon_settings_wp.class.php:1128
1109
+ #@ crayon-syntax-highlighter
1110
+ msgid "The log file exists and is writable."
1111
+ msgstr "日志文件存在且可写。"
1112
+
1113
+ #: crayon_settings_wp.class.php:1128
1114
+ =======
1115
+ =======
1116
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1117
+ #: crayon_settings_wp.class.php:1127
1118
+ #@ crayon-syntax-highlighter
1119
+ msgid "The log file exists and is writable."
1120
+ msgstr "日志文件存在并可写。"
1121
+
1122
+ #: crayon_settings_wp.class.php:1127
1123
+ <<<<<<< HEAD
1124
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1125
+ =======
1126
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1127
+ #@ crayon-syntax-highlighter
1128
+ msgid "The log file exists and is not writable."
1129
+ msgstr "日志文件存在但不可写。"
1130
+
1131
+ <<<<<<< HEAD
1132
+ <<<<<<< HEAD
1133
+ #: crayon_settings_wp.class.php:1130
1134
+ =======
1135
+ #: crayon_settings_wp.class.php:1129
1136
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1137
+ =======
1138
+ #: crayon_settings_wp.class.php:1129
1139
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1140
+ #@ crayon-syntax-highlighter
1141
+ msgid "The log file does not exist and is not writable."
1142
+ msgstr "日志文件不存在且不可写。"
1143
+
1144
+ <<<<<<< HEAD
1145
+ <<<<<<< HEAD
1146
+ #: crayon_settings_wp.class.php:1140
1147
+ =======
1148
+ #: crayon_settings_wp.class.php:1139
1149
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1150
+ =======
1151
+ #: crayon_settings_wp.class.php:1139
1152
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1153
+ #@ crayon-syntax-highlighter
1154
+ msgid "Version"
1155
+ msgstr "版本"
1156
+
1157
+ <<<<<<< HEAD
1158
+ <<<<<<< HEAD
1159
+ #: crayon_settings_wp.class.php:1142
1160
+ =======
1161
+ #: crayon_settings_wp.class.php:1141
1162
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1163
+ =======
1164
+ #: crayon_settings_wp.class.php:1141
1165
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1166
+ #@ crayon-syntax-highlighter
1167
+ msgid "Developer"
1168
+ msgstr "开发者"
1169
+
1170
+ <<<<<<< HEAD
1171
+ <<<<<<< HEAD
1172
+ #: crayon_settings_wp.class.php:1143
1173
+ =======
1174
+ #: crayon_settings_wp.class.php:1142
1175
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1176
+ =======
1177
+ #: crayon_settings_wp.class.php:1142
1178
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1179
+ #@ crayon-syntax-highlighter
1180
+ msgid "Translators"
1181
+ msgstr "翻译者"
1182
+
1183
+ <<<<<<< HEAD
1184
+ <<<<<<< HEAD
1185
+ #: crayon_settings_wp.class.php:1179
1186
+ #@ crayon-syntax-highlighter
1187
+ msgid "The result of innumerable hours of hard work over many months. It's an ongoing project, keep me motivated!"
1188
+ msgstr ""
1189
+
1190
+ #: crayon_settings_wp.class.php:1197
1191
+ =======
1192
+ =======
1193
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1194
+ #: crayon_settings_wp.class.php:1178
1195
+ #@ crayon-syntax-highlighter
1196
+ msgid "The result of innumerable hours of hard work over many months. It's an ongoing project, keep me motivated!"
1197
+ msgstr "本插件是数月辛勤劳动的结果,为了让它不断的完善,如果你喜欢它,请告诉我!"
1198
+
1199
+ #: crayon_settings_wp.class.php:1196
1200
+ <<<<<<< HEAD
1201
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1202
+ =======
1203
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1204
+ #@ crayon-syntax-highlighter
1205
+ msgid "Donate"
1206
+ msgstr "捐助"
1207
+
1208
+ #. translators: plugin header field 'Name'
1209
+ #: crayon_wp.class.php:0
1210
+ #@ crayon-syntax-highlighter
1211
+ msgid "Crayon Syntax Highlighter"
1212
+ msgstr ""
1213
+
1214
+ #. translators: plugin header field 'PluginURI'
1215
+ #: crayon_wp.class.php:0
1216
+ #@ crayon-syntax-highlighter
1217
+ msgid "http://aramk.com/projects/crayon-syntax-highlighter"
1218
+ msgstr ""
1219
+
1220
+ #. translators: plugin header field 'Description'
1221
+ #: crayon_wp.class.php:0
1222
+ #@ crayon-syntax-highlighter
1223
+ msgid "Supports multiple languages, themes, highlighting from a URL, local file or post text."
1224
+ <<<<<<< HEAD
1225
+ <<<<<<< HEAD
1226
+ msgstr ""
1227
+ =======
1228
+ msgstr "支持多种和多重语言高亮,丰富的高亮主题;无论是本地还是远端的文件,或文本代码,都能一律高亮!"
1229
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1230
+ =======
1231
+ msgstr "支持多种和多重语言高亮,丰富的高亮主题;无论是本地还是远端的文件,或文本代码,都能一律高亮!"
1232
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1233
+
1234
+ #. translators: plugin header field 'Author'
1235
+ #: crayon_wp.class.php:0
1236
+ #@ crayon-syntax-highlighter
1237
+ msgid "Aram Kocharyan"
1238
+ msgstr ""
1239
+
1240
+ #. translators: plugin header field 'AuthorURI'
1241
+ #: crayon_wp.class.php:0
1242
+ #@ crayon-syntax-highlighter
1243
+ msgid "http://aramk.com/"
1244
+ msgstr ""
1245
+
1246
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:64
1247
+ #@ crayon-syntax-highlighter
1248
+ msgid "Add Crayon Code"
1249
+ msgstr "插入代码高亮"
1250
+
1251
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:65
1252
+ #@ crayon-syntax-highlighter
1253
+ msgid "Edit Crayon Code"
1254
+ msgstr "编辑代码高亮"
1255
+
1256
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:66
1257
+ #@ crayon-syntax-highlighter
1258
+ msgid "Add"
1259
+ msgstr "插入"
1260
+
1261
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:67
1262
+ #: util/theme-editor/theme_editor.php:325
1263
+ #@ crayon-syntax-highlighter
1264
+ msgid "Save"
1265
+ msgstr "保存"
1266
+
1267
+ #: crayon_settings_wp.class.php:848
1268
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:182
1269
+ #: util/theme-editor/theme_editor.php:287
1270
+ #@ crayon-syntax-highlighter
1271
+ msgid "Title"
1272
+ msgstr "标题"
1273
+
1274
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:184
1275
+ #@ crayon-syntax-highlighter
1276
+ msgid "A short description"
1277
+ msgstr "一段简短的描述"
1278
+
1279
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:186
1280
+ #: util/theme-editor/theme_editor.php:291
1281
+ #@ crayon-syntax-highlighter
1282
+ msgid "Inline"
1283
+ msgstr "行内"
1284
+
1285
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:193
1286
+ #: util/theme-editor/theme_editor.php:295
1287
+ #@ crayon-syntax-highlighter
1288
+ msgid "Language"
1289
+ msgstr "语言"
1290
+
1291
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:198
1292
+ #@ crayon-syntax-highlighter
1293
+ msgid "Marked Lines"
1294
+ msgstr "关键行"
1295
+
1296
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:199
1297
+ #@ crayon-syntax-highlighter
1298
+ msgid "(e.g. 1,2,3-5)"
1299
+ msgstr "(如 1,2,3-5)"
1300
+
1301
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:208
1302
+ #@ crayon-syntax-highlighter
1303
+ msgid "Clear"
1304
+ msgstr "清理"
1305
+
1306
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:212
1307
+ #@ crayon-syntax-highlighter
1308
+ msgid "Paste your code here, or type it in manually."
1309
+ msgstr "粘贴代码到这里,或者手工输入。"
1310
+
1311
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:216
1312
+ #@ crayon-syntax-highlighter
1313
+ msgid "URL"
1314
+ <<<<<<< HEAD
1315
+ <<<<<<< HEAD
1316
+ msgstr ""
1317
+ =======
1318
+ msgstr "URL"
1319
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1320
+ =======
1321
+ msgstr "URL"
1322
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1323
+
1324
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:218
1325
+ #@ crayon-syntax-highlighter
1326
+ msgid "Relative local path or absolute URL"
1327
+ msgstr "相对路径或绝对路径 URL"
1328
+
1329
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:221
1330
+ #@ crayon-syntax-highlighter
1331
+ msgid "If the URL fails to load, the code above will be shown instead. If no code exists, an error is shown."
1332
+ msgstr "如果 URL 不能加载,将会使用下面的代码代替显示,如果也没有代码,则显示错误提示。"
1333
+
1334
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:223
1335
+ #, php-format
1336
+ #@ crayon-syntax-highlighter
1337
+ msgid "If a relative local path is given it will be appended to %s - which is defined in %sCrayon &gt; Settings &gt; Files%s."
1338
+ msgstr "如果是相对路径,则前面的路径将是 %s (在 %sCrayon &gt; Settings &gt; Files%s 里面设置)"
1339
+
1340
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:250
1341
+ #@ crayon-syntax-highlighter
1342
+ msgid "Change the following settings to override their global values."
1343
+ msgstr "以下设置优先级高于默认设置,"
1344
+
1345
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:252
1346
+ #@ crayon-syntax-highlighter
1347
+ msgid "Only changes (shown yellow) are applied."
1348
+ msgstr "只有背景色为黄色的选项优先级会高于默认设置,"
1349
+
1350
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:254
1351
+ #, php-format
1352
+ #@ crayon-syntax-highlighter
1353
+ msgid "Future changes to the global settings under %sCrayon &gt; Settings%s won't affect overridden settings."
1354
+ msgstr "其它设置会沿用默认设置(%s点击前往设置%s)。"
1355
+
1356
+ #: util/theme-editor/theme_editor.php:324
1357
+ #@ crayon-syntax-highlighter
1358
+ msgid "Back To Settings"
1359
+ msgstr "返回设置"
1360
+
1361
+ <<<<<<< HEAD
1362
+ <<<<<<< HEAD
1363
+ #: crayon_settings_wp.class.php:1095
1364
+ =======
1365
+ #: crayon_settings_wp.class.php:1094
1366
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1367
+ =======
1368
+ #: crayon_settings_wp.class.php:1094
1369
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1370
+ #@ crayon-syntax-highlighter
1371
+ msgid "Remove Crayons from excerpts"
1372
+ msgstr "文章摘要不启用代码高亮"
1373
+
1374
+ #: crayon_formatter.class.php:275
1375
+ #@ crayon-syntax-highlighter
1376
+ msgid "Toggle Line Wrap"
1377
+ msgstr "切换自动换行"
1378
+
1379
+ #: crayon_settings_wp.class.php:468
1380
+ #@ crayon-syntax-highlighter
1381
+ msgid "Posts"
1382
+ msgstr "文章"
1383
+
1384
+ #: crayon_settings_wp.class.php:754
1385
+ #@ crayon-syntax-highlighter
1386
+ msgid "Enable line ranges for showing only parts of code"
1387
+ msgstr "开启 指定显示的行 功能"
1388
+
1389
+ #: crayon_settings_wp.class.php:757
1390
+ #@ crayon-syntax-highlighter
1391
+ msgid "Wrap lines by default"
1392
+ msgstr "默认自动换行"
1393
+
1394
+ #: crayon_settings_wp.class.php:758
1395
+ #@ crayon-syntax-highlighter
1396
+ msgid "Enable line wrap toggling"
1397
+ msgstr "允许切换自动换行"
1398
+
1399
+ #: crayon_settings_wp.class.php:822
1400
+ #@ crayon-syntax-highlighter
1401
+ msgid "Show Crayon Posts"
1402
+ msgstr "显示已使用代码高亮的文章"
1403
+
1404
+ <<<<<<< HEAD
1405
+ <<<<<<< HEAD
1406
+ #: crayon_settings_wp.class.php:963
1407
+ =======
1408
+ #: crayon_settings_wp.class.php:962
1409
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1410
+ =======
1411
+ #: crayon_settings_wp.class.php:962
1412
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1413
+ #@ crayon-syntax-highlighter
1414
+ msgid "Edit"
1415
+ msgstr "编辑"
1416
+
1417
+ <<<<<<< HEAD
1418
+ <<<<<<< HEAD
1419
+ #: crayon_settings_wp.class.php:1044
1420
+ =======
1421
+ #: crayon_settings_wp.class.php:1043
1422
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1423
+ =======
1424
+ #: crayon_settings_wp.class.php:1043
1425
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1426
+ #@ crayon-syntax-highlighter
1427
+ msgid "Blank lines before code:"
1428
+ msgstr "代码高亮前的空行数:"
1429
+
1430
+ <<<<<<< HEAD
1431
+ <<<<<<< HEAD
1432
+ #: crayon_settings_wp.class.php:1046
1433
+ =======
1434
+ #: crayon_settings_wp.class.php:1045
1435
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1436
+ =======
1437
+ #: crayon_settings_wp.class.php:1045
1438
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1439
+ #@ crayon-syntax-highlighter
1440
+ msgid "Blank lines after code:"
1441
+ msgstr "代码高亮后的空行数:"
1442
+
1443
+ <<<<<<< HEAD
1444
+ <<<<<<< HEAD
1445
+ #: crayon_settings_wp.class.php:1072
1446
+ #@ crayon-syntax-highlighter
1447
+ msgid "Convert Legacy Tags"
1448
+ msgstr "转换老式标签"
1449
+
1450
+ #: crayon_settings_wp.class.php:1075
1451
+ #@ crayon-syntax-highlighter
1452
+ msgid "No Legacy Tags Found"
1453
+ msgstr "暂无老式标签"
1454
+
1455
+ #: crayon_settings_wp.class.php:1085
1456
+ =======
1457
+ =======
1458
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1459
+ #: crayon_settings_wp.class.php:1071
1460
+ #@ crayon-syntax-highlighter
1461
+ msgid "Convert Legacy Tags"
1462
+ msgstr "转换迷你标签"
1463
+
1464
+ #: crayon_settings_wp.class.php:1074
1465
+ #@ crayon-syntax-highlighter
1466
+ msgid "No Legacy Tags Found"
1467
+ msgstr "暂无迷你标签"
1468
+
1469
+ #: crayon_settings_wp.class.php:1084
1470
+ <<<<<<< HEAD
1471
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1472
+ =======
1473
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1474
+ #@ crayon-syntax-highlighter
1475
+ msgid "Display Tag Editor settings on the frontend"
1476
+ msgstr "在前端显示标签编辑器的设置"
1477
+
1478
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:188
1479
+ #@ crayon-syntax-highlighter
1480
+ msgid "Don't Highlight"
1481
+ <<<<<<< HEAD
1482
+ <<<<<<< HEAD
1483
+ msgstr "禁止高亮"
1484
+ =======
1485
+ msgstr "取消高亮"
1486
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1487
+ =======
1488
+ msgstr "取消高亮"
1489
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1490
+
1491
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:196
1492
+ #@ crayon-syntax-highlighter
1493
+ msgid "Line Range"
1494
+ msgstr "指定显示的行"
1495
+
1496
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:197
1497
+ #@ crayon-syntax-highlighter
1498
+ msgid "(e.g. 3-5 or 3)"
1499
+ msgstr "(如 3-5 或 3)"
1500
+
1501
+ #: crayon_formatter.class.php:276
1502
+ #@ crayon-syntax-highlighter
1503
+ msgid "Expand Code"
1504
+ msgstr ""
1505
+
1506
+ #: crayon_settings_wp.class.php:157
1507
+ #@ crayon-syntax-highlighter
1508
+ msgid "Prompt"
1509
+ msgstr ""
1510
+
1511
+ #: crayon_settings_wp.class.php:158
1512
+ #@ crayon-syntax-highlighter
1513
+ msgid "Value"
1514
+ msgstr ""
1515
+
1516
+ #: crayon_settings_wp.class.php:159
1517
+ #@ crayon-syntax-highlighter
1518
+ msgid "Alert"
1519
+ msgstr ""
1520
+
1521
+ #: crayon_settings_wp.class.php:160
1522
+ #: crayon_settings_wp.class.php:868
1523
+ #@ crayon-syntax-highlighter
1524
+ msgid "No"
1525
+ <<<<<<< HEAD
1526
+ <<<<<<< HEAD
1527
+ msgstr "取消"
1528
+ =======
1529
+ msgstr ""
1530
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1531
+ =======
1532
+ msgstr ""
1533
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1534
+
1535
+ #: crayon_settings_wp.class.php:161
1536
+ #: crayon_settings_wp.class.php:868
1537
+ #@ crayon-syntax-highlighter
1538
+ msgid "Yes"
1539
+ <<<<<<< HEAD
1540
+ <<<<<<< HEAD
1541
+ msgstr "确认"
1542
+ =======
1543
+ msgstr ""
1544
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1545
+ =======
1546
+ msgstr ""
1547
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1548
+
1549
+ #: crayon_settings_wp.class.php:162
1550
+ #@ crayon-syntax-highlighter
1551
+ msgid "Confirm"
1552
+ <<<<<<< HEAD
1553
+ <<<<<<< HEAD
1554
+ msgstr "确认"
1555
+ =======
1556
+ msgstr ""
1557
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1558
+ =======
1559
+ msgstr ""
1560
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1561
+
1562
+ #: crayon_settings_wp.class.php:163
1563
+ #@ crayon-syntax-highlighter
1564
+ msgid "Change Code"
1565
+ <<<<<<< HEAD
1566
+ <<<<<<< HEAD
1567
+ msgstr "修改示例代码"
1568
+ =======
1569
+ msgstr ""
1570
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1571
+ =======
1572
+ msgstr ""
1573
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1574
+
1575
+ #: crayon_settings_wp.class.php:823
1576
+ #@ crayon-syntax-highlighter
1577
+ msgid "Refresh"
1578
+ msgstr "刷新"
1579
+
1580
+ #: crayon_settings_wp.class.php:848
1581
+ #@ crayon-syntax-highlighter
1582
+ msgid "ID"
1583
+ msgstr ""
1584
+
1585
+ #: crayon_settings_wp.class.php:848
1586
+ #@ crayon-syntax-highlighter
1587
+ msgid "Posted"
1588
+ <<<<<<< HEAD
1589
+ <<<<<<< HEAD
1590
+ msgstr "发表时间"
1591
+ =======
1592
+ msgstr ""
1593
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1594
+ =======
1595
+ msgstr ""
1596
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1597
+
1598
+ #: crayon_settings_wp.class.php:848
1599
+ #@ crayon-syntax-highlighter
1600
+ msgid "Modifed"
1601
+ <<<<<<< HEAD
1602
+ <<<<<<< HEAD
1603
+ msgstr "修改时间"
1604
+ =======
1605
+ msgstr ""
1606
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1607
+ =======
1608
+ msgstr ""
1609
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1610
+
1611
+ #: crayon_settings_wp.class.php:848
1612
+ #@ crayon-syntax-highlighter
1613
+ msgid "Contains Legacy Tags?"
1614
+ <<<<<<< HEAD
1615
+ <<<<<<< HEAD
1616
+ msgstr "是否存在老式标签"
1617
+
1618
+ #: crayon_settings_wp.class.php:963
1619
+ =======
1620
+ msgstr ""
1621
+
1622
+ #: crayon_settings_wp.class.php:962
1623
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1624
+ =======
1625
+ msgstr ""
1626
+
1627
+ #: crayon_settings_wp.class.php:962
1628
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1629
+ #: util/theme-editor/theme_editor.php:184
1630
+ #@ crayon-syntax-highlighter
1631
+ msgid "Duplicate"
1632
+ msgstr "复制"
1633
+
1634
+ <<<<<<< HEAD
1635
+ <<<<<<< HEAD
1636
+ #: crayon_settings_wp.class.php:963
1637
+ =======
1638
+ #: crayon_settings_wp.class.php:962
1639
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1640
+ =======
1641
+ #: crayon_settings_wp.class.php:962
1642
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1643
+ #@ crayon-syntax-highlighter
1644
+ msgid "Submit"
1645
+ msgstr "提交"
1646
+
1647
+ <<<<<<< HEAD
1648
+ <<<<<<< HEAD
1649
+ #: crayon_settings_wp.class.php:964
1650
+ =======
1651
+ #: crayon_settings_wp.class.php:963
1652
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1653
+ =======
1654
+ #: crayon_settings_wp.class.php:963
1655
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1656
+ #: util/theme-editor/theme_editor.php:181
1657
+ #@ crayon-syntax-highlighter
1658
+ msgid "Delete"
1659
+ msgstr "删除"
1660
+
1661
+ <<<<<<< HEAD
1662
+ <<<<<<< HEAD
1663
+ #: crayon_settings_wp.class.php:968
1664
+ #@ crayon-syntax-highlighter
1665
+ msgid "Duplicate a Stock Theme into a User Theme to allow editing."
1666
+ msgstr "编辑主题前必须复制一个预设主题为自定义主题"
1667
+
1668
+ #: crayon_settings_wp.class.php:979
1669
+ #, php-format
1670
+ #@ crayon-syntax-highlighter
1671
+ msgid "Change the %1$sfallback language%2$s to change the sample code or %3$schange it manually%4$s. Lines 5-7 are marked."
1672
+ msgstr "%1$s修改默认语言%2$s 会显示不同的示例代码,您也可以 %3$s手动修改%4$s 示例代码;5-7 行为关键行。"
1673
+
1674
+ #: crayon_settings_wp.class.php:1028
1675
+ =======
1676
+ =======
1677
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1678
+ #: crayon_settings_wp.class.php:967
1679
+ #@ crayon-syntax-highlighter
1680
+ msgid "Duplicate a Stock Theme into a User Theme to allow editing."
1681
+ msgstr ""
1682
+
1683
+ #: crayon_settings_wp.class.php:978
1684
+ #, php-format
1685
+ #@ crayon-syntax-highlighter
1686
+ msgid "Change the %1$sfallback language%2$s to change the sample code or %3$schange it manually%4$s. Lines 5-7 are marked."
1687
+ msgstr ""
1688
+
1689
+ #: crayon_settings_wp.class.php:1027
1690
+ <<<<<<< HEAD
1691
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1692
+ =======
1693
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1694
+ #@ crayon-syntax-highlighter
1695
+ msgid "Expand code beyond page borders on mouseover"
1696
+ msgstr ""
1697
+
1698
+ <<<<<<< HEAD
1699
+ <<<<<<< HEAD
1700
+ #: crayon_settings_wp.class.php:1029
1701
+ =======
1702
+ #: crayon_settings_wp.class.php:1028
1703
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1704
+ =======
1705
+ #: crayon_settings_wp.class.php:1028
1706
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1707
+ #@ crayon-syntax-highlighter
1708
+ msgid "Enable code expanding toggling when possible"
1709
+ msgstr ""
1710
+
1711
+ <<<<<<< HEAD
1712
+ <<<<<<< HEAD
1713
+ #: crayon_settings_wp.class.php:1051
1714
+ #, php-format
1715
+ #@ crayon-syntax-highlighter
1716
+ msgid "Using this markup for Mini Tags and Inline tags is now %sdepreciated%s! Use the %sTag Editor%s instead and convert legacy tags."
1717
+ msgstr "不建议再使用迷你标签以及行内标签!请使用 %s标签编辑器%s 代替且转换掉老式标签。"
1718
+
1719
+ #: crayon_settings_wp.class.php:1079
1720
+ #@ crayon-syntax-highlighter
1721
+ msgid "Encode"
1722
+ msgstr "HTML 转义"
1723
+
1724
+ #: crayon_settings_wp.class.php:1084
1725
+ #@ crayon-syntax-highlighter
1726
+ msgid "Display the Tag Editor in any TinyMCE instances on the frontend (e.g. bbPress)"
1727
+ msgstr "在前端任何 TinyMCE 编辑器都显示标签编辑器(如 bbPress)"
1728
+ =======
1729
+ =======
1730
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1731
+ #: crayon_settings_wp.class.php:1050
1732
+ #, php-format
1733
+ #@ crayon-syntax-highlighter
1734
+ msgid "Using this markup for Mini Tags and Inline tags is now %sdepreciated%s! Use the %sTag Editor%s instead and convert legacy tags."
1735
+ msgstr ""
1736
+
1737
+ #: crayon_settings_wp.class.php:1078
1738
+ #@ crayon-syntax-highlighter
1739
+ msgid "Encode"
1740
+ msgstr ""
1741
+
1742
+ #: crayon_settings_wp.class.php:1083
1743
+ #@ crayon-syntax-highlighter
1744
+ msgid "Display the Tag Editor in any TinyMCE instances on the frontend (e.g. bbPress)"
1745
+ msgstr ""
1746
+ <<<<<<< HEAD
1747
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1748
+ =======
1749
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1750
+
1751
+ #. translators: plugin header field 'Version'
1752
+ #: crayon_wp.class.php:0
1753
+ #@ crayon-syntax-highlighter
1754
+ <<<<<<< HEAD
1755
+ <<<<<<< HEAD
1756
+ msgid "2.0.2"
1757
+ =======
1758
+ msgid "2.0.1"
1759
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1760
+ =======
1761
+ msgid "2.0.1"
1762
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1763
+ msgstr ""
1764
+
1765
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:173
1766
+ #@ crayon-syntax-highlighter
1767
+ msgid "OK"
1768
+ <<<<<<< HEAD
1769
+ <<<<<<< HEAD
1770
+ msgstr "确认"
1771
+ =======
1772
+ msgstr ""
1773
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1774
+ =======
1775
+ msgstr ""
1776
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1777
+
1778
+ #: util/tag-editor/crayon_tag_editor_wp.class.php:175
1779
+ #@ crayon-syntax-highlighter
1780
+ msgid "Cancel"
1781
+ <<<<<<< HEAD
1782
+ <<<<<<< HEAD
1783
+ msgstr "取消"
1784
+ =======
1785
+ msgstr ""
1786
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1787
+ =======
1788
+ msgstr ""
1789
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1790
+
1791
+ #: util/theme-editor/theme_editor.php:177
1792
+ #@ crayon-syntax-highlighter
1793
+ msgid "User-Defined Theme"
1794
+ <<<<<<< HEAD
1795
+ <<<<<<< HEAD
1796
+ msgstr "自定义主题"
1797
+ =======
1798
+ msgstr ""
1799
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1800
+ =======
1801
+ msgstr ""
1802
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1803
+
1804
+ #: util/theme-editor/theme_editor.php:178
1805
+ #@ crayon-syntax-highlighter
1806
+ msgid "Stock Theme"
1807
+ <<<<<<< HEAD
1808
+ <<<<<<< HEAD
1809
+ msgstr "预设主题"
1810
+ =======
1811
+ msgstr ""
1812
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1813
+ =======
1814
+ msgstr ""
1815
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1816
+
1817
+ #: util/theme-editor/theme_editor.php:179
1818
+ #@ crayon-syntax-highlighter
1819
+ msgid "Success!"
1820
+ <<<<<<< HEAD
1821
+ <<<<<<< HEAD
1822
+ msgstr "成功"
1823
+ =======
1824
+ msgstr ""
1825
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1826
+ =======
1827
+ msgstr ""
1828
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1829
+
1830
+ #: util/theme-editor/theme_editor.php:180
1831
+ #@ crayon-syntax-highlighter
1832
+ msgid "Failed!"
1833
+ <<<<<<< HEAD
1834
+ <<<<<<< HEAD
1835
+ msgstr "失败!"
1836
+ =======
1837
+ msgstr ""
1838
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1839
+ =======
1840
+ msgstr ""
1841
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1842
+
1843
+ #: util/theme-editor/theme_editor.php:182
1844
+ #, php-format
1845
+ #@ crayon-syntax-highlighter
1846
+ msgid "Are you sure you want to delete the \"%s\" theme?"
1847
+ <<<<<<< HEAD
1848
+ <<<<<<< HEAD
1849
+ msgstr "确认删除 \"%s\" 主题?"
1850
+ =======
1851
+ msgstr ""
1852
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1853
+ =======
1854
+ msgstr ""
1855
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1856
+
1857
+ #: util/theme-editor/theme_editor.php:183
1858
+ #@ crayon-syntax-highlighter
1859
+ msgid "Delete failed!"
1860
+ <<<<<<< HEAD
1861
+ <<<<<<< HEAD
1862
+ msgstr "删除失败!"
1863
+ =======
1864
+ msgstr "删除失败"
1865
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1866
+ =======
1867
+ msgstr "删除失败"
1868
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1869
+
1870
+ #: util/theme-editor/theme_editor.php:185
1871
+ #@ crayon-syntax-highlighter
1872
+ msgid "New Name"
1873
+ <<<<<<< HEAD
1874
+ <<<<<<< HEAD
1875
+ msgstr "自定义主题名"
1876
+ =======
1877
+ msgstr ""
1878
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1879
+ =======
1880
+ msgstr ""
1881
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1882
+
1883
+ #: util/theme-editor/theme_editor.php:186
1884
+ #@ crayon-syntax-highlighter
1885
+ msgid "Duplicate failed!"
1886
+ <<<<<<< HEAD
1887
+ <<<<<<< HEAD
1888
+ msgstr "复制失败!"
1889
+ =======
1890
+ msgstr "复制失败"
1891
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1892
+ =======
1893
+ msgstr "复制失败"
1894
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1895
+
1896
+ #: util/theme-editor/theme_editor.php:187
1897
+ #@ crayon-syntax-highlighter
1898
+ msgid "Please check the log for details."
1899
+ <<<<<<< HEAD
1900
+ <<<<<<< HEAD
1901
+ msgstr "更多信息请查看日志。"
1902
+ =======
1903
+ msgstr ""
1904
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1905
+ =======
1906
+ msgstr ""
1907
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1908
+
1909
+ #: util/theme-editor/theme_editor.php:188
1910
+ #@ crayon-syntax-highlighter
1911
+ msgid "Are you sure you want to discard all changes?"
1912
+ <<<<<<< HEAD
1913
+ <<<<<<< HEAD
1914
+ msgstr "确认放弃所有的修改?"
1915
+ =======
1916
+ msgstr ""
1917
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1918
+ =======
1919
+ msgstr ""
1920
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1921
+
1922
+ #: util/theme-editor/theme_editor.php:189
1923
+ #, php-format
1924
+ #@ crayon-syntax-highlighter
1925
+ msgid "Editing Theme: %s"
1926
+ <<<<<<< HEAD
1927
+ <<<<<<< HEAD
1928
+ msgstr "编辑中的主题:%s"
1929
+ =======
1930
+ msgstr ""
1931
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1932
+ =======
1933
+ msgstr ""
1934
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1935
+
1936
+ #: util/theme-editor/theme_editor.php:190
1937
+ #, php-format
1938
+ #@ crayon-syntax-highlighter
1939
+ msgid "Creating Theme: %s"
1940
+ <<<<<<< HEAD
1941
+ <<<<<<< HEAD
1942
+ msgstr "创建中的主题:%s"
1943
+ =======
1944
+ msgstr ""
1945
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1946
+ =======
1947
+ msgstr ""
1948
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1949
+
1950
+ #: util/theme-editor/theme_editor.php:191
1951
+ #@ crayon-syntax-highlighter
1952
+ msgid "Submit Your Theme"
1953
+ msgstr "提交您的主题"
1954
+
1955
+ #: util/theme-editor/theme_editor.php:192
1956
+ #@ crayon-syntax-highlighter
1957
+ msgid "Submit your User Theme for inclusion as a Stock Theme in Crayon!"
1958
+ <<<<<<< HEAD
1959
+ <<<<<<< HEAD
1960
+ msgstr "提交您的主题使之成为预设主题!"
1961
+ =======
1962
+ msgstr ""
1963
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1964
+ =======
1965
+ msgstr ""
1966
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1967
+
1968
+ #: util/theme-editor/theme_editor.php:193
1969
+ #@ crayon-syntax-highlighter
1970
+ msgid "Message"
1971
+ <<<<<<< HEAD
1972
+ <<<<<<< HEAD
1973
+ msgstr "说明"
1974
+ =======
1975
+ msgstr ""
1976
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1977
+ =======
1978
+ msgstr ""
1979
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1980
+
1981
+ #: util/theme-editor/theme_editor.php:194
1982
+ #@ crayon-syntax-highlighter
1983
+ msgid "Please include this theme in Crayon!"
1984
+ <<<<<<< HEAD
1985
+ <<<<<<< HEAD
1986
+ msgstr "请求纳入预设主题!"
1987
+ =======
1988
+ msgstr ""
1989
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1990
+ =======
1991
+ msgstr ""
1992
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
1993
+
1994
+ #: util/theme-editor/theme_editor.php:195
1995
+ #@ crayon-syntax-highlighter
1996
+ msgid "Submit was successful."
1997
+ msgstr "提交成功"
1998
+
1999
+ #: util/theme-editor/theme_editor.php:196
2000
+ #@ crayon-syntax-highlighter
2001
+ msgid "Submit failed!"
2002
+ <<<<<<< HEAD
2003
+ <<<<<<< HEAD
2004
+ msgstr "提交失败!"
2005
+ =======
2006
+ msgstr "提交失败"
2007
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2008
+ =======
2009
+ msgstr "提交失败"
2010
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2011
+
2012
+ #: util/theme-editor/theme_editor.php:268
2013
+ #@ crayon-syntax-highlighter
2014
+ msgid "Information"
2015
+ <<<<<<< HEAD
2016
+ <<<<<<< HEAD
2017
+ msgstr "基本信息"
2018
+ =======
2019
+ msgstr ""
2020
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2021
+ =======
2022
+ msgstr ""
2023
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2024
+
2025
+ #: util/theme-editor/theme_editor.php:269
2026
+ #@ crayon-syntax-highlighter
2027
+ msgid "Highlighting"
2028
+ <<<<<<< HEAD
2029
+ <<<<<<< HEAD
2030
+ msgstr "代码高亮"
2031
+ =======
2032
+ msgstr ""
2033
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2034
+ =======
2035
+ msgstr ""
2036
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2037
+
2038
+ #: util/theme-editor/theme_editor.php:270
2039
+ #@ crayon-syntax-highlighter
2040
+ msgid "Frame"
2041
+ <<<<<<< HEAD
2042
+ <<<<<<< HEAD
2043
+ msgstr "边框"
2044
+ =======
2045
+ msgstr ""
2046
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2047
+ =======
2048
+ msgstr ""
2049
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2050
+
2051
+ #: util/theme-editor/theme_editor.php:272
2052
+ #@ crayon-syntax-highlighter
2053
+ msgid "Line Numbers"
2054
+ <<<<<<< HEAD
2055
+ <<<<<<< HEAD
2056
+ msgstr "行编号"
2057
+ =======
2058
+ msgstr ""
2059
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2060
+ =======
2061
+ msgstr ""
2062
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2063
+
2064
+ #: util/theme-editor/theme_editor.php:275
2065
+ #@ crayon-syntax-highlighter
2066
+ msgid "Background"
2067
+ <<<<<<< HEAD
2068
+ <<<<<<< HEAD
2069
+ msgstr "背景色"
2070
+ =======
2071
+ msgstr ""
2072
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2073
+ =======
2074
+ msgstr ""
2075
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2076
+
2077
+ #: util/theme-editor/theme_editor.php:276
2078
+ #@ crayon-syntax-highlighter
2079
+ msgid "Text"
2080
+ <<<<<<< HEAD
2081
+ <<<<<<< HEAD
2082
+ msgstr "文字"
2083
+ =======
2084
+ msgstr ""
2085
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2086
+ =======
2087
+ msgstr ""
2088
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2089
+
2090
+ #: util/theme-editor/theme_editor.php:277
2091
+ #@ crayon-syntax-highlighter
2092
+ msgid "Border"
2093
+ <<<<<<< HEAD
2094
+ <<<<<<< HEAD
2095
+ msgstr "边框"
2096
+ =======
2097
+ msgstr ""
2098
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2099
+ =======
2100
+ msgstr ""
2101
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2102
+
2103
+ #: util/theme-editor/theme_editor.php:278
2104
+ #@ crayon-syntax-highlighter
2105
+ msgid "Top Border"
2106
+ <<<<<<< HEAD
2107
+ <<<<<<< HEAD
2108
+ msgstr "顶部边框"
2109
+ =======
2110
+ msgstr ""
2111
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2112
+ =======
2113
+ msgstr ""
2114
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2115
+
2116
+ #: util/theme-editor/theme_editor.php:279
2117
+ #@ crayon-syntax-highlighter
2118
+ msgid "Bottom Border"
2119
+ <<<<<<< HEAD
2120
+ <<<<<<< HEAD
2121
+ msgstr "底部边框"
2122
+ =======
2123
+ msgstr ""
2124
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2125
+ =======
2126
+ msgstr ""
2127
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2128
+
2129
+ #: util/theme-editor/theme_editor.php:281
2130
+ #@ crayon-syntax-highlighter
2131
+ msgid "Hover"
2132
+ <<<<<<< HEAD
2133
+ <<<<<<< HEAD
2134
+ msgstr "悬停"
2135
+ =======
2136
+ msgstr ""
2137
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2138
+ =======
2139
+ msgstr ""
2140
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2141
+
2142
+ #: util/theme-editor/theme_editor.php:282
2143
+ #@ crayon-syntax-highlighter
2144
+ msgid "Active"
2145
+ <<<<<<< HEAD
2146
+ <<<<<<< HEAD
2147
+ msgstr "激活"
2148
+ =======
2149
+ msgstr ""
2150
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2151
+ =======
2152
+ msgstr ""
2153
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2154
+
2155
+ #: util/theme-editor/theme_editor.php:283
2156
+ #@ crayon-syntax-highlighter
2157
+ msgid "Pressed"
2158
+ <<<<<<< HEAD
2159
+ <<<<<<< HEAD
2160
+ msgstr "已访问"
2161
+ =======
2162
+ msgstr ""
2163
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2164
+ =======
2165
+ msgstr ""
2166
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2167
+
2168
+ #: util/theme-editor/theme_editor.php:284
2169
+ #@ crayon-syntax-highlighter
2170
+ msgid "Pressed & Hover"
2171
+ <<<<<<< HEAD
2172
+ <<<<<<< HEAD
2173
+ msgstr "已访问 & 悬停"
2174
+ =======
2175
+ msgstr ""
2176
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2177
+ =======
2178
+ msgstr ""
2179
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2180
+
2181
+ #: util/theme-editor/theme_editor.php:285
2182
+ #@ crayon-syntax-highlighter
2183
+ msgid "Pressed & Active"
2184
+ <<<<<<< HEAD
2185
+ <<<<<<< HEAD
2186
+ msgstr "已访问 & 激活"
2187
+ =======
2188
+ msgstr ""
2189
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2190
+ =======
2191
+ msgstr ""
2192
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2193
+
2194
+ #: util/theme-editor/theme_editor.php:288
2195
+ #@ crayon-syntax-highlighter
2196
+ msgid "Buttons"
2197
+ <<<<<<< HEAD
2198
+ <<<<<<< HEAD
2199
+ msgstr "按钮"
2200
+ =======
2201
+ msgstr ""
2202
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2203
+ =======
2204
+ msgstr ""
2205
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2206
+
2207
+ #: util/theme-editor/theme_editor.php:290
2208
+ #@ crayon-syntax-highlighter
2209
+ msgid "Normal"
2210
+ <<<<<<< HEAD
2211
+ <<<<<<< HEAD
2212
+ msgstr "一般"
2213
+ =======
2214
+ msgstr ""
2215
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2216
+ =======
2217
+ msgstr ""
2218
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2219
+
2220
+ #: util/theme-editor/theme_editor.php:292
2221
+ #@ crayon-syntax-highlighter
2222
+ msgid "Striped"
2223
+ <<<<<<< HEAD
2224
+ <<<<<<< HEAD
2225
+ msgstr "条纹"
2226
+ =======
2227
+ msgstr ""
2228
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2229
+ =======
2230
+ msgstr ""
2231
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2232
+
2233
+ #: util/theme-editor/theme_editor.php:293
2234
+ #@ crayon-syntax-highlighter
2235
+ msgid "Marked"
2236
+ <<<<<<< HEAD
2237
+ <<<<<<< HEAD
2238
+ msgstr "关键"
2239
+ =======
2240
+ msgstr ""
2241
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2242
+ =======
2243
+ msgstr ""
2244
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2245
+
2246
+ #: util/theme-editor/theme_editor.php:294
2247
+ #@ crayon-syntax-highlighter
2248
+ msgid "Striped & Marked"
2249
+ <<<<<<< HEAD
2250
+ <<<<<<< HEAD
2251
+ msgstr "条纹 & 关键"
2252
+ =======
2253
+ msgstr ""
2254
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2255
+ =======
2256
+ msgstr ""
2257
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2258
+
2259
+ #: util/theme-editor/theme_editor.php:363
2260
+ #@ crayon-syntax-highlighter
2261
+ msgid "Comment"
2262
+ <<<<<<< HEAD
2263
+ <<<<<<< HEAD
2264
+ msgstr "注释"
2265
+ =======
2266
+ msgstr ""
2267
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2268
+ =======
2269
+ msgstr ""
2270
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2271
+
2272
+ #: util/theme-editor/theme_editor.php:364
2273
+ #@ crayon-syntax-highlighter
2274
+ msgid "String"
2275
+ <<<<<<< HEAD
2276
+ <<<<<<< HEAD
2277
+ msgstr "字符串"
2278
+ =======
2279
+ msgstr ""
2280
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2281
+ =======
2282
+ msgstr ""
2283
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2284
+
2285
+ #: util/theme-editor/theme_editor.php:365
2286
+ #@ crayon-syntax-highlighter
2287
+ msgid "Preprocessor"
2288
+ msgstr ""
2289
+
2290
+ #: util/theme-editor/theme_editor.php:366
2291
+ #@ crayon-syntax-highlighter
2292
+ msgid "Tag"
2293
+ msgstr ""
2294
+
2295
+ #: util/theme-editor/theme_editor.php:367
2296
+ #@ crayon-syntax-highlighter
2297
+ msgid "Keyword"
2298
+ msgstr ""
2299
+
2300
+ #: util/theme-editor/theme_editor.php:368
2301
+ #@ crayon-syntax-highlighter
2302
+ msgid "Statement"
2303
+ msgstr ""
2304
+
2305
+ #: util/theme-editor/theme_editor.php:369
2306
+ #@ crayon-syntax-highlighter
2307
+ msgid "Reserved"
2308
+ <<<<<<< HEAD
2309
+ <<<<<<< HEAD
2310
+ msgstr "保留字"
2311
+ =======
2312
+ msgstr ""
2313
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2314
+ =======
2315
+ msgstr ""
2316
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2317
+
2318
+ #: util/theme-editor/theme_editor.php:370
2319
+ #@ crayon-syntax-highlighter
2320
+ msgid "Type"
2321
+ msgstr ""
2322
+
2323
+ #: util/theme-editor/theme_editor.php:371
2324
+ #@ crayon-syntax-highlighter
2325
+ msgid "Modifier"
2326
+ msgstr ""
2327
+
2328
+ #: util/theme-editor/theme_editor.php:372
2329
+ #@ crayon-syntax-highlighter
2330
+ msgid "Identifier"
2331
+ msgstr ""
2332
+
2333
+ #: util/theme-editor/theme_editor.php:373
2334
+ #@ crayon-syntax-highlighter
2335
+ msgid "Entity"
2336
+ msgstr ""
2337
+
2338
+ #: util/theme-editor/theme_editor.php:374
2339
+ #@ crayon-syntax-highlighter
2340
+ msgid "Variable"
2341
+ <<<<<<< HEAD
2342
+ <<<<<<< HEAD
2343
+ msgstr "变量"
2344
+ =======
2345
+ msgstr ""
2346
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2347
+ =======
2348
+ msgstr ""
2349
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2350
+
2351
+ #: util/theme-editor/theme_editor.php:375
2352
+ #@ crayon-syntax-highlighter
2353
+ msgid "Constant"
2354
+ msgstr ""
2355
+
2356
+ #: util/theme-editor/theme_editor.php:376
2357
+ #@ crayon-syntax-highlighter
2358
+ msgid "Operator"
2359
+ msgstr ""
2360
+
2361
+ #: util/theme-editor/theme_editor.php:377
2362
+ #@ crayon-syntax-highlighter
2363
+ msgid "Symbol"
2364
+ msgstr ""
2365
+
2366
+ #: util/theme-editor/theme_editor.php:378
2367
+ #@ crayon-syntax-highlighter
2368
+ msgid "Notation"
2369
+ msgstr ""
2370
+
2371
+ #: util/theme-editor/theme_editor.php:379
2372
+ #@ crayon-syntax-highlighter
2373
+ msgid "Faded"
2374
+ msgstr ""
2375
+
2376
+ #: util/theme-editor/theme_editor.php:380
2377
+ #@ crayon-syntax-highlighter
2378
+ msgid "HTML"
2379
+ msgstr ""
2380
+
2381
+ #: util/theme-editor/theme_editor.php:507
2382
+ #@ crayon-syntax-highlighter
2383
+ msgid "(Used for Copy/Paste)"
2384
+ <<<<<<< HEAD
2385
+ <<<<<<< HEAD
2386
+ msgstr "(复制/粘贴时的样式)"
2387
+ =======
2388
+ msgstr ""
2389
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2390
+ =======
2391
+ msgstr ""
2392
+ >>>>>>> 58ce7ef27f5dc1ba9027605fd66be2f010743ffc
2393
+
util/crayon_log.class.php CHANGED
@@ -30,13 +30,7 @@ class CrayonLog {
30
  }
31
  }
32
  // Capture variable dump
33
- ob_start();
34
- var_dump($var);
35
- $buffer = trim(strip_tags(ob_get_clean()));
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) ? " [$title]" : '');
41
 
42
  // Remove absolute path to plugin directory from buffer
@@ -54,8 +48,7 @@ class CrayonLog {
54
  clearstatcache();
55
  fwrite(self::$file, $write, CRAYON_LOG_MAX_SIZE);
56
  } catch (Exception $e) {
57
- // Ignore fatal errors
58
-
59
  }
60
  }
61
  }
30
  }
31
  }
32
  // Capture variable dump
33
+ $buffer = trim(strip_tags(var_export($var, true)));
 
 
 
 
 
 
34
  $title = (!empty($title) ? " [$title]" : '');
35
 
36
  // Remove absolute path to plugin directory from buffer
48
  clearstatcache();
49
  fwrite(self::$file, $write, CRAYON_LOG_MAX_SIZE);
50
  } catch (Exception $e) {
51
+ // Ignore fatal errors during logging
 
52
  }
53
  }
54
  }
util/crayon_util.class.php CHANGED
@@ -265,7 +265,7 @@ EOT;
265
 
266
  public static function deleteDir($path) {
267
  if (!is_dir($path)) {
268
- throw new InvalidArgumentException("$path is not a directory");
269
  }
270
  if (substr($path, strlen($path) - 1, 1) != '/') {
271
  $path .= '/';
@@ -281,13 +281,17 @@ EOT;
281
  rmdir($path);
282
  }
283
 
284
- public static function copyDir($src, $dst) {
285
  // http://stackoverflow.com/questions/2050859
286
  if (!is_dir($src)) {
287
- throw new InvalidArgumentException("$src is not a directory");
288
  }
289
  $dir = opendir($src);
290
- @mkdir($dst, 0777, TRUE);
 
 
 
 
291
  while (false !== ($file = readdir($dir))) {
292
  if (($file != '.') && ($file != '..')) {
293
  if (is_dir($src . '/' . $file)) {
@@ -408,7 +412,7 @@ EOT;
408
  }
409
 
410
  public static function html_entity_decode($str) {
411
- return html_entity_decode($str, ENT_NOQUOTES, 'UTF-8');
412
  }
413
 
414
  // Converts <, >, & into entities
265
 
266
  public static function deleteDir($path) {
267
  if (!is_dir($path)) {
268
+ throw new InvalidArgumentException("deleteDir: $path is not a directory");
269
  }
270
  if (substr($path, strlen($path) - 1, 1) != '/') {
271
  $path .= '/';
281
  rmdir($path);
282
  }
283
 
284
+ public static function copyDir($src, $dst, $mkdir = NULL) {
285
  // http://stackoverflow.com/questions/2050859
286
  if (!is_dir($src)) {
287
+ throw new InvalidArgumentException("copyDir: $src is not a directory");
288
  }
289
  $dir = opendir($src);
290
+ if ($mkdir !== NULL) {
291
+ call_user_func($mkdir, $dst);
292
+ } else {
293
+ @mkdir($dst, 0777, TRUE);
294
+ }
295
  while (false !== ($file = readdir($dir))) {
296
  if (($file != '.') && ($file != '..')) {
297
  if (is_dir($src . '/' . $file)) {
412
  }
413
 
414
  public static function html_entity_decode($str) {
415
+ return html_entity_decode($str, ENT_COMPAT, 'UTF-8');
416
  }
417
 
418
  // Converts <, >, & into entities
util/sample/arduino.txt ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #define LED_PIN 13
2
+
3
+ void setup () {
4
+ pinMode (LED_PIN, OUTPUT); // enable pin 13 for digital output
5
+ }
6
+
7
+ void loop () {
8
+ digitalWrite (LED_PIN, HIGH); // turn on the LED
9
+ delay (1000); // wait one second (1000 milliseconds)
10
+ digitalWrite (LED_PIN, LOW); // turn off the LED
11
+ delay (1000); // wait one second
12
+ }
util/sample/c.txt CHANGED
@@ -2,6 +2,7 @@
2
  int main(void) {
3
  int x;
4
  x = 0;
 
5
  set(&x, 42);
6
  printf("%d %d", x);
7
  return 0;
2
  int main(void) {
3
  int x;
4
  x = 0;
5
+ // Uses a pointer
6
  set(&x, 42);
7
  printf("%d %d", x);
8
  return 0;
util/sample/coffee.txt ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Example Script
2
+
3
+ class Animal
4
+ constructor: (@name) ->
5
+
6
+ move: (meters) ->
7
+ alert @name + " moved #{meters}m."
8
+ alert @name.foo
9
+ alert this.name
10
+
11
+ class Snake extends Animal
12
+ move: ->
13
+ alert "Slithering..."
14
+ super 5
util/sample/less.txt ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @import "lib.css";
2
+ @the-border: 1px;
3
+ @base-color: #111;
4
+ @red: #842210;
5
+ #header {
6
+ color: (@base-color * 3);
7
+ border-left: @the-border;
8
+ border-right: (@the-border * 2);
9
+ }
10
+ #footer {
11
+ color: (@base-color + #003300);
12
+ border-color: desaturate(@red, 10%);
13
+ }
util/sample/lisp.txt ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ;Coding starts here
2
+ (defun c:lg ( / x_object x_length)
3
+ (vl-load-com)
4
+ (setq x_object (entsel))
5
+ (setq x_object (vlax-Ename->Vla-Object (car x_object)))
6
+ (setq x_length (vlax-curve-getdistatparam x_object
7
+ (vlax-curve-getendparam x_object )))
8
+ (alert (strcat "Length = " (rtos x_length)))
9
+ (princ)
10
+ );defun
11
+ (princ)
12
+ ;Coding ends here
util/sample/sass.txt ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ @mixin adjust-location($x, $y) {
2
+ @if unitless($x) {
3
+ @warn "Assuming #{$x} to be in pixels";
4
+ $x: 1px * $x;
5
+ }
6
+ @if unitless($y) {
7
+ @warn "Assuming #{$y} to be in pixels";
8
+ $y: 1px * $y;
9
+ }
10
+ position: relative; left: $x; top: $y;
11
+ }
util/tag-editor/{crayon_te.js → crayon_tag_editor.js} RENAMED
File without changes
util/tag-editor/crayon_tag_editor_wp.class.php CHANGED
@@ -23,8 +23,6 @@ class CrayonTagEditorWP {
23
  // XXX This will always need to enqueue, but only runs on front end
24
  add_action('wp', 'CrayonTagEditorWP::enqueue_resources');
25
  add_filter('tiny_mce_before_init', 'CrayonTagEditorWP::init_tinymce');
26
- // Must come after
27
- //add_action("wp", 'CrayonSettingsWP::init_js_settings');
28
  self::addbuttons();
29
  }
30
  }
@@ -93,7 +91,7 @@ class CrayonTagEditorWP {
93
  $path = dirname(dirname(__FILE__));
94
  wp_enqueue_style('crayon_fancybox', plugins_url(CRAYON_CSS_FANCYBOX, $path), array(), $CRAYON_VERSION);
95
  wp_enqueue_script('crayon_fancybox', plugins_url(CRAYON_JS_FANCYBOX, $path), array('jquery'), $CRAYON_VERSION);
96
- wp_enqueue_script('crayon_te_js', plugins_url(CRAYON_TE_JS, __FILE__), array('crayon_fancybox', 'crayon_util_js'), $CRAYON_VERSION);
97
  wp_enqueue_script('crayon_qt_js', plugins_url(CRAYON_QUICKTAGS_JS, __FILE__), array('quicktags', 'crayon_te_js'), $CRAYON_VERSION, TRUE);
98
  wp_localize_script('crayon_te_js', 'CrayonTagEditorSettings', self::$settings);
99
  CrayonSettingsWP::other_scripts();
@@ -153,7 +151,6 @@ class CrayonTagEditorWP {
153
  }
154
 
155
  public static function content() {
156
-
157
  CrayonSettingsWP::load_settings();
158
  $langs = CrayonLangs::sort_by_name(CrayonParser::parse_all());
159
  $curr_lang = CrayonGlobalSettings::val(CrayonSettings::FALLBACK_LANG);
23
  // XXX This will always need to enqueue, but only runs on front end
24
  add_action('wp', 'CrayonTagEditorWP::enqueue_resources');
25
  add_filter('tiny_mce_before_init', 'CrayonTagEditorWP::init_tinymce');
 
 
26
  self::addbuttons();
27
  }
28
  }
91
  $path = dirname(dirname(__FILE__));
92
  wp_enqueue_style('crayon_fancybox', plugins_url(CRAYON_CSS_FANCYBOX, $path), array(), $CRAYON_VERSION);
93
  wp_enqueue_script('crayon_fancybox', plugins_url(CRAYON_JS_FANCYBOX, $path), array('jquery'), $CRAYON_VERSION);
94
+ wp_enqueue_script('crayon_te_js', plugins_url(CRAYON_TAG_EDITOR_JS, __FILE__), array('crayon_fancybox', 'crayon_util_js'), $CRAYON_VERSION);
95
  wp_enqueue_script('crayon_qt_js', plugins_url(CRAYON_QUICKTAGS_JS, __FILE__), array('quicktags', 'crayon_te_js'), $CRAYON_VERSION, TRUE);
96
  wp_localize_script('crayon_te_js', 'CrayonTagEditorSettings', self::$settings);
97
  CrayonSettingsWP::other_scripts();
151
  }
152
 
153
  public static function content() {
 
154
  CrayonSettingsWP::load_settings();
155
  $langs = CrayonLangs::sort_by_name(CrayonParser::parse_all());
156
  $curr_lang = CrayonGlobalSettings::val(CrayonSettings::FALLBACK_LANG);
util/tag-editor/crayon_tinymce.js CHANGED
@@ -154,7 +154,7 @@
154
  return {
155
  longname: 'Crayon Syntax Highlighter',
156
  author: 'Aram Kocharyan',
157
- authorurl: 'http://ak.net84.net/',
158
  infourl: 'http://bit.ly/crayonsyntax/',
159
  version: "1.0"
160
  };
154
  return {
155
  longname: 'Crayon Syntax Highlighter',
156
  author: 'Aram Kocharyan',
157
+ authorurl: 'http://aramk.com/',
158
  infourl: 'http://bit.ly/crayonsyntax/',
159
  version: "1.0"
160
  };
util/theme-editor/theme_editor.css CHANGED
@@ -158,13 +158,10 @@
158
 
159
  #crayon-editor-controls .ui-tabs-nav li a,
160
  #crayon-editor-controls .ui-tabs-nav li {
 
161
  width: 70px;
162
  }
163
 
164
- #crayon-editor-controls .ui-tabs-nav li:first-child {
165
- border-top-left-radius: 4px;
166
- }
167
-
168
  #crayon-editor-controls.ui-tabs {
169
  padding: 0;
170
  margin: 0;
@@ -236,7 +233,7 @@
236
  background: url(images/toolbar.png) no-repeat top center;
237
  }
238
 
239
- .ui-widget-header {
240
  border: 1px solid #b3b3b3;
241
  border-bottom: 1px solid #666;
242
  background: #929292 url(images/button.png) center bottom repeat-x;
@@ -277,10 +274,44 @@
277
  border-top: 1px solid #eee !important;
278
  }
279
 
280
- .ui-dialog-content td input {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
281
  width: 100%;
282
  }
283
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
284
  /* {*/
285
  /*height: auto !important;*/
286
  /*}*/
158
 
159
  #crayon-editor-controls .ui-tabs-nav li a,
160
  #crayon-editor-controls .ui-tabs-nav li {
161
+ float: left;
162
  width: 70px;
163
  }
164
 
 
 
 
 
165
  #crayon-editor-controls.ui-tabs {
166
  padding: 0;
167
  margin: 0;
233
  background: url(images/toolbar.png) no-repeat top center;
234
  }
235
 
236
+ #crayon-editor-controls .ui-widget-header {
237
  border: 1px solid #b3b3b3;
238
  border-bottom: 1px solid #666;
239
  background: #929292 url(images/button.png) center bottom repeat-x;
274
  border-top: 1px solid #eee !important;
275
  }
276
 
277
+ .wp-dialog {
278
+ min-width: 300px;
279
+ }
280
+
281
+ .wp-dialog .ui-dialog-content {
282
+ padding: 10px;
283
+ min-height: 10px !important;
284
+ }
285
+
286
+ .wp-dialog .ui-dialog-content td {
287
+ padding: 5px 0;
288
+ }
289
+
290
+ .wp-dialog .ui-dialog-content .field-table td input,
291
+ .wp-dialog .ui-dialog-content .field-table {
292
  width: 100%;
293
  }
294
 
295
+ .ui-colorpicker-dialog {
296
+ width: 575px !important;
297
+ height: 350px !important;
298
+ /*position: fixed;*/
299
+ /*left: auto;*/
300
+ /*right: 450px;*/
301
+ bottom: 0;
302
+ }
303
+
304
+ .ui-colorpicker-dialog .ui-colorpicker-bar-container {
305
+ padding-right: 5px !important;
306
+ }
307
+ .ui-colorpicker-dialog .ui-dialog-buttonpane {
308
+ margin-top: 0;
309
+ padding-top: 0;
310
+ }
311
+ .ui-colorpicker-dialog .ui-dialog-content {
312
+ padding-bottom: 0;
313
+ }
314
+
315
  /* {*/
316
  /*height: auto !important;*/
317
  /*}*/
util/theme-editor/theme_editor.js CHANGED
@@ -10,15 +10,18 @@
10
  var adminSettings = CrayonAdminSettings;
11
  var settings = CrayonThemeEditorSettings;
12
  var strings = CrayonThemeEditorStrings;
 
13
  var admin = CrayonSyntaxAdmin;
14
 
15
  var preview, previewCrayon, previewCSS, status, title, info;
 
16
  var changed, loaded;
17
  var themeID, themeJSON, themeCSS, themeStr, themeInfo;
18
  var reImportant = /\s+!important$/gmi;
19
  var reSize = /^[0-9-]+px$/;
20
  var reCopy = /-copy(-\d+)?$/;
21
  var changedAttr = 'data-value';
 
22
 
23
  base.init = function (callback) {
24
  // Called only once
@@ -32,9 +35,6 @@
32
  base.show = function (callback, crayon) {
33
  // Called each time editor is shown
34
  previewCrayon = crayon.find('.crayon-syntax');
35
- //crayon.attr('id', 'theme-editor-instance');
36
- // CrayonSyntax.process(crayon, true);
37
- // preview.html(crayon);
38
  preview.append(crayon)
39
  base.load();
40
  if (callback) {
@@ -51,6 +51,7 @@
51
  stripComments: true,
52
  split: true
53
  });
 
54
  CrayonUtil.log(themeJSON);
55
  themeInfo = base.readCSSInfo(themeStr);
56
  base.removeExistingCSS();
@@ -75,7 +76,6 @@
75
  }
76
  // Update attributes
77
  base.persistAttributes();
78
- // return false;
79
  // Save
80
  themeCSS = CSSJSON.toCSS(themeJSON);
81
  var newThemeStr = base.writeCSSInfo(info) + themeCSS;
@@ -104,7 +104,7 @@
104
  };
105
 
106
  base.del = function (id, name) {
107
- base.createDialog({
108
  title: strings.del,
109
  html: strings.deleteThemeConfirm.replace('%s', name),
110
  yes: function () {
@@ -115,7 +115,7 @@
115
  if (result > 0) {
116
  CrayonUtil.reload();
117
  } else {
118
- base.createAlert({
119
  html: strings.deleteFail + ' ' + strings.checkLog
120
  });
121
  }
@@ -142,7 +142,7 @@
142
  if (result > 0) {
143
  CrayonUtil.reload();
144
  } else {
145
- base.createAlert({
146
  html: strings.duplicateFail + ' ' + strings.checkLog
147
  });
148
  }
@@ -163,9 +163,8 @@
163
  id: id,
164
  message: val
165
  }, function (result) {
166
- console.log(result);
167
- var msg = result > 0 ? strings.submitSucceed : strings.submitFail + ' ' + strings.checkLog ;
168
- base.createAlert({
169
  html: msg
170
  });
171
  });
@@ -206,11 +205,6 @@
206
  var match = null;
207
  var infoRegex = /([^\r\n:]*[^\r\n\s:])\s*:\s*([^\r\n]+)/gmi;
208
  while ((match = infoRegex.exec(infoStr)) != null) {
209
- // var fieldID = settings.fieldsInverse[match[1]];
210
- // var fieldID = base.convertToID(match[1]);
211
- // if (fieldID) {
212
- // themeInfo[fieldID] = match[2];
213
- // }
214
  themeInfo[base.nameToID(match[1])] = CrayonUtil.encode_html(match[2]);
215
  }
216
  // Force title case on the name
@@ -238,7 +232,7 @@
238
  return names;
239
  };
240
 
241
- base.removeExistingCSS = function() {
242
  // Remove the old <style> tag to prevent clashes
243
  preview.find('link[rel="stylesheet"][href*="' + adminSettings.currThemeURL + '"]').remove()
244
  };
@@ -398,22 +392,99 @@
398
  return attr.replace(reImportant, '');
399
  };
400
 
 
 
 
 
401
  base.appendStyle = function (css) {
402
  previewCSS.html('<style>' + css + '</style>');
403
  };
404
 
405
- base.removeStyle = function() {
406
  previewCSS.html('');
407
  };
408
 
409
  base.writeCSSInfo = function (info) {
410
  var infoStr = '/*\n';
411
- for (field in info) {
412
  infoStr += field + ': ' + info[field] + '\n';
413
  }
414
  return infoStr + '*/\n';
415
  };
416
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
417
  base.initUI = function () {
418
  // Bind events
419
  preview = $('#crayon-editor-preview');
@@ -424,9 +495,9 @@
424
  $('#crayon-editor-controls').tabs();
425
  $('#crayon-editor-back').click(function () {
426
  if (changed) {
427
- base.createDialog({
428
  html: strings.discardConfirm,
429
- title: strings.confirm,
430
  yes: function () {
431
  showMain();
432
  }
@@ -447,12 +518,19 @@
447
  showNoneButton: true,
448
  colorFormat: '#HEX'
449
  };
 
 
 
 
 
 
 
 
 
450
  args.select = function (e, color) {
451
  attr.trigger('change');
452
  };
453
  args.close = function (e, color) {
454
- // attr.val(color.formatted);
455
- // args.select(e, color);
456
  attr.trigger('change');
457
  };
458
  attr.colorpicker(args);
@@ -494,6 +572,18 @@
494
  }
495
  });
496
  });
 
 
 
 
 
 
 
 
 
 
 
 
497
  };
498
 
499
  base.updateLiveCSS = function (clone) {
@@ -556,90 +646,6 @@
556
  info.html('<a target="_blank" href="' + adminSettings.currThemeURL + '">' + adminSettings.currThemeURL + '</a>');
557
  };
558
 
559
- base.createPrompt = function (args) {
560
- args = $.extend({
561
- title: strings.prompt,
562
- text: strings.value,
563
- desc: null,
564
- value: '',
565
- options: {
566
- buttons: {
567
- "OK": function () {
568
- if (args.ok) {
569
- args.ok(base.getFieldValue('prompt-text'));
570
- }
571
- $(this).dialog('close');
572
- },
573
- "Cancel": function () {
574
- $(this).dialog('close');
575
- }
576
- },
577
- open: function () {
578
- base.getField('prompt-text').val(args.value).focus();
579
- }
580
- }
581
- }, args);
582
- args.html = '<table>';
583
- if (args.desc) {
584
- args.html += '<tr><td colspan="2">' + args.desc + '</td></tr>';
585
- }
586
- args.html += '<tr><td>' + args.text + ':</td><td>' + base.createInput('prompt-text') + '</td></tr>';
587
- args.html += '</table>';
588
- base.createDialog(args);
589
- };
590
-
591
- base.createAlert = function (args) {
592
- args = $.extend({
593
- title: strings.alert,
594
- options: {
595
- buttons: {
596
- "OK": function () {
597
- $(this).dialog('close');
598
- }
599
- }
600
- }
601
- }, args);
602
- base.createDialog(args);
603
- };
604
-
605
- base.createDialog = function (args) {
606
- var defaultArgs = {
607
- yesLabel: strings.yes,
608
- noLabel: strings.no,
609
- title: strings.confirm
610
- };
611
- args = $.extend(defaultArgs, args);
612
- var options = {
613
- modal: true, title: args.title, zIndex: 10000, autoOpen: true,
614
- width: 'auto', resizable: false,
615
- buttons: {
616
- },
617
- selectedButtonIndex: 1, // starts from 1
618
- close: function (event, ui) {
619
- $(this).remove();
620
- }
621
- };
622
- options.open = function () {
623
- $(this).parent().find('button:nth-child(' + options.selectedButtonIndex + ')').focus();
624
- };
625
- options.buttons[args.yesLabel] = function () {
626
- if (args.yes) {
627
- args.yes();
628
- }
629
- $(this).dialog('close');
630
- };
631
- options.buttons[args.noLabel] = function () {
632
- if (args.no) {
633
- args.no();
634
- }
635
- $(this).dialog('close');
636
- };
637
- options = $.extend(options, args.options);
638
- $('<div></div>').appendTo('body').html(args.html).dialog(options);
639
- // Can be modified afterwards
640
- return args;
641
- }
642
-
643
  };
644
 
645
  })(jQueryCrayon);
10
  var adminSettings = CrayonAdminSettings;
11
  var settings = CrayonThemeEditorSettings;
12
  var strings = CrayonThemeEditorStrings;
13
+ var adminStrings = CrayonAdminStrings;
14
  var admin = CrayonSyntaxAdmin;
15
 
16
  var preview, previewCrayon, previewCSS, status, title, info;
17
+ var colorPickerPos;
18
  var changed, loaded;
19
  var themeID, themeJSON, themeCSS, themeStr, themeInfo;
20
  var reImportant = /\s+!important$/gmi;
21
  var reSize = /^[0-9-]+px$/;
22
  var reCopy = /-copy(-\d+)?$/;
23
  var changedAttr = 'data-value';
24
+ var borderCSS = {'border':true, 'border-left':true, 'border-right':true, 'border-top':true, 'border-bottom':true};
25
 
26
  base.init = function (callback) {
27
  // Called only once
35
  base.show = function (callback, crayon) {
36
  // Called each time editor is shown
37
  previewCrayon = crayon.find('.crayon-syntax');
 
 
 
38
  preview.append(crayon)
39
  base.load();
40
  if (callback) {
51
  stripComments: true,
52
  split: true
53
  });
54
+ themeJSON = base.filterCSS(themeJSON);
55
  CrayonUtil.log(themeJSON);
56
  themeInfo = base.readCSSInfo(themeStr);
57
  base.removeExistingCSS();
76
  }
77
  // Update attributes
78
  base.persistAttributes();
 
79
  // Save
80
  themeCSS = CSSJSON.toCSS(themeJSON);
81
  var newThemeStr = base.writeCSSInfo(info) + themeCSS;
104
  };
105
 
106
  base.del = function (id, name) {
107
+ admin.createDialog({
108
  title: strings.del,
109
  html: strings.deleteThemeConfirm.replace('%s', name),
110
  yes: function () {
115
  if (result > 0) {
116
  CrayonUtil.reload();
117
  } else {
118
+ admin.createAlert({
119
  html: strings.deleteFail + ' ' + strings.checkLog
120
  });
121
  }
142
  if (result > 0) {
143
  CrayonUtil.reload();
144
  } else {
145
+ admin.createAlert({
146
  html: strings.duplicateFail + ' ' + strings.checkLog
147
  });
148
  }
163
  id: id,
164
  message: val
165
  }, function (result) {
166
+ var msg = result > 0 ? strings.submitSucceed : strings.submitFail + ' ' + strings.checkLog;
167
+ admin.createAlert({
 
168
  html: msg
169
  });
170
  });
205
  var match = null;
206
  var infoRegex = /([^\r\n:]*[^\r\n\s:])\s*:\s*([^\r\n]+)/gmi;
207
  while ((match = infoRegex.exec(infoStr)) != null) {
 
 
 
 
 
208
  themeInfo[base.nameToID(match[1])] = CrayonUtil.encode_html(match[2]);
209
  }
210
  // Force title case on the name
232
  return names;
233
  };
234
 
235
+ base.removeExistingCSS = function () {
236
  // Remove the old <style> tag to prevent clashes
237
  preview.find('link[rel="stylesheet"][href*="' + adminSettings.currThemeURL + '"]').remove()
238
  };
392
  return attr.replace(reImportant, '');
393
  };
394
 
395
+ base.isImportant = function (attr) {
396
+ return reImportant.exec(attr) != null;
397
+ };
398
+
399
  base.appendStyle = function (css) {
400
  previewCSS.html('<style>' + css + '</style>');
401
  };
402
 
403
+ base.removeStyle = function () {
404
  previewCSS.html('');
405
  };
406
 
407
  base.writeCSSInfo = function (info) {
408
  var infoStr = '/*\n';
409
+ for (var field in info) {
410
  infoStr += field + ': ' + info[field] + '\n';
411
  }
412
  return infoStr + '*/\n';
413
  };
414
 
415
+ base.filterCSS = function(css) {
416
+ // Split all border CSS attributes into individual attributes
417
+ for (var child in css.children) {
418
+ var atts = css.children[child].attributes;
419
+ for (var att in atts) {
420
+ if (att in borderCSS) {
421
+ var rules = base.getBorderCSS(atts[att]);
422
+ for (var rule in rules) {
423
+ atts[att + '-' + rule] = rules[rule];
424
+ }
425
+ delete atts[att];
426
+ }
427
+ }
428
+ }
429
+ return css;
430
+ },
431
+
432
+ base.getBorderCSS = function (css) {
433
+ var result = {};
434
+ var important = base.isImportant(css);
435
+ $.each(strings.borderStyles, function (i, style) {
436
+ if (css.indexOf(style) >= 0) {
437
+ result.style = style;
438
+ }
439
+ });
440
+ var width = /\d+\s*(px|%|em|rem)/gi.exec(css);
441
+ if (width) {
442
+ result.width = width[0];
443
+ }
444
+ var color = /#\w+/gi.exec(css);
445
+ if (color) {
446
+ result.color = color[0];
447
+ }
448
+ if (important) {
449
+ for (var rule in result) {
450
+ result[rule] = base.addImportant(result[rule]);
451
+ }
452
+ }
453
+ return result;
454
+ },
455
+
456
+ base.createPrompt = function (args) {
457
+ args = $.extend({
458
+ title: adminStrings.prompt,
459
+ text: adminStrings.value,
460
+ desc: null,
461
+ value: '',
462
+ options: {
463
+ buttons: {
464
+ "OK": function () {
465
+ if (args.ok) {
466
+ args.ok(base.getFieldValue('prompt-text'));
467
+ }
468
+ $(this).crayonDialog('close');
469
+ },
470
+ "Cancel": function () {
471
+ $(this).crayonDialog('close');
472
+ }
473
+ },
474
+ open: function () {
475
+ base.getField('prompt-text').val(args.value).focus();
476
+ }
477
+ }
478
+ }, args);
479
+ args.html = '<table class="field-table">';
480
+ if (args.desc) {
481
+ args.html += '<tr><td colspan="2">' + args.desc + '</td></tr>';
482
+ }
483
+ args.html += '<tr><td>' + args.text + ':</td><td>' + base.createInput('prompt-text') + '</td></tr>';
484
+ args.html += '</table>';
485
+ admin.createDialog(args);
486
+ };
487
+
488
  base.initUI = function () {
489
  // Bind events
490
  preview = $('#crayon-editor-preview');
495
  $('#crayon-editor-controls').tabs();
496
  $('#crayon-editor-back').click(function () {
497
  if (changed) {
498
+ admin.createDialog({
499
  html: strings.discardConfirm,
500
+ title: adminStrings.confirm,
501
  yes: function () {
502
  showMain();
503
  }
518
  showNoneButton: true,
519
  colorFormat: '#HEX'
520
  };
521
+ args.open = function (e, color) {
522
+ $('.ui-colorpicker-dialog .ui-button').addClass('button-primary');
523
+ if (colorPickerPos) {
524
+ console.log('colorPickerPos', colorPickerPos);
525
+ var picker = $('.ui-colorpicker-dialog:visible');
526
+ picker.css('left', colorPickerPos.left);
527
+ // picker.css('top', colorPickerPos.top);
528
+ }
529
+ };
530
  args.select = function (e, color) {
531
  attr.trigger('change');
532
  };
533
  args.close = function (e, color) {
 
 
534
  attr.trigger('change');
535
  };
536
  attr.colorpicker(args);
572
  }
573
  });
574
  });
575
+ $('.ui-colorpicker-dialog').addClass('wp-dialog');
576
+ $('.ui-colorpicker-dialog').mouseup(function () {
577
+ base.colorPickerMove($(this));
578
+ });
579
+ };
580
+
581
+ base.colorPickerMove = function (picker) {
582
+ console.log('picker', picker);
583
+ if (picker) {
584
+ colorPickerPos = {left: picker.css('left'), top: picker.css('top')};
585
+ console.log('colorPickerPos', colorPickerPos);
586
+ }
587
  };
588
 
589
  base.updateLiveCSS = function (clone) {
646
  info.html('<a target="_blank" href="' + adminSettings.currThemeURL + '">' + adminSettings.currThemeURL + '</a>');
647
  };
648
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
649
  };
650
 
651
  })(jQueryCrayon);
util/theme-editor/theme_editor.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- class Element {
4
  public $id;
5
  public $class = '';
6
  public $tag = 'div';
@@ -9,6 +9,20 @@ class Element {
9
  public $attributes = array();
10
  const CSS_INPUT_PREFIX = "crayon-theme-input-";
11
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  public function __construct($id) {
13
  $this->id = $id;
14
  }
@@ -34,7 +48,7 @@ class Element {
34
  }
35
  }
36
 
37
- class Input extends Element {
38
  public $name;
39
  public $type;
40
 
@@ -54,7 +68,7 @@ class Input extends Element {
54
  }
55
  }
56
 
57
- class Select extends Input {
58
  public $options;
59
  public $selected = NULL;
60
 
@@ -93,7 +107,7 @@ class Select extends Input {
93
  }
94
  }
95
 
96
- class Separator extends Element {
97
  public $name = '';
98
 
99
  public function __construct($name) {
@@ -102,7 +116,7 @@ class Separator extends Element {
102
  }
103
  }
104
 
105
- class Title extends Separator {
106
 
107
  }
108
 
@@ -122,10 +136,6 @@ class CrayonThemeEditorWP {
122
 
123
  const RE_COMMENT = '#^\s*\/\*[\s\S]*?\*\/#msi';
124
 
125
- public static function init() {
126
- self::admin_resources();
127
- }
128
-
129
  public static function initFields() {
130
  if (self::$infoFields === NULL) {
131
  self::$infoFields = array(
@@ -145,9 +155,9 @@ class CrayonThemeEditorWP {
145
  self::$attributes = array();
146
  // A map of CSS attribute to input type
147
  self::$attributeGroups = array(
148
- 'color' => array('background', 'background-color', 'border-color', 'color', 'border-top-color', 'border-bottom-color'),
149
  'size' => array('border-width'),
150
- 'border-style' => array('border-style', 'border-bottom-style', 'border-top-style')
151
  );
152
  self::$attributeGroupsInverse = CrayonUtil::array_flip(self::$attributeGroups);
153
  // Mapping of input type to attribute group
@@ -159,14 +169,13 @@ class CrayonThemeEditorWP {
159
  }
160
 
161
  public static function initSettings() {
162
-
163
  self::initFields();
164
  self::initStrings();
165
  if (self::$settings === NULL) {
166
  self::$settings = array(
167
  // Only things the theme editor needs
168
  'cssThemePrefix' => CrayonThemes::CSS_PREFIX,
169
- 'cssInputPrefix' => Element::CSS_INPUT_PREFIX,
170
  'attribute' => self::ATTRIBUTE,
171
  'fields' => self::$infoFields,
172
  'fieldsInverse' => self::$infoFieldsInverse,
@@ -179,9 +188,6 @@ class CrayonThemeEditorWP {
179
  if (self::$strings === NULL) {
180
  self::$strings = array(
181
  // These appear only in the UI and can be translated
182
- // TODO add the rest
183
- 'no' => crayon__("No"),
184
- 'yes' => crayon__("Yes"),
185
  'userTheme' => crayon__("User-Defined Theme"),
186
  'stockTheme' => crayon__("Stock Theme"),
187
  'success' => crayon__("Success!"),
@@ -194,18 +200,15 @@ class CrayonThemeEditorWP {
194
  'duplicateFail' => crayon__("Duplicate failed!"),
195
  'checkLog' => crayon__("Please check the log for details."),
196
  'discardConfirm' => crayon__("Are you sure you want to discard all changes?"),
197
- 'confirm' => crayon__("Confirm"),
198
  'editingTheme' => crayon__("Editing Theme: %s"),
199
  'creatingTheme' => crayon__("Creating Theme: %s"),
200
- 'prompt' => crayon__("Prompt"),
201
- 'value' => crayon__("Value"),
202
- 'alert' => crayon__("Alert"),
203
  'submit' => crayon__("Submit Your Theme"),
204
  'submitText' => crayon__("Submit your User Theme for inclusion as a Stock Theme in Crayon!"),
205
  'message' => crayon__("Message"),
206
  'submitMessage' => crayon__("Please include this theme in Crayon!"),
207
  'submitSucceed' => crayon__("Submit was successful."),
208
  'submitFail' => crayon__("Submit failed!"),
 
209
  );
210
  }
211
  }
@@ -215,14 +218,14 @@ class CrayonThemeEditorWP {
215
  self::initSettings();
216
  $path = dirname(dirname(__FILE__));
217
  wp_enqueue_script('cssjson_js', plugins_url(CRAYON_CSSJSON_JS, $path), $CRAYON_VERSION);
218
- wp_enqueue_script('jquery_ui_js', plugins_url(CRAYON_JS_JQUERY_UI, $path), array('jquery'), $CRAYON_VERSION);
219
- wp_enqueue_script('jquery_colorpicker_js', plugins_url(CRAYON_JS_JQUERY_COLORPICKER, $path), array('jquery'), $CRAYON_VERSION);
220
  wp_enqueue_script('jquery_tinycolor_js', plugins_url(CRAYON_JS_TINYCOLOR, $path), array(), $CRAYON_VERSION);
221
- wp_enqueue_script('crayon_theme_editor', plugins_url(CRAYON_THEME_EDITOR_JS, $path), array('jquery', 'jquery_ui_js', 'crayon_util_js', 'crayon_admin_js', 'cssjson_js', 'jquery_colorpicker_js', 'jquery_tinycolor_js'), $CRAYON_VERSION);
222
  wp_localize_script('crayon_theme_editor', 'CrayonThemeEditorSettings', self::$settings);
223
  wp_localize_script('crayon_theme_editor', 'CrayonThemeEditorStrings', self::$strings);
224
 
225
- wp_enqueue_style('jquery_ui', plugins_url(CRAYON_CSS_JQUERY_UI, $path), array(), $CRAYON_VERSION);
226
  wp_enqueue_style('jquery_colorpicker', plugins_url(CRAYON_CSS_JQUERY_COLORPICKER, $path), array(), $CRAYON_VERSION);
227
  }
228
 
@@ -230,11 +233,11 @@ class CrayonThemeEditorWP {
230
  $str = '<form class="' . self::$settings['prefix'] . '-form"><table>';
231
  $sepCount = 0;
232
  foreach ($inputs as $input) {
233
- if ($input instanceof Input) {
234
  $str .= self::formField($input->name, $input);
235
- } else if ($input instanceof Separator) {
236
  $sepClass = '';
237
- if ($input instanceof Title) {
238
  $sepClass .= ' title';
239
  }
240
  if ($sepCount == 0) {
@@ -290,6 +293,7 @@ class CrayonThemeEditorWP {
290
  $tBorder = crayon__("Border");
291
  $tTopBorder = crayon__("Top Border");
292
  $tBottomBorder = crayon__("Bottom Border");
 
293
 
294
  $tHover = crayon__("Hover");
295
  $tActive = crayon__("Active");
@@ -363,7 +367,7 @@ class CrayonThemeEditorWP {
363
  <div id="tabs-1">
364
  <?php
365
  self::createAttributesForm(array(
366
- new Title($tInformation)
367
  ));
368
  ?>
369
  <div id="tabs-1-contents"></div>
@@ -392,7 +396,7 @@ class CrayonThemeEditorWP {
392
  'f' => crayon__("Faded"),
393
  'h' => crayon__("HTML")
394
  );
395
- $atts = array(new Title($tHighlighting));
396
  foreach ($elems as $class => $name) {
397
  $atts[] = array(
398
  $name,
@@ -409,8 +413,8 @@ class CrayonThemeEditorWP {
409
  <?php
410
  $inline = '-inline';
411
  self::createAttributesForm(array(
412
- new Title($tFrame),
413
- new Separator($tNormal),
414
  // self::createAttribute('', 'background', $tBackground),
415
  array(
416
  $tBorder,
@@ -418,7 +422,7 @@ class CrayonThemeEditorWP {
418
  self::createAttribute('', 'border-color'),
419
  self::createAttribute('', 'border-style')
420
  ),
421
- new Separator($tInline),
422
  self::createAttribute($inline, 'background', $tBackground),
423
  array(
424
  $tBorder,
@@ -435,12 +439,12 @@ class CrayonThemeEditorWP {
435
  $markedLine = ' .crayon-marked-line';
436
  $stripedMarkedLine = ' .crayon-marked-line.crayon-striped-line';
437
  self::createAttributesForm(array(
438
- new Title($tLines),
439
- new Separator($tNormal),
440
  self::createAttribute('', 'background', $tBackground),
441
- new Separator($tStriped),
442
  self::createAttribute($stripedLine, 'background', $tBackground),
443
- new Separator($tMarked),
444
  self::createAttribute($markedLine, 'background', $tBackground),
445
  array(
446
  $tBorder,
@@ -450,7 +454,7 @@ class CrayonThemeEditorWP {
450
  ),
451
  self::createAttribute($markedLine . $top, 'border-top-style', $tTopBorder),
452
  self::createAttribute($markedLine . $bottom, 'border-bottom-style', $tBottomBorder),
453
- new Separator($tStripedMarked),
454
  self::createAttribute($stripedMarkedLine, 'background', $tBackground),
455
  ));
456
  ?>
@@ -462,14 +466,20 @@ class CrayonThemeEditorWP {
462
  $markedNum = ' .crayon-marked-num';
463
  $stripedMarkedNum = ' .crayon-marked-num.crayon-striped-num';
464
  self::createAttributesForm(array(
465
- new Title($tNumbers),
466
- new Separator($tNormal),
 
 
 
 
 
 
467
  self::createAttribute($nums, 'background', $tBackground),
468
  self::createAttribute($nums, 'color', $tText),
469
- new Separator($tStriped),
470
  self::createAttribute($stripedNum, 'background', $tBackground),
471
  self::createAttribute($stripedNum, 'color', $tText),
472
- new Separator($tMarked),
473
  self::createAttribute($markedNum, 'background', $tBackground),
474
  self::createAttribute($markedNum, 'color', $tText),
475
  array(
@@ -480,7 +490,7 @@ class CrayonThemeEditorWP {
480
  ),
481
  self::createAttribute($markedNum.$top, 'border-top-style', $tTopBorder),
482
  self::createAttribute($markedNum.$bottom, 'border-bottom-style', $tBottomBorder),
483
- new Separator($tStripedMarked),
484
  self::createAttribute($stripedMarkedNum, 'background', $tBackground),
485
  self::createAttribute($stripedMarkedNum, 'color', $tText),
486
  ));
@@ -490,12 +500,12 @@ class CrayonThemeEditorWP {
490
  <?php
491
  $toolbar = ' .crayon-toolbar';
492
  $title = ' .crayon-title';
493
- $button = ' a.crayon-button';
494
  $info = ' .crayon-info';
495
  $language = ' .crayon-language';
496
  self::createAttributesForm(array(
497
- new Title($tToolbar),
498
- new Separator($tFrame),
499
  self::createAttribute($toolbar, 'background', $tBackground),
500
  array(
501
  $tBottomBorder,
@@ -510,14 +520,14 @@ class CrayonThemeEditorWP {
510
  self::createAttribute($title, 'font-style'),
511
  self::createAttribute($title, 'text-decoration')
512
  ),
513
- new Separator($tButtons),
514
  self::createAttribute($button, 'background-color', $tBackground),
515
  self::createAttribute($button.$hover, 'background-color', $tHover),
516
  self::createAttribute($button.$active, 'background-color', $tActive),
517
  self::createAttribute($button.$pressed, 'background-color', $tPressed),
518
  self::createAttribute($button.$pressed.$hover, 'background-color', $tHoverPressed),
519
  self::createAttribute($button.$pressed.$active, 'background-color', $tActivePressed),
520
- new Separator($tInformation . ' ' . crayon__("(Used for Copy/Paste)")),
521
  self::createAttribute($info, 'background', $tBackground),
522
  array(
523
  $tText,
@@ -532,16 +542,14 @@ class CrayonThemeEditorWP {
532
  self::createAttribute($info, 'border-bottom-color'),
533
  self::createAttribute($info, 'border-bottom-style'),
534
  ),
535
- new Separator($tLanguage),
536
  array(
537
  $tText,
538
  self::createAttribute($language, 'color'),
539
  self::createAttribute($language, 'font-weight'),
540
  self::createAttribute($language, 'font-style'),
541
  self::createAttribute($language, 'text-decoration')
542
- ),
543
- // self::createAttribute($toolbar.' > div', 'float', crayon__("Title Float")),
544
- // self::createAttribute($toolbar.' .crayon-tools', 'float', crayon__("Buttons Float"))
545
  ));
546
  ?>
547
  </div>
@@ -559,21 +567,9 @@ class CrayonThemeEditorWP {
559
  $group = self::getAttributeGroup($attribute);
560
  $type = self::getAttributeType($group);
561
  if ($type == 'select') {
562
- $input = new Select($element . '_' . $attribute, $name);
563
  if ($group == 'border-style') {
564
- $input->addOptions(array(
565
- 'none',
566
- 'hidden',
567
- 'dotted',
568
- 'dashed',
569
- 'solid',
570
- 'double',
571
- 'groove',
572
- 'ridge',
573
- 'inset',
574
- 'outset',
575
- 'inherit'
576
- ));
577
  } else if ($group == 'float') {
578
  $input->addOptions(array(
579
  'left',
@@ -617,7 +613,7 @@ class CrayonThemeEditorWP {
617
  ));
618
  }
619
  } else {
620
- $input = new Input($element . '_' . $attribute, $name);
621
  }
622
  $input->addClass(self::ATTRIBUTE);
623
  $input->addAttributes(array(
@@ -636,14 +632,14 @@ class CrayonThemeEditorWP {
636
  * Saves the given theme id and css, making any necessary path and id changes to ensure the new theme is valid.
637
  * Echos 0 on failure, 1 on success and 2 on success and if paths have changed.
638
  */
639
- public static function save($allow_edit_stock_theme = NULL) {
640
  CrayonSettingsWP::load_settings();
641
- $oldID = $_POST['id'];
642
- $name = $_POST['name'];
643
  $css = stripslashes($_POST['css']);
644
  $change_settings = CrayonUtil::set_default($_POST['change_settings'], TRUE);
645
  $allow_edit = CrayonUtil::set_default($_POST['allow_edit'], TRUE);
646
- $allow_edit_stock_theme = CrayonUtil::set_default_null($allow_edit_stock_theme, CRAYON_DEBUG);
647
  $delete = CrayonUtil::set_default($_POST['delete'], TRUE);
648
  $oldTheme = CrayonResources::themes()->get($oldID);
649
 
@@ -654,6 +650,7 @@ class CrayonThemeEditorWP {
654
  $oldPath = CrayonResources::themes()->path($oldID);
655
  $oldDir = CrayonResources::themes()->dirpath($oldID);
656
  $newID = CrayonResource::clean_id($name);
 
657
  $newPath = CrayonResources::themes()->path($newID, $user);
658
  $newDir = CrayonResources::themes()->dirpath($newID, $user);
659
 
@@ -673,12 +670,15 @@ class CrayonThemeEditorWP {
673
  // Create the new path if needed
674
  if (!is_file($newPath)) {
675
  if (!is_dir($newDir)) {
676
- mkdir($newDir, 0777, TRUE);
677
- try {
678
- // Copy image folder
679
- CrayonUtil::copyDir($oldDir . 'images', $newDir . 'images');
680
- } catch (Exception $e) {
681
- CrayonLog::syslog($e->getMessage(), "THEME SAVE");
 
 
 
682
  }
683
  }
684
  }
@@ -744,7 +744,8 @@ class CrayonThemeEditorWP {
744
  $_POST['css'] = file_get_contents($oldPath);
745
  $_POST['delete'] = FALSE;
746
  $_POST['allow_edit'] = FALSE;
747
- self::save(FALSE);
 
748
  }
749
 
750
  public static function delete() {
@@ -774,7 +775,7 @@ class CrayonThemeEditorWP {
774
  $message = $_POST['message'];
775
  $dir = CrayonResources::themes()->dirpath($id);
776
  $dest = $dir . 'tmp';
777
- @mkdir($dest);
778
 
779
  if (is_dir($dir) && CrayonResources::themes()->exists($id)) {
780
  try {
@@ -841,6 +842,7 @@ class CrayonThemeEditorWP {
841
  }
842
 
843
  public static function getFieldName($id) {
 
844
  if (isset(self::$infoFields[$id])) {
845
  return self::$infoFields[$id];
846
  } else {
@@ -866,8 +868,4 @@ class CrayonThemeEditorWP {
866
 
867
  }
868
 
869
- if (defined('ABSPATH') && is_admin()) {
870
- add_action('init', 'CrayonThemeEditorWP::init');
871
- }
872
-
873
  ?>
1
  <?php
2
 
3
+ class CrayonHTMLElement {
4
  public $id;
5
  public $class = '';
6
  public $tag = 'div';
9
  public $attributes = array();
10
  const CSS_INPUT_PREFIX = "crayon-theme-input-";
11
 
12
+ public static $borderStyles = array(
13
+ 'none',
14
+ 'hidden',
15
+ 'dotted',
16
+ 'dashed',
17
+ 'solid',
18
+ 'double',
19
+ 'groove',
20
+ 'ridge',
21
+ 'inset',
22
+ 'outset',
23
+ 'inherit'
24
+ );
25
+
26
  public function __construct($id) {
27
  $this->id = $id;
28
  }
48
  }
49
  }
50
 
51
+ class CrayonHTMLInput extends CrayonHTMLElement {
52
  public $name;
53
  public $type;
54
 
68
  }
69
  }
70
 
71
+ class CrayonHTMLSelect extends CrayonHTMLInput {
72
  public $options;
73
  public $selected = NULL;
74
 
107
  }
108
  }
109
 
110
+ class CrayonHTMLSeparator extends CrayonHTMLElement {
111
  public $name = '';
112
 
113
  public function __construct($name) {
116
  }
117
  }
118
 
119
+ class CrayonHTMLTitle extends CrayonHTMLSeparator {
120
 
121
  }
122
 
136
 
137
  const RE_COMMENT = '#^\s*\/\*[\s\S]*?\*\/#msi';
138
 
 
 
 
 
139
  public static function initFields() {
140
  if (self::$infoFields === NULL) {
141
  self::$infoFields = array(
155
  self::$attributes = array();
156
  // A map of CSS attribute to input type
157
  self::$attributeGroups = array(
158
+ 'color' => array('background', 'background-color', 'border-color', 'color', 'border-top-color', 'border-bottom-color', 'border-left-color', 'border-right-color'),
159
  'size' => array('border-width'),
160
+ 'border-style' => array('border-style', 'border-bottom-style', 'border-top-style', 'border-left-style', 'border-right-style')
161
  );
162
  self::$attributeGroupsInverse = CrayonUtil::array_flip(self::$attributeGroups);
163
  // Mapping of input type to attribute group
169
  }
170
 
171
  public static function initSettings() {
 
172
  self::initFields();
173
  self::initStrings();
174
  if (self::$settings === NULL) {
175
  self::$settings = array(
176
  // Only things the theme editor needs
177
  'cssThemePrefix' => CrayonThemes::CSS_PREFIX,
178
+ 'cssInputPrefix' => CrayonHTMLElement::CSS_INPUT_PREFIX,
179
  'attribute' => self::ATTRIBUTE,
180
  'fields' => self::$infoFields,
181
  'fieldsInverse' => self::$infoFieldsInverse,
188
  if (self::$strings === NULL) {
189
  self::$strings = array(
190
  // These appear only in the UI and can be translated
 
 
 
191
  'userTheme' => crayon__("User-Defined Theme"),
192
  'stockTheme' => crayon__("Stock Theme"),
193
  'success' => crayon__("Success!"),
200
  'duplicateFail' => crayon__("Duplicate failed!"),
201
  'checkLog' => crayon__("Please check the log for details."),
202
  'discardConfirm' => crayon__("Are you sure you want to discard all changes?"),
 
203
  'editingTheme' => crayon__("Editing Theme: %s"),
204
  'creatingTheme' => crayon__("Creating Theme: %s"),
 
 
 
205
  'submit' => crayon__("Submit Your Theme"),
206
  'submitText' => crayon__("Submit your User Theme for inclusion as a Stock Theme in Crayon!"),
207
  'message' => crayon__("Message"),
208
  'submitMessage' => crayon__("Please include this theme in Crayon!"),
209
  'submitSucceed' => crayon__("Submit was successful."),
210
  'submitFail' => crayon__("Submit failed!"),
211
+ 'borderStyles' => CrayonHTMLElement::$borderStyles
212
  );
213
  }
214
  }
218
  self::initSettings();
219
  $path = dirname(dirname(__FILE__));
220
  wp_enqueue_script('cssjson_js', plugins_url(CRAYON_CSSJSON_JS, $path), $CRAYON_VERSION);
221
+
222
+ wp_enqueue_script('jquery_colorpicker_js', plugins_url(CRAYON_JS_JQUERY_COLORPICKER, $path), array('jquery', 'jquery-ui-core', 'jquery-ui-widget', 'jquery-ui-tabs', 'jquery-ui-draggable', 'jquery-ui-dialog', 'jquery-ui-position', 'jquery-ui-mouse', 'jquery-ui-slider', 'jquery-ui-droppable', 'jquery-ui-selectable', 'jquery-ui-resizable'), $CRAYON_VERSION);
223
  wp_enqueue_script('jquery_tinycolor_js', plugins_url(CRAYON_JS_TINYCOLOR, $path), array(), $CRAYON_VERSION);
224
+ wp_enqueue_script('crayon_theme_editor', plugins_url(CRAYON_THEME_EDITOR_JS, $path), array('jquery', 'crayon_util_js', 'crayon_admin_js', 'cssjson_js', 'jquery_colorpicker_js', 'jquery_tinycolor_js'), $CRAYON_VERSION);
225
  wp_localize_script('crayon_theme_editor', 'CrayonThemeEditorSettings', self::$settings);
226
  wp_localize_script('crayon_theme_editor', 'CrayonThemeEditorStrings', self::$strings);
227
 
228
+ wp_enqueue_style('crayon_theme_editor', plugins_url(CRAYON_THEME_EDITOR_STYLE, $path), array('wp-jquery-ui-dialog'), $CRAYON_VERSION);
229
  wp_enqueue_style('jquery_colorpicker', plugins_url(CRAYON_CSS_JQUERY_COLORPICKER, $path), array(), $CRAYON_VERSION);
230
  }
231
 
233
  $str = '<form class="' . self::$settings['prefix'] . '-form"><table>';
234
  $sepCount = 0;
235
  foreach ($inputs as $input) {
236
+ if ($input instanceof CrayonHTMLInput) {
237
  $str .= self::formField($input->name, $input);
238
+ } else if ($input instanceof CrayonHTMLSeparator) {
239
  $sepClass = '';
240
+ if ($input instanceof CrayonHTMLTitle) {
241
  $sepClass .= ' title';
242
  }
243
  if ($sepCount == 0) {
293
  $tBorder = crayon__("Border");
294
  $tTopBorder = crayon__("Top Border");
295
  $tBottomBorder = crayon__("Bottom Border");
296
+ $tBorderRight = crayon__("Right Border");
297
 
298
  $tHover = crayon__("Hover");
299
  $tActive = crayon__("Active");
367
  <div id="tabs-1">
368
  <?php
369
  self::createAttributesForm(array(
370
+ new CrayonHTMLTitle($tInformation)
371
  ));
372
  ?>
373
  <div id="tabs-1-contents"></div>
396
  'f' => crayon__("Faded"),
397
  'h' => crayon__("HTML")
398
  );
399
+ $atts = array(new CrayonHTMLTitle($tHighlighting));
400
  foreach ($elems as $class => $name) {
401
  $atts[] = array(
402
  $name,
413
  <?php
414
  $inline = '-inline';
415
  self::createAttributesForm(array(
416
+ new CrayonHTMLTitle($tFrame),
417
+ new CrayonHTMLSeparator($tNormal),
418
  // self::createAttribute('', 'background', $tBackground),
419
  array(
420
  $tBorder,
422
  self::createAttribute('', 'border-color'),
423
  self::createAttribute('', 'border-style')
424
  ),
425
+ new CrayonHTMLSeparator($tInline),
426
  self::createAttribute($inline, 'background', $tBackground),
427
  array(
428
  $tBorder,
439
  $markedLine = ' .crayon-marked-line';
440
  $stripedMarkedLine = ' .crayon-marked-line.crayon-striped-line';
441
  self::createAttributesForm(array(
442
+ new CrayonHTMLTitle($tLines),
443
+ new CrayonHTMLSeparator($tNormal),
444
  self::createAttribute('', 'background', $tBackground),
445
+ new CrayonHTMLSeparator($tStriped),
446
  self::createAttribute($stripedLine, 'background', $tBackground),
447
+ new CrayonHTMLSeparator($tMarked),
448
  self::createAttribute($markedLine, 'background', $tBackground),
449
  array(
450
  $tBorder,
454
  ),
455
  self::createAttribute($markedLine . $top, 'border-top-style', $tTopBorder),
456
  self::createAttribute($markedLine . $bottom, 'border-bottom-style', $tBottomBorder),
457
+ new CrayonHTMLSeparator($tStripedMarked),
458
  self::createAttribute($stripedMarkedLine, 'background', $tBackground),
459
  ));
460
  ?>
466
  $markedNum = ' .crayon-marked-num';
467
  $stripedMarkedNum = ' .crayon-marked-num.crayon-striped-num';
468
  self::createAttributesForm(array(
469
+ new CrayonHTMLTitle($tNumbers),
470
+ array(
471
+ $tBorderRight,
472
+ self::createAttribute($nums, 'border-right-width'),
473
+ self::createAttribute($nums, 'border-right-color'),
474
+ self::createAttribute($nums, 'border-right-style'),
475
+ ),
476
+ new CrayonHTMLSeparator($tNormal),
477
  self::createAttribute($nums, 'background', $tBackground),
478
  self::createAttribute($nums, 'color', $tText),
479
+ new CrayonHTMLSeparator($tStriped),
480
  self::createAttribute($stripedNum, 'background', $tBackground),
481
  self::createAttribute($stripedNum, 'color', $tText),
482
+ new CrayonHTMLSeparator($tMarked),
483
  self::createAttribute($markedNum, 'background', $tBackground),
484
  self::createAttribute($markedNum, 'color', $tText),
485
  array(
490
  ),
491
  self::createAttribute($markedNum.$top, 'border-top-style', $tTopBorder),
492
  self::createAttribute($markedNum.$bottom, 'border-bottom-style', $tBottomBorder),
493
+ new CrayonHTMLSeparator($tStripedMarked),
494
  self::createAttribute($stripedMarkedNum, 'background', $tBackground),
495
  self::createAttribute($stripedMarkedNum, 'color', $tText),
496
  ));
500
  <?php
501
  $toolbar = ' .crayon-toolbar';
502
  $title = ' .crayon-title';
503
+ $button = ' .crayon-button';
504
  $info = ' .crayon-info';
505
  $language = ' .crayon-language';
506
  self::createAttributesForm(array(
507
+ new CrayonHTMLTitle($tToolbar),
508
+ new CrayonHTMLSeparator($tFrame),
509
  self::createAttribute($toolbar, 'background', $tBackground),
510
  array(
511
  $tBottomBorder,
520
  self::createAttribute($title, 'font-style'),
521
  self::createAttribute($title, 'text-decoration')
522
  ),
523
+ new CrayonHTMLSeparator($tButtons),
524
  self::createAttribute($button, 'background-color', $tBackground),
525
  self::createAttribute($button.$hover, 'background-color', $tHover),
526
  self::createAttribute($button.$active, 'background-color', $tActive),
527
  self::createAttribute($button.$pressed, 'background-color', $tPressed),
528
  self::createAttribute($button.$pressed.$hover, 'background-color', $tHoverPressed),
529
  self::createAttribute($button.$pressed.$active, 'background-color', $tActivePressed),
530
+ new CrayonHTMLSeparator($tInformation . ' ' . crayon__("(Used for Copy/Paste)")),
531
  self::createAttribute($info, 'background', $tBackground),
532
  array(
533
  $tText,
542
  self::createAttribute($info, 'border-bottom-color'),
543
  self::createAttribute($info, 'border-bottom-style'),
544
  ),
545
+ new CrayonHTMLSeparator($tLanguage),
546
  array(
547
  $tText,
548
  self::createAttribute($language, 'color'),
549
  self::createAttribute($language, 'font-weight'),
550
  self::createAttribute($language, 'font-style'),
551
  self::createAttribute($language, 'text-decoration')
552
+ )
 
 
553
  ));
554
  ?>
555
  </div>
567
  $group = self::getAttributeGroup($attribute);
568
  $type = self::getAttributeType($group);
569
  if ($type == 'select') {
570
+ $input = new CrayonHTMLSelect($element . '_' . $attribute, $name);
571
  if ($group == 'border-style') {
572
+ $input->addOptions(CrayonHTMLElement::$borderStyles);
 
 
 
 
 
 
 
 
 
 
 
 
573
  } else if ($group == 'float') {
574
  $input->addOptions(array(
575
  'left',
613
  ));
614
  }
615
  } else {
616
+ $input = new CrayonHTMLInput($element . '_' . $attribute, $name);
617
  }
618
  $input->addClass(self::ATTRIBUTE);
619
  $input->addAttributes(array(
632
  * Saves the given theme id and css, making any necessary path and id changes to ensure the new theme is valid.
633
  * Echos 0 on failure, 1 on success and 2 on success and if paths have changed.
634
  */
635
+ public static function save() {
636
  CrayonSettingsWP::load_settings();
637
+ $oldID = stripslashes($_POST['id']);
638
+ $name = stripslashes($_POST['name']);
639
  $css = stripslashes($_POST['css']);
640
  $change_settings = CrayonUtil::set_default($_POST['change_settings'], TRUE);
641
  $allow_edit = CrayonUtil::set_default($_POST['allow_edit'], TRUE);
642
+ $allow_edit_stock_theme = CrayonUtil::set_default($_POST['allow_edit_stock_theme'], CRAYON_DEBUG);
643
  $delete = CrayonUtil::set_default($_POST['delete'], TRUE);
644
  $oldTheme = CrayonResources::themes()->get($oldID);
645
 
650
  $oldPath = CrayonResources::themes()->path($oldID);
651
  $oldDir = CrayonResources::themes()->dirpath($oldID);
652
  $newID = CrayonResource::clean_id($name);
653
+ $name = CrayonResource::clean_name($newID);
654
  $newPath = CrayonResources::themes()->path($newID, $user);
655
  $newDir = CrayonResources::themes()->dirpath($newID, $user);
656
 
670
  // Create the new path if needed
671
  if (!is_file($newPath)) {
672
  if (!is_dir($newDir)) {
673
+ wp_mkdir_p($newDir);
674
+ $imageSrc = $oldDir . 'images';
675
+ if (is_dir($imageSrc)) {
676
+ try {
677
+ // Copy image folder
678
+ CrayonUtil::copyDir($imageSrc, $newDir . 'images', 'wp_mkdir_p');
679
+ } catch (Exception $e) {
680
+ CrayonLog::syslog($e->getMessage(), "THEME SAVE");
681
+ }
682
  }
683
  }
684
  }
744
  $_POST['css'] = file_get_contents($oldPath);
745
  $_POST['delete'] = FALSE;
746
  $_POST['allow_edit'] = FALSE;
747
+ $_POST['allow_edit_stock_theme'] = FALSE;
748
+ self::save();
749
  }
750
 
751
  public static function delete() {
775
  $message = $_POST['message'];
776
  $dir = CrayonResources::themes()->dirpath($id);
777
  $dest = $dir . 'tmp';
778
+ wp_mkdir_p($dest);
779
 
780
  if (is_dir($dir) && CrayonResources::themes()->exists($id)) {
781
  try {
842
  }
843
 
844
  public static function getFieldName($id) {
845
+ self::initFields();
846
  if (isset(self::$infoFields[$id])) {
847
  return self::$infoFields[$id];
848
  } else {
868
 
869
  }
870
 
 
 
 
 
871
  ?>