├── README.md ├── auto_resize ├── auto_resize.jpg ├── autoresize.jquery.min_1.04.js ├── clarifit_auto_resize.zip └── item_type_plugin_com_clarifit_apexplugin_auto_resize.sql ├── dialog ├── 1.0.0 │ ├── clarifit_dialog.zip │ ├── dynamic_action_plugin_com_clarifit_apexplugin_apex_dialog.sql │ ├── jquery.ui.clarifitDialog_1.0.0.js │ ├── jquery.ui.clarifitDialog_1.0.1.js │ └── plsql_src.sql ├── README.md ├── dynamic_action_plugin_com_clarifit_apexplugin_apex_dialog.sql ├── jquery.ui.clarifitDialog_1.0.0.js ├── jquery.ui.clarifitDialog_1.0.1.js └── plsql_src.sql ├── from_to_date ├── 1.0.0 │ ├── Clarifit From To Date Picker.zip │ ├── item_type_plugin_com_clarifit_fromtodatepicker.sql │ ├── jquery.ui.clarifitFromToDatePicker_1.0.0.js │ └── pkg_apex_plugin.pkb ├── 1.0.1 │ ├── Clarifit From To Date Picker.zip │ ├── item_type_plugin_com_clarifit_fromtodatepicker.sql │ ├── jquery.ui.clarifitFromToDatePicker_1.0.1.js │ └── pkg_apex_plugin.pkb ├── Clarifit From To Date Picker.zip ├── Clarifit From To Date Picker │ └── item_type_plugin_com_clarifit_fromtodatepicker.sql ├── README.md ├── __NEXT_RELEASE_CHANGES.txt ├── _test_from_thru.html ├── _test_from_thru.html.20101102_2235 ├── item_type_plugin_com_clarifit_fromtodatepicker.sql ├── jquery.ui.clarifitFromToDatePicker_1.0.0.js ├── jquery.ui.clarifitFromToDatePicker_1.0.1.js ├── pkg_apex_plugin.pkb └── pkg_apex_plugin.pks ├── ir_col_grouping ├── $clarifit_ircolgroups_1.0.0.js ├── $clarifit_ircolgroups_1.0.1.js ├── $clarifit_ircolgroups_1.0.2.js ├── $clarifit_ircolgroups_1.0.3.js ├── $clarifit_ircolgroups_1.0.4.js ├── $console_wrapper_1.0.1.js ├── clarifit_ir_col_grouping_1.0.0.zip ├── clarifit_ir_col_grouping_1.0.1.zip ├── clarifit_ir_col_grouping_1.0.2.zip ├── clarifit_ir_col_grouping_1.0.3.zip ├── clarifit_ir_col_grouping_1.0.4.zip ├── clarifit_ir_col_grp.jpg ├── dynamic_action_plugin_com_clarifit_apexplugin_ir_column_grouping.sql ├── ir_col_group_info.txt └── ir_col_group_scratch.sql ├── simple_modal ├── $cfap_1.0.0.js ├── $clarifit_1.0.0.js ├── _notes.txt ├── clarifit_simple_modal.jpg ├── clarifit_simple_modal.txt ├── clarifit_simple_modal.zip ├── dynamic_action_plugin_com_clarifit_apexplugin_simple_modal_close.sql ├── dynamic_action_plugin_com_clarifit_apexplugin_simple_modal_show.sql └── jquery.simplemodal-1.3.5.min.js └── syntax_highlighter ├── files ├── shBrushBash_3.0.83.js ├── shBrushCss_3.0.83.js ├── shBrushDiff_3.0.83.js ├── shBrushJScript_3.0.83.js ├── shBrushJava_3.0.83.js ├── shBrushPlain_3.0.83.js ├── shBrushSql_3.0.83.js ├── shBrushXml_3.0.83.js ├── shCoreDefault_3.0.83.css ├── shCoreDjango_3.0.83.css ├── shCoreEclipse_3.0.83.css ├── shCoreEmacs_3.0.83.css ├── shCoreFadeToGrey_3.0.83.css ├── shCoreMidnight_3.0.83.css ├── shCoreRDark_3.0.83.css ├── shCore_3.0.83.js ├── shThemeDefault_3.0.83.css └── shThemeDjango_3.0.83.css ├── item_type_plugin_com_clarifit_apexplugin_syntax_highlighter.sql ├── pkg_apex_plugin.pkb ├── pkg_apex_plugin.pks ├── syntax_highlighter.jpg ├── syntax_highlighter_1.0.zip ├── syntaxhighlighter_3.0.83.zip └── syntaxhighlighter_3.0.83 ├── LGPL-LICENSE ├── MIT-LICENSE ├── compass ├── _theme_template.scss ├── config.rb ├── shCore.scss ├── shCoreDefault.scss ├── shCoreDjango.scss ├── shCoreEclipse.scss ├── shCoreEmacs.scss ├── shCoreFadeToGrey.scss ├── shCoreMDUltra.scss ├── shCoreMidnight.scss ├── shCoreRDark.scss ├── shThemeDefault.scss ├── shThemeDjango.scss ├── shThemeEclipse.scss ├── shThemeEmacs.scss ├── shThemeFadeToGrey.scss ├── shThemeMDUltra.scss ├── shThemeMidnight.scss └── shThemeRDark.scss ├── index.html ├── scripts ├── shAutoloader.js ├── shBrushAS3.js ├── shBrushAppleScript.js ├── shBrushBash.js ├── shBrushCSharp.js ├── shBrushColdFusion.js ├── shBrushCpp.js ├── shBrushCss.js ├── shBrushDelphi.js ├── shBrushDiff.js ├── shBrushErlang.js ├── shBrushGroovy.js ├── shBrushJScript.js ├── shBrushJava.js ├── shBrushJavaFX.js ├── shBrushPerl.js ├── shBrushPhp.js ├── shBrushPlain.js ├── shBrushPowerShell.js ├── shBrushPython.js ├── shBrushRuby.js ├── shBrushSass.js ├── shBrushScala.js ├── shBrushSql.js ├── shBrushVb.js ├── shBrushXml.js ├── shCore.js └── shLegacy.js ├── src ├── shAutoloader.js ├── shCore.js └── shLegacy.js ├── styles ├── shCore.css ├── shCoreDefault.css ├── shCoreDjango.css ├── shCoreEclipse.css ├── shCoreEmacs.css ├── shCoreFadeToGrey.css ├── shCoreMDUltra.css ├── shCoreMidnight.css ├── shCoreRDark.css ├── shThemeDefault.css ├── shThemeDjango.css ├── shThemeEclipse.css ├── shThemeEmacs.css ├── shThemeFadeToGrey.css ├── shThemeMDUltra.css ├── shThemeMidnight.css └── shThemeRDark.css └── tests ├── .rvmrc ├── brushes └── sass.html ├── brushes_tests.html ├── cases ├── 001_basic.html ├── 002_brushes.html ├── 003_script_tag.html ├── 004_url_parsing.html ├── 005_no_gutter.html ├── 006_pad_line_numbers.html ├── 007_collapse.html ├── 007_collapse_interaction.html ├── 008_first_line.html ├── 009_class_name.html ├── 010_highlight.html ├── 011_smart_tabs.html ├── 012_server_side.html ├── 013_html_script.html └── 014_legacy.html ├── commonjs_tests.js ├── js ├── jquery-1.4.2.js ├── qunit.css └── qunit.js ├── syntaxhighlighter_tests.html ├── theme_tests.html ├── webrick.rb └── webrick.sh /README.md: -------------------------------------------------------------------------------- 1 | Oracle APEX Plugins by ClariFit 2 | ============ 3 | 4 | The following plugins are open source plugins developed by ClariFit. 5 | 6 | #Structure 7 | The structure for all the different plugins currently vary slightly. They will eventually be moved to a common directory structure which will allow for scripted builds. 8 | 9 | #License 10 | They are licensed under: GNU General Public License, version 3 (GPL-3.0) - http://www.opensource.org/licenses/gpl-3.0.html -------------------------------------------------------------------------------- /auto_resize/auto_resize.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ClariFit/apex_plugins/27d21d09ac311113a8fea6140be72c307dddf35b/auto_resize/auto_resize.jpg -------------------------------------------------------------------------------- /auto_resize/autoresize.jquery.min_1.04.js: -------------------------------------------------------------------------------- 1 | /* 2 | * jQuery autoResize (textarea auto-resizer) 3 | * @copyright James Padolsey http://james.padolsey.com 4 | * @version 1.04 5 | */ 6 | 7 | (function(a){a.fn.autoResize=function(j){var b=a.extend({onResize:function(){},animate:true,animateDuration:150,animateCallback:function(){},extraSpace:20,limit:1000},j);this.filter('textarea').each(function(){var c=a(this).css({resize:'none','overflow-y':'hidden'}),k=c.height(),f=(function(){var l=['height','width','lineHeight','textDecoration','letterSpacing'],h={};a.each(l,function(d,e){h[e]=c.css(e)});return c.clone().removeAttr('id').removeAttr('name').css({position:'absolute',top:0,left:-9999}).css(h).attr('tabIndex','-1').insertBefore(c)})(),i=null,g=function(){f.height(0).val(a(this).val()).scrollTop(10000);var d=Math.max(f.scrollTop(),k)+b.extraSpace,e=a(this).add(f);if(i===d){return}i=d;if(d>=b.limit){a(this).css('overflow-y','');return}b.onResize.call(this);b.animate&&c.css('display')==='block'?e.stop().animate({height:d},b.animateDuration,b.animateCallback):e.height(d)};c.unbind('.dynSiz').bind('keyup.dynSiz',g).bind('keydown.dynSiz',g).bind('change.dynSiz',g)});return this}})(jQuery); -------------------------------------------------------------------------------- /auto_resize/clarifit_auto_resize.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ClariFit/apex_plugins/27d21d09ac311113a8fea6140be72c307dddf35b/auto_resize/clarifit_auto_resize.zip -------------------------------------------------------------------------------- /dialog/1.0.0/clarifit_dialog.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ClariFit/apex_plugins/27d21d09ac311113a8fea6140be72c307dddf35b/dialog/1.0.0/clarifit_dialog.zip -------------------------------------------------------------------------------- /dialog/1.0.0/plsql_src.sql: -------------------------------------------------------------------------------- 1 | -- *** Dialog *** 2 | FUNCTION f_render_dialog ( 3 | p_dynamic_action IN apex_plugin.t_dynamic_action, 4 | p_plugin IN apex_plugin.t_plugin ) 5 | RETURN apex_plugin.t_dynamic_action_render_result 6 | AS 7 | -- Application Plugin Attributes 8 | v_background_color apex_appl_plugins.attribute_01%TYPE := p_plugin.attribute_01; 9 | v_background_opacitiy apex_appl_plugins.attribute_01%TYPE := p_plugin.attribute_02; 10 | 11 | -- DA Plugin Attributes 12 | v_modal apex_application_page_items.attribute_01%TYPE := p_dynamic_action.attribute_01; -- y/n 13 | v_close_on_esc apex_application_page_items.attribute_01%TYPE := p_dynamic_action.attribute_02; -- y/n 14 | v_title apex_application_page_items.attribute_01%TYPE := p_dynamic_action.attribute_03; -- text 15 | v_hide_on_load apex_application_page_items.attribute_01%TYPE := upper(p_dynamic_action.attribute_04); -- y/n 16 | v_on_close_visible_state apex_application_page_items.attribute_01%TYPE := lower(p_dynamic_action.attribute_05); -- prev, show, hide 17 | v_action apex_application_page_items.attribute_01%type := lower(p_dynamic_action.attribute_06); -- open,close 18 | 19 | -- Return 20 | v_result apex_plugin.t_dynamic_action_render_result; 21 | 22 | -- Other variables 23 | v_html varchar2(4000); 24 | v_affected_elements apex_application_page_da_acts.affected_elements%type; 25 | v_affected_elements_type apex_application_page_da_acts.affected_elements_type%type; 26 | v_affected_region_id apex_application_page_da_acts.affected_region_id%type; 27 | v_affected_region_static_id apex_application_page_regions.static_id%type; 28 | 29 | -- Convert Y/N to True/False (text) 30 | -- Default to true 31 | FUNCTION f_yn_to_true_false_str(p_val IN VARCHAR2) 32 | RETURN VARCHAR2 33 | AS 34 | BEGIN 35 | RETURN 36 | CASE 37 | WHEN p_val IS NULL OR lower(p_val) != 'n' THEN 'true' 38 | ELSE 'false' 39 | END; 40 | END f_yn_to_true_false_str; 41 | 42 | BEGIN 43 | -- Debug information (if app is being run in debug mode) 44 | IF apex_application.g_debug THEN 45 | apex_plugin_util.debug_dynamic_action ( 46 | p_plugin => p_plugin, 47 | p_dynamic_action => p_dynamic_action); 48 | END IF; 49 | 50 | -- Cleaup values 51 | v_modal := f_yn_to_true_false_str(p_val => v_modal); 52 | v_close_on_esc := f_yn_to_true_false_str(p_val => v_close_on_esc); 53 | 54 | -- If Background color is not null set the CSS 55 | -- This will only be done once per page 56 | IF v_background_color IS NOT NULL AND v_action != 'close' THEN 57 | v_html := q'! 58 | .ui-widget-overlay{ 59 | background-image: none ; 60 | background-color: %BG_COLOR%; 61 | opacity: %OPACITY%; 62 | }!'; 63 | 64 | v_html := REPLACE(v_html, '%BG_COLOR%', v_background_color); 65 | v_html := REPLACE(v_html, '%OPACITY%', v_background_opacitiy); 66 | 67 | apex_css.ADD ( 68 | p_css => v_html, 69 | p_key => 'ui.clarifitdialog.background'); 70 | END IF; 71 | 72 | -- JAVASCRIPT 73 | 74 | -- Load javascript Libraries 75 | apex_javascript.add_library (p_name => '$console_wrapper', p_directory => p_plugin.file_prefix, p_version=> '_1.0.3'); -- Load Console Wrapper for debugging 76 | apex_javascript.add_library (p_name => 'jquery.ui.clarifitDialog', p_directory => p_plugin.file_prefix, p_version=> '_1.0.1'); 77 | 78 | -- Hide Affected Elements on Load 79 | IF v_hide_on_load = 'Y' AND v_action != 'close' THEN 80 | v_html := ''; 81 | 82 | SELECT affected_elements, lower(affected_elements_type), affected_region_id, aapr.static_id 83 | INTO v_affected_elements, v_affected_elements_type, v_affected_region_id, v_affected_region_static_id 84 | FROM apex_application_page_da_acts aapda, apex_application_page_regions aapr 85 | WHERE aapda.action_id = p_dynamic_action.ID 86 | AND aapda.affected_region_id = aapr.region_id(+); 87 | 88 | IF v_affected_elements_type = 'jquery selector' THEN 89 | v_html := 'apex.jQuery("' || v_affected_elements || '").hide();'; 90 | ELSIF v_affected_elements_type = 'dom object' THEN 91 | v_html := 'apex.jQuery("#' || v_affected_elements || '").hide();'; 92 | ELSIF v_affected_elements_type = 'region' THEN 93 | v_html := 'apex.jQuery("#' || nvl(v_affected_region_static_id, 'R' || v_affected_region_id) || '").hide();'; 94 | ELSE 95 | -- unknown/unhandled (nothing to hide) 96 | raise_application_error(-20001, 'Unknown Affected Element Type'); 97 | END IF; -- v_affected_elements_type 98 | 99 | apex_javascript.add_onload_code ( 100 | p_code => v_html, 101 | p_key => NULL); -- Leave null so always run 102 | END IF; -- v_hide_on_load 103 | 104 | -- RETURN 105 | if v_action = 'open' then 106 | v_result.javascript_function := '$.ui.clarifitDialog.daDialog'; 107 | v_result.attribute_01 := v_modal; 108 | v_result.attribute_02 := v_close_on_esc; 109 | v_result.attribute_03 := v_title; 110 | v_result.attribute_04 := v_on_close_visible_state; 111 | elsif v_action = 'close' THEN 112 | v_result.javascript_function := '$.ui.clarifitDialog.daClose'; 113 | ELSE 114 | raise_application_error(-20001, 'Unknown Action Type'); 115 | END IF; 116 | 117 | RETURN v_result; 118 | 119 | END f_render_dialog; -------------------------------------------------------------------------------- /dialog/README.md: -------------------------------------------------------------------------------- 1 | #PROJECT MOVED 2 | 3 | This plugin has moved to OraOpenSource: [https://github.com/OraOpenSource/apex-plugin-dialog/](https://github.com/OraOpenSource/apex-plugin-dialog/) 4 | -------------------------------------------------------------------------------- /dialog/plsql_src.sql: -------------------------------------------------------------------------------- 1 | -- *** Dialog *** 2 | FUNCTION f_render_dialog ( 3 | p_dynamic_action IN apex_plugin.t_dynamic_action, 4 | p_plugin IN apex_plugin.t_plugin ) 5 | RETURN apex_plugin.t_dynamic_action_render_result 6 | AS 7 | -- Application Plugin Attributes 8 | v_background_color apex_appl_plugins.attribute_01%TYPE := p_plugin.attribute_01; 9 | v_background_opacitiy apex_appl_plugins.attribute_01%TYPE := p_plugin.attribute_02; 10 | 11 | -- DA Plugin Attributes 12 | v_modal apex_application_page_items.attribute_01%TYPE := p_dynamic_action.attribute_01; -- y/n 13 | v_close_on_esc apex_application_page_items.attribute_01%TYPE := p_dynamic_action.attribute_02; -- y/n 14 | v_title apex_application_page_items.attribute_01%TYPE := p_dynamic_action.attribute_03; -- text 15 | v_hide_on_load apex_application_page_items.attribute_01%TYPE := upper(p_dynamic_action.attribute_04); -- y/n 16 | v_on_close_visible_state apex_application_page_items.attribute_01%TYPE := lower(p_dynamic_action.attribute_05); -- prev, show, hide 17 | v_action apex_application_page_items.attribute_01%type := lower(p_dynamic_action.attribute_06); -- open,close 18 | 19 | -- Return 20 | v_result apex_plugin.t_dynamic_action_render_result; 21 | 22 | -- Other variables 23 | v_html varchar2(4000); 24 | v_affected_elements apex_application_page_da_acts.affected_elements%type; 25 | v_affected_elements_type apex_application_page_da_acts.affected_elements_type%type; 26 | v_affected_region_id apex_application_page_da_acts.affected_region_id%type; 27 | v_affected_region_static_id apex_application_page_regions.static_id%type; 28 | 29 | -- Convert Y/N to True/False (text) 30 | -- Default to true 31 | FUNCTION f_yn_to_true_false_str(p_val IN VARCHAR2) 32 | RETURN VARCHAR2 33 | AS 34 | BEGIN 35 | RETURN 36 | CASE 37 | WHEN p_val IS NULL OR lower(p_val) != 'n' THEN 'true' 38 | ELSE 'false' 39 | END; 40 | END f_yn_to_true_false_str; 41 | 42 | BEGIN 43 | -- Debug information (if app is being run in debug mode) 44 | IF apex_application.g_debug THEN 45 | apex_plugin_util.debug_dynamic_action ( 46 | p_plugin => p_plugin, 47 | p_dynamic_action => p_dynamic_action); 48 | END IF; 49 | 50 | -- Cleaup values 51 | v_modal := f_yn_to_true_false_str(p_val => v_modal); 52 | v_close_on_esc := f_yn_to_true_false_str(p_val => v_close_on_esc); 53 | 54 | -- If Background color is not null set the CSS 55 | -- This will only be done once per page 56 | IF v_background_color IS NOT NULL AND v_action != 'close' THEN 57 | v_html := q'! 58 | .ui-widget-overlay{ 59 | background-image: none ; 60 | background-color: %BG_COLOR%; 61 | opacity: %OPACITY%; 62 | }!'; 63 | 64 | v_html := REPLACE(v_html, '%BG_COLOR%', v_background_color); 65 | v_html := REPLACE(v_html, '%OPACITY%', v_background_opacitiy); 66 | 67 | apex_css.ADD ( 68 | p_css => v_html, 69 | p_key => 'ui.clarifitdialog.background'); 70 | END IF; 71 | 72 | -- JAVASCRIPT 73 | 74 | -- Load javascript Libraries 75 | apex_javascript.add_library (p_name => '$console_wrapper', p_directory => p_plugin.file_prefix, p_version=> '_1.0.3'); -- Load Console Wrapper for debugging 76 | apex_javascript.add_library (p_name => 'jquery.ui.clarifitDialog', p_directory => p_plugin.file_prefix, p_version=> '_1.0.1'); 77 | 78 | -- Hide Affected Elements on Load 79 | IF v_hide_on_load = 'Y' AND v_action != 'close' THEN 80 | v_html := ''; 81 | 82 | SELECT affected_elements, lower(affected_elements_type), affected_region_id, aapr.static_id 83 | INTO v_affected_elements, v_affected_elements_type, v_affected_region_id, v_affected_region_static_id 84 | FROM apex_application_page_da_acts aapda, apex_application_page_regions aapr 85 | WHERE aapda.action_id = p_dynamic_action.ID 86 | AND aapda.affected_region_id = aapr.region_id(+); 87 | 88 | IF v_affected_elements_type = 'jquery selector' THEN 89 | v_html := 'apex.jQuery("' || v_affected_elements || '").hide();'; 90 | ELSIF v_affected_elements_type = 'dom object' THEN 91 | v_html := 'apex.jQuery("#' || v_affected_elements || '").hide();'; 92 | ELSIF v_affected_elements_type = 'region' THEN 93 | v_html := 'apex.jQuery("#' || nvl(v_affected_region_static_id, 'R' || v_affected_region_id) || '").hide();'; 94 | ELSE 95 | -- unknown/unhandled (nothing to hide) 96 | raise_application_error(-20001, 'Unknown Affected Element Type'); 97 | END IF; -- v_affected_elements_type 98 | 99 | apex_javascript.add_onload_code ( 100 | p_code => v_html, 101 | p_key => NULL); -- Leave null so always run 102 | END IF; -- v_hide_on_load 103 | 104 | -- RETURN 105 | if v_action = 'open' then 106 | v_result.javascript_function := '$.ui.clarifitDialog.daDialog'; 107 | v_result.attribute_01 := v_modal; 108 | v_result.attribute_02 := v_close_on_esc; 109 | v_result.attribute_03 := v_title; 110 | v_result.attribute_04 := v_on_close_visible_state; 111 | elsif v_action = 'close' THEN 112 | v_result.javascript_function := '$.ui.clarifitDialog.daClose'; 113 | ELSE 114 | raise_application_error(-20001, 'Unknown Action Type'); 115 | END IF; 116 | 117 | RETURN v_result; 118 | 119 | END f_render_dialog; -------------------------------------------------------------------------------- /from_to_date/1.0.0/Clarifit From To Date Picker.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ClariFit/apex_plugins/27d21d09ac311113a8fea6140be72c307dddf35b/from_to_date/1.0.0/Clarifit From To Date Picker.zip -------------------------------------------------------------------------------- /from_to_date/1.0.0/pkg_apex_plugin.pkb: -------------------------------------------------------------------------------- 1 | CREATE OR REPLACE PACKAGE BODY pkg_apex_plugin 2 | AS 3 | FUNCTION render_syntax_highlighter (p_item IN apex_plugin.t_page_item, 4 | p_plugin IN apex_plugin.t_plugin, 5 | p_value IN VARCHAR2, 6 | p_is_readonly IN BOOLEAN, 7 | p_is_printer_friendly IN BOOLEAN) 8 | RETURN apex_plugin.t_page_item_render_result 9 | AS 10 | v_result apex_plugin.t_page_item_render_result; 11 | v_brush_js VARCHAR2 (30); -- Brush JS name 12 | -- Custom Item Attributes 13 | v_brush p_item.attribute_01%TYPE := LOWER (p_item.attribute_01); 14 | v_auto_links p_item.attribute_02%TYPE := LOWER (p_item.attribute_02); 15 | v_collapse p_item.attribute_03%TYPE := LOWER (p_item.attribute_03); 16 | v_gutter p_item.attribute_04%TYPE := LOWER (p_item.attribute_04); 17 | v_smart_tabs p_item.attribute_05%TYPE := LOWER (p_item.attribute_05); 18 | v_tab_size p_item.attribute_06%TYPE := p_item.attribute_06; 19 | -- Custom Plugin Attributes 20 | v_theme p_plugin.attribute_01%TYPE := p_plugin.attribute_01; 21 | -- TODO: Globals 22 | -- When updating makesure the filenames all are suffixed with this version number 23 | c_version VARCHAR2 (10) := '_3.0.83'; 24 | BEGIN 25 | -- Syntax Highlighter based on: http://alexgorbatchev.com/SyntaxHighlighter 26 | -- Debug 27 | IF apex_application.g_debug THEN 28 | apex_plugin_util.debug_page_item (p_plugin => p_plugin, 29 | p_page_item => p_item, 30 | p_value => p_value, 31 | p_is_readonly => p_is_readonly, 32 | p_is_printer_friendly => p_is_printer_friendly); 33 | END IF; 34 | 35 | -- Does not handle printer friendly or read only as this is readonly by nature and we want 36 | -- Syntax highlighter formatting for printer 37 | 38 | -- Load JS Libraries 39 | apex_javascript.add_library (p_name => 'shCore', p_directory => p_plugin.file_prefix, p_version => c_version); 40 | 41 | -- Load custom JS Libary for selected brush type 42 | IF v_brush = 'js' THEN 43 | v_brush_js := 'JScript'; 44 | ELSIF v_brush = 'sql' THEN 45 | v_brush_js := 'Sql'; 46 | ELSIF v_brush = 'bash' THEN 47 | v_brush_js := 'Bash'; 48 | ELSIF v_brush = 'css' THEN 49 | v_brush_js := 'Css'; 50 | ELSIF v_brush = 'diff' THEN 51 | v_brush_js := 'Diff'; 52 | ELSIF v_brush = 'java' THEN 53 | v_brush_js := 'Java'; 54 | ELSIF v_brush = 'plain' THEN 55 | v_brush_js := 'Plain'; 56 | ELSIF v_brush = 'xml' THEN 57 | v_brush_js := 'Xml'; 58 | END IF; 59 | 60 | apex_javascript.add_library (p_name => 'shBrush' || v_brush_js, p_directory => p_plugin.file_prefix, p_version => c_version); 61 | 62 | -- Load CSS Library 63 | apex_css.add_file (p_name => 'shCore' || v_theme, p_directory => p_plugin.file_prefix, p_version => c_version); 64 | 65 | -- Print Syntax 66 | sys.htp.p (''); 69 | 70 | -- Run onLoad code 71 | apex_javascript.add_onload_code (p_code => 'SyntaxHighlighter.all();', p_key => 'SYNTAX_HIGHLIGHTER'); 72 | 73 | RETURN v_result; 74 | END render_syntax_highlighter; 75 | end pkg_apex_plugin; 76 | / -------------------------------------------------------------------------------- /from_to_date/1.0.1/Clarifit From To Date Picker.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ClariFit/apex_plugins/27d21d09ac311113a8fea6140be72c307dddf35b/from_to_date/1.0.1/Clarifit From To Date Picker.zip -------------------------------------------------------------------------------- /from_to_date/1.0.1/pkg_apex_plugin.pkb: -------------------------------------------------------------------------------- 1 | CREATE OR REPLACE PACKAGE BODY pkg_apex_plugin 2 | AS 3 | FUNCTION render_syntax_highlighter (p_item IN apex_plugin.t_page_item, 4 | p_plugin IN apex_plugin.t_plugin, 5 | p_value IN VARCHAR2, 6 | p_is_readonly IN BOOLEAN, 7 | p_is_printer_friendly IN BOOLEAN) 8 | RETURN apex_plugin.t_page_item_render_result 9 | AS 10 | v_result apex_plugin.t_page_item_render_result; 11 | v_brush_js VARCHAR2 (30); -- Brush JS name 12 | -- Custom Item Attributes 13 | v_brush p_item.attribute_01%TYPE := LOWER (p_item.attribute_01); 14 | v_auto_links p_item.attribute_02%TYPE := LOWER (p_item.attribute_02); 15 | v_collapse p_item.attribute_03%TYPE := LOWER (p_item.attribute_03); 16 | v_gutter p_item.attribute_04%TYPE := LOWER (p_item.attribute_04); 17 | v_smart_tabs p_item.attribute_05%TYPE := LOWER (p_item.attribute_05); 18 | v_tab_size p_item.attribute_06%TYPE := p_item.attribute_06; 19 | -- Custom Plugin Attributes 20 | v_theme p_plugin.attribute_01%TYPE := p_plugin.attribute_01; 21 | -- TODO: Globals 22 | -- When updating makesure the filenames all are suffixed with this version number 23 | c_version VARCHAR2 (10) := '_3.0.83'; 24 | BEGIN 25 | -- Syntax Highlighter based on: http://alexgorbatchev.com/SyntaxHighlighter 26 | -- Debug 27 | IF apex_application.g_debug THEN 28 | apex_plugin_util.debug_page_item (p_plugin => p_plugin, 29 | p_page_item => p_item, 30 | p_value => p_value, 31 | p_is_readonly => p_is_readonly, 32 | p_is_printer_friendly => p_is_printer_friendly); 33 | END IF; 34 | 35 | -- Does not handle printer friendly or read only as this is readonly by nature and we want 36 | -- Syntax highlighter formatting for printer 37 | 38 | -- Load JS Libraries 39 | apex_javascript.add_library (p_name => 'shCore', p_directory => p_plugin.file_prefix, p_version => c_version); 40 | 41 | -- Load custom JS Libary for selected brush type 42 | IF v_brush = 'js' THEN 43 | v_brush_js := 'JScript'; 44 | ELSIF v_brush = 'sql' THEN 45 | v_brush_js := 'Sql'; 46 | ELSIF v_brush = 'bash' THEN 47 | v_brush_js := 'Bash'; 48 | ELSIF v_brush = 'css' THEN 49 | v_brush_js := 'Css'; 50 | ELSIF v_brush = 'diff' THEN 51 | v_brush_js := 'Diff'; 52 | ELSIF v_brush = 'java' THEN 53 | v_brush_js := 'Java'; 54 | ELSIF v_brush = 'plain' THEN 55 | v_brush_js := 'Plain'; 56 | ELSIF v_brush = 'xml' THEN 57 | v_brush_js := 'Xml'; 58 | END IF; 59 | 60 | apex_javascript.add_library (p_name => 'shBrush' || v_brush_js, p_directory => p_plugin.file_prefix, p_version => c_version); 61 | 62 | -- Load CSS Library 63 | apex_css.add_file (p_name => 'shCore' || v_theme, p_directory => p_plugin.file_prefix, p_version => c_version); 64 | 65 | -- Print Syntax 66 | sys.htp.p (''); 69 | 70 | -- Run onLoad code 71 | apex_javascript.add_onload_code (p_code => 'SyntaxHighlighter.all();', p_key => 'SYNTAX_HIGHLIGHTER'); 72 | 73 | RETURN v_result; 74 | END render_syntax_highlighter; 75 | end pkg_apex_plugin; 76 | / -------------------------------------------------------------------------------- /from_to_date/Clarifit From To Date Picker.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ClariFit/apex_plugins/27d21d09ac311113a8fea6140be72c307dddf35b/from_to_date/Clarifit From To Date Picker.zip -------------------------------------------------------------------------------- /from_to_date/README.md: -------------------------------------------------------------------------------- 1 | # PROJECT MOVED 2 | 3 | The from/to date picker has moved to [https://github.com/OraOpenSource/apex-plugin-from-to-datepicker](https://github.com/OraOpenSource/apex-plugin-from-to-datepicker). 4 | 5 | The version listed in this repository is in place soley for historical purposes. No new development will occur on this version. Please create new issues/enahnagement requests on the new project page. 6 | -------------------------------------------------------------------------------- /from_to_date/__NEXT_RELEASE_CHANGES.txt: -------------------------------------------------------------------------------- 1 | 2 | Implemented in 1.0.1 3 | 4 | - Add an absolute min/max dates 5 | - IE 7/8/9 Fix 6 | 7 | Dear, 8 | 9 | I have recently downloaded and tried the Clarifit from to datepicker. I must say I really like the concept. I am currently working with a client that only uses IE8. I develop in Chrome, but test in IE, after testing the folowing error popped up: "Expected identifier String or Number". In IE this usually means there is a "," somewhere, where it shouldn't be. I found two in the code: 10 | 11 | One at 12 | showOn: 'button' 13 | }, 14 | datePickerType: '', //from or to 15 | }, 16 | So this becomes: 17 | showOn: 'button' 18 | }, 19 | datePickerType: '' //from or to 20 | }, 21 | And one at: 22 | uiw._values = { 23 | shortYearCutoff: 30, //roll over year 24 | }; 25 | becomes: 26 | uiw._values = {shortYearCutoff: 30 //roll over year 27 | }; 28 | 29 | After editing these two out, it ran withouth any further problems. 30 | 31 | Perhaps you were already aware of this problem, but if not I hope this information will help you if you decide to release another version. 32 | And again, thank you for releasing such a handy plug-in. 33 | 34 | Regards, 35 | 36 | Joni Vandenberghe 37 | Oracle Consultant 38 | -------------------------------------------------------------------------------- /from_to_date/_test_from_thru.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | (( |;)+|^)test:([^\s])+ 69 | 70 | 71 | http://www.w3schools.com/jsref/jsref_obj_regexp.asp 72 | 73 | 74 | var x = "datepicker test:s hasDatepicker"; 75 | x.match(/\btest:[^\s]+/); 76 | var y = x.match(/\btest:[^\s]+/).toString(); ** Works ** 77 | console.log(y); 78 | 79 | if (y===null) 80 | console.log('hello'); 81 | else 82 | console.log('jello'); 83 | 84 |
85 |
86 |
87 | 88 | 89 | Things we're going to need to do:
90 | - Custom classes for datepicker so not triggered by APEX 91 | - Perhaps com.clarifit.datepicker.fromto 92 | - Compare the other features that the calendar picker currently has 93 | 94 | 95 | -------------------------------------------------------------------------------- /from_to_date/_test_from_thru.html.20101102_2235: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | (( |;)+|^)test:([^\s])+ 60 | 61 | 62 | http://www.w3schools.com/jsref/jsref_obj_regexp.asp 63 | 64 | 65 | var x = "datepicker test:s hasDatepicker"; 66 | x.match(/\btest:[^\s]+/); 67 | var y = x.match(/\btest:[^\s]+/).toString(); ** Works ** 68 | console.log(y); 69 | 70 | if (y===null) 71 | console.log('hello'); 72 | else 73 | console.log('jello'); 74 | 75 |
76 |
77 |
78 | 79 | 80 | Things we're going to need to do:
81 | - Custom classes for datepicker so not triggered by APEX 82 | - Perhaps com.clarifit.datepicker.fromto 83 | - Compare the other features that the calendar picker currently has 84 | 85 | 86 | -------------------------------------------------------------------------------- /from_to_date/pkg_apex_plugin.pkb: -------------------------------------------------------------------------------- 1 | CREATE OR REPLACE PACKAGE BODY pkg_apex_plugin 2 | AS 3 | FUNCTION render_syntax_highlighter (p_item IN apex_plugin.t_page_item, 4 | p_plugin IN apex_plugin.t_plugin, 5 | p_value IN VARCHAR2, 6 | p_is_readonly IN BOOLEAN, 7 | p_is_printer_friendly IN BOOLEAN) 8 | RETURN apex_plugin.t_page_item_render_result 9 | AS 10 | v_result apex_plugin.t_page_item_render_result; 11 | v_brush_js VARCHAR2 (30); -- Brush JS name 12 | -- Custom Item Attributes 13 | v_brush p_item.attribute_01%TYPE := LOWER (p_item.attribute_01); 14 | v_auto_links p_item.attribute_02%TYPE := LOWER (p_item.attribute_02); 15 | v_collapse p_item.attribute_03%TYPE := LOWER (p_item.attribute_03); 16 | v_gutter p_item.attribute_04%TYPE := LOWER (p_item.attribute_04); 17 | v_smart_tabs p_item.attribute_05%TYPE := LOWER (p_item.attribute_05); 18 | v_tab_size p_item.attribute_06%TYPE := p_item.attribute_06; 19 | -- Custom Plugin Attributes 20 | v_theme p_plugin.attribute_01%TYPE := p_plugin.attribute_01; 21 | -- TODO: Globals 22 | -- When updating makesure the filenames all are suffixed with this version number 23 | c_version VARCHAR2 (10) := '_3.0.83'; 24 | BEGIN 25 | -- Syntax Highlighter based on: http://alexgorbatchev.com/SyntaxHighlighter 26 | -- Debug 27 | IF apex_application.g_debug THEN 28 | apex_plugin_util.debug_page_item (p_plugin => p_plugin, 29 | p_page_item => p_item, 30 | p_value => p_value, 31 | p_is_readonly => p_is_readonly, 32 | p_is_printer_friendly => p_is_printer_friendly); 33 | END IF; 34 | 35 | -- Does not handle printer friendly or read only as this is readonly by nature and we want 36 | -- Syntax highlighter formatting for printer 37 | 38 | -- Load JS Libraries 39 | apex_javascript.add_library (p_name => 'shCore', p_directory => p_plugin.file_prefix, p_version => c_version); 40 | 41 | -- Load custom JS Libary for selected brush type 42 | IF v_brush = 'js' THEN 43 | v_brush_js := 'JScript'; 44 | ELSIF v_brush = 'sql' THEN 45 | v_brush_js := 'Sql'; 46 | ELSIF v_brush = 'bash' THEN 47 | v_brush_js := 'Bash'; 48 | ELSIF v_brush = 'css' THEN 49 | v_brush_js := 'Css'; 50 | ELSIF v_brush = 'diff' THEN 51 | v_brush_js := 'Diff'; 52 | ELSIF v_brush = 'java' THEN 53 | v_brush_js := 'Java'; 54 | ELSIF v_brush = 'plain' THEN 55 | v_brush_js := 'Plain'; 56 | ELSIF v_brush = 'xml' THEN 57 | v_brush_js := 'Xml'; 58 | END IF; 59 | 60 | apex_javascript.add_library (p_name => 'shBrush' || v_brush_js, p_directory => p_plugin.file_prefix, p_version => c_version); 61 | 62 | -- Load CSS Library 63 | apex_css.add_file (p_name => 'shCore' || v_theme, p_directory => p_plugin.file_prefix, p_version => c_version); 64 | 65 | -- Print Syntax 66 | sys.htp.p (''); 69 | 70 | -- Run onLoad code 71 | apex_javascript.add_onload_code (p_code => 'SyntaxHighlighter.all();', p_key => 'SYNTAX_HIGHLIGHTER'); 72 | 73 | RETURN v_result; 74 | END render_syntax_highlighter; 75 | end pkg_apex_plugin; 76 | / -------------------------------------------------------------------------------- /from_to_date/pkg_apex_plugin.pks: -------------------------------------------------------------------------------- 1 | CREATE OR REPLACE PACKAGE pkg_apex_plugin 2 | AS 3 | FUNCTION render_syntax_highlighter (p_item IN apex_plugin.t_page_item, 4 | p_plugin IN apex_plugin.t_plugin, 5 | p_value IN VARCHAR2, 6 | p_is_readonly IN BOOLEAN, 7 | p_is_printer_friendly IN BOOLEAN) 8 | RETURN apex_plugin.t_page_item_render_result; 9 | END pkg_apex_plugin; -------------------------------------------------------------------------------- /ir_col_grouping/clarifit_ir_col_grouping_1.0.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ClariFit/apex_plugins/27d21d09ac311113a8fea6140be72c307dddf35b/ir_col_grouping/clarifit_ir_col_grouping_1.0.0.zip -------------------------------------------------------------------------------- /ir_col_grouping/clarifit_ir_col_grouping_1.0.1.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ClariFit/apex_plugins/27d21d09ac311113a8fea6140be72c307dddf35b/ir_col_grouping/clarifit_ir_col_grouping_1.0.1.zip -------------------------------------------------------------------------------- /ir_col_grouping/clarifit_ir_col_grouping_1.0.2.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ClariFit/apex_plugins/27d21d09ac311113a8fea6140be72c307dddf35b/ir_col_grouping/clarifit_ir_col_grouping_1.0.2.zip -------------------------------------------------------------------------------- /ir_col_grouping/clarifit_ir_col_grouping_1.0.3.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ClariFit/apex_plugins/27d21d09ac311113a8fea6140be72c307dddf35b/ir_col_grouping/clarifit_ir_col_grouping_1.0.3.zip -------------------------------------------------------------------------------- /ir_col_grouping/clarifit_ir_col_grouping_1.0.4.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ClariFit/apex_plugins/27d21d09ac311113a8fea6140be72c307dddf35b/ir_col_grouping/clarifit_ir_col_grouping_1.0.4.zip -------------------------------------------------------------------------------- /ir_col_grouping/clarifit_ir_col_grp.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ClariFit/apex_plugins/27d21d09ac311113a8fea6140be72c307dddf35b/ir_col_grouping/clarifit_ir_col_grp.jpg -------------------------------------------------------------------------------- /ir_col_grouping/ir_col_group_info.txt: -------------------------------------------------------------------------------- 1 | // TODO: PDF for the instructions on how to use 2 | // TODO: explain why you can't use the region for the refresh and you must use the ID (bc region templates don't always contain the region id information). 3 | -------------------------------------------------------------------------------- /ir_col_grouping/ir_col_group_scratch.sql: -------------------------------------------------------------------------------- 1 | select * 2 | from apex_dictionary 3 | where column_id = 0 4 | and apex_view_name like '%COL%'; 5 | 6 | -- TODO to avoid context switching I may want to just calling function later on rather than in SQL statement 7 | select '{"column_alias":"' || column_alias || '","column_group":"' || column_group || '"}' -- TODO call escape JSON function 8 | from APEX_APPLICATION_PAGE_IR_COL 9 | where application_id = 108 -- TODO replace with var 10 | and page_id = 1 -- TODO replace with var 11 | and column_group is not null; 12 | 13 | 14 | -- TODO this is from APEX code need to change it up before I use it 15 | -- TODO perhaps rename to f_json_escape 16 | create or replace FUNCTION JSON_REPLACE( 17 | P_TEXT IN VARCHAR2 DEFAULT NULL 18 | ) RETURN VARCHAR2 IS 19 | L_TEXT VARCHAR2(32767); 20 | BEGIN 21 | L_TEXT := REPLACE(P_TEXT, '\', '\\'); 22 | L_TEXT := REPLACE(L_TEXT, '"', '\"'); 23 | L_TEXT := REPLACE(L_TEXT,CHR(13)||CHR(10),CHR(10)); 24 | L_TEXT := REPLACE(L_TEXT,CHR(10)||CHR(13),CHR(10)); 25 | L_TEXT := REPLACE(L_TEXT,CHR(10),'\n'); 26 | RETURN L_TEXT; 27 | END JSON_REPLACE; 28 | 29 | 30 | select * 31 | from logger_logs 32 | order by id desc; 33 | -------------------------------------------------------------------------------- /simple_modal/$cfap_1.0.0.js: -------------------------------------------------------------------------------- 1 | /** 2 | * ClariFit JS APEX Plugin code 3 | * http://www.clarifit.com 4 | * apex@clarifit.com 5 | * 6 | * Wrapper for ClariFit APEX Plugins 7 | * CFAP = ClariFit Apex Plugin 8 | * 9 | * Requires: 10 | * -$logger_1.0.0.js 11 | * -$clarifit_1.0.0.js 12 | */ 13 | $cfap = {}; 14 | 15 | //*** SimpleModal *** 16 | $cfap.simpleModal = {}; 17 | 18 | /** 19 | * Simple Modal: Show 20 | */ 21 | $cfap.simpleModal.show = function (){ 22 | $.console.group('ClariFit: simpleModal.show'); 23 | $.console.log('Apex plugin "this": ', this); 24 | 25 | //Variables 26 | var params = { 27 | hideOnClose : this.action.attribute01.toLowerCase() == 'true', 28 | opacity : this.action.attribute02, 29 | escClose : this.action.attribute03.toLowerCase() == 'true', 30 | modal : this.action.attribute04.toLowerCase() == 'true', 31 | backgroundColor : this.action.attribute05 32 | }; 33 | 34 | var affectedElements = this.affectedElements; 35 | 36 | var vOptions ={ 37 | opacity : params.opacity, 38 | escClose : params.escClose, 39 | modal : params.modal, 40 | onClose : function(dialog){ 41 | $.modal.close(); 42 | if (params.hideOnClose){ 43 | $.console.log('Automatically closing affected elements'); 44 | affectedElements.hide(); 45 | } 46 | }//onClose 47 | }; 48 | 49 | if (params.backgroundColor != null) 50 | vOptions.overlayCss = {backgroundColor: params.backgroundColor}; 51 | 52 | //If no Affected Elements were selected (defaults to document) or invalud affected elements then do nothing 53 | if(this.affectedElements.length == 0 || (this.affectedElements.length == 1 && this.affectedElements[0] == document)){ 54 | //No elements were provided 55 | $.console.warn('No affected elements, nothing to do.'); 56 | } 57 | else{ 58 | //Show objects 59 | //Recommended to show only 1 object, but can handle more 60 | if (this.affectedElements.length > 1) 61 | $.console.info('More than 1 affected elements. Not recommended'); 62 | $clarifit.modalShow(this.affectedElements, vOptions); 63 | } 64 | $.console.groupEnd(); 65 | }// $cfap.modalShow 66 | 67 | /** 68 | * Close Simple Modal 69 | */ 70 | $cfap.simpleModal.close = function (){ 71 | $.console.group('ClariFit: simpleModal.close'); 72 | $clarifit.modalClose(); 73 | $.console.groupEnd(); 74 | }//$cfap.simpleModalShow -------------------------------------------------------------------------------- /simple_modal/$clarifit_1.0.0.js: -------------------------------------------------------------------------------- 1 | /** 2 | * ClariFit JS code 3 | * http://www.clarifit.com 4 | * apex@clarifit.com 5 | * 6 | * Requires 7 | * - SimpleModal 1.3.5 8 | */ 9 | $clarifit = {}; 10 | 11 | /** 12 | * Displays Object(s) as modal 13 | * Only allows for one modal window open at a time 14 | * To close modal window, call $clarifit.modalClose(); 15 | * 16 | * Requires: 17 | * - http://www.ericmmartin.com/projects/simplemodal/ 18 | * 19 | * Please note you can't call the simple modal by itself. It will work but you will run into issues with APEX items. 20 | * See: http://forums.oracle.com/forums/thread.jspa?messageID=3180532 for more information. 21 | * 22 | * Used in: 23 | * - COM.CLARIFIT.APEXPLUGIN.SIMPLE_MODAL_SHOW 24 | * 25 | * @param pObj object(s) (preferably this references a region) to make modal 26 | * @param pOptions Options for modal Screen. See: http://www.ericmmartin.com/projects/simplemodal/#options for more info 27 | */ 28 | $clarifit.modalShow = function(pObj, pOptions){ 29 | var vDefaults = { 30 | persist: true, //If true, the data will be maintained across modal calls, if false, the data will be reverted to its original state. (i.e. it will be deleted 31 | overlayCss: {backgroundColor: '#606060'} //Dark Grey 32 | }; 33 | 34 | //Extend default options 35 | pOptions = jQuery.extend(true,vDefaults, pOptions); 36 | 37 | // Maintain order of APEX items (see forum posting above) 38 | $(pObj).wrap('
'); 39 | 40 | // Make sure the region is visible 41 | $(pObj).show(); 42 | 43 | // Open Modal Screen 44 | $(pObj).modal(pOptions); 45 | }//$clarifit.modalShow 46 | 47 | /** 48 | * Closes the modal screen 49 | * 50 | * Used in: 51 | * - COM.CLARIFIT.APEXPLUGIN.SIMPLE_MODAL_CLOSE 52 | */ 53 | $clarifit.modalClose = function(){ 54 | $.modal.close(); 55 | }// $clarifit.modalClose 56 | 57 | 58 | -------------------------------------------------------------------------------- /simple_modal/_notes.txt: -------------------------------------------------------------------------------- 1 | http://www.ericmmartin.com/projects/simplemodal/ 2 | 3 | - Attributes 4 | - Type: open/close 5 | - Region ID: id 6 | - opacity 7 | - closeHTML 8 | - escClose 9 | - closeClass 10 | 11 | - Call Backs 12 | - onOpen 13 | - onShow 14 | - onClose 15 | 16 | TODO: 17 | - escape on close always seems active (check close attribute) 18 | - When I do a modal.close object is still visibile. -------------------------------------------------------------------------------- /simple_modal/clarifit_simple_modal.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ClariFit/apex_plugins/27d21d09ac311113a8fea6140be72c307dddf35b/simple_modal/clarifit_simple_modal.jpg -------------------------------------------------------------------------------- /simple_modal/clarifit_simple_modal.txt: -------------------------------------------------------------------------------- 1 | Example: http://apex.oracle.com/pls/apex/f?p=45587:400 2 | 3 | This file contains 2 plugins. One is to close the nodal window and the other is to open the modal window 4 | 5 | Additional help: apex@clarifit.com -------------------------------------------------------------------------------- /simple_modal/clarifit_simple_modal.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ClariFit/apex_plugins/27d21d09ac311113a8fea6140be72c307dddf35b/simple_modal/clarifit_simple_modal.zip -------------------------------------------------------------------------------- /syntax_highlighter/files/shBrushBash_3.0.83.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/SyntaxHighlighter 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html 7 | * 8 | * @version 9 | * 3.0.83 (July 02 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2010 Alex Gorbatchev. 13 | * 14 | * @license 15 | * Dual licensed under the MIT and GPL licenses. 16 | */ 17 | ;(function() 18 | { 19 | // CommonJS 20 | typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; 21 | 22 | function Brush() 23 | { 24 | var keywords = 'if fi then elif else for do done until while break continue case function return in eq ne ge le'; 25 | var commands = 'alias apropos awk basename bash bc bg builtin bzip2 cal cat cd cfdisk chgrp chmod chown chroot' + 26 | 'cksum clear cmp comm command cp cron crontab csplit cut date dc dd ddrescue declare df ' + 27 | 'diff diff3 dig dir dircolors dirname dirs du echo egrep eject enable env ethtool eval ' + 28 | 'exec exit expand export expr false fdformat fdisk fg fgrep file find fmt fold format ' + 29 | 'free fsck ftp gawk getopts grep groups gzip hash head history hostname id ifconfig ' + 30 | 'import install join kill less let ln local locate logname logout look lpc lpr lprint ' + 31 | 'lprintd lprintq lprm ls lsof make man mkdir mkfifo mkisofs mknod more mount mtools ' + 32 | 'mv netstat nice nl nohup nslookup open op passwd paste pathchk ping popd pr printcap ' + 33 | 'printenv printf ps pushd pwd quota quotacheck quotactl ram rcp read readonly renice ' + 34 | 'remsync rm rmdir rsync screen scp sdiff sed select seq set sftp shift shopt shutdown ' + 35 | 'sleep sort source split ssh strace su sudo sum symlink sync tail tar tee test time ' + 36 | 'times touch top traceroute trap tr true tsort tty type ulimit umask umount unalias ' + 37 | 'uname unexpand uniq units unset unshar useradd usermod users uuencode uudecode v vdir ' + 38 | 'vi watch wc whereis which who whoami Wget xargs yes' 39 | ; 40 | 41 | this.regexList = [ 42 | { regex: /^#!.*$/gm, css: 'preprocessor bold' }, 43 | { regex: /\/[\w-\/]+/gm, css: 'plain' }, 44 | { regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, // one line comments 45 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings 46 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings 47 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords 48 | { regex: new RegExp(this.getKeywords(commands), 'gm'), css: 'functions' } // commands 49 | ]; 50 | } 51 | 52 | Brush.prototype = new SyntaxHighlighter.Highlighter(); 53 | Brush.aliases = ['bash', 'shell']; 54 | 55 | SyntaxHighlighter.brushes.Bash = Brush; 56 | 57 | // CommonJS 58 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null; 59 | })(); 60 | -------------------------------------------------------------------------------- /syntax_highlighter/files/shBrushDiff_3.0.83.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/SyntaxHighlighter 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html 7 | * 8 | * @version 9 | * 3.0.83 (July 02 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2010 Alex Gorbatchev. 13 | * 14 | * @license 15 | * Dual licensed under the MIT and GPL licenses. 16 | */ 17 | ;(function() 18 | { 19 | // CommonJS 20 | typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; 21 | 22 | function Brush() 23 | { 24 | this.regexList = [ 25 | { regex: /^\+\+\+.*$/gm, css: 'color2' }, 26 | { regex: /^\-\-\-.*$/gm, css: 'color2' }, 27 | { regex: /^\s.*$/gm, css: 'color1' }, 28 | { regex: /^@@.*@@$/gm, css: 'variable' }, 29 | { regex: /^\+[^\+]{1}.*$/gm, css: 'string' }, 30 | { regex: /^\-[^\-]{1}.*$/gm, css: 'comments' } 31 | ]; 32 | }; 33 | 34 | Brush.prototype = new SyntaxHighlighter.Highlighter(); 35 | Brush.aliases = ['diff', 'patch']; 36 | 37 | SyntaxHighlighter.brushes.Diff = Brush; 38 | 39 | // CommonJS 40 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null; 41 | })(); 42 | -------------------------------------------------------------------------------- /syntax_highlighter/files/shBrushJScript_3.0.83.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/SyntaxHighlighter 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html 7 | * 8 | * @version 9 | * 3.0.83 (July 02 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2010 Alex Gorbatchev. 13 | * 14 | * @license 15 | * Dual licensed under the MIT and GPL licenses. 16 | */ 17 | ;(function() 18 | { 19 | // CommonJS 20 | typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; 21 | 22 | function Brush() 23 | { 24 | var keywords = 'break case catch continue ' + 25 | 'default delete do else false ' + 26 | 'for function if in instanceof ' + 27 | 'new null return super switch ' + 28 | 'this throw true try typeof var while with' 29 | ; 30 | 31 | var r = SyntaxHighlighter.regexLib; 32 | 33 | this.regexList = [ 34 | { regex: r.multiLineDoubleQuotedString, css: 'string' }, // double quoted strings 35 | { regex: r.multiLineSingleQuotedString, css: 'string' }, // single quoted strings 36 | { regex: r.singleLineCComments, css: 'comments' }, // one line comments 37 | { regex: r.multiLineCComments, css: 'comments' }, // multiline comments 38 | { regex: /\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion 39 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keywords 40 | ]; 41 | 42 | this.forHtmlScript(r.scriptScriptTags); 43 | }; 44 | 45 | Brush.prototype = new SyntaxHighlighter.Highlighter(); 46 | Brush.aliases = ['js', 'jscript', 'javascript']; 47 | 48 | SyntaxHighlighter.brushes.JScript = Brush; 49 | 50 | // CommonJS 51 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null; 52 | })(); 53 | -------------------------------------------------------------------------------- /syntax_highlighter/files/shBrushJava_3.0.83.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/SyntaxHighlighter 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html 7 | * 8 | * @version 9 | * 3.0.83 (July 02 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2010 Alex Gorbatchev. 13 | * 14 | * @license 15 | * Dual licensed under the MIT and GPL licenses. 16 | */ 17 | ;(function() 18 | { 19 | // CommonJS 20 | typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; 21 | 22 | function Brush() 23 | { 24 | var keywords = 'abstract assert boolean break byte case catch char class const ' + 25 | 'continue default do double else enum extends ' + 26 | 'false final finally float for goto if implements import ' + 27 | 'instanceof int interface long native new null ' + 28 | 'package private protected public return ' + 29 | 'short static strictfp super switch synchronized this throw throws true ' + 30 | 'transient try void volatile while'; 31 | 32 | this.regexList = [ 33 | { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments 34 | { regex: /\/\*([^\*][\s\S]*)?\*\//gm, css: 'comments' }, // multiline comments 35 | { regex: /\/\*(?!\*\/)\*[\s\S]*?\*\//gm, css: 'preprocessor' }, // documentation comments 36 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings 37 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings 38 | { regex: /\b([\d]+(\.[\d]+)?|0x[a-f0-9]+)\b/gi, css: 'value' }, // numbers 39 | { regex: /(?!\@interface\b)\@[\$\w]+\b/g, css: 'color1' }, // annotation @anno 40 | { regex: /\@interface\b/g, css: 'color2' }, // @interface keyword 41 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // java keyword 42 | ]; 43 | 44 | this.forHtmlScript({ 45 | left : /(<|<)%[@!=]?/g, 46 | right : /%(>|>)/g 47 | }); 48 | }; 49 | 50 | Brush.prototype = new SyntaxHighlighter.Highlighter(); 51 | Brush.aliases = ['java']; 52 | 53 | SyntaxHighlighter.brushes.Java = Brush; 54 | 55 | // CommonJS 56 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null; 57 | })(); 58 | -------------------------------------------------------------------------------- /syntax_highlighter/files/shBrushPlain_3.0.83.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/SyntaxHighlighter 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html 7 | * 8 | * @version 9 | * 3.0.83 (July 02 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2010 Alex Gorbatchev. 13 | * 14 | * @license 15 | * Dual licensed under the MIT and GPL licenses. 16 | */ 17 | ;(function() 18 | { 19 | // CommonJS 20 | typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; 21 | 22 | function Brush() 23 | { 24 | }; 25 | 26 | Brush.prototype = new SyntaxHighlighter.Highlighter(); 27 | Brush.aliases = ['text', 'plain']; 28 | 29 | SyntaxHighlighter.brushes.Plain = Brush; 30 | 31 | // CommonJS 32 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null; 33 | })(); 34 | -------------------------------------------------------------------------------- /syntax_highlighter/files/shBrushSql_3.0.83.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/SyntaxHighlighter 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html 7 | * 8 | * @version 9 | * 3.0.83 (July 02 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2010 Alex Gorbatchev. 13 | * 14 | * @license 15 | * Dual licensed under the MIT and GPL licenses. 16 | */ 17 | ;(function() 18 | { 19 | // CommonJS 20 | typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; 21 | 22 | function Brush() 23 | { 24 | var funcs = 'abs avg case cast coalesce convert count current_timestamp ' + 25 | 'current_user day isnull left lower month nullif replace right ' + 26 | 'session_user space substring sum system_user upper user year'; 27 | 28 | var keywords = 'absolute action add after alter as asc at authorization begin bigint ' + 29 | 'binary bit by cascade char character check checkpoint close collate ' + 30 | 'column commit committed connect connection constraint contains continue ' + 31 | 'create cube current current_date current_time cursor database date ' + 32 | 'deallocate dec decimal declare default delete desc distinct double drop ' + 33 | 'dynamic else end end-exec escape except exec execute false fetch first ' + 34 | 'float for force foreign forward free from full function global goto grant ' + 35 | 'group grouping having hour ignore index inner insensitive insert instead ' + 36 | 'int integer intersect into is isolation key last level load local max min ' + 37 | 'minute modify move name national nchar next no numeric of off on only ' + 38 | 'open option order out output partial password precision prepare primary ' + 39 | 'prior privileges procedure public read real references relative repeatable ' + 40 | 'restrict return returns revoke rollback rollup rows rule schema scroll ' + 41 | 'second section select sequence serializable set size smallint static ' + 42 | 'statistics table temp temporary then time timestamp to top transaction ' + 43 | 'translation trigger true truncate uncommitted union unique update values ' + 44 | 'varchar varying view when where with work'; 45 | 46 | var operators = 'all and any between cross in join like not null or outer some'; 47 | 48 | this.regexList = [ 49 | { regex: /--(.*)$/gm, css: 'comments' }, // one line and multiline comments 50 | { regex: SyntaxHighlighter.regexLib.multiLineDoubleQuotedString, css: 'string' }, // double quoted strings 51 | { regex: SyntaxHighlighter.regexLib.multiLineSingleQuotedString, css: 'string' }, // single quoted strings 52 | { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'color2' }, // functions 53 | { regex: new RegExp(this.getKeywords(operators), 'gmi'), css: 'color1' }, // operators and such 54 | { regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' } // keyword 55 | ]; 56 | }; 57 | 58 | Brush.prototype = new SyntaxHighlighter.Highlighter(); 59 | Brush.aliases = ['sql']; 60 | 61 | SyntaxHighlighter.brushes.Sql = Brush; 62 | 63 | // CommonJS 64 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null; 65 | })(); 66 | 67 | -------------------------------------------------------------------------------- /syntax_highlighter/files/shBrushXml_3.0.83.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/SyntaxHighlighter 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html 7 | * 8 | * @version 9 | * 3.0.83 (July 02 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2010 Alex Gorbatchev. 13 | * 14 | * @license 15 | * Dual licensed under the MIT and GPL licenses. 16 | */ 17 | ;(function() 18 | { 19 | // CommonJS 20 | typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; 21 | 22 | function Brush() 23 | { 24 | function process(match, regexInfo) 25 | { 26 | var constructor = SyntaxHighlighter.Match, 27 | code = match[0], 28 | tag = new XRegExp('(<|<)[\\s\\/\\?]*(?[:\\w-\\.]+)', 'xg').exec(code), 29 | result = [] 30 | ; 31 | 32 | if (match.attributes != null) 33 | { 34 | var attributes, 35 | regex = new XRegExp('(? [\\w:\\-\\.]+)' + 36 | '\\s*=\\s*' + 37 | '(? ".*?"|\'.*?\'|\\w+)', 38 | 'xg'); 39 | 40 | while ((attributes = regex.exec(code)) != null) 41 | { 42 | result.push(new constructor(attributes.name, match.index + attributes.index, 'color1')); 43 | result.push(new constructor(attributes.value, match.index + attributes.index + attributes[0].indexOf(attributes.value), 'string')); 44 | } 45 | } 46 | 47 | if (tag != null) 48 | result.push( 49 | new constructor(tag.name, match.index + tag[0].indexOf(tag.name), 'keyword') 50 | ); 51 | 52 | return result; 53 | } 54 | 55 | this.regexList = [ 56 | { regex: new XRegExp('(\\<|<)\\!\\[[\\w\\s]*?\\[(.|\\s)*?\\]\\](\\>|>)', 'gm'), css: 'color2' }, // 57 | { regex: SyntaxHighlighter.regexLib.xmlComments, css: 'comments' }, // 58 | { regex: new XRegExp('(<|<)[\\s\\/\\?]*(\\w+)(?.*?)[\\s\\/\\?]*(>|>)', 'sg'), func: process } 59 | ]; 60 | }; 61 | 62 | Brush.prototype = new SyntaxHighlighter.Highlighter(); 63 | Brush.aliases = ['xml', 'xhtml', 'xslt', 'html']; 64 | 65 | SyntaxHighlighter.brushes.Xml = Brush; 66 | 67 | // CommonJS 68 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null; 69 | })(); 70 | -------------------------------------------------------------------------------- /syntax_highlighter/files/shThemeDefault_3.0.83.css: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/SyntaxHighlighter 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html 7 | * 8 | * @version 9 | * 3.0.83 (July 02 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2010 Alex Gorbatchev. 13 | * 14 | * @license 15 | * Dual licensed under the MIT and GPL licenses. 16 | */ 17 | .syntaxhighlighter { 18 | background-color: white !important; 19 | } 20 | .syntaxhighlighter .line.alt1 { 21 | background-color: white !important; 22 | } 23 | .syntaxhighlighter .line.alt2 { 24 | background-color: white !important; 25 | } 26 | .syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 { 27 | background-color: #e0e0e0 !important; 28 | } 29 | .syntaxhighlighter .line.highlighted.number { 30 | color: black !important; 31 | } 32 | .syntaxhighlighter table caption { 33 | color: black !important; 34 | } 35 | .syntaxhighlighter .gutter { 36 | color: #afafaf !important; 37 | } 38 | .syntaxhighlighter .gutter .line { 39 | border-right: 3px solid #6ce26c !important; 40 | } 41 | .syntaxhighlighter .gutter .line.highlighted { 42 | background-color: #6ce26c !important; 43 | color: white !important; 44 | } 45 | .syntaxhighlighter.printing .line .content { 46 | border: none !important; 47 | } 48 | .syntaxhighlighter.collapsed { 49 | overflow: visible !important; 50 | } 51 | .syntaxhighlighter.collapsed .toolbar { 52 | color: blue !important; 53 | background: white !important; 54 | border: 1px solid #6ce26c !important; 55 | } 56 | .syntaxhighlighter.collapsed .toolbar a { 57 | color: blue !important; 58 | } 59 | .syntaxhighlighter.collapsed .toolbar a:hover { 60 | color: red !important; 61 | } 62 | .syntaxhighlighter .toolbar { 63 | color: white !important; 64 | background: #6ce26c !important; 65 | border: none !important; 66 | } 67 | .syntaxhighlighter .toolbar a { 68 | color: white !important; 69 | } 70 | .syntaxhighlighter .toolbar a:hover { 71 | color: black !important; 72 | } 73 | .syntaxhighlighter .plain, .syntaxhighlighter .plain a { 74 | color: black !important; 75 | } 76 | .syntaxhighlighter .comments, .syntaxhighlighter .comments a { 77 | color: #008200 !important; 78 | } 79 | .syntaxhighlighter .string, .syntaxhighlighter .string a { 80 | color: blue !important; 81 | } 82 | .syntaxhighlighter .keyword { 83 | color: #006699 !important; 84 | } 85 | .syntaxhighlighter .preprocessor { 86 | color: gray !important; 87 | } 88 | .syntaxhighlighter .variable { 89 | color: #aa7700 !important; 90 | } 91 | .syntaxhighlighter .value { 92 | color: #009900 !important; 93 | } 94 | .syntaxhighlighter .functions { 95 | color: #ff1493 !important; 96 | } 97 | .syntaxhighlighter .constants { 98 | color: #0066cc !important; 99 | } 100 | .syntaxhighlighter .script { 101 | font-weight: bold !important; 102 | color: #006699 !important; 103 | background-color: none !important; 104 | } 105 | .syntaxhighlighter .color1, .syntaxhighlighter .color1 a { 106 | color: gray !important; 107 | } 108 | .syntaxhighlighter .color2, .syntaxhighlighter .color2 a { 109 | color: #ff1493 !important; 110 | } 111 | .syntaxhighlighter .color3, .syntaxhighlighter .color3 a { 112 | color: red !important; 113 | } 114 | 115 | .syntaxhighlighter .keyword { 116 | font-weight: bold !important; 117 | } 118 | -------------------------------------------------------------------------------- /syntax_highlighter/files/shThemeDjango_3.0.83.css: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/SyntaxHighlighter 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html 7 | * 8 | * @version 9 | * 3.0.83 (July 02 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2010 Alex Gorbatchev. 13 | * 14 | * @license 15 | * Dual licensed under the MIT and GPL licenses. 16 | */ 17 | .syntaxhighlighter { 18 | background-color: #0a2b1d !important; 19 | } 20 | .syntaxhighlighter .line.alt1 { 21 | background-color: #0a2b1d !important; 22 | } 23 | .syntaxhighlighter .line.alt2 { 24 | background-color: #0a2b1d !important; 25 | } 26 | .syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 { 27 | background-color: #233729 !important; 28 | } 29 | .syntaxhighlighter .line.highlighted.number { 30 | color: white !important; 31 | } 32 | .syntaxhighlighter table caption { 33 | color: #f8f8f8 !important; 34 | } 35 | .syntaxhighlighter .gutter { 36 | color: #497958 !important; 37 | } 38 | .syntaxhighlighter .gutter .line { 39 | border-right: 3px solid #41a83e !important; 40 | } 41 | .syntaxhighlighter .gutter .line.highlighted { 42 | background-color: #41a83e !important; 43 | color: #0a2b1d !important; 44 | } 45 | .syntaxhighlighter.printing .line .content { 46 | border: none !important; 47 | } 48 | .syntaxhighlighter.collapsed { 49 | overflow: visible !important; 50 | } 51 | .syntaxhighlighter.collapsed .toolbar { 52 | color: #96dd3b !important; 53 | background: black !important; 54 | border: 1px solid #41a83e !important; 55 | } 56 | .syntaxhighlighter.collapsed .toolbar a { 57 | color: #96dd3b !important; 58 | } 59 | .syntaxhighlighter.collapsed .toolbar a:hover { 60 | color: white !important; 61 | } 62 | .syntaxhighlighter .toolbar { 63 | color: white !important; 64 | background: #41a83e !important; 65 | border: none !important; 66 | } 67 | .syntaxhighlighter .toolbar a { 68 | color: white !important; 69 | } 70 | .syntaxhighlighter .toolbar a:hover { 71 | color: #ffe862 !important; 72 | } 73 | .syntaxhighlighter .plain, .syntaxhighlighter .plain a { 74 | color: #f8f8f8 !important; 75 | } 76 | .syntaxhighlighter .comments, .syntaxhighlighter .comments a { 77 | color: #336442 !important; 78 | } 79 | .syntaxhighlighter .string, .syntaxhighlighter .string a { 80 | color: #9df39f !important; 81 | } 82 | .syntaxhighlighter .keyword { 83 | color: #96dd3b !important; 84 | } 85 | .syntaxhighlighter .preprocessor { 86 | color: #91bb9e !important; 87 | } 88 | .syntaxhighlighter .variable { 89 | color: #ffaa3e !important; 90 | } 91 | .syntaxhighlighter .value { 92 | color: #f7e741 !important; 93 | } 94 | .syntaxhighlighter .functions { 95 | color: #ffaa3e !important; 96 | } 97 | .syntaxhighlighter .constants { 98 | color: #e0e8ff !important; 99 | } 100 | .syntaxhighlighter .script { 101 | font-weight: bold !important; 102 | color: #96dd3b !important; 103 | background-color: none !important; 104 | } 105 | .syntaxhighlighter .color1, .syntaxhighlighter .color1 a { 106 | color: #eb939a !important; 107 | } 108 | .syntaxhighlighter .color2, .syntaxhighlighter .color2 a { 109 | color: #91bb9e !important; 110 | } 111 | .syntaxhighlighter .color3, .syntaxhighlighter .color3 a { 112 | color: #edef7d !important; 113 | } 114 | 115 | .syntaxhighlighter .comments { 116 | font-style: italic !important; 117 | } 118 | .syntaxhighlighter .keyword { 119 | font-weight: bold !important; 120 | } 121 | -------------------------------------------------------------------------------- /syntax_highlighter/pkg_apex_plugin.pkb: -------------------------------------------------------------------------------- 1 | CREATE OR REPLACE PACKAGE BODY pkg_apex_plugin 2 | AS 3 | FUNCTION render_syntax_highlighter (p_item IN apex_plugin.t_page_item, 4 | p_plugin IN apex_plugin.t_plugin, 5 | p_value IN VARCHAR2, 6 | p_is_readonly IN BOOLEAN, 7 | p_is_printer_friendly IN BOOLEAN) 8 | RETURN apex_plugin.t_page_item_render_result 9 | AS 10 | v_result apex_plugin.t_page_item_render_result; 11 | v_brush_js VARCHAR2 (30); -- Brush JS name 12 | -- Custom Item Attributes 13 | v_brush p_item.attribute_01%TYPE := LOWER (p_item.attribute_01); 14 | v_auto_links p_item.attribute_02%TYPE := LOWER (p_item.attribute_02); 15 | v_collapse p_item.attribute_03%TYPE := LOWER (p_item.attribute_03); 16 | v_gutter p_item.attribute_04%TYPE := LOWER (p_item.attribute_04); 17 | v_smart_tabs p_item.attribute_05%TYPE := LOWER (p_item.attribute_05); 18 | v_tab_size p_item.attribute_06%TYPE := p_item.attribute_06; 19 | -- Custom Plugin Attributes 20 | v_theme p_plugin.attribute_01%TYPE := p_plugin.attribute_01; 21 | -- TODO: Globals 22 | -- When updating makesure the filenames all are suffixed with this version number 23 | c_version VARCHAR2 (10) := '_3.0.83'; 24 | BEGIN 25 | -- Syntax Highlighter based on: http://alexgorbatchev.com/SyntaxHighlighter 26 | -- Debug 27 | IF apex_application.g_debug THEN 28 | apex_plugin_util.debug_page_item (p_plugin => p_plugin, 29 | p_page_item => p_item, 30 | p_value => p_value, 31 | p_is_readonly => p_is_readonly, 32 | p_is_printer_friendly => p_is_printer_friendly); 33 | END IF; 34 | 35 | -- Does not handle printer friendly or read only as this is readonly by nature and we want 36 | -- Syntax highlighter formatting for printer 37 | 38 | -- Load JS Libraries 39 | apex_javascript.add_library (p_name => 'shCore', p_directory => p_plugin.file_prefix, p_version => c_version); 40 | 41 | -- Load custom JS Libary for selected brush type 42 | IF v_brush = 'js' THEN 43 | v_brush_js := 'JScript'; 44 | ELSIF v_brush = 'sql' THEN 45 | v_brush_js := 'Sql'; 46 | ELSIF v_brush = 'bash' THEN 47 | v_brush_js := 'Bash'; 48 | ELSIF v_brush = 'css' THEN 49 | v_brush_js := 'Css'; 50 | ELSIF v_brush = 'diff' THEN 51 | v_brush_js := 'Diff'; 52 | ELSIF v_brush = 'java' THEN 53 | v_brush_js := 'Java'; 54 | ELSIF v_brush = 'plain' THEN 55 | v_brush_js := 'Plain'; 56 | ELSIF v_brush = 'xml' THEN 57 | v_brush_js := 'Xml'; 58 | END IF; 59 | 60 | apex_javascript.add_library (p_name => 'shBrush' || v_brush_js, p_directory => p_plugin.file_prefix, p_version => c_version); 61 | 62 | -- Load CSS Library 63 | apex_css.add_file (p_name => 'shCore' || v_theme, p_directory => p_plugin.file_prefix, p_version => c_version); 64 | 65 | -- Print Syntax 66 | sys.htp.p (''); 69 | 70 | -- Run onLoad code 71 | apex_javascript.add_onload_code (p_code => 'SyntaxHighlighter.all();', p_key => 'SYNTAX_HIGHLIGHTER'); 72 | 73 | RETURN v_result; 74 | END render_syntax_highlighter; 75 | END pkg_apex_plugin; -------------------------------------------------------------------------------- /syntax_highlighter/pkg_apex_plugin.pks: -------------------------------------------------------------------------------- 1 | CREATE OR REPLACE PACKAGE pkg_apex_plugin 2 | AS 3 | FUNCTION render_syntax_highlighter (p_item IN apex_plugin.t_page_item, 4 | p_plugin IN apex_plugin.t_plugin, 5 | p_value IN VARCHAR2, 6 | p_is_readonly IN BOOLEAN, 7 | p_is_printer_friendly IN BOOLEAN) 8 | RETURN apex_plugin.t_page_item_render_result; 9 | END pkg_apex_plugin; -------------------------------------------------------------------------------- /syntax_highlighter/syntax_highlighter.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ClariFit/apex_plugins/27d21d09ac311113a8fea6140be72c307dddf35b/syntax_highlighter/syntax_highlighter.jpg -------------------------------------------------------------------------------- /syntax_highlighter/syntax_highlighter_1.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ClariFit/apex_plugins/27d21d09ac311113a8fea6140be72c307dddf35b/syntax_highlighter/syntax_highlighter_1.0.zip -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ClariFit/apex_plugins/27d21d09ac311113a8fea6140be72c307dddf35b/syntax_highlighter/syntaxhighlighter_3.0.83.zip -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/MIT-LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2003, 2004 Jim Weirich 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/compass/_theme_template.scss: -------------------------------------------------------------------------------- 1 | $background: white !default; 2 | 3 | $line_alt1_background: $background !default; 4 | $line_alt2_background: $background !default; 5 | 6 | $line_highlighted_background: #e0e0e0 !default; 7 | $line_highlighted_number: black !default; 8 | 9 | $gutter_text: #afafaf !default; 10 | $gutter_border_color: #6ce26c !default; 11 | $gutter_border: 3px solid $gutter_border_color !default; 12 | 13 | $toolbar_collapsed_a: #00f !default; 14 | $toolbar_collapsed_a_hover: #f00 !default; 15 | $toolbar_collapsed_background: #fff !default; 16 | $toolbar_collapsed_border: 1px solid $gutter_border_color !default; 17 | 18 | $toolbar_a: #fff !default; 19 | $toolbar_a_hover: #000 !default; 20 | $toolbar_background: $gutter_border_color !default; 21 | $toolbar_border: none !default; 22 | 23 | $code_plain: black !default; 24 | $code_comments: #008200 !default; 25 | $code_string: blue !default; 26 | $code_keyword: #006699 !default; 27 | $code_preprocessor: gray !default; 28 | $code_variable: #aa7700 !default; 29 | $code_value: #009900 !default; 30 | $code_functions: #ff1493 !default; 31 | $code_constants: #0066cc !default; 32 | $code_script: $code_keyword !default; 33 | $code_script_background: none !default; 34 | $code_color1: gray !default; 35 | $code_color2: #ff1493 !default; 36 | $code_color3: red !default; 37 | 38 | $caption_color: $code_plain !default; 39 | 40 | // Interface elements. 41 | .syntaxhighlighter { 42 | background-color: $background !important; 43 | 44 | // Highlighed line number 45 | .line { 46 | &.alt1 { background-color: $line_alt1_background !important; } 47 | &.alt2 { background-color: $line_alt2_background !important; } 48 | 49 | // Highlighed line 50 | &.highlighted { 51 | &.alt1, &.alt2 { background-color: $line_highlighted_background !important; } 52 | &.number { color: $line_highlighted_number !important; } 53 | } 54 | } 55 | 56 | table { 57 | caption { 58 | color: $caption_color !important; 59 | } 60 | } 61 | 62 | // Add border to the lines 63 | .gutter { 64 | color: $gutter_text !important; 65 | .line { 66 | border-right: $gutter_border !important; 67 | 68 | &.highlighted { 69 | background-color: $gutter_border_color !important; 70 | color: $background !important; 71 | } 72 | } 73 | } 74 | 75 | &.printing .line .content { border: none !important; } 76 | 77 | &.collapsed { 78 | overflow: visible !important; 79 | 80 | .toolbar { 81 | color: $toolbar_collapsed_a !important; 82 | background: $toolbar_collapsed_background !important; 83 | border: $toolbar_collapsed_border !important; 84 | 85 | a { 86 | color: $toolbar_collapsed_a !important; 87 | &:hover { color: $toolbar_collapsed_a_hover !important; } 88 | } 89 | } 90 | } 91 | 92 | .toolbar { 93 | color: $toolbar_a !important; 94 | background: $toolbar_background !important; 95 | border: $toolbar_border !important; 96 | a { 97 | color: $toolbar_a !important; 98 | &:hover { color: $toolbar_a_hover !important; } 99 | } 100 | } 101 | 102 | // Actual syntax highlighter colors. 103 | .plain, .plain a { color: $code_plain !important; } 104 | .comments, .comments a { color: $code_comments !important; } 105 | .string, .string a { color: $code_string !important; } 106 | .keyword { color: $code_keyword !important; } 107 | .preprocessor { color: $code_preprocessor !important; } 108 | .variable { color: $code_variable !important; } 109 | .value { color: $code_value !important; } 110 | .functions { color: $code_functions !important; } 111 | .constants { color: $code_constants !important; } 112 | .script { 113 | font-weight: bold !important; 114 | color: $code_script !important; 115 | background-color: $code_script_background !important; 116 | } 117 | .color1, .color1 a { color: $code_color1 !important; } 118 | .color2, .color2 a { color: $code_color2 !important; } 119 | .color3, .color3 a { color: $code_color3 !important; } 120 | } 121 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/compass/config.rb: -------------------------------------------------------------------------------- 1 | environment = :production 2 | project_type = :stand_alone 3 | http_path = "/" 4 | css_dir = "../styles" 5 | sass_dir = "." 6 | images_dir = "images" 7 | sass_options = { 8 | :line_numbers => false, 9 | :debug_info => false 10 | } 11 | 12 | # output_style = :compressed 13 | # output_style = :compact 14 | output_style = :expanded 15 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/compass/shCoreDefault.scss: -------------------------------------------------------------------------------- 1 | @import "shCore.scss"; 2 | @import "shThemeDefault.scss"; 3 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/compass/shCoreDjango.scss: -------------------------------------------------------------------------------- 1 | @import "shCore.scss"; 2 | @import "shThemeDjango.scss"; 3 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/compass/shCoreEclipse.scss: -------------------------------------------------------------------------------- 1 | @import "shCore.scss"; 2 | @import "shThemeEclipse.scss"; 3 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/compass/shCoreEmacs.scss: -------------------------------------------------------------------------------- 1 | @import "shCore.scss"; 2 | @import "shThemeEmacs.scss"; 3 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/compass/shCoreFadeToGrey.scss: -------------------------------------------------------------------------------- 1 | @import "shCore.scss"; 2 | @import "shThemeFadeToGrey.scss"; 3 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/compass/shCoreMDUltra.scss: -------------------------------------------------------------------------------- 1 | @import "shCore.scss"; 2 | @import "shThemeMDUltra.scss"; 3 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/compass/shCoreMidnight.scss: -------------------------------------------------------------------------------- 1 | @import "shCore.scss"; 2 | @import "shThemeMidnight.scss"; 3 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/compass/shCoreRDark.scss: -------------------------------------------------------------------------------- 1 | @import "shCore.scss"; 2 | @import "shThemeRDark.scss"; 3 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/compass/shThemeDefault.scss: -------------------------------------------------------------------------------- 1 | // Default Syntax Highlighter theme. 2 | 3 | @import "_theme_template.scss"; 4 | 5 | .syntaxhighlighter { 6 | .keyword { font-weight: bold !important; } 7 | } 8 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/compass/shThemeDjango.scss: -------------------------------------------------------------------------------- 1 | // Django SyntaxHighlighter theme 2 | 3 | $background: #0a2b1d !default; 4 | 5 | $line_highlighted_background: #233729 !default; 6 | $line_highlighted_number: white !default; 7 | 8 | $gutter_text: #497958 !default; 9 | $gutter_border_color: #41a83e !default; 10 | 11 | $toolbar_collapsed_a: #96dd3b !default; 12 | $toolbar_collapsed_a_hover: #fff !default; 13 | $toolbar_collapsed_background: #000 !default; 14 | 15 | $toolbar_a: #fff !default; 16 | $toolbar_a_hover: #ffe862 !default; 17 | 18 | $code_plain: #f8f8f8 !default; 19 | $code_comments: #336442 !default; 20 | $code_string: #9df39f !default; 21 | $code_keyword: #96dd3b !default; 22 | $code_preprocessor: #91bb9e !default; 23 | $code_variable: #ffaa3e !default; 24 | $code_value: #f7e741 !default; 25 | $code_functions: #ffaa3e !default; 26 | $code_constants: #e0e8ff !default; 27 | $code_color1: #eb939a !default; 28 | $code_color2: #91bb9e !default; 29 | $code_color3: #edef7d !default; 30 | 31 | @import "_theme_template.scss"; 32 | 33 | .syntaxhighlighter { 34 | .comments { font-style: italic !important; } 35 | .keyword { font-weight: bold !important; } 36 | } 37 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/compass/shThemeEclipse.scss: -------------------------------------------------------------------------------- 1 | // Eclipse IDE SyntaxHighlighter color theme 2 | // (C) Code-House 3 | // :http//blog.code-house.org/2009/10/xml-i-adnotacje-kod-ogolnego-przeznaczenia-i-jpa/ 4 | 5 | $background: #fff !default; 6 | 7 | $line_highlighted_background: #c3defe !default; 8 | $line_highlighted_number: #fff !default; 9 | 10 | $gutter_text: #787878 !default; 11 | $gutter_border_color: #d4d0c8 !default; 12 | 13 | $toolbar_collapsed_a: #3f5fbf !default; 14 | $toolbar_collapsed_a_hover: #aa7700 !default; 15 | $toolbar_collapsed_background: #fff !default; 16 | 17 | $toolbar_a: #a0a0a0 !default; 18 | $toolbar_a_hover: red !default; 19 | 20 | $code_plain: black !default; 21 | $code_comments: #3f5fbf !default; 22 | $code_string: #2a00ff !default; 23 | $code_keyword: #7f0055 !default; 24 | $code_preprocessor: #646464 !default; 25 | $code_variable: #aa7700 !default; 26 | $code_value: #009900 !default; 27 | $code_functions: #ff1493 !default; 28 | $code_constants: #0066cc !default; 29 | $code_color1: gray !default; 30 | $code_color2: #ff1493 !default; 31 | $code_color3: red !default; 32 | 33 | @import "_theme_template.scss"; 34 | 35 | .syntaxhighlighter { 36 | .keyword { font-weight: bold !important; } 37 | 38 | .xml { 39 | .keyword { 40 | color: #3f7f7f !important; 41 | font-weight: normal !important; } 42 | .color1, .color1 a { color: #7f007f !important; } 43 | .string { 44 | font-style: italic !important; 45 | color: #2a00ff !important; 46 | } 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/compass/shThemeEmacs.scss: -------------------------------------------------------------------------------- 1 | // Emacs SyntaxHighlighter theme based on theme by Joshua Emmons 2 | // http://www.skia.net/ 3 | 4 | $background: black !default; 5 | 6 | $line_highlighted_background: #2A3133 !default; 7 | $line_highlighted_number: white !default; 8 | 9 | $gutter_text: #d3d3d3 !default; 10 | $gutter_border_color: #990000 !default; 11 | 12 | $toolbar_collapsed_a: #ebdb8d !default; 13 | $toolbar_collapsed_a_hover: #ff7d27 !default; 14 | $toolbar_collapsed_background: black !default; 15 | 16 | $toolbar_a: #fff !default; 17 | $toolbar_a_hover: #9ccff4 !default; 18 | 19 | $code_plain: #d3d3d3 !default; 20 | $code_comments: #ff7d27 !default; 21 | $code_string: #ff9e7b !default; 22 | $code_keyword: aqua !default; 23 | $code_preprocessor: #aec4de !default; 24 | $code_variable: #ffaa3e !default; 25 | $code_value: #009900 !default; 26 | $code_functions: #81cef9 !default; 27 | $code_constants: #ff9e7b !default; 28 | $code_color1: #ebdb8d !default; 29 | $code_color2: #ff7d27 !default; 30 | $code_color3: #aec4de !default; 31 | 32 | @import "_theme_template.scss"; 33 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/compass/shThemeFadeToGrey.scss: -------------------------------------------------------------------------------- 1 | // Fade to Grey SyntaxHighlighter theme based on theme by Brasten Sager 2 | // :http//www.ibrasten.com/ 3 | 4 | $background: #121212 !default; 5 | 6 | $line_highlighted_background: #2C2C29 !default; 7 | $line_highlighted_number: white !default; 8 | 9 | $gutter_text: #afafaf !default; 10 | $gutter_border_color: #3185b9 !default; 11 | 12 | $toolbar_collapsed_a: #3185b9 !default; 13 | $toolbar_collapsed_a_hover: #d01d33 !default; 14 | $toolbar_collapsed_background: black !default; 15 | 16 | $toolbar_a: #fff !default; 17 | $toolbar_a_hover: #96daff !default; 18 | 19 | $code_plain: white !default; 20 | $code_comments: #696854 !default; 21 | $code_string: #e3e658 !default; 22 | $code_keyword: #d01d33 !default; 23 | $code_preprocessor: #435a5f !default; 24 | $code_variable: #898989 !default; 25 | $code_value: #009900 !default; 26 | $code_functions: #aaaaaa !default; 27 | $code_constants: #96daff !default; 28 | $code_color1: #ffc074 !default; 29 | $code_color2: #4a8cdb !default; 30 | $code_color3: #96daff !default; 31 | 32 | @import "_theme_template.scss"; 33 | 34 | .syntaxhighlighter { 35 | .functions { font-weight: bold !important; } 36 | } 37 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/compass/shThemeMDUltra.scss: -------------------------------------------------------------------------------- 1 | // MDUltra SyntaxHighlighter theme based on Midnight Theme 2 | // http://www.mddev.co.uk/ 3 | 4 | $background: #222222 !default; 5 | 6 | $line_highlighted_background: #253e5a !default; 7 | $line_highlighted_number: white !default; 8 | 9 | $gutter_text: #38566f !default; 10 | $gutter_border_color: #435a5f !default; 11 | 12 | $toolbar_collapsed_a: #428bdd !default; 13 | $toolbar_collapsed_a_hover: lime !default; 14 | $toolbar_collapsed_background: black !default; 15 | 16 | $toolbar_a: #aaaaff !default; 17 | $toolbar_a_hover: #9ccff4 !default; 18 | 19 | $code_plain: lime !default; 20 | $code_comments: #428bdd !default; 21 | $code_string: lime !default; 22 | $code_keyword: #aaaaff !default; 23 | $code_preprocessor: #8aa6c1 !default; 24 | $code_variable: aqua !default; 25 | $code_value: #f7e741 !default; 26 | $code_functions: #ff8000 !default; 27 | $code_constants: yellow !default; 28 | $code_color1: red !default; 29 | $code_color2: yellow !default; 30 | $code_color3: #ffaa3e !default; 31 | 32 | @import "_theme_template.scss"; 33 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/compass/shThemeMidnight.scss: -------------------------------------------------------------------------------- 1 | // Midnight SyntaxHighlighter theme based on theme by J.D. Myers 2 | // http://webdesign.lsnjd.com/ 3 | 4 | $background: #0f192a !default; 5 | 6 | $line_highlighted_background: #253e5a !default; 7 | $line_highlighted_number: #38566f !default; 8 | 9 | $gutter_text: #afafaf !default; 10 | $gutter_border_color: #435a5f !default; 11 | 12 | $toolbar_collapsed_a: #428bdd !default; 13 | $toolbar_collapsed_a_hover: #1dc116 !default; 14 | $toolbar_collapsed_background: #000 !default; 15 | 16 | $toolbar_a: #D1EDFF !default; 17 | $toolbar_a_hover: #8aa6c1 !default; 18 | 19 | $code_plain: #d1edff !default; 20 | $code_comments: #428bdd !default; 21 | $code_string: #1dc116 !default; 22 | $code_keyword: #b43d3d !default; 23 | $code_preprocessor: #8aa6c1 !default; 24 | $code_variable: #ffaa3e !default; 25 | $code_value: #f7e741 !default; 26 | $code_functions: #ffaa3e !default; 27 | $code_constants: #e0e8ff !default; 28 | $code_color1: #f8bb00 !default; 29 | $code_color2: white !default; 30 | $code_color3: #ffaa3e !default; 31 | 32 | @import "_theme_template.scss"; 33 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/compass/shThemeRDark.scss: -------------------------------------------------------------------------------- 1 | // RDark SyntaxHighlighter theme based on theme by Radu Dineiu 2 | // http://www.vim.org/scripts/script.php?script_id=1732 3 | 4 | $background: #1b2426 !default; 5 | 6 | $line_highlighted_background: #323E41 !default; 7 | $line_highlighted_number: #b9bdb6 !default; 8 | 9 | $gutter_text: #afafaf !default; 10 | $gutter_border_color: #435a5f !default; 11 | 12 | $toolbar_collapsed_a: #5ba1cf !default; 13 | $toolbar_collapsed_a_hover: #5ce638 !default; 14 | $toolbar_collapsed_background: #000 !default; 15 | 16 | $toolbar_a: #fff !default; 17 | $toolbar_a_hover: #e0e8ff !default; 18 | 19 | $code_plain: #b9bdb6 !default; 20 | $code_comments: #878a85 !default; 21 | $code_string: #5ce638 !default; 22 | $code_keyword: #5ba1cf !default; 23 | $code_preprocessor: #435a5f !default; 24 | $code_variable: #ffaa3e !default; 25 | $code_value: #009900 !default; 26 | $code_functions: #ffaa3e !default; 27 | $code_constants: #e0e8ff !default; 28 | $code_color1: #e0e8ff !default; 29 | $code_color2: white !default; 30 | $code_color3: #ffaa3e !default; 31 | 32 | @import "_theme_template.scss"; 33 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Hello SyntaxHighlighter 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |

Hello SyntaxHighlighter

15 |
16 | function helloSyntaxHighlighter()
17 | {
18 | 	return "hi!";
19 | }
20 | 
21 | 22 | 23 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/scripts/shAutoloader.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/SyntaxHighlighter 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html 7 | * 8 | * @version 9 | * 3.0.83 (July 02 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2010 Alex Gorbatchev. 13 | * 14 | * @license 15 | * Dual licensed under the MIT and GPL licenses. 16 | */ 17 | eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(2(){1 h=5;h.I=2(){2 n(c,a){4(1 d=0;d)/g 47 | }); 48 | }; 49 | 50 | Brush.prototype = new SyntaxHighlighter.Highlighter(); 51 | Brush.aliases = ['java']; 52 | 53 | SyntaxHighlighter.brushes.Java = Brush; 54 | 55 | // CommonJS 56 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null; 57 | })(); 58 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/scripts/shBrushJavaFX.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/SyntaxHighlighter 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html 7 | * 8 | * @version 9 | * 3.0.83 (July 02 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2010 Alex Gorbatchev. 13 | * 14 | * @license 15 | * Dual licensed under the MIT and GPL licenses. 16 | */ 17 | ;(function() 18 | { 19 | // CommonJS 20 | typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; 21 | 22 | function Brush() 23 | { 24 | // Contributed by Patrick Webster 25 | // http://patrickwebster.blogspot.com/2009/04/javafx-brush-for-syntaxhighlighter.html 26 | var datatypes = 'Boolean Byte Character Double Duration ' 27 | + 'Float Integer Long Number Short String Void' 28 | ; 29 | 30 | var keywords = 'abstract after and as assert at before bind bound break catch class ' 31 | + 'continue def delete else exclusive extends false finally first for from ' 32 | + 'function if import in indexof init insert instanceof into inverse last ' 33 | + 'lazy mixin mod nativearray new not null on or override package postinit ' 34 | + 'protected public public-init public-read replace return reverse sizeof ' 35 | + 'step super then this throw true try tween typeof var where while with ' 36 | + 'attribute let private readonly static trigger' 37 | ; 38 | 39 | this.regexList = [ 40 | { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, 41 | { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, 42 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, 43 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, 44 | { regex: /(-?\.?)(\b(\d*\.?\d+|\d+\.?\d*)(e[+-]?\d+)?|0x[a-f\d]+)\b\.?/gi, css: 'color2' }, // numbers 45 | { regex: new RegExp(this.getKeywords(datatypes), 'gm'), css: 'variable' }, // datatypes 46 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } 47 | ]; 48 | this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags); 49 | }; 50 | 51 | Brush.prototype = new SyntaxHighlighter.Highlighter(); 52 | Brush.aliases = ['jfx', 'javafx']; 53 | 54 | SyntaxHighlighter.brushes.JavaFX = Brush; 55 | 56 | // CommonJS 57 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null; 58 | })(); 59 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/scripts/shBrushPerl.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/SyntaxHighlighter 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html 7 | * 8 | * @version 9 | * 3.0.83 (July 02 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2010 Alex Gorbatchev. 13 | * 14 | * @license 15 | * Dual licensed under the MIT and GPL licenses. 16 | */ 17 | ;(function() 18 | { 19 | // CommonJS 20 | typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; 21 | 22 | function Brush() 23 | { 24 | // Contributed by David Simmons-Duffin and Marty Kube 25 | 26 | var funcs = 27 | 'abs accept alarm atan2 bind binmode chdir chmod chomp chop chown chr ' + 28 | 'chroot close closedir connect cos crypt defined delete each endgrent ' + 29 | 'endhostent endnetent endprotoent endpwent endservent eof exec exists ' + 30 | 'exp fcntl fileno flock fork format formline getc getgrent getgrgid ' + 31 | 'getgrnam gethostbyaddr gethostbyname gethostent getlogin getnetbyaddr ' + 32 | 'getnetbyname getnetent getpeername getpgrp getppid getpriority ' + 33 | 'getprotobyname getprotobynumber getprotoent getpwent getpwnam getpwuid ' + 34 | 'getservbyname getservbyport getservent getsockname getsockopt glob ' + 35 | 'gmtime grep hex index int ioctl join keys kill lc lcfirst length link ' + 36 | 'listen localtime lock log lstat map mkdir msgctl msgget msgrcv msgsnd ' + 37 | 'oct open opendir ord pack pipe pop pos print printf prototype push ' + 38 | 'quotemeta rand read readdir readline readlink readpipe recv rename ' + 39 | 'reset reverse rewinddir rindex rmdir scalar seek seekdir select semctl ' + 40 | 'semget semop send setgrent sethostent setnetent setpgrp setpriority ' + 41 | 'setprotoent setpwent setservent setsockopt shift shmctl shmget shmread ' + 42 | 'shmwrite shutdown sin sleep socket socketpair sort splice split sprintf ' + 43 | 'sqrt srand stat study substr symlink syscall sysopen sysread sysseek ' + 44 | 'system syswrite tell telldir time times tr truncate uc ucfirst umask ' + 45 | 'undef unlink unpack unshift utime values vec wait waitpid warn write'; 46 | 47 | var keywords = 48 | 'bless caller continue dbmclose dbmopen die do dump else elsif eval exit ' + 49 | 'for foreach goto if import last local my next no our package redo ref ' + 50 | 'require return sub tie tied unless untie until use wantarray while'; 51 | 52 | this.regexList = [ 53 | { regex: new RegExp('#[^!].*$', 'gm'), css: 'comments' }, 54 | { regex: new RegExp('^\\s*#!.*$', 'gm'), css: 'preprocessor' }, // shebang 55 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, 56 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, 57 | { regex: new RegExp('(\\$|@|%)\\w+', 'g'), css: 'variable' }, 58 | { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' }, 59 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } 60 | ]; 61 | 62 | this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags); 63 | } 64 | 65 | Brush.prototype = new SyntaxHighlighter.Highlighter(); 66 | Brush.aliases = ['perl', 'Perl', 'pl']; 67 | 68 | SyntaxHighlighter.brushes.Perl = Brush; 69 | 70 | // CommonJS 71 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null; 72 | })(); 73 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/scripts/shBrushPhp.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/SyntaxHighlighter 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html 7 | * 8 | * @version 9 | * 3.0.83 (July 02 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2010 Alex Gorbatchev. 13 | * 14 | * @license 15 | * Dual licensed under the MIT and GPL licenses. 16 | */ 17 | ;(function() 18 | { 19 | // CommonJS 20 | typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; 21 | 22 | function Brush() 23 | { 24 | var funcs = 'abs acos acosh addcslashes addslashes ' + 25 | 'array_change_key_case array_chunk array_combine array_count_values array_diff '+ 26 | 'array_diff_assoc array_diff_key array_diff_uassoc array_diff_ukey array_fill '+ 27 | 'array_filter array_flip array_intersect array_intersect_assoc array_intersect_key '+ 28 | 'array_intersect_uassoc array_intersect_ukey array_key_exists array_keys array_map '+ 29 | 'array_merge array_merge_recursive array_multisort array_pad array_pop array_product '+ 30 | 'array_push array_rand array_reduce array_reverse array_search array_shift '+ 31 | 'array_slice array_splice array_sum array_udiff array_udiff_assoc '+ 32 | 'array_udiff_uassoc array_uintersect array_uintersect_assoc '+ 33 | 'array_uintersect_uassoc array_unique array_unshift array_values array_walk '+ 34 | 'array_walk_recursive atan atan2 atanh base64_decode base64_encode base_convert '+ 35 | 'basename bcadd bccomp bcdiv bcmod bcmul bindec bindtextdomain bzclose bzcompress '+ 36 | 'bzdecompress bzerrno bzerror bzerrstr bzflush bzopen bzread bzwrite ceil chdir '+ 37 | 'checkdate checkdnsrr chgrp chmod chop chown chr chroot chunk_split class_exists '+ 38 | 'closedir closelog copy cos cosh count count_chars date decbin dechex decoct '+ 39 | 'deg2rad delete ebcdic2ascii echo empty end ereg ereg_replace eregi eregi_replace error_log '+ 40 | 'error_reporting escapeshellarg escapeshellcmd eval exec exit exp explode extension_loaded '+ 41 | 'feof fflush fgetc fgetcsv fgets fgetss file_exists file_get_contents file_put_contents '+ 42 | 'fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype '+ 43 | 'floatval flock floor flush fmod fnmatch fopen fpassthru fprintf fputcsv fputs fread fscanf '+ 44 | 'fseek fsockopen fstat ftell ftok getallheaders getcwd getdate getenv gethostbyaddr gethostbyname '+ 45 | 'gethostbynamel getimagesize getlastmod getmxrr getmygid getmyinode getmypid getmyuid getopt '+ 46 | 'getprotobyname getprotobynumber getrandmax getrusage getservbyname getservbyport gettext '+ 47 | 'gettimeofday gettype glob gmdate gmmktime ini_alter ini_get ini_get_all ini_restore ini_set '+ 48 | 'interface_exists intval ip2long is_a is_array is_bool is_callable is_dir is_double '+ 49 | 'is_executable is_file is_finite is_float is_infinite is_int is_integer is_link is_long '+ 50 | 'is_nan is_null is_numeric is_object is_readable is_real is_resource is_scalar is_soap_fault '+ 51 | 'is_string is_subclass_of is_uploaded_file is_writable is_writeable mkdir mktime nl2br '+ 52 | 'parse_ini_file parse_str parse_url passthru pathinfo print readlink realpath rewind rewinddir rmdir '+ 53 | 'round str_ireplace str_pad str_repeat str_replace str_rot13 str_shuffle str_split '+ 54 | 'str_word_count strcasecmp strchr strcmp strcoll strcspn strftime strip_tags stripcslashes '+ 55 | 'stripos stripslashes stristr strlen strnatcasecmp strnatcmp strncasecmp strncmp strpbrk '+ 56 | 'strpos strptime strrchr strrev strripos strrpos strspn strstr strtok strtolower strtotime '+ 57 | 'strtoupper strtr strval substr substr_compare'; 58 | 59 | var keywords = 'abstract and array as break case catch cfunction class clone const continue declare default die do ' + 60 | 'else elseif enddeclare endfor endforeach endif endswitch endwhile extends final for foreach ' + 61 | 'function include include_once global goto if implements interface instanceof namespace new ' + 62 | 'old_function or private protected public return require require_once static switch ' + 63 | 'throw try use var while xor '; 64 | 65 | var constants = '__FILE__ __LINE__ __METHOD__ __FUNCTION__ __CLASS__'; 66 | 67 | this.regexList = [ 68 | { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments 69 | { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments 70 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings 71 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings 72 | { regex: /\$\w+/g, css: 'variable' }, // variables 73 | { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' }, // common functions 74 | { regex: new RegExp(this.getKeywords(constants), 'gmi'), css: 'constants' }, // constants 75 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keyword 76 | ]; 77 | 78 | this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags); 79 | }; 80 | 81 | Brush.prototype = new SyntaxHighlighter.Highlighter(); 82 | Brush.aliases = ['php']; 83 | 84 | SyntaxHighlighter.brushes.Php = Brush; 85 | 86 | // CommonJS 87 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null; 88 | })(); 89 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/scripts/shBrushPlain.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/SyntaxHighlighter 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html 7 | * 8 | * @version 9 | * 3.0.83 (July 02 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2010 Alex Gorbatchev. 13 | * 14 | * @license 15 | * Dual licensed under the MIT and GPL licenses. 16 | */ 17 | ;(function() 18 | { 19 | // CommonJS 20 | typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; 21 | 22 | function Brush() 23 | { 24 | }; 25 | 26 | Brush.prototype = new SyntaxHighlighter.Highlighter(); 27 | Brush.aliases = ['text', 'plain']; 28 | 29 | SyntaxHighlighter.brushes.Plain = Brush; 30 | 31 | // CommonJS 32 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null; 33 | })(); 34 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/scripts/shBrushPowerShell.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/SyntaxHighlighter 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html 7 | * 8 | * @version 9 | * 3.0.83 (July 02 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2010 Alex Gorbatchev. 13 | * 14 | * @license 15 | * Dual licensed under the MIT and GPL licenses. 16 | */ 17 | ;(function() 18 | { 19 | // CommonJS 20 | typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; 21 | 22 | function Brush() 23 | { 24 | // Contributes by B.v.Zanten, Getronics 25 | // http://confluence.atlassian.com/display/CONFEXT/New+Code+Macro 26 | 27 | var keywords = 'Add-Content Add-History Add-Member Add-PSSnapin Clear(-Content)? Clear-Item ' + 28 | 'Clear-ItemProperty Clear-Variable Compare-Object ConvertFrom-SecureString Convert-Path ' + 29 | 'ConvertTo-Html ConvertTo-SecureString Copy(-Item)? Copy-ItemProperty Export-Alias ' + 30 | 'Export-Clixml Export-Console Export-Csv ForEach(-Object)? Format-Custom Format-List ' + 31 | 'Format-Table Format-Wide Get-Acl Get-Alias Get-AuthenticodeSignature Get-ChildItem Get-Command ' + 32 | 'Get-Content Get-Credential Get-Culture Get-Date Get-EventLog Get-ExecutionPolicy ' + 33 | 'Get-Help Get-History Get-Host Get-Item Get-ItemProperty Get-Location Get-Member ' + 34 | 'Get-PfxCertificate Get-Process Get-PSDrive Get-PSProvider Get-PSSnapin Get-Service ' + 35 | 'Get-TraceSource Get-UICulture Get-Unique Get-Variable Get-WmiObject Group-Object ' + 36 | 'Import-Alias Import-Clixml Import-Csv Invoke-Expression Invoke-History Invoke-Item ' + 37 | 'Join-Path Measure-Command Measure-Object Move(-Item)? Move-ItemProperty New-Alias ' + 38 | 'New-Item New-ItemProperty New-Object New-PSDrive New-Service New-TimeSpan ' + 39 | 'New-Variable Out-Default Out-File Out-Host Out-Null Out-Printer Out-String Pop-Location ' + 40 | 'Push-Location Read-Host Remove-Item Remove-ItemProperty Remove-PSDrive Remove-PSSnapin ' + 41 | 'Remove-Variable Rename-Item Rename-ItemProperty Resolve-Path Restart-Service Resume-Service ' + 42 | 'Select-Object Select-String Set-Acl Set-Alias Set-AuthenticodeSignature Set-Content ' + 43 | 'Set-Date Set-ExecutionPolicy Set-Item Set-ItemProperty Set-Location Set-PSDebug ' + 44 | 'Set-Service Set-TraceSource Set(-Variable)? Sort-Object Split-Path Start-Service ' + 45 | 'Start-Sleep Start-Transcript Stop-Process Stop-Service Stop-Transcript Suspend-Service ' + 46 | 'Tee-Object Test-Path Trace-Command Update-FormatData Update-TypeData Where(-Object)? ' + 47 | 'Write-Debug Write-Error Write(-Host)? Write-Output Write-Progress Write-Verbose Write-Warning'; 48 | var alias = 'ac asnp clc cli clp clv cpi cpp cvpa diff epal epcsv fc fl ' + 49 | 'ft fw gal gc gci gcm gdr ghy gi gl gm gp gps group gsv ' + 50 | 'gsnp gu gv gwmi iex ihy ii ipal ipcsv mi mp nal ndr ni nv oh rdr ' + 51 | 'ri rni rnp rp rsnp rv rvpa sal sasv sc select si sl sleep sort sp ' + 52 | 'spps spsv sv tee cat cd cp h history kill lp ls ' + 53 | 'mount mv popd ps pushd pwd r rm rmdir echo cls chdir del dir ' + 54 | 'erase rd ren type % \\?'; 55 | 56 | this.regexList = [ 57 | { regex: /#.*$/gm, css: 'comments' }, // one line comments 58 | { regex: /\$[a-zA-Z0-9]+\b/g, css: 'value' }, // variables $Computer1 59 | { regex: /\-[a-zA-Z]+\b/g, css: 'keyword' }, // Operators -not -and -eq 60 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings 61 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings 62 | { regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' }, 63 | { regex: new RegExp(this.getKeywords(alias), 'gmi'), css: 'keyword' } 64 | ]; 65 | }; 66 | 67 | Brush.prototype = new SyntaxHighlighter.Highlighter(); 68 | Brush.aliases = ['powershell', 'ps']; 69 | 70 | SyntaxHighlighter.brushes.PowerShell = Brush; 71 | 72 | // CommonJS 73 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null; 74 | })(); 75 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/scripts/shBrushPython.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/SyntaxHighlighter 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html 7 | * 8 | * @version 9 | * 3.0.83 (July 02 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2010 Alex Gorbatchev. 13 | * 14 | * @license 15 | * Dual licensed under the MIT and GPL licenses. 16 | */ 17 | ;(function() 18 | { 19 | // CommonJS 20 | typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; 21 | 22 | function Brush() 23 | { 24 | // Contributed by Gheorghe Milas and Ahmad Sherif 25 | 26 | var keywords = 'and assert break class continue def del elif else ' + 27 | 'except exec finally for from global if import in is ' + 28 | 'lambda not or pass print raise return try yield while'; 29 | 30 | var funcs = '__import__ abs all any apply basestring bin bool buffer callable ' + 31 | 'chr classmethod cmp coerce compile complex delattr dict dir ' + 32 | 'divmod enumerate eval execfile file filter float format frozenset ' + 33 | 'getattr globals hasattr hash help hex id input int intern ' + 34 | 'isinstance issubclass iter len list locals long map max min next ' + 35 | 'object oct open ord pow print property range raw_input reduce ' + 36 | 'reload repr reversed round set setattr slice sorted staticmethod ' + 37 | 'str sum super tuple type type unichr unicode vars xrange zip'; 38 | 39 | var special = 'None True False self cls class_'; 40 | 41 | this.regexList = [ 42 | { regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, 43 | { regex: /^\s*@\w+/gm, css: 'decorator' }, 44 | { regex: /(['\"]{3})([^\1])*?\1/gm, css: 'comments' }, 45 | { regex: /"(?!")(?:\.|\\\"|[^\""\n])*"/gm, css: 'string' }, 46 | { regex: /'(?!')(?:\.|(\\\')|[^\''\n])*'/gm, css: 'string' }, 47 | { regex: /\+|\-|\*|\/|\%|=|==/gm, css: 'keyword' }, 48 | { regex: /\b\d+\.?\w*/g, css: 'value' }, 49 | { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' }, 50 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, 51 | { regex: new RegExp(this.getKeywords(special), 'gm'), css: 'color1' } 52 | ]; 53 | 54 | this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags); 55 | }; 56 | 57 | Brush.prototype = new SyntaxHighlighter.Highlighter(); 58 | Brush.aliases = ['py', 'python']; 59 | 60 | SyntaxHighlighter.brushes.Python = Brush; 61 | 62 | // CommonJS 63 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null; 64 | })(); 65 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/scripts/shBrushRuby.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/SyntaxHighlighter 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html 7 | * 8 | * @version 9 | * 3.0.83 (July 02 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2010 Alex Gorbatchev. 13 | * 14 | * @license 15 | * Dual licensed under the MIT and GPL licenses. 16 | */ 17 | ;(function() 18 | { 19 | // CommonJS 20 | typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; 21 | 22 | function Brush() 23 | { 24 | // Contributed by Erik Peterson. 25 | 26 | var keywords = 'alias and BEGIN begin break case class def define_method defined do each else elsif ' + 27 | 'END end ensure false for if in module new next nil not or raise redo rescue retry return ' + 28 | 'self super then throw true undef unless until when while yield'; 29 | 30 | var builtins = 'Array Bignum Binding Class Continuation Dir Exception FalseClass File::Stat File Fixnum Fload ' + 31 | 'Hash Integer IO MatchData Method Module NilClass Numeric Object Proc Range Regexp String Struct::TMS Symbol ' + 32 | 'ThreadGroup Thread Time TrueClass'; 33 | 34 | this.regexList = [ 35 | { regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, // one line comments 36 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings 37 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings 38 | { regex: /\b[A-Z0-9_]+\b/g, css: 'constants' }, // constants 39 | { regex: /:[a-z][A-Za-z0-9_]*/g, css: 'color2' }, // symbols 40 | { regex: /(\$|@@|@)\w+/g, css: 'variable bold' }, // $global, @instance, and @@class variables 41 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords 42 | { regex: new RegExp(this.getKeywords(builtins), 'gm'), css: 'color1' } // builtins 43 | ]; 44 | 45 | this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags); 46 | }; 47 | 48 | Brush.prototype = new SyntaxHighlighter.Highlighter(); 49 | Brush.aliases = ['ruby', 'rails', 'ror', 'rb']; 50 | 51 | SyntaxHighlighter.brushes.Ruby = Brush; 52 | 53 | // CommonJS 54 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null; 55 | })(); 56 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/scripts/shBrushScala.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/SyntaxHighlighter 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html 7 | * 8 | * @version 9 | * 3.0.83 (July 02 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2010 Alex Gorbatchev. 13 | * 14 | * @license 15 | * Dual licensed under the MIT and GPL licenses. 16 | */ 17 | ;(function() 18 | { 19 | // CommonJS 20 | typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; 21 | 22 | function Brush() 23 | { 24 | // Contributed by Yegor Jbanov and David Bernard. 25 | 26 | var keywords = 'val sealed case def true trait implicit forSome import match object null finally super ' + 27 | 'override try lazy for var catch throw type extends class while with new final yield abstract ' + 28 | 'else do if return protected private this package false'; 29 | 30 | var keyops = '[_:=><%#@]+'; 31 | 32 | this.regexList = [ 33 | { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments 34 | { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments 35 | { regex: SyntaxHighlighter.regexLib.multiLineSingleQuotedString, css: 'string' }, // multi-line strings 36 | { regex: SyntaxHighlighter.regexLib.multiLineDoubleQuotedString, css: 'string' }, // double-quoted string 37 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings 38 | { regex: /0x[a-f0-9]+|\d+(\.\d+)?/gi, css: 'value' }, // numbers 39 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords 40 | { regex: new RegExp(keyops, 'gm'), css: 'keyword' } // scala keyword 41 | ]; 42 | } 43 | 44 | Brush.prototype = new SyntaxHighlighter.Highlighter(); 45 | Brush.aliases = ['scala']; 46 | 47 | SyntaxHighlighter.brushes.Scala = Brush; 48 | 49 | // CommonJS 50 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null; 51 | })(); 52 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/scripts/shBrushSql.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/SyntaxHighlighter 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html 7 | * 8 | * @version 9 | * 3.0.83 (July 02 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2010 Alex Gorbatchev. 13 | * 14 | * @license 15 | * Dual licensed under the MIT and GPL licenses. 16 | */ 17 | ;(function() 18 | { 19 | // CommonJS 20 | typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; 21 | 22 | function Brush() 23 | { 24 | var funcs = 'abs avg case cast coalesce convert count current_timestamp ' + 25 | 'current_user day isnull left lower month nullif replace right ' + 26 | 'session_user space substring sum system_user upper user year'; 27 | 28 | var keywords = 'absolute action add after alter as asc at authorization begin bigint ' + 29 | 'binary bit by cascade char character check checkpoint close collate ' + 30 | 'column commit committed connect connection constraint contains continue ' + 31 | 'create cube current current_date current_time cursor database date ' + 32 | 'deallocate dec decimal declare default delete desc distinct double drop ' + 33 | 'dynamic else end end-exec escape except exec execute false fetch first ' + 34 | 'float for force foreign forward free from full function global goto grant ' + 35 | 'group grouping having hour ignore index inner insensitive insert instead ' + 36 | 'int integer intersect into is isolation key last level load local max min ' + 37 | 'minute modify move name national nchar next no numeric of off on only ' + 38 | 'open option order out output partial password precision prepare primary ' + 39 | 'prior privileges procedure public read real references relative repeatable ' + 40 | 'restrict return returns revoke rollback rollup rows rule schema scroll ' + 41 | 'second section select sequence serializable set size smallint static ' + 42 | 'statistics table temp temporary then time timestamp to top transaction ' + 43 | 'translation trigger true truncate uncommitted union unique update values ' + 44 | 'varchar varying view when where with work'; 45 | 46 | var operators = 'all and any between cross in join like not null or outer some'; 47 | 48 | this.regexList = [ 49 | { regex: /--(.*)$/gm, css: 'comments' }, // one line and multiline comments 50 | { regex: SyntaxHighlighter.regexLib.multiLineDoubleQuotedString, css: 'string' }, // double quoted strings 51 | { regex: SyntaxHighlighter.regexLib.multiLineSingleQuotedString, css: 'string' }, // single quoted strings 52 | { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'color2' }, // functions 53 | { regex: new RegExp(this.getKeywords(operators), 'gmi'), css: 'color1' }, // operators and such 54 | { regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' } // keyword 55 | ]; 56 | }; 57 | 58 | Brush.prototype = new SyntaxHighlighter.Highlighter(); 59 | Brush.aliases = ['sql']; 60 | 61 | SyntaxHighlighter.brushes.Sql = Brush; 62 | 63 | // CommonJS 64 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null; 65 | })(); 66 | 67 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/scripts/shBrushVb.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/SyntaxHighlighter 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html 7 | * 8 | * @version 9 | * 3.0.83 (July 02 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2010 Alex Gorbatchev. 13 | * 14 | * @license 15 | * Dual licensed under the MIT and GPL licenses. 16 | */ 17 | ;(function() 18 | { 19 | // CommonJS 20 | typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; 21 | 22 | function Brush() 23 | { 24 | var keywords = 'AddHandler AddressOf AndAlso Alias And Ansi As Assembly Auto ' + 25 | 'Boolean ByRef Byte ByVal Call Case Catch CBool CByte CChar CDate ' + 26 | 'CDec CDbl Char CInt Class CLng CObj Const CShort CSng CStr CType ' + 27 | 'Date Decimal Declare Default Delegate Dim DirectCast Do Double Each ' + 28 | 'Else ElseIf End Enum Erase Error Event Exit False Finally For Friend ' + 29 | 'Function Get GetType GoSub GoTo Handles If Implements Imports In ' + 30 | 'Inherits Integer Interface Is Let Lib Like Long Loop Me Mod Module ' + 31 | 'MustInherit MustOverride MyBase MyClass Namespace New Next Not Nothing ' + 32 | 'NotInheritable NotOverridable Object On Option Optional Or OrElse ' + 33 | 'Overloads Overridable Overrides ParamArray Preserve Private Property ' + 34 | 'Protected Public RaiseEvent ReadOnly ReDim REM RemoveHandler Resume ' + 35 | 'Return Select Set Shadows Shared Short Single Static Step Stop String ' + 36 | 'Structure Sub SyncLock Then Throw To True Try TypeOf Unicode Until ' + 37 | 'Variant When While With WithEvents WriteOnly Xor'; 38 | 39 | this.regexList = [ 40 | { regex: /'.*$/gm, css: 'comments' }, // one line comments 41 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings 42 | { regex: /^\s*#.*$/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion 43 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // vb keyword 44 | ]; 45 | 46 | this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags); 47 | }; 48 | 49 | Brush.prototype = new SyntaxHighlighter.Highlighter(); 50 | Brush.aliases = ['vb', 'vbnet']; 51 | 52 | SyntaxHighlighter.brushes.Vb = Brush; 53 | 54 | // CommonJS 55 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null; 56 | })(); 57 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/scripts/shBrushXml.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/SyntaxHighlighter 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html 7 | * 8 | * @version 9 | * 3.0.83 (July 02 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2010 Alex Gorbatchev. 13 | * 14 | * @license 15 | * Dual licensed under the MIT and GPL licenses. 16 | */ 17 | ;(function() 18 | { 19 | // CommonJS 20 | typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; 21 | 22 | function Brush() 23 | { 24 | function process(match, regexInfo) 25 | { 26 | var constructor = SyntaxHighlighter.Match, 27 | code = match[0], 28 | tag = new XRegExp('(<|<)[\\s\\/\\?]*(?[:\\w-\\.]+)', 'xg').exec(code), 29 | result = [] 30 | ; 31 | 32 | if (match.attributes != null) 33 | { 34 | var attributes, 35 | regex = new XRegExp('(? [\\w:\\-\\.]+)' + 36 | '\\s*=\\s*' + 37 | '(? ".*?"|\'.*?\'|\\w+)', 38 | 'xg'); 39 | 40 | while ((attributes = regex.exec(code)) != null) 41 | { 42 | result.push(new constructor(attributes.name, match.index + attributes.index, 'color1')); 43 | result.push(new constructor(attributes.value, match.index + attributes.index + attributes[0].indexOf(attributes.value), 'string')); 44 | } 45 | } 46 | 47 | if (tag != null) 48 | result.push( 49 | new constructor(tag.name, match.index + tag[0].indexOf(tag.name), 'keyword') 50 | ); 51 | 52 | return result; 53 | } 54 | 55 | this.regexList = [ 56 | { regex: new XRegExp('(\\<|<)\\!\\[[\\w\\s]*?\\[(.|\\s)*?\\]\\](\\>|>)', 'gm'), css: 'color2' }, // 57 | { regex: SyntaxHighlighter.regexLib.xmlComments, css: 'comments' }, // 58 | { regex: new XRegExp('(<|<)[\\s\\/\\?]*(\\w+)(?.*?)[\\s\\/\\?]*(>|>)', 'sg'), func: process } 59 | ]; 60 | }; 61 | 62 | Brush.prototype = new SyntaxHighlighter.Highlighter(); 63 | Brush.aliases = ['xml', 'xhtml', 'xslt', 'html']; 64 | 65 | SyntaxHighlighter.brushes.Xml = Brush; 66 | 67 | // CommonJS 68 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null; 69 | })(); 70 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/scripts/shLegacy.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/SyntaxHighlighter 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html 7 | * 8 | * @version 9 | * 3.0.83 (July 02 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2010 Alex Gorbatchev. 13 | * 14 | * @license 15 | * Dual licensed under the MIT and GPL licenses. 16 | */ 17 | eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('3 u={8:{}};u.8={A:4(c,k,l,m,n,o){4 d(a,b){2 a!=1?a:b}4 f(a){2 a!=1?a.E():1}c=c.I(":");3 g=c[0],e={};t={"r":K};M=1;5=8.5;9(3 j R c)e[c[j]]="r";k=f(d(k,5.C));l=f(d(l,5.D));m=f(d(m,5.s));o=f(d(o,5.Q));n=f(d(n,5["x-y"]));2{P:g,C:d(t[e.O],k),D:d(t[e.N],l),s:d({"r":r}[e.s],m),"x-y":d(4(a,b){9(3 h=T S("^"+b+"\\\\[(?\\\\w+)\\\\]$","U"),i=1,p=0;p tags to the document body 81 | for (i = 0; i < elements.length; i++) 82 | { 83 | var url = brushes[elements[i].params.brush]; 84 | 85 | if (!url) 86 | continue; 87 | 88 | scripts[url] = false; 89 | loadScript(url); 90 | } 91 | 92 | function loadScript(url) 93 | { 94 | var script = document.createElement('script'), 95 | done = false 96 | ; 97 | 98 | script.src = url; 99 | script.type = 'text/javascript'; 100 | script.language = 'javascript'; 101 | script.onload = script.onreadystatechange = function() 102 | { 103 | if (!done && (!this.readyState || this.readyState == 'loaded' || this.readyState == 'complete')) 104 | { 105 | done = true; 106 | scripts[url] = true; 107 | checkAll(); 108 | 109 | // Handle memory leak in IE 110 | script.onload = script.onreadystatechange = null; 111 | script.parentNode.removeChild(script); 112 | } 113 | }; 114 | 115 | // sync way of adding script tags to the page 116 | document.body.appendChild(script); 117 | }; 118 | 119 | function checkAll() 120 | { 121 | for(var url in scripts) 122 | if (scripts[url] == false) 123 | return; 124 | 125 | if (allCalled) 126 | SyntaxHighlighter.highlight(allParams); 127 | }; 128 | }; 129 | 130 | })(); 131 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/src/shLegacy.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/SyntaxHighlighter 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html 7 | * 8 | * @version 9 | * 3.0.83 (July 02 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2010 Alex Gorbatchev. 13 | * 14 | * @license 15 | * Dual licensed under the MIT and GPL licenses. 16 | */ 17 | var dp = { 18 | SyntaxHighlighter : {} 19 | }; 20 | 21 | dp.SyntaxHighlighter = { 22 | parseParams: function( 23 | input, 24 | showGutter, 25 | showControls, 26 | collapseAll, 27 | firstLine, 28 | showColumns 29 | ) 30 | { 31 | function getValue(list, name) 32 | { 33 | var regex = new XRegExp('^' + name + '\\[(?\\w+)\\]$', 'gi'), 34 | match = null 35 | ; 36 | 37 | for (var i = 0; i < list.length; i++) 38 | if ((match = regex.exec(list[i])) != null) 39 | return match.value; 40 | 41 | return null; 42 | }; 43 | 44 | function defaultValue(value, def) 45 | { 46 | return value != null ? value : def; 47 | }; 48 | 49 | function asString(value) 50 | { 51 | return value != null ? value.toString() : null; 52 | }; 53 | 54 | var parts = input.split(':'), 55 | brushName = parts[0], 56 | options = {}, 57 | straight = { 'true' : true } 58 | reverse = { 'true' : false }, 59 | result = null, 60 | defaults = SyntaxHighlighter.defaults 61 | ; 62 | 63 | for (var i in parts) 64 | options[parts[i]] = 'true'; 65 | 66 | showGutter = asString(defaultValue(showGutter, defaults.gutter)); 67 | showControls = asString(defaultValue(showControls, defaults.toolbar)); 68 | collapseAll = asString(defaultValue(collapseAll, defaults.collapse)); 69 | showColumns = asString(defaultValue(showColumns, defaults.ruler)); 70 | firstLine = asString(defaultValue(firstLine, defaults['first-line'])); 71 | 72 | return { 73 | brush : brushName, 74 | gutter : defaultValue(reverse[options.nogutter], showGutter), 75 | toolbar : defaultValue(reverse[options.nocontrols], showControls), 76 | collapse : defaultValue(straight[options.collapse], collapseAll), 77 | // ruler : defaultValue(straight[options.showcolumns], showColumns), 78 | 'first-line' : defaultValue(getValue(parts, 'firstline'), firstLine) 79 | }; 80 | }, 81 | 82 | HighlightAll: function( 83 | name, 84 | showGutter /* optional */, 85 | showControls /* optional */, 86 | collapseAll /* optional */, 87 | firstLine /* optional */, 88 | showColumns /* optional */ 89 | ) 90 | { 91 | function findValue() 92 | { 93 | var a = arguments; 94 | 95 | for (var i = 0; i < a.length; i++) 96 | { 97 | if (a[i] === null) 98 | continue; 99 | 100 | if (typeof(a[i]) == 'string' && a[i] != '') 101 | return a[i] + ''; 102 | 103 | if (typeof(a[i]) == 'object' && a[i].value != '') 104 | return a[i].value + ''; 105 | } 106 | 107 | return null; 108 | }; 109 | 110 | function findTagsByName(list, name, tagName) 111 | { 112 | var tags = document.getElementsByTagName(tagName); 113 | 114 | for (var i = 0; i < tags.length; i++) 115 | if (tags[i].getAttribute('name') == name) 116 | list.push(tags[i]); 117 | } 118 | 119 | var elements = [], 120 | highlighter = null, 121 | registered = {}, 122 | propertyName = 'innerHTML' 123 | ; 124 | 125 | // for some reason IE doesn't find
 by name, however it does see them just fine by tag name... 
126 | 		findTagsByName(elements, name, 'pre');
127 | 		findTagsByName(elements, name, 'textarea');
128 | 
129 | 		if (elements.length === 0)
130 | 			return;
131 | 		
132 | 		for (var i = 0; i < elements.length; i++)
133 | 		{
134 | 			var element = elements[i],
135 | 				params = findValue(
136 | 					element.attributes['class'], element.className, 
137 | 					element.attributes['language'], element.language
138 | 					),
139 | 				language = ''
140 | 				;
141 | 			
142 | 			if (params === null) 
143 | 				continue;
144 | 
145 | 			params = dp.SyntaxHighlighter.parseParams(
146 | 				params,
147 | 				showGutter, 
148 | 				showControls, 
149 | 				collapseAll, 
150 | 				firstLine, 
151 | 				showColumns
152 | 				);
153 | 
154 | 			SyntaxHighlighter.highlight(params, element);
155 | 		}
156 | 	}
157 | };
158 | 


--------------------------------------------------------------------------------
/syntax_highlighter/syntaxhighlighter_3.0.83/styles/shThemeDefault.css:
--------------------------------------------------------------------------------
  1 | /**
  2 |  * SyntaxHighlighter
  3 |  * http://alexgorbatchev.com/SyntaxHighlighter
  4 |  *
  5 |  * SyntaxHighlighter is donationware. If you are using it, please donate.
  6 |  * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
  7 |  *
  8 |  * @version
  9 |  * 3.0.83 (July 02 2010)
 10 |  * 
 11 |  * @copyright
 12 |  * Copyright (C) 2004-2010 Alex Gorbatchev.
 13 |  *
 14 |  * @license
 15 |  * Dual licensed under the MIT and GPL licenses.
 16 |  */
 17 | .syntaxhighlighter {
 18 |   background-color: white !important;
 19 | }
 20 | .syntaxhighlighter .line.alt1 {
 21 |   background-color: white !important;
 22 | }
 23 | .syntaxhighlighter .line.alt2 {
 24 |   background-color: white !important;
 25 | }
 26 | .syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 {
 27 |   background-color: #e0e0e0 !important;
 28 | }
 29 | .syntaxhighlighter .line.highlighted.number {
 30 |   color: black !important;
 31 | }
 32 | .syntaxhighlighter table caption {
 33 |   color: black !important;
 34 | }
 35 | .syntaxhighlighter .gutter {
 36 |   color: #afafaf !important;
 37 | }
 38 | .syntaxhighlighter .gutter .line {
 39 |   border-right: 3px solid #6ce26c !important;
 40 | }
 41 | .syntaxhighlighter .gutter .line.highlighted {
 42 |   background-color: #6ce26c !important;
 43 |   color: white !important;
 44 | }
 45 | .syntaxhighlighter.printing .line .content {
 46 |   border: none !important;
 47 | }
 48 | .syntaxhighlighter.collapsed {
 49 |   overflow: visible !important;
 50 | }
 51 | .syntaxhighlighter.collapsed .toolbar {
 52 |   color: blue !important;
 53 |   background: white !important;
 54 |   border: 1px solid #6ce26c !important;
 55 | }
 56 | .syntaxhighlighter.collapsed .toolbar a {
 57 |   color: blue !important;
 58 | }
 59 | .syntaxhighlighter.collapsed .toolbar a:hover {
 60 |   color: red !important;
 61 | }
 62 | .syntaxhighlighter .toolbar {
 63 |   color: white !important;
 64 |   background: #6ce26c !important;
 65 |   border: none !important;
 66 | }
 67 | .syntaxhighlighter .toolbar a {
 68 |   color: white !important;
 69 | }
 70 | .syntaxhighlighter .toolbar a:hover {
 71 |   color: black !important;
 72 | }
 73 | .syntaxhighlighter .plain, .syntaxhighlighter .plain a {
 74 |   color: black !important;
 75 | }
 76 | .syntaxhighlighter .comments, .syntaxhighlighter .comments a {
 77 |   color: #008200 !important;
 78 | }
 79 | .syntaxhighlighter .string, .syntaxhighlighter .string a {
 80 |   color: blue !important;
 81 | }
 82 | .syntaxhighlighter .keyword {
 83 |   color: #006699 !important;
 84 | }
 85 | .syntaxhighlighter .preprocessor {
 86 |   color: gray !important;
 87 | }
 88 | .syntaxhighlighter .variable {
 89 |   color: #aa7700 !important;
 90 | }
 91 | .syntaxhighlighter .value {
 92 |   color: #009900 !important;
 93 | }
 94 | .syntaxhighlighter .functions {
 95 |   color: #ff1493 !important;
 96 | }
 97 | .syntaxhighlighter .constants {
 98 |   color: #0066cc !important;
 99 | }
100 | .syntaxhighlighter .script {
101 |   font-weight: bold !important;
102 |   color: #006699 !important;
103 |   background-color: none !important;
104 | }
105 | .syntaxhighlighter .color1, .syntaxhighlighter .color1 a {
106 |   color: gray !important;
107 | }
108 | .syntaxhighlighter .color2, .syntaxhighlighter .color2 a {
109 |   color: #ff1493 !important;
110 | }
111 | .syntaxhighlighter .color3, .syntaxhighlighter .color3 a {
112 |   color: red !important;
113 | }
114 | 
115 | .syntaxhighlighter .keyword {
116 |   font-weight: bold !important;
117 | }
118 | 


--------------------------------------------------------------------------------
/syntax_highlighter/syntaxhighlighter_3.0.83/styles/shThemeDjango.css:
--------------------------------------------------------------------------------
  1 | /**
  2 |  * SyntaxHighlighter
  3 |  * http://alexgorbatchev.com/SyntaxHighlighter
  4 |  *
  5 |  * SyntaxHighlighter is donationware. If you are using it, please donate.
  6 |  * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
  7 |  *
  8 |  * @version
  9 |  * 3.0.83 (July 02 2010)
 10 |  * 
 11 |  * @copyright
 12 |  * Copyright (C) 2004-2010 Alex Gorbatchev.
 13 |  *
 14 |  * @license
 15 |  * Dual licensed under the MIT and GPL licenses.
 16 |  */
 17 | .syntaxhighlighter {
 18 |   background-color: #0a2b1d !important;
 19 | }
 20 | .syntaxhighlighter .line.alt1 {
 21 |   background-color: #0a2b1d !important;
 22 | }
 23 | .syntaxhighlighter .line.alt2 {
 24 |   background-color: #0a2b1d !important;
 25 | }
 26 | .syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 {
 27 |   background-color: #233729 !important;
 28 | }
 29 | .syntaxhighlighter .line.highlighted.number {
 30 |   color: white !important;
 31 | }
 32 | .syntaxhighlighter table caption {
 33 |   color: #f8f8f8 !important;
 34 | }
 35 | .syntaxhighlighter .gutter {
 36 |   color: #497958 !important;
 37 | }
 38 | .syntaxhighlighter .gutter .line {
 39 |   border-right: 3px solid #41a83e !important;
 40 | }
 41 | .syntaxhighlighter .gutter .line.highlighted {
 42 |   background-color: #41a83e !important;
 43 |   color: #0a2b1d !important;
 44 | }
 45 | .syntaxhighlighter.printing .line .content {
 46 |   border: none !important;
 47 | }
 48 | .syntaxhighlighter.collapsed {
 49 |   overflow: visible !important;
 50 | }
 51 | .syntaxhighlighter.collapsed .toolbar {
 52 |   color: #96dd3b !important;
 53 |   background: black !important;
 54 |   border: 1px solid #41a83e !important;
 55 | }
 56 | .syntaxhighlighter.collapsed .toolbar a {
 57 |   color: #96dd3b !important;
 58 | }
 59 | .syntaxhighlighter.collapsed .toolbar a:hover {
 60 |   color: white !important;
 61 | }
 62 | .syntaxhighlighter .toolbar {
 63 |   color: white !important;
 64 |   background: #41a83e !important;
 65 |   border: none !important;
 66 | }
 67 | .syntaxhighlighter .toolbar a {
 68 |   color: white !important;
 69 | }
 70 | .syntaxhighlighter .toolbar a:hover {
 71 |   color: #ffe862 !important;
 72 | }
 73 | .syntaxhighlighter .plain, .syntaxhighlighter .plain a {
 74 |   color: #f8f8f8 !important;
 75 | }
 76 | .syntaxhighlighter .comments, .syntaxhighlighter .comments a {
 77 |   color: #336442 !important;
 78 | }
 79 | .syntaxhighlighter .string, .syntaxhighlighter .string a {
 80 |   color: #9df39f !important;
 81 | }
 82 | .syntaxhighlighter .keyword {
 83 |   color: #96dd3b !important;
 84 | }
 85 | .syntaxhighlighter .preprocessor {
 86 |   color: #91bb9e !important;
 87 | }
 88 | .syntaxhighlighter .variable {
 89 |   color: #ffaa3e !important;
 90 | }
 91 | .syntaxhighlighter .value {
 92 |   color: #f7e741 !important;
 93 | }
 94 | .syntaxhighlighter .functions {
 95 |   color: #ffaa3e !important;
 96 | }
 97 | .syntaxhighlighter .constants {
 98 |   color: #e0e8ff !important;
 99 | }
100 | .syntaxhighlighter .script {
101 |   font-weight: bold !important;
102 |   color: #96dd3b !important;
103 |   background-color: none !important;
104 | }
105 | .syntaxhighlighter .color1, .syntaxhighlighter .color1 a {
106 |   color: #eb939a !important;
107 | }
108 | .syntaxhighlighter .color2, .syntaxhighlighter .color2 a {
109 |   color: #91bb9e !important;
110 | }
111 | .syntaxhighlighter .color3, .syntaxhighlighter .color3 a {
112 |   color: #edef7d !important;
113 | }
114 | 
115 | .syntaxhighlighter .comments {
116 |   font-style: italic !important;
117 | }
118 | .syntaxhighlighter .keyword {
119 |   font-weight: bold !important;
120 | }
121 | 


--------------------------------------------------------------------------------
/syntax_highlighter/syntaxhighlighter_3.0.83/styles/shThemeEclipse.css:
--------------------------------------------------------------------------------
  1 | /**
  2 |  * SyntaxHighlighter
  3 |  * http://alexgorbatchev.com/SyntaxHighlighter
  4 |  *
  5 |  * SyntaxHighlighter is donationware. If you are using it, please donate.
  6 |  * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
  7 |  *
  8 |  * @version
  9 |  * 3.0.83 (July 02 2010)
 10 |  * 
 11 |  * @copyright
 12 |  * Copyright (C) 2004-2010 Alex Gorbatchev.
 13 |  *
 14 |  * @license
 15 |  * Dual licensed under the MIT and GPL licenses.
 16 |  */
 17 | .syntaxhighlighter {
 18 |   background-color: white !important;
 19 | }
 20 | .syntaxhighlighter .line.alt1 {
 21 |   background-color: white !important;
 22 | }
 23 | .syntaxhighlighter .line.alt2 {
 24 |   background-color: white !important;
 25 | }
 26 | .syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 {
 27 |   background-color: #c3defe !important;
 28 | }
 29 | .syntaxhighlighter .line.highlighted.number {
 30 |   color: white !important;
 31 | }
 32 | .syntaxhighlighter table caption {
 33 |   color: black !important;
 34 | }
 35 | .syntaxhighlighter .gutter {
 36 |   color: #787878 !important;
 37 | }
 38 | .syntaxhighlighter .gutter .line {
 39 |   border-right: 3px solid #d4d0c8 !important;
 40 | }
 41 | .syntaxhighlighter .gutter .line.highlighted {
 42 |   background-color: #d4d0c8 !important;
 43 |   color: white !important;
 44 | }
 45 | .syntaxhighlighter.printing .line .content {
 46 |   border: none !important;
 47 | }
 48 | .syntaxhighlighter.collapsed {
 49 |   overflow: visible !important;
 50 | }
 51 | .syntaxhighlighter.collapsed .toolbar {
 52 |   color: #3f5fbf !important;
 53 |   background: white !important;
 54 |   border: 1px solid #d4d0c8 !important;
 55 | }
 56 | .syntaxhighlighter.collapsed .toolbar a {
 57 |   color: #3f5fbf !important;
 58 | }
 59 | .syntaxhighlighter.collapsed .toolbar a:hover {
 60 |   color: #aa7700 !important;
 61 | }
 62 | .syntaxhighlighter .toolbar {
 63 |   color: #a0a0a0 !important;
 64 |   background: #d4d0c8 !important;
 65 |   border: none !important;
 66 | }
 67 | .syntaxhighlighter .toolbar a {
 68 |   color: #a0a0a0 !important;
 69 | }
 70 | .syntaxhighlighter .toolbar a:hover {
 71 |   color: red !important;
 72 | }
 73 | .syntaxhighlighter .plain, .syntaxhighlighter .plain a {
 74 |   color: black !important;
 75 | }
 76 | .syntaxhighlighter .comments, .syntaxhighlighter .comments a {
 77 |   color: #3f5fbf !important;
 78 | }
 79 | .syntaxhighlighter .string, .syntaxhighlighter .string a {
 80 |   color: #2a00ff !important;
 81 | }
 82 | .syntaxhighlighter .keyword {
 83 |   color: #7f0055 !important;
 84 | }
 85 | .syntaxhighlighter .preprocessor {
 86 |   color: #646464 !important;
 87 | }
 88 | .syntaxhighlighter .variable {
 89 |   color: #aa7700 !important;
 90 | }
 91 | .syntaxhighlighter .value {
 92 |   color: #009900 !important;
 93 | }
 94 | .syntaxhighlighter .functions {
 95 |   color: #ff1493 !important;
 96 | }
 97 | .syntaxhighlighter .constants {
 98 |   color: #0066cc !important;
 99 | }
100 | .syntaxhighlighter .script {
101 |   font-weight: bold !important;
102 |   color: #7f0055 !important;
103 |   background-color: none !important;
104 | }
105 | .syntaxhighlighter .color1, .syntaxhighlighter .color1 a {
106 |   color: gray !important;
107 | }
108 | .syntaxhighlighter .color2, .syntaxhighlighter .color2 a {
109 |   color: #ff1493 !important;
110 | }
111 | .syntaxhighlighter .color3, .syntaxhighlighter .color3 a {
112 |   color: red !important;
113 | }
114 | 
115 | .syntaxhighlighter .keyword {
116 |   font-weight: bold !important;
117 | }
118 | .syntaxhighlighter .xml .keyword {
119 |   color: #3f7f7f !important;
120 |   font-weight: normal !important;
121 | }
122 | .syntaxhighlighter .xml .color1, .syntaxhighlighter .xml .color1 a {
123 |   color: #7f007f !important;
124 | }
125 | .syntaxhighlighter .xml .string {
126 |   font-style: italic !important;
127 |   color: #2a00ff !important;
128 | }
129 | 


--------------------------------------------------------------------------------
/syntax_highlighter/syntaxhighlighter_3.0.83/styles/shThemeEmacs.css:
--------------------------------------------------------------------------------
  1 | /**
  2 |  * SyntaxHighlighter
  3 |  * http://alexgorbatchev.com/SyntaxHighlighter
  4 |  *
  5 |  * SyntaxHighlighter is donationware. If you are using it, please donate.
  6 |  * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
  7 |  *
  8 |  * @version
  9 |  * 3.0.83 (July 02 2010)
 10 |  * 
 11 |  * @copyright
 12 |  * Copyright (C) 2004-2010 Alex Gorbatchev.
 13 |  *
 14 |  * @license
 15 |  * Dual licensed under the MIT and GPL licenses.
 16 |  */
 17 | .syntaxhighlighter {
 18 |   background-color: black !important;
 19 | }
 20 | .syntaxhighlighter .line.alt1 {
 21 |   background-color: black !important;
 22 | }
 23 | .syntaxhighlighter .line.alt2 {
 24 |   background-color: black !important;
 25 | }
 26 | .syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 {
 27 |   background-color: #2a3133 !important;
 28 | }
 29 | .syntaxhighlighter .line.highlighted.number {
 30 |   color: white !important;
 31 | }
 32 | .syntaxhighlighter table caption {
 33 |   color: #d3d3d3 !important;
 34 | }
 35 | .syntaxhighlighter .gutter {
 36 |   color: #d3d3d3 !important;
 37 | }
 38 | .syntaxhighlighter .gutter .line {
 39 |   border-right: 3px solid #990000 !important;
 40 | }
 41 | .syntaxhighlighter .gutter .line.highlighted {
 42 |   background-color: #990000 !important;
 43 |   color: black !important;
 44 | }
 45 | .syntaxhighlighter.printing .line .content {
 46 |   border: none !important;
 47 | }
 48 | .syntaxhighlighter.collapsed {
 49 |   overflow: visible !important;
 50 | }
 51 | .syntaxhighlighter.collapsed .toolbar {
 52 |   color: #ebdb8d !important;
 53 |   background: black !important;
 54 |   border: 1px solid #990000 !important;
 55 | }
 56 | .syntaxhighlighter.collapsed .toolbar a {
 57 |   color: #ebdb8d !important;
 58 | }
 59 | .syntaxhighlighter.collapsed .toolbar a:hover {
 60 |   color: #ff7d27 !important;
 61 | }
 62 | .syntaxhighlighter .toolbar {
 63 |   color: white !important;
 64 |   background: #990000 !important;
 65 |   border: none !important;
 66 | }
 67 | .syntaxhighlighter .toolbar a {
 68 |   color: white !important;
 69 | }
 70 | .syntaxhighlighter .toolbar a:hover {
 71 |   color: #9ccff4 !important;
 72 | }
 73 | .syntaxhighlighter .plain, .syntaxhighlighter .plain a {
 74 |   color: #d3d3d3 !important;
 75 | }
 76 | .syntaxhighlighter .comments, .syntaxhighlighter .comments a {
 77 |   color: #ff7d27 !important;
 78 | }
 79 | .syntaxhighlighter .string, .syntaxhighlighter .string a {
 80 |   color: #ff9e7b !important;
 81 | }
 82 | .syntaxhighlighter .keyword {
 83 |   color: aqua !important;
 84 | }
 85 | .syntaxhighlighter .preprocessor {
 86 |   color: #aec4de !important;
 87 | }
 88 | .syntaxhighlighter .variable {
 89 |   color: #ffaa3e !important;
 90 | }
 91 | .syntaxhighlighter .value {
 92 |   color: #009900 !important;
 93 | }
 94 | .syntaxhighlighter .functions {
 95 |   color: #81cef9 !important;
 96 | }
 97 | .syntaxhighlighter .constants {
 98 |   color: #ff9e7b !important;
 99 | }
100 | .syntaxhighlighter .script {
101 |   font-weight: bold !important;
102 |   color: aqua !important;
103 |   background-color: none !important;
104 | }
105 | .syntaxhighlighter .color1, .syntaxhighlighter .color1 a {
106 |   color: #ebdb8d !important;
107 | }
108 | .syntaxhighlighter .color2, .syntaxhighlighter .color2 a {
109 |   color: #ff7d27 !important;
110 | }
111 | .syntaxhighlighter .color3, .syntaxhighlighter .color3 a {
112 |   color: #aec4de !important;
113 | }
114 | 


--------------------------------------------------------------------------------
/syntax_highlighter/syntaxhighlighter_3.0.83/styles/shThemeFadeToGrey.css:
--------------------------------------------------------------------------------
  1 | /**
  2 |  * SyntaxHighlighter
  3 |  * http://alexgorbatchev.com/SyntaxHighlighter
  4 |  *
  5 |  * SyntaxHighlighter is donationware. If you are using it, please donate.
  6 |  * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
  7 |  *
  8 |  * @version
  9 |  * 3.0.83 (July 02 2010)
 10 |  * 
 11 |  * @copyright
 12 |  * Copyright (C) 2004-2010 Alex Gorbatchev.
 13 |  *
 14 |  * @license
 15 |  * Dual licensed under the MIT and GPL licenses.
 16 |  */
 17 | .syntaxhighlighter {
 18 |   background-color: #121212 !important;
 19 | }
 20 | .syntaxhighlighter .line.alt1 {
 21 |   background-color: #121212 !important;
 22 | }
 23 | .syntaxhighlighter .line.alt2 {
 24 |   background-color: #121212 !important;
 25 | }
 26 | .syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 {
 27 |   background-color: #2c2c29 !important;
 28 | }
 29 | .syntaxhighlighter .line.highlighted.number {
 30 |   color: white !important;
 31 | }
 32 | .syntaxhighlighter table caption {
 33 |   color: white !important;
 34 | }
 35 | .syntaxhighlighter .gutter {
 36 |   color: #afafaf !important;
 37 | }
 38 | .syntaxhighlighter .gutter .line {
 39 |   border-right: 3px solid #3185b9 !important;
 40 | }
 41 | .syntaxhighlighter .gutter .line.highlighted {
 42 |   background-color: #3185b9 !important;
 43 |   color: #121212 !important;
 44 | }
 45 | .syntaxhighlighter.printing .line .content {
 46 |   border: none !important;
 47 | }
 48 | .syntaxhighlighter.collapsed {
 49 |   overflow: visible !important;
 50 | }
 51 | .syntaxhighlighter.collapsed .toolbar {
 52 |   color: #3185b9 !important;
 53 |   background: black !important;
 54 |   border: 1px solid #3185b9 !important;
 55 | }
 56 | .syntaxhighlighter.collapsed .toolbar a {
 57 |   color: #3185b9 !important;
 58 | }
 59 | .syntaxhighlighter.collapsed .toolbar a:hover {
 60 |   color: #d01d33 !important;
 61 | }
 62 | .syntaxhighlighter .toolbar {
 63 |   color: white !important;
 64 |   background: #3185b9 !important;
 65 |   border: none !important;
 66 | }
 67 | .syntaxhighlighter .toolbar a {
 68 |   color: white !important;
 69 | }
 70 | .syntaxhighlighter .toolbar a:hover {
 71 |   color: #96daff !important;
 72 | }
 73 | .syntaxhighlighter .plain, .syntaxhighlighter .plain a {
 74 |   color: white !important;
 75 | }
 76 | .syntaxhighlighter .comments, .syntaxhighlighter .comments a {
 77 |   color: #696854 !important;
 78 | }
 79 | .syntaxhighlighter .string, .syntaxhighlighter .string a {
 80 |   color: #e3e658 !important;
 81 | }
 82 | .syntaxhighlighter .keyword {
 83 |   color: #d01d33 !important;
 84 | }
 85 | .syntaxhighlighter .preprocessor {
 86 |   color: #435a5f !important;
 87 | }
 88 | .syntaxhighlighter .variable {
 89 |   color: #898989 !important;
 90 | }
 91 | .syntaxhighlighter .value {
 92 |   color: #009900 !important;
 93 | }
 94 | .syntaxhighlighter .functions {
 95 |   color: #aaaaaa !important;
 96 | }
 97 | .syntaxhighlighter .constants {
 98 |   color: #96daff !important;
 99 | }
100 | .syntaxhighlighter .script {
101 |   font-weight: bold !important;
102 |   color: #d01d33 !important;
103 |   background-color: none !important;
104 | }
105 | .syntaxhighlighter .color1, .syntaxhighlighter .color1 a {
106 |   color: #ffc074 !important;
107 | }
108 | .syntaxhighlighter .color2, .syntaxhighlighter .color2 a {
109 |   color: #4a8cdb !important;
110 | }
111 | .syntaxhighlighter .color3, .syntaxhighlighter .color3 a {
112 |   color: #96daff !important;
113 | }
114 | 
115 | .syntaxhighlighter .functions {
116 |   font-weight: bold !important;
117 | }
118 | 


--------------------------------------------------------------------------------
/syntax_highlighter/syntaxhighlighter_3.0.83/styles/shThemeMDUltra.css:
--------------------------------------------------------------------------------
  1 | /**
  2 |  * SyntaxHighlighter
  3 |  * http://alexgorbatchev.com/SyntaxHighlighter
  4 |  *
  5 |  * SyntaxHighlighter is donationware. If you are using it, please donate.
  6 |  * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
  7 |  *
  8 |  * @version
  9 |  * 3.0.83 (July 02 2010)
 10 |  * 
 11 |  * @copyright
 12 |  * Copyright (C) 2004-2010 Alex Gorbatchev.
 13 |  *
 14 |  * @license
 15 |  * Dual licensed under the MIT and GPL licenses.
 16 |  */
 17 | .syntaxhighlighter {
 18 |   background-color: #222222 !important;
 19 | }
 20 | .syntaxhighlighter .line.alt1 {
 21 |   background-color: #222222 !important;
 22 | }
 23 | .syntaxhighlighter .line.alt2 {
 24 |   background-color: #222222 !important;
 25 | }
 26 | .syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 {
 27 |   background-color: #253e5a !important;
 28 | }
 29 | .syntaxhighlighter .line.highlighted.number {
 30 |   color: white !important;
 31 | }
 32 | .syntaxhighlighter table caption {
 33 |   color: lime !important;
 34 | }
 35 | .syntaxhighlighter .gutter {
 36 |   color: #38566f !important;
 37 | }
 38 | .syntaxhighlighter .gutter .line {
 39 |   border-right: 3px solid #435a5f !important;
 40 | }
 41 | .syntaxhighlighter .gutter .line.highlighted {
 42 |   background-color: #435a5f !important;
 43 |   color: #222222 !important;
 44 | }
 45 | .syntaxhighlighter.printing .line .content {
 46 |   border: none !important;
 47 | }
 48 | .syntaxhighlighter.collapsed {
 49 |   overflow: visible !important;
 50 | }
 51 | .syntaxhighlighter.collapsed .toolbar {
 52 |   color: #428bdd !important;
 53 |   background: black !important;
 54 |   border: 1px solid #435a5f !important;
 55 | }
 56 | .syntaxhighlighter.collapsed .toolbar a {
 57 |   color: #428bdd !important;
 58 | }
 59 | .syntaxhighlighter.collapsed .toolbar a:hover {
 60 |   color: lime !important;
 61 | }
 62 | .syntaxhighlighter .toolbar {
 63 |   color: #aaaaff !important;
 64 |   background: #435a5f !important;
 65 |   border: none !important;
 66 | }
 67 | .syntaxhighlighter .toolbar a {
 68 |   color: #aaaaff !important;
 69 | }
 70 | .syntaxhighlighter .toolbar a:hover {
 71 |   color: #9ccff4 !important;
 72 | }
 73 | .syntaxhighlighter .plain, .syntaxhighlighter .plain a {
 74 |   color: lime !important;
 75 | }
 76 | .syntaxhighlighter .comments, .syntaxhighlighter .comments a {
 77 |   color: #428bdd !important;
 78 | }
 79 | .syntaxhighlighter .string, .syntaxhighlighter .string a {
 80 |   color: lime !important;
 81 | }
 82 | .syntaxhighlighter .keyword {
 83 |   color: #aaaaff !important;
 84 | }
 85 | .syntaxhighlighter .preprocessor {
 86 |   color: #8aa6c1 !important;
 87 | }
 88 | .syntaxhighlighter .variable {
 89 |   color: aqua !important;
 90 | }
 91 | .syntaxhighlighter .value {
 92 |   color: #f7e741 !important;
 93 | }
 94 | .syntaxhighlighter .functions {
 95 |   color: #ff8000 !important;
 96 | }
 97 | .syntaxhighlighter .constants {
 98 |   color: yellow !important;
 99 | }
100 | .syntaxhighlighter .script {
101 |   font-weight: bold !important;
102 |   color: #aaaaff !important;
103 |   background-color: none !important;
104 | }
105 | .syntaxhighlighter .color1, .syntaxhighlighter .color1 a {
106 |   color: red !important;
107 | }
108 | .syntaxhighlighter .color2, .syntaxhighlighter .color2 a {
109 |   color: yellow !important;
110 | }
111 | .syntaxhighlighter .color3, .syntaxhighlighter .color3 a {
112 |   color: #ffaa3e !important;
113 | }
114 | 


--------------------------------------------------------------------------------
/syntax_highlighter/syntaxhighlighter_3.0.83/styles/shThemeMidnight.css:
--------------------------------------------------------------------------------
  1 | /**
  2 |  * SyntaxHighlighter
  3 |  * http://alexgorbatchev.com/SyntaxHighlighter
  4 |  *
  5 |  * SyntaxHighlighter is donationware. If you are using it, please donate.
  6 |  * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
  7 |  *
  8 |  * @version
  9 |  * 3.0.83 (July 02 2010)
 10 |  * 
 11 |  * @copyright
 12 |  * Copyright (C) 2004-2010 Alex Gorbatchev.
 13 |  *
 14 |  * @license
 15 |  * Dual licensed under the MIT and GPL licenses.
 16 |  */
 17 | .syntaxhighlighter {
 18 |   background-color: #0f192a !important;
 19 | }
 20 | .syntaxhighlighter .line.alt1 {
 21 |   background-color: #0f192a !important;
 22 | }
 23 | .syntaxhighlighter .line.alt2 {
 24 |   background-color: #0f192a !important;
 25 | }
 26 | .syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 {
 27 |   background-color: #253e5a !important;
 28 | }
 29 | .syntaxhighlighter .line.highlighted.number {
 30 |   color: #38566f !important;
 31 | }
 32 | .syntaxhighlighter table caption {
 33 |   color: #d1edff !important;
 34 | }
 35 | .syntaxhighlighter .gutter {
 36 |   color: #afafaf !important;
 37 | }
 38 | .syntaxhighlighter .gutter .line {
 39 |   border-right: 3px solid #435a5f !important;
 40 | }
 41 | .syntaxhighlighter .gutter .line.highlighted {
 42 |   background-color: #435a5f !important;
 43 |   color: #0f192a !important;
 44 | }
 45 | .syntaxhighlighter.printing .line .content {
 46 |   border: none !important;
 47 | }
 48 | .syntaxhighlighter.collapsed {
 49 |   overflow: visible !important;
 50 | }
 51 | .syntaxhighlighter.collapsed .toolbar {
 52 |   color: #428bdd !important;
 53 |   background: black !important;
 54 |   border: 1px solid #435a5f !important;
 55 | }
 56 | .syntaxhighlighter.collapsed .toolbar a {
 57 |   color: #428bdd !important;
 58 | }
 59 | .syntaxhighlighter.collapsed .toolbar a:hover {
 60 |   color: #1dc116 !important;
 61 | }
 62 | .syntaxhighlighter .toolbar {
 63 |   color: #d1edff !important;
 64 |   background: #435a5f !important;
 65 |   border: none !important;
 66 | }
 67 | .syntaxhighlighter .toolbar a {
 68 |   color: #d1edff !important;
 69 | }
 70 | .syntaxhighlighter .toolbar a:hover {
 71 |   color: #8aa6c1 !important;
 72 | }
 73 | .syntaxhighlighter .plain, .syntaxhighlighter .plain a {
 74 |   color: #d1edff !important;
 75 | }
 76 | .syntaxhighlighter .comments, .syntaxhighlighter .comments a {
 77 |   color: #428bdd !important;
 78 | }
 79 | .syntaxhighlighter .string, .syntaxhighlighter .string a {
 80 |   color: #1dc116 !important;
 81 | }
 82 | .syntaxhighlighter .keyword {
 83 |   color: #b43d3d !important;
 84 | }
 85 | .syntaxhighlighter .preprocessor {
 86 |   color: #8aa6c1 !important;
 87 | }
 88 | .syntaxhighlighter .variable {
 89 |   color: #ffaa3e !important;
 90 | }
 91 | .syntaxhighlighter .value {
 92 |   color: #f7e741 !important;
 93 | }
 94 | .syntaxhighlighter .functions {
 95 |   color: #ffaa3e !important;
 96 | }
 97 | .syntaxhighlighter .constants {
 98 |   color: #e0e8ff !important;
 99 | }
100 | .syntaxhighlighter .script {
101 |   font-weight: bold !important;
102 |   color: #b43d3d !important;
103 |   background-color: none !important;
104 | }
105 | .syntaxhighlighter .color1, .syntaxhighlighter .color1 a {
106 |   color: #f8bb00 !important;
107 | }
108 | .syntaxhighlighter .color2, .syntaxhighlighter .color2 a {
109 |   color: white !important;
110 | }
111 | .syntaxhighlighter .color3, .syntaxhighlighter .color3 a {
112 |   color: #ffaa3e !important;
113 | }
114 | 


--------------------------------------------------------------------------------
/syntax_highlighter/syntaxhighlighter_3.0.83/styles/shThemeRDark.css:
--------------------------------------------------------------------------------
  1 | /**
  2 |  * SyntaxHighlighter
  3 |  * http://alexgorbatchev.com/SyntaxHighlighter
  4 |  *
  5 |  * SyntaxHighlighter is donationware. If you are using it, please donate.
  6 |  * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
  7 |  *
  8 |  * @version
  9 |  * 3.0.83 (July 02 2010)
 10 |  * 
 11 |  * @copyright
 12 |  * Copyright (C) 2004-2010 Alex Gorbatchev.
 13 |  *
 14 |  * @license
 15 |  * Dual licensed under the MIT and GPL licenses.
 16 |  */
 17 | .syntaxhighlighter {
 18 |   background-color: #1b2426 !important;
 19 | }
 20 | .syntaxhighlighter .line.alt1 {
 21 |   background-color: #1b2426 !important;
 22 | }
 23 | .syntaxhighlighter .line.alt2 {
 24 |   background-color: #1b2426 !important;
 25 | }
 26 | .syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 {
 27 |   background-color: #323e41 !important;
 28 | }
 29 | .syntaxhighlighter .line.highlighted.number {
 30 |   color: #b9bdb6 !important;
 31 | }
 32 | .syntaxhighlighter table caption {
 33 |   color: #b9bdb6 !important;
 34 | }
 35 | .syntaxhighlighter .gutter {
 36 |   color: #afafaf !important;
 37 | }
 38 | .syntaxhighlighter .gutter .line {
 39 |   border-right: 3px solid #435a5f !important;
 40 | }
 41 | .syntaxhighlighter .gutter .line.highlighted {
 42 |   background-color: #435a5f !important;
 43 |   color: #1b2426 !important;
 44 | }
 45 | .syntaxhighlighter.printing .line .content {
 46 |   border: none !important;
 47 | }
 48 | .syntaxhighlighter.collapsed {
 49 |   overflow: visible !important;
 50 | }
 51 | .syntaxhighlighter.collapsed .toolbar {
 52 |   color: #5ba1cf !important;
 53 |   background: black !important;
 54 |   border: 1px solid #435a5f !important;
 55 | }
 56 | .syntaxhighlighter.collapsed .toolbar a {
 57 |   color: #5ba1cf !important;
 58 | }
 59 | .syntaxhighlighter.collapsed .toolbar a:hover {
 60 |   color: #5ce638 !important;
 61 | }
 62 | .syntaxhighlighter .toolbar {
 63 |   color: white !important;
 64 |   background: #435a5f !important;
 65 |   border: none !important;
 66 | }
 67 | .syntaxhighlighter .toolbar a {
 68 |   color: white !important;
 69 | }
 70 | .syntaxhighlighter .toolbar a:hover {
 71 |   color: #e0e8ff !important;
 72 | }
 73 | .syntaxhighlighter .plain, .syntaxhighlighter .plain a {
 74 |   color: #b9bdb6 !important;
 75 | }
 76 | .syntaxhighlighter .comments, .syntaxhighlighter .comments a {
 77 |   color: #878a85 !important;
 78 | }
 79 | .syntaxhighlighter .string, .syntaxhighlighter .string a {
 80 |   color: #5ce638 !important;
 81 | }
 82 | .syntaxhighlighter .keyword {
 83 |   color: #5ba1cf !important;
 84 | }
 85 | .syntaxhighlighter .preprocessor {
 86 |   color: #435a5f !important;
 87 | }
 88 | .syntaxhighlighter .variable {
 89 |   color: #ffaa3e !important;
 90 | }
 91 | .syntaxhighlighter .value {
 92 |   color: #009900 !important;
 93 | }
 94 | .syntaxhighlighter .functions {
 95 |   color: #ffaa3e !important;
 96 | }
 97 | .syntaxhighlighter .constants {
 98 |   color: #e0e8ff !important;
 99 | }
100 | .syntaxhighlighter .script {
101 |   font-weight: bold !important;
102 |   color: #5ba1cf !important;
103 |   background-color: none !important;
104 | }
105 | .syntaxhighlighter .color1, .syntaxhighlighter .color1 a {
106 |   color: #e0e8ff !important;
107 | }
108 | .syntaxhighlighter .color2, .syntaxhighlighter .color2 a {
109 |   color: white !important;
110 | }
111 | .syntaxhighlighter .color3, .syntaxhighlighter .color3 a {
112 |   color: #ffaa3e !important;
113 | }
114 | 


--------------------------------------------------------------------------------
/syntax_highlighter/syntaxhighlighter_3.0.83/tests/.rvmrc:
--------------------------------------------------------------------------------
1 | rvm 1.8.7-p249@copydeca


--------------------------------------------------------------------------------
/syntax_highlighter/syntaxhighlighter_3.0.83/tests/brushes_tests.html:
--------------------------------------------------------------------------------
  1 | 
  2 | 
  3 | 
  4 | 	
  5 | 	SyntaxHighlighter Brushes Tests
  6 | 	
  7 | 	
  8 | 	
  9 | 	 
 10 | 	
 11 | 	
 12 | 	
 13 | 	
 14 | 	
 15 | 	
 16 | 	
 17 | 	
 18 | 	
 19 | 	
 20 | 	
 21 | 	
 22 | 	
 23 | 	
 24 | 	
 25 | 	
 26 | 	
 27 | 	
 28 | 	
 29 | 	
 30 | 	
 31 | 	
 32 | 	
 33 | 	
 34 | 	
 35 | 	
 36 | 	
 37 | 
 38 | 	
 39 | 
 40 | 
 41 | 
 42 | 
 43 | 
44 | 45 | 58 | 59 | 134 | 135 | 136 | 137 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/tests/cases/001_basic.html: -------------------------------------------------------------------------------- 1 |
 2 | 	/**
 3 | 	 * multiline comment 
 4 | 	 */
 5 | 	
 6 | 	text
 7 | 	
 8 | 	// single line comment
 9 | 	
10 | 	text
11 | 	
12 | 	"string" text 'string' text "string"
13 | 	"string with \" escape" text 'string with \' escape' text "string with \" escape"
14 | 	
15 | 	var code = '\
16 | 		function helloWorld()\
17 | 		{\
18 | 			// this is great!\
19 | 			for(var i = 0; i <= 1; i++)\
20 | 				alert("yay");\
21 | 		}\
22 | 		';
23 | 
24 | 25 | 43 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/tests/cases/002_brushes.html: -------------------------------------------------------------------------------- 1 |
2 |
test
3 |
test
4 |
test
5 |
test
6 |
test
7 |
test
8 |
test
9 |
test
10 |
test
11 |
test
12 |
test
13 |
test
14 |
test
15 |
test
16 |
test
17 |
test
18 |
test
19 |
test
20 |
test
21 |
test
22 |
test
23 |
test
24 |
test
25 |
test
26 |
test
27 |
28 | 29 | 51 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/tests/cases/003_script_tag.html: -------------------------------------------------------------------------------- 1 |
2 | 22 |
23 | 24 | 43 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/tests/cases/004_url_parsing.html: -------------------------------------------------------------------------------- 1 |
 2 | /**
 3 |  * Please see <http://www.alexgorbatchev.come/?test=1&y=2>
 4 |  */
 5 | var home = "http://www.alexgorbatchev.come/?test=1&y=2;test/1/2/3;";
 6 | // < http://www.gnu.org/licenses/?test=1&y=2 >.
 7 | 
 8 | // Test embedded URLs that terminate at a left angle bracket.
 9 | // See bug #28: http://bitbucket.org/alexg/syntaxhighlighter/issue/28/
10 | "http://www.example.com/song2.mp3";
11 | 
12 | 13 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/tests/cases/005_no_gutter.html: -------------------------------------------------------------------------------- 1 |
 2 | 			public Image getImage(URL url, String name) {
 3 | 				try {
 4 | 					/*
 5 | 					   Regular multiline comment.
 6 | 					*/
 7 | 				    return getImage(new URL(url, name));
 8 | 				} catch (MalformedURLException e) {
 9 | 				    return null;
10 | 				}
11 | 			}
12 | 
13 | 14 | 34 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/tests/cases/006_pad_line_numbers.html: -------------------------------------------------------------------------------- 1 |
 2 | /**
 3 |  * Returns an Image object that can then be painted on the screen. 
 4 |  * The url argument must specify an absolute {@link URL}. The name
 5 |  * argument is a specifier that is relative to the url argument. 
 6 |  *
 7 |  * @param  url  an absolute URL giving the base location of the image
 8 |  * @param  name the location of the image, relative to the url argument
 9 |  * @return      the image at the specified URL
10 |  * @see         Image
11 |  */
12 | 
13 | 14 | 40 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/tests/cases/007_collapse.html: -------------------------------------------------------------------------------- 1 |
 2 | 	/**
 3 | 	 * Returns an Image object that can then be painted on the screen. 
 4 | 	 * The url argument must specify an absolute {@link URL}. The name
 5 | 	 * argument is a specifier that is relative to the url argument. 
 6 | 	 *
 7 | 	 * @param  url  an absolute URL giving the base location of the image
 8 | 	 * @param  name the location of the image, relative to the url argument
 9 | 	 * @return      the image at the specified URL
10 | 	 * @see         Image
11 | 	 */
12 | 
13 | 14 |
15 | 	/**
16 | 	 * Returns an Image object that can then be painted on the screen. 
17 | 	 * The url argument must specify an absolute {@link URL}. The name
18 | 	 * argument is a specifier that is relative to the url argument. 
19 | 	 *
20 | 	 * @param  url  an absolute URL giving the base location of the image
21 | 	 * @param  name the location of the image, relative to the url argument
22 | 	 * @return      the image at the specified URL
23 | 	 * @see         Image
24 | 	 */
25 | 
26 | 27 | 61 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/tests/cases/007_collapse_interaction.html: -------------------------------------------------------------------------------- 1 | 45 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/tests/cases/008_first_line.html: -------------------------------------------------------------------------------- 1 |
 2 | 	partial class Foo
 3 | 	{
 4 | 		function test()
 5 | 		{
 6 | 			yield return;
 7 | 		}
 8 | 	}
 9 | 
10 | 11 | 30 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/tests/cases/009_class_name.html: -------------------------------------------------------------------------------- 1 |
 2 | 	public Image getImage(URL url, String name) {
 3 | 		try {
 4 | 			/*
 5 | 			   Regular multiline comment.
 6 | 			*/
 7 | 		    return getImage(new URL(url, name));
 8 | 		} catch (MalformedURLException e) {
 9 | 		    return null;
10 | 		}
11 | 	}
12 | 
13 | 14 | 33 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/tests/cases/010_highlight.html: -------------------------------------------------------------------------------- 1 |
 2 | 	public function validateStrongPassword(password:String):Boolean
 3 | 	{
 4 | 		if (password == null || password.length <= 0)
 5 | 		{
 6 | 			return false;
 7 | 		}
 8 | 		
 9 | 		return STRONG_PASSWORD_PATTERN.test(password);
10 | 	}
11 | 
12 | 40 | 41 | 71 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/tests/cases/011_smart_tabs.html: -------------------------------------------------------------------------------- 1 |
 2 | 	the		words	in		this	paragraph
 3 | 	should	look	like	they	are
 4 | 	evenly	spaced	between	columns
 5 | 
6 | 7 |
 8 | 	the	words	in	this	paragraph
 9 | 	should	look	like	they	are
10 | 	evenly	spaced	between	columns
11 | 
12 | 13 |
14 | 	the		words	in		this	paragraph
15 | 	should	look	out		of		whack
16 | 	because	smart	tabs	are		disabled
17 | 
18 | 19 | 99 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/tests/cases/012_server_side.html: -------------------------------------------------------------------------------- 1 | 9 | 10 |
11 |
12 | 13 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/tests/cases/013_html_script.html: -------------------------------------------------------------------------------- 1 |
 2 | <hello>
 3 | 	<%
 4 | 		package free.cafekiwi.gotapi;
 5 | 	%>
 6 | </hello>
 7 | 
 8 | 
11 | <%= print(); %>
12 | 
13 | 14 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/tests/cases/014_legacy.html: -------------------------------------------------------------------------------- 1 |
basic check
2 |
no toolbar
3 |
no gutter
4 |
collapsed
5 |
first line
6 | 7 | 71 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/tests/commonjs_tests.js: -------------------------------------------------------------------------------- 1 | /** 2 | * This is a CommonJS compatibility test. You can run this file with node. 3 | */ 4 | require.paths.unshift(__dirname + '/../scripts'); 5 | 6 | var sys = require('sys'), 7 | shSyntaxHighlighter = require('shCore').SyntaxHighlighter, 8 | code = 'test', 9 | brushes = [ 10 | 'AS3', 11 | 'AppleScript', 12 | 'Bash', 13 | 'CSharp', 14 | 'ColdFusion', 15 | 'Cpp', 16 | 'Css', 17 | 'Delphi', 18 | 'Diff', 19 | 'Erlang', 20 | 'Groovy', 21 | 'JScript', 22 | 'Java', 23 | 'JavaFX', 24 | 'Perl', 25 | 'Php', 26 | 'Plain', 27 | 'PowerShell', 28 | 'Python', 29 | 'Ruby', 30 | 'Sass', 31 | 'Scala', 32 | 'Sql', 33 | 'Vb', 34 | 'Xml' 35 | ] 36 | ; 37 | 38 | brushes.sort(); 39 | 40 | for (var i = 0; i < brushes.length; i++) 41 | { 42 | var name = brushes[i], 43 | brush = require('shBrush' + name).Brush 44 | ; 45 | 46 | brush = new brush(); 47 | brush.init({ toolbar: false }); 48 | 49 | var result = brush.getHtml(code); 50 | 51 | sys.puts(name + (result != null ? ': ok' : ': NOT OK')); 52 | } 53 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/tests/js/qunit.css: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/SyntaxHighlighter 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html 7 | * 8 | * @version 9 | * 3.0.83 (July 02 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2010 Alex Gorbatchev. 13 | * 14 | * @license 15 | * Dual licensed under the MIT and GPL licenses. 16 | */ 17 | 18 | ol#qunit-tests { 19 | font-family:"Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial; 20 | margin:0; 21 | padding:0; 22 | list-style-position:inside; 23 | 24 | font-size: smaller; 25 | } 26 | ol#qunit-tests li{ 27 | padding:0.4em 0.5em 0.4em 2.5em; 28 | border-bottom:1px solid #fff; 29 | font-size:small; 30 | list-style-position:inside; 31 | } 32 | ol#qunit-tests li ol{ 33 | box-shadow: inset 0px 2px 13px #999; 34 | -moz-box-shadow: inset 0px 2px 13px #999; 35 | -webkit-box-shadow: inset 0px 2px 13px #999; 36 | margin-top:0.5em; 37 | margin-left:0; 38 | padding:0.5em; 39 | background-color:#fff; 40 | border-radius:15px; 41 | -moz-border-radius: 15px; 42 | -webkit-border-radius: 15px; 43 | } 44 | ol#qunit-tests li li{ 45 | border-bottom:none; 46 | margin:0.5em; 47 | background-color:#fff; 48 | list-style-position: inside; 49 | padding:0.4em 0.5em 0.4em 0.5em; 50 | } 51 | 52 | ol#qunit-tests li li.pass{ 53 | border-left:26px solid #C6E746; 54 | background-color:#fff; 55 | color:#5E740B; 56 | } 57 | ol#qunit-tests li li.fail{ 58 | border-left:26px solid #EE5757; 59 | background-color:#fff; 60 | color:#710909; 61 | } 62 | ol#qunit-tests li.pass{ 63 | background-color:#D2E0E6; 64 | color:#528CE0; 65 | } 66 | ol#qunit-tests li.fail{ 67 | background-color:#EE5757; 68 | color:#000; 69 | } 70 | ol#qunit-tests li strong { 71 | cursor:pointer; 72 | } 73 | h1#qunit-header{ 74 | background-color:#0d3349; 75 | margin:0; 76 | padding:0.5em 0 0.5em 1em; 77 | color:#fff; 78 | font-family:"Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial; 79 | border-top-right-radius:15px; 80 | border-top-left-radius:15px; 81 | -moz-border-radius-topright:15px; 82 | -moz-border-radius-topleft:15px; 83 | -webkit-border-top-right-radius:15px; 84 | -webkit-border-top-left-radius:15px; 85 | text-shadow: rgba(0, 0, 0, 0.5) 4px 4px 1px; 86 | } 87 | h2#qunit-banner{ 88 | font-family:"Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial; 89 | height:5px; 90 | margin:0; 91 | padding:0; 92 | } 93 | h2#qunit-banner.qunit-pass{ 94 | background-color:#C6E746; 95 | } 96 | h2#qunit-banner.qunit-fail, #qunit-testrunner-toolbar { 97 | background-color:#EE5757; 98 | } 99 | #qunit-testrunner-toolbar { 100 | font-family:"Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial; 101 | padding:0; 102 | /*width:80%;*/ 103 | padding:0em 0 0.5em 2em; 104 | font-size: small; 105 | } 106 | h2#qunit-userAgent { 107 | font-family:"Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial; 108 | background-color:#2b81af; 109 | margin:0; 110 | padding:0; 111 | color:#fff; 112 | font-size: small; 113 | padding:0.5em 0 0.5em 2.5em; 114 | text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 1px; 115 | } 116 | p#qunit-testresult{ 117 | font-family:"Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial; 118 | margin:0; 119 | font-size: small; 120 | color:#2b81af; 121 | border-bottom-right-radius:15px; 122 | border-bottom-left-radius:15px; 123 | -moz-border-radius-bottomright:15px; 124 | -moz-border-radius-bottomleft:15px; 125 | -webkit-border-bottom-right-radius:15px; 126 | -webkit-border-bottom-left-radius:15px; 127 | background-color:#D2E0E6; 128 | padding:0.5em 0.5em 0.5em 2.5em; 129 | } 130 | strong b.fail{ 131 | color:#710909; 132 | } 133 | strong b.pass{ 134 | color:#5E740B; 135 | } 136 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/tests/theme_tests.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SyntaxHighlighter Theme Tests 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 26 | 27 | 67 | 68 | 132 | 133 | 134 | 135 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/tests/webrick.rb: -------------------------------------------------------------------------------- 1 | require 'webrick' 2 | include WEBrick 3 | 4 | s = HTTPServer.new( 5 | :Port => 2010, 6 | :DocumentRoot => Dir::pwd 7 | ) 8 | s.mount('/sh/scripts', WEBrick::HTTPServlet::FileHandler, '../scripts') 9 | s.mount('/sh/styles', WEBrick::HTTPServlet::FileHandler, '../styles') 10 | trap('INT') { s.stop } 11 | s.start 12 | -------------------------------------------------------------------------------- /syntax_highlighter/syntaxhighlighter_3.0.83/tests/webrick.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | ruby webrick.rb 3 | --------------------------------------------------------------------------------