분리할 데이터 2차 정리

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6699 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2009-07-10 10:43:57 +00:00
parent 245f6d2d07
commit bc0d246e82
688 changed files with 0 additions and 113333 deletions

View file

@ -1,102 +0,0 @@
<?php
/**
* @class cc_license
* @author zero <zero@zeroboard.com>
* @brief CCL 출력 에디터 컴포넌트
**/
class cc_license extends EditorHandler {
// editor_sequence 는 에디터에서 필수로 달고 다녀야 함
var $editor_sequence = 0;
var $component_path = '';
/**
* @brief editor_sequence과 컴포넌트의 경로를 받음
**/
function cc_license($editor_sequence, $component_path) {
$this->editor_sequence = $editor_sequence;
$this->component_path = $component_path;
}
/**
* @brief popup window요청시 popup window에 출력할 내용을 추가하면 된다
**/
function getPopupContent() {
// 템플릿을 미리 컴파일해서 컴파일된 소스를 return
$tpl_path = $this->component_path.'tpl';
$tpl_file = 'popup.html';
Context::set("tpl_path", $tpl_path);
$oTemplate = &TemplateHandler::getInstance();
return $oTemplate->compile($tpl_path, $tpl_file);
}
/**
* @brief 에디터 컴포넌트가 별도의 고유 코드를 이용한다면 코드를 html로 변경하여 주는 method
*
* 이미지나 멀티미디어, 설문등 고유 코드가 필요한 에디터 컴포넌트는 고유코드를 내용에 추가하고 나서
* DocumentModule::transContent() 에서 해당 컴포넌트의 transHtml() method를 호출하여 고유코드를 html로 변경
**/
function transHTML($xml_obj) {
// 지정된 옵션을 구함
$ccl_title = $xml_obj->attrs->ccl_title;
$ccl_use_mark = $xml_obj->attrs->ccl_use_mark;
$ccl_allow_commercial = $xml_obj->attrs->ccl_allow_commercial;
$ccl_allow_modification = $xml_obj->attrs->ccl_allow_modification;
// 가로/ 세로 크기를 구함
preg_match_all('/(width|height)([^[:digit:]]+)([^;^"^\']*)/i',$xml_obj->attrs->style,$matches);
$width = trim($matches[3][0]);
if(!$width) $width = "90%";
$height = trim($matches[3][1]);
if(!$height) $height = "50";
// 언어파일을 읽음
Context::loadLang($this->component_path.'/lang');
$default_title = Context::getLang('ccl_default_title');
if(!$ccl_title) $ccl_title = $default_title;
$default_message = Context::getLang('ccl_default_message');
$option = Context::getLang('ccl_options');
// 영리 이용 체크
if($ccl_allow_commercial == 'N') $opt1 = '-nc';
else $opt1 = '';
// 수정 표시 체크
if($ccl_allow_modification == 'N') $opt2 = '-nd';
elseif($ccl_allow_modification == 'SA') $opt2 = '-sa';
else $opt2 = '';
// 버전
$version = '/3.0';
// 언어에 따른 설정
$lang_type = Context::getLangType();
if($lang_type != 'en') $lang_file = 'deed.'.strtolower($lang_file);
// 마크 이용시
$ccl_image = '';
if($ccl_use_mark == "Y") {
$ccl_image = sprintf('
<a rel="license" href="http://creativecommons.org/licenses/by%s%s%s" onclick="window.open(this.href); return false;"><img src="http://i.creativecommons.org/l/by%s%s%s/88x31.png" alt="Creative Commons License" style="margin-bottom:5px;border:0;" /></a><br />',
$opt1, $opt2, $version,
$opt1, $opt2, $version
);
}
// 결과물 생성
$text = $ccl_image . sprintf($default_message, $opt1, $opt2, $version, '', $ccl_title, $option['ccl_allow_commercial'][$ccl_allow_commercial], $option['ccl_allow_modification'][$ccl_allow_modification], $version);
$style = sprintf('<style type="text/css">.cc_license { clear:both; margin:20px auto 20px auto; padding:8px; width:%s;border:1px solid #c0c0c0; color:#808080; text-align:center; } .cc_license legend { font-weight:bold; } .cc_license a { color:#404040; text-decoration:none; } .cc_license a:hover { text-decoration:underline; </style>', $width);
$output = sprintf('%s<fieldset class="cc_license"><legend>%s</legend>%s</fieldset>', $style, $ccl_title, $text);
return $output;
}
}
?>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 578 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

View file

@ -1,29 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<component version="0.2">
<title xml:lang="ko">Creative Commons Licenses</title>
<title xml:lang="es">Licencias Creative Commons</title>
<title xml:lang="ru">Creative Commons Licenses</title>
<title xml:lang="jp">クリエイティブコモンズライセンス</title>
<title xml:lang="zh-CN">知识共享许可协议</title>
<title xml:lang="en">Creative Commons Licenses</title>
<title xml:lang="zh-TW">創用CC</title>
<description xml:lang="ko">CCL 라이선스를 출력합니다.</description>
<description xml:lang="es">CCL licencia de producto</description>
<description xml:lang="ru">CCL 라이선스를 출력합니다.</description>
<description xml:lang="jp">CCLライセンスを表示します。</description>
<description xml:lang="zh-CN">显示知识共享许可协议。</description>
<description xml:lang="en">Output CCL license</description>
<description xml:lang="zh-TW">顯示創用CC授權條款。</description>
<version>0.1</version>
<date>2008-01-07</date>
<author email_address="zero@zeroboard.com" link="http://zeroboard.com">
<name xml:lang="ko">zero</name>
<name xml:lang="es">zero</name>
<name xml:lang="ru">zero</name>
<name xml:lang="jp">zero</name>
<name xml:lang="zh-CN">zero</name>
<name xml:lang="en">zero</name>
<name xml:lang="zh-TW">zero</name>
</author>
</component>

View file

@ -1,29 +0,0 @@
<?php
/**
* @file /modules/editor/components/cc_license/lang/en.lang.php
* @author zero <zero@zeroboard.com>
* @brief WYSIWYG module > CCL display component
**/
$lang->ccl_default_title = 'Creative Commons Korea Copyrights';
$lang->ccl_default_message = 'This component can be used by <a rel="license" href="http://creativecommons.org/licenses/by%s%s%s%s" onclick="winopen(this.href);return false;">%s%s%s%s</a>';
$lang->ccl_title = 'Title';
$lang->ccl_use_mark = 'Use Mark';
$lang->ccl_allow_commercial = 'Allow Commercial Use';
$lang->ccl_allow_modification = 'Allow Modification of Component';
$lang->ccl_allow = 'Allow';
$lang->ccl_disallow = 'Disallow';
$lang->ccl_sa = 'Modify Identical Condition';
$lang->ccl_options = array(
'ccl_allow_commercial' => array('Y'=>'-Commertial', 'N'=>'-Noncommertial'),
'ccl_allow_modification' => array('Y'=>'-Inhibit', 'N'=>'-Inhibit', 'SA'=>'-Under Identical Condition'),
);
$lang->about_ccl_title = 'Title will be displayed. Default message will be displayed when nothing is input.';
$lang->about_ccl_use_mark = 'You may display or hide mark. (default: display)';
$lang->about_ccl_allow_commercial = 'You may allow or disallow commertial use. (default: disallow)';
$lang->about_ccl_allow_modification = 'You may allow or disallow modification of the work. (default: allow)';
?>

View file

@ -1,29 +0,0 @@
<?php
/**
* @file /modules/editor/components/cc_license/lang/es.lang.php
* @author zero <zero@zeroboard.com>
* @brief WYSIWYG module > CCL display component
**/
$lang->ccl_default_title = 'Reconocimiento-No comercial-Sin obras derivadas 2.0 España';
$lang->ccl_default_message = 'Este componente puede ser usado por <a rel="licencia" href="http://creativecommons.org/licenses/by% s% s% s% s" onclick="winopen (this.href); retorno false;" >% S% s% s% s </ a> ';
$lang->ccl_title = 'Titulo';
$lang->ccl_use_mark = 'Utilice Mark';
$lang->ccl_allow_commercial = 'Permitir el uso comercial';
$lang->ccl_allow_modification = 'Permitir la modificacion de componente';
$lang->ccl_allow = 'Permitir';
$lang->ccl_disallow = 'Disallow';
$lang->ccl_sa = 'Modificar identica condicion';
$lang->ccl_options = array(
'ccl_allow_commercial' => array('Y'=>'-Commertial', 'N'=>'-Noncommertial'),
'ccl_allow_modification' => array('Y'=>'-Inhibit', 'N'=>'-Inhibit', 'SA'=>'-Under Identical Condition'),
);
$lang->about_ccl_title = 'Titulo en la pantalla. Default mensaje se muestra cuando no hay nada de entrada.';
$lang->about_ccl_use_mark = 'Puede mostrar u ocultar la marca. (Por defecto: pantalla)';
$lang->about_ccl_allow_commercial = 'Usted puede permitir o no permitir el uso comercial. (Por defecto: inhabilitar)';
$lang->about_ccl_allow_modification = 'Usted puede habilitar o inhabilitar la modificacion de la obra. (Por defecto: permitir)';
?>

View file

@ -1,29 +0,0 @@
<?php
/**
* @file modules/editor/components/cc_license/lang/jp.lang.php
* @author zero <zero@zeroboard.com> 翻訳RisaPapa
* @brief ウィジウィグエディターモジュール > CCL 表示エディターコンポーネント
**/
$lang->ccl_default_title = 'クリエイティブコモンズジャパン著作者表示';
$lang->ccl_default_message = 'この著作物は<a rel="license" href="http://creativecommons.org/licenses/by%s%s%s%s" onclick="winopen(this.href);return false;">%s%s%s%s</a>に従って利用することが出来ます。';
$lang->ccl_title = 'タイトル';
$lang->ccl_use_mark = 'マーク使用';
$lang->ccl_allow_commercial = '営利目的許可';
$lang->ccl_allow_modification = '著作物変更許';
$lang->ccl_allow = '許可';
$lang->ccl_disallow = '禁止';
$lang->ccl_sa = '同一条件変更';
$lang->ccl_options = array(
'ccl_allow_commercial' => array('Y'=>'-営利', 'N'=>'-非営利'),
'ccl_allow_modification' => array('Y'=>'-変更許可', 'N'=>'-変更禁止', 'SA'=>'-同一条件変更許可'),
);
$lang->about_ccl_title = 'タイトルを表示します。空欄の場合はデフォルトのメッセージが表示されます。';
$lang->about_ccl_use_mark = 'マークを表示するかどうかが選択出来ます(デフォルト:表示)。';
$lang->about_ccl_allow_commercial = '営利目的での利用を許可するかどうかが選択出来ます(デフォルト:禁止)';
$lang->about_ccl_allow_modification = '著作権の変更が出来るかがどうかが許可出来ます(デフォルト:同一条件変更)。';
?>

View file

@ -1,29 +0,0 @@
<?php
/**
* @file modules/editor/components/cc_license/lang/ko.lang.php
* @author zero <zero@zeroboard.com>
* @brief 위지윅에디터(editor) 모듈 > CCL 출력 에디터 컴포넌트
**/
$lang->ccl_default_title = '크리에이티브 커먼즈 코리아 저작자표시';
$lang->ccl_default_message = '이 저작물은 <a rel="license" href="http://creativecommons.org/licenses/by%s%s%s%s" onclick="winopen(this.href);return false;">%s%s%s%s</a>에 따라 이용하실 수 있습니다';
$lang->ccl_title = '제목';
$lang->ccl_use_mark = '마크 사용';
$lang->ccl_allow_commercial = '영리목적 허용';
$lang->ccl_allow_modification = '저작물 변경 허용';
$lang->ccl_allow = '허용';
$lang->ccl_disallow = '금지';
$lang->ccl_sa = '동일 조건 변경';
$lang->ccl_options = array(
'ccl_allow_commercial' => array('Y'=>'-영리', 'N'=>'-비영리'),
'ccl_allow_modification' => array('Y'=>'-변경허용', 'N'=>'-변경금지', 'SA'=>'-동일조건변경허락'),
);
$lang->about_ccl_title = '제목을 표시합니다. 비워져 있으면 기본 메세지가 출력됩니다.';
$lang->about_ccl_use_mark = '마크의 출력 여부를 선택할 수 있습니다. (기본: 출력)';
$lang->about_ccl_allow_commercial = '영리목적 이용을 허가 여부를 선택할 수 있습니다 (기본: 허용안함)';
$lang->about_ccl_allow_modification = '저작물의 변경 여부를 허용할 수 있습니다. (기본: 동일 조건 변경)';
?>

View file

@ -1,29 +0,0 @@
<?php
/**
* @file /modules/editor/components/cc_license/lang/zh-CN.lang.php
* @author zero <zero@zeroboard.com>
* @brief 编辑器(editor) 模块 > 知识共享许可协议组件语言包
**/
$lang->ccl_default_title = '知识共享许可协议@中国大陆';
$lang->ccl_default_message = '本主题采用<a rel="license" href="http://creativecommons.org/licenses/by%s%s%s%s" onclick="winopen(this.href);return false;">%s%s%s%s</a>授权。';
$lang->ccl_title = '标题';
$lang->ccl_use_mark = '使用图标';
$lang->ccl_allow_commercial = '商业性使用';
$lang->ccl_allow_modification = '允许修改作品';
$lang->ccl_allow = '允许';
$lang->ccl_disallow = '禁止';
$lang->ccl_sa = '相同方式共享';
$lang->ccl_options = array(
'ccl_allow_commercial' => array('Y'=>'-商业', 'N'=>'-非商业'),
'ccl_allow_modification' => array('Y'=>'-允许修改', 'N'=>'-禁止修改', 'SA'=>'-允许相同方式共享'),
);
$lang->about_ccl_title = '显示标题(留空为显示默认标题)。';
$lang->about_ccl_use_mark = '设置图标显示与否(默认: 显示)。';
$lang->about_ccl_allow_commercial = '设置商业性使用与否(默认: 禁止)。';
$lang->about_ccl_allow_modification = '设置允许作品修改与否(默认:相同方式共享)。';
?>

View file

@ -1,29 +0,0 @@
<?php
/**
* @file /modules/editor/components/cc_license/lang/zh-TW.lang.php
* @author zero <zero@zeroboard.com> 翻譯royallin
* @brief 編輯器模組 > 創用CC授權組件
**/
$lang->ccl_default_title = '創用CC授權';
$lang->ccl_default_message = '本文採用 <a rel="license" href="http://creativecommons.org/licenses/by%s%s%s%s" onclick="winopen(this.href);return false;">%s%s%s%s</a>';
$lang->ccl_title = '標題';
$lang->ccl_use_mark = '使用標章圖樣';
$lang->ccl_allow_commercial = '允許商業性使用';
$lang->ccl_allow_modification = '允許修改';
$lang->ccl_allow = '允許';
$lang->ccl_disallow = '不允許';
$lang->ccl_sa = '相同方式分享';
$lang->ccl_options = array(
'ccl_allow_commercial' => array('Y'=>'-商業性', 'N'=>'-非商業性'),
'ccl_allow_modification' => array('Y'=>'-允許', 'N'=>'-禁止', 'SA'=>'-相同方式分享'),
);
$lang->about_ccl_title = '顯示標題。留白顯示預設標題。';
$lang->about_ccl_use_mark = '是否顯示圖案。(預設: 顯示)';
$lang->about_ccl_allow_commercial = '是否允許商業使用。(預設: 不允許)';
$lang->about_ccl_allow_modification = '是否允許修改。(預設: 允許)';
?>

View file

@ -1,42 +0,0 @@
<!--%import("popup.js")-->
<!--%import("../lang")-->
<div id="popHeader">
<h3 class="xeAdmin">{$component_info->title} ver. {$component_info->version}</h3>
</div>
<form action="./" method="get" onSubmit="return false" id="fo">
<div id="popBody">
<table cellspacing="0" class="rowTable">
<col width="120" />
<col />
<tr>
<th scope="row"><div>{$lang->ccl_use_mark}</div></th>
<td>
<select name="ccl_use_mark"><option value="Y" selected="selected">{$lang->use}</option><option value="N">{$lang->notuse}</option></select>
<p>{$lang->about_ccl_use_mark}</p>
</td>
</tr>
<tr>
<th scope="row"><div>{$lang->ccl_allow_commercial}</div></th>
<td>
<select name="ccl_allow_commercial"><option value="Y">{$lang->ccl_allow}</option><option value="N" selected="selected">{$lang->ccl_disallow}</option></select>
<p>{$lang->about_ccl_allow_commercial}</p>
</td>
</tr>
<tr>
<th scope="row"><div>{$lang->ccl_allow_modification}</div></th>
<td>
<select name="ccl_allow_modification"><option value="Y">{$lang->ccl_allow}</option><option value="N">{$lang->ccl_disallow}</option><option value="SA" selected="selected">{$lang->ccl_sa}</option></select>
<p>{$lang->about_ccl_allow_modification}</p>
</td>
</tr>
</table>
</div>
<div id="popFooter">
<a href="#" onclick="insertCode()" class="button black strong"><span>{$lang->cmd_insert}</span></a>
<a href="#" onclick="winopen('./?module=editor&amp;act=dispEditorComponentInfo&amp;component_name={$component_info->component_name}','ComponentInfo','left=10,top=10,width=10,height=10,resizable=no,scrollbars=no,toolbars=no');return false;" class="button"><span>{$lang->about_component}</span></a>
</div>
</form>

View file

@ -1,64 +0,0 @@
/**
* popup으로 열렸을 경우 부모창의 위지윅에디터에 select된 멀티미디어 컴포넌트 코드를 체크하여
* 있으면 가져와서 원하는 곳에 삽입
**/
var selected_node = null;
function getCode() {
// 부모 위지윅 에디터에서 선택된 영역이 있는지 확인
if(typeof(opener)=='undefined') return;
// 부모창의 선택된 객체가 img가 아니면 pass~
var node = opener.editorPrevNode;
if(!node || node.nodeName != 'IMG') return;
selected_node = node;
// 이미 정의되어 있는 변수에서 데이터를 구함
var ccl_use_mark = node.getAttribute('ccl_use_mark');
var ccl_allow_commercial = node.getAttribute('ccl_allow_commercial');
var ccl_allow_modification = node.getAttribute('ccl_allow_modification');
// form문에 적용
var fo_obj = xGetElementById('fo');
if(ccl_use_mark == 'Y') fo_obj.ccl_use_mark.selectedIndex = 0;
else fo_obj.ccl_use_mark.selectedIndex = 1;
if(ccl_allow_commercial == 'Y') fo_obj.ccl_allow_commercial.selectedIndex = 0;
else fo_obj.ccl_allow_commercial.selectedIndex = 1;
if(ccl_allow_modification == 'Y') fo_obj.ccl_allow_modification.selectedIndex = 0;
else if(ccl_allow_modification== 'N') fo_obj.ccl_allow_modification.selectedIndex = 1;
else fo_obj.ccl_allow_modification.selectedIndex = 2;
}
/* 추가 버튼 클릭시 부모창의 위지윅 에디터에 인용구 추가 */
function insertCode() {
if(typeof(opener)=='undefined') return;
var fo_obj = xGetElementById('fo');
var ccl_use_mark = fo_obj.ccl_use_mark.options[fo_obj.ccl_use_mark.selectedIndex].value;
var ccl_allow_commercial = fo_obj.ccl_allow_commercial.options[fo_obj.ccl_allow_commercial.selectedIndex].value;
var ccl_allow_modification = fo_obj.ccl_allow_modification.options[fo_obj.ccl_allow_modification.selectedIndex].value;
var content = '';
var style = "width:90%; margin:20px auto 20px auto; height:50px; border:1px solid #c0c0c0; background: transparent url('./modules/editor/components/cc_license/ccl_logo.gif') no-repeat center center;";
var text = '<br /><img editor_component="cc_license" ccl_use_mark="'+ccl_use_mark+'" ccl_allow_commercial="'+ccl_allow_commercial+'" ccl_allow_modification="'+ccl_allow_modification+'" style="'+style+'" src="./common/tpl/images/blank.gif" alt="ccl" /><br />';
if(selected_node) {
selected_node.setAttribute('ccl_use_mark', ccl_use_mark);
selected_node.setAttribute('ccl_allow_commercial', ccl_allow_commercial);
selected_node.setAttribute('ccl_allow_modification', ccl_allow_modification);
} else {
opener.editorFocus(opener.editorPrevSrl);
var iframe_obj = opener.editorGetIFrame(opener.editorPrevSrl)
opener.editorReplaceHTML(iframe_obj, text);
}
opener.editorFocus(opener.editorPrevSrl);
window.close();
}
xAddEventListener(window, 'load', getCode);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

View file

@ -1,86 +0,0 @@
<?php
/**
* @brief Code Highlighter
* @class code_highlighter
**/
class code_highlighter extends EditorHandler {
// editor_sequence 는 에디터에서 필수로 달고 다녀야 함
var $editor_sequence = 0;
var $component_path = '';
/**
* @brief editor_sequence과 컴포넌트의 경로를 받음
**/
function code_highlighter($editor_sequence, $component_path) {
$this->editor_sequence = $editor_sequence;
$this->component_path = $component_path;
}
/**
* @brief popup window요청시 popup window에 출력할 내용을 추가하면 된다
**/
function getPopupContent() {
// 템플릿을 미리 컴파일해서 컴파일된 소스를 return
$tpl_path = $this->component_path.'tpl';
$tpl_file = 'popup.html';
Context::set('tpl_path', $tpl_path);
$oTemplate = &TemplateHandler::getInstance();
return $oTemplate->compile($tpl_path, $tpl_file);
}
/**
* @brief 에디터 컴포넌트가 별도의 고유 코드를 이용한다면 코드를 html로 변경하여 주는 method
*
* 이미지나 멀티미디어, 설문등 고유 코드가 필요한 에디터 컴포넌트는 고유코드를 내용에 추가하고 나서
* DocumentModule::transContent() 에서 해당 컴포넌트의 transHtml() method를 호출하여 고유코드를 html로 변경
**/
function transHTML($xml_obj) {
$code_type = $xml_obj->attrs->code_type;
$option_file_path = $xml_obj->attrs->file_path;
$option_description = $xml_obj->attrs->description;
$option_first_line = $xml_obj->attrs->first_line;
$option_collapse = $xml_obj->attrs->collapse;
$option_nogutter = $xml_obj->attrs->nogutter;
$option_nocontrols = $xml_obj->attrs->nocontrols;
if($option_collapse == 'true') $option = $option.'collapse: true;';
if($option_nogutter == 'true') $option = $option.'gutter: false;';
if($option_nocontrols == 'true' && $option_collapse != 'true') $option = $option.'toolbar: false;';
if($option_first_line > 1) $option = $option."first-line: ".$option_first_line.";";
$body = $xml_obj->body;
$body = preg_replace('@(<br\\s?/?>)(\n)?@i' , "\n", $body);
$body = strip_tags($body);
if(!$GLOBALS['_called_editor_component_code_highlighter_']) {
$GLOBALS['_called_editor_component_code_highlighter_'] = true;
$js_code = <<<dpScript
<script type="text/javascript">
SyntaxHighlighter.config.clipboardSwf = '{$this->component_path}script/clipboard.swf';
SyntaxHighlighter.all();
</script>
dpScript;
Context::addHtmlFooter($js_code);
Context::addCSSFile($this->component_path.'style/shCore.css');
Context::addCSSFile($this->component_path.'style/shThemeDefault.css');
Context::addJsFile($this->component_path.'script/shCore.js');
}
Context::addJsFile($this->component_path.'script/shBrush'.$code_type.'.js');
$output = null;
if($option_file_path != null || $option_description != null) {
$output .= '<div class="ch_infobox">';
if($option_file_path != null) $output .= '<span class="file_path">'.$option_file_path.'</span>';
if($option_description != null) $output .= '<span class="description">'.$option_description.'</span>';
$output .= '</div>';
}
$output .= sprintf('<pre class="brush: %s;%s">%s</pre>', strtolower($code_type), $option, $body);
return $output;
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 977 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2 KiB

View file

@ -1,30 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<component version="0.2">
<title xml:lang="ko">Code Highlighter</title>
<title xml:lang="jp">コードハイライト</title>
<title xml:lang="zh-CN">代码高亮显示</title>
<title xml:lang="en">Code Highlighter</title>
<title xml:lang="es">Código para resaltar</title>
<title xml:lang="ru">Подсветка кода</title>
<title xml:lang="zh-TW">語法高亮度顯示</title>
<description xml:lang="ko">코드를 보기 좋게 출력합니다.</description>
<description xml:lang="jp">ソースコードを見やすく表示します。</description>
<description xml:lang="en">It displays code in good shape.</description>
<description xml:lang="es">Muestra el código en buena forma.</description>
<description xml:lang="ru">Компонент служащий для подсветки кода</description>
<description xml:lang="zh-CN">高亮显示所选代码。</description>
<description xml:lang="zh-TW">將所選取的語法高亮度顯示。</description>
<version>0.5</version>
<date>2009-01-20</date>
<license link="http://creativecommons.org/licenses/LGPL/2.1/">LGPL 2.1</license>
<author link="http://www.zeroboard.com/">
<name xml:lang="ko">XE Open Source Project</name>
<name xml:lang="jp">XE Open Source Project</name>
<name xml:lang="en">XE Open Source Project</name>
<name xml:lang="es">XE Open Source Project</name>
<name xml:lang="ru">XE Open Source Project</name>
<name xml:lang="zh-CN">XE Open Source Project</name>
<name xml:lang="zh-TW">XE Open Source Project</name>
</author>
</component>

View file

@ -1,13 +0,0 @@
<?php
/**
* @author Maslennikov Evgeny aka X-[Vr]bL1s5 | e-mail: x-bliss[a]tut.by; ICQ: 225035467;
**/
$lang->code_type = 'Code Type';
$lang->used_collapse = 'Use Folding';
$lang->hidden_linenumber = 'Hide Line Number';
$lang->hidden_controls = 'Hide Toolbar';
$lang->file_path = 'File Path';
$lang->description = 'Description';
$lang->first_line = 'First Line';

View file

@ -1,13 +0,0 @@
<?php
/**
* @author Maslennikov Evgeny aka X-[Vr]bL1s5 | e-mail: x-bliss[a]tut.by; ICQ: 225035467;
**/
$lang->code_type = 'Código Tipo';
$lang->used_collapse = 'Utilice Folding';
$lang->hidden_linenumber = 'Ocultar número de línea';
$lang->hidden_controls = 'Ocultar barra de herramientas';
$lang->file_path = 'Ruta del archivo';
$lang->description = 'Descripción';
$lang->first_line = 'Primera Línea';

View file

@ -1,14 +0,0 @@
<?php
/**
* @file modules/editor/components/code_highlighter/lang/jp.lang.php
* @author BNU <bnufactory@gmail.com> 翻訳:ミニミ
**/
$lang->code_type = '言語種類';
$lang->used_collapse = '折りたたみ機能を使う';
$lang->hidden_linenumber = '行番号を隠す';
$lang->hidden_controls = 'ツールバーを隠す';
$lang->file_path = 'ファイルのパス';
$lang->description = '説明';
$lang->first_line = '開始する行番号';

View file

@ -1,14 +0,0 @@
<?php
/**
* @file modules/editor/components/code_highlighter/lang/ko.lang.php
* @author BNU <bnufactory@gmail.com>
**/
$lang->code_type = '언어 종류';
$lang->used_collapse = '접기 기능 사용';
$lang->hidden_linenumber = '줄 번호 감추기';
$lang->hidden_controls = '도구바 감추기';
$lang->file_path = '파일경로';
$lang->description = '설명';
$lang->first_line = '시작 줄 번호';

View file

@ -1,13 +0,0 @@
<?php
/**
* @author Maslennikov Evgeny aka X-[Vr]bL1s5 | e-mail: x-bliss[a]tut.by; ICQ: 225035467;
**/
$lang->code_type = 'Тип кода';
$lang->used_collapse = 'Использованное сокращение';
$lang->hidden_linenumber = 'Скрытый номер строки';
$lang->hidden_controls = 'Скрытый контрол';
$lang->file_path = 'Путь файла';
$lang->description = 'Описание';
$lang->first_line = 'Первая строка';

View file

@ -1,16 +0,0 @@
<?php
/**
* @file /modules/editor/components/code_highlighter/lang/ko.lang.php
* @author BNU <bnufactory@gamil.com> 翻译guny
* @brief 编辑器(editor) 模块 > 代码高亮显示(code_highlighter)组件简体中文语言包
**/
$lang->code_type = '语言类型';
$lang->used_collapse = '使用代码折叠';
$lang->hidden_linenumber = '隐藏行号';
$lang->hidden_controls = '隐藏工具栏';
$lang->file_path = '文件路径';
$lang->description = '说明';
$lang->first_line = '首行行号';
?>

View file

@ -1,13 +0,0 @@
<?php
/**
* @author royallin
**/
$lang->code_type = '語法類型';
$lang->used_collapse = '使用收合';
$lang->hidden_linenumber = '隱藏行號';
$lang->hidden_controls = '隱藏控制';
$lang->file_path = '檔案路徑';
$lang->description = '說明';
$lang->first_line = '第一行';

View file

@ -1,26 +0,0 @@
dp.sh.Brushes.Abap = function()
{
var datatypes =
'ACCP CHAR CLNT CUKY CURR DATS DEC FLTP INT1 INT2 INT4 LANG LCHR LRAW NUMC PREC QUAN RAW RAWSTRING SSTRING STRING TIMS UNIT';
var keywords =
'IF RETURN WHILE CASE DEFAULT DO ELSE FOR ENDIF ELSEIF EQ NOT AND DATA TYPES SELETION-SCREEN PARAMETERS ' +
'FIELD-SYMBOLS EXTERN INLINE REPORT WRITE APPEND SELECT ENDSELECT CALL METHOD CALL FUNCTION LOOP ENDLOOP ' +
'RAISE READ TABLE CONCATENATE SPLIT SHIFT CONDENSE DESCRIBE CLEAR ENDFUNCTION ASSIGN CREATE DATA TRANSLATE ' +
'CONTINUE START-OF-SELECTION AT SELECTION-SCREEN MODIFY CALL SCREEN CREATE OBJECT PERFORM FORM ENDFORM ' +
'REUSE_ALV_BLOCK_LIST_INIT ZBCIALV INCLUDE TYPE REF TO TYPE BEGIN\SOF END\SOF LIKE INTO FROM WHERE ORDER BY ' +
'WITH KEY INTO STRING SEPARATED BY EXPORTING IMPORTING TO UPPER CASE TO EXCEPTIONS TABLES USING CHANGING';
this.regexList = [
{ regex: new RegExp('^\\*.*$', 'gm'), css: 'comment' }, // one line comments
{ regex: new RegExp('\\".*$', 'gm'), css: 'comment' }, // one line comments
{ regex: dp.sh.RegexLib.SingleQuotedString, css: 'string' }, // strings
{ regex: new RegExp(this.GetKeywords(datatypes), 'gm'), css: 'datatypes' },
{ regex: new RegExp(this.GetKeywords(keywords), 'gm'), css: 'keyword' }
];
this.CssClass = 'dp-abap';
}
dp.sh.Brushes.Abap.prototype = new dp.sh.Highlighter();
dp.sh.Brushes.Abap.Aliases = ['abap', 'Abap'];

View file

@ -1,51 +0,0 @@
/**
* SyntaxHighlighter
* http://alexgorbatchev.com/
*
* @version
* 2.0.287 (February 06 2009)
*
* @author
* Alex Gorbatchev
*
* @copyright
* Copyright (C) 2004-2009 Alex Gorbatchev.
*
* Licensed under a GNU Lesser General Public License.
* http://creativecommons.org/licenses/LGPL/2.1/
*
* SyntaxHighlighter is donationware. You are allowed to download, modify and distribute
* the source code in accordance with LGPL 2.1 license, however if you want to use
* SyntaxHighlighter on your site or include it in your product, you must donate.
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
*/
SyntaxHighlighter.brushes.Bash = function()
{
var keywords = 'if fi then elif else for do done until while break continue case function return in eq ne gt lt ge le';
var commands = 'alias apropos awk bash bc bg builtin bzip2 cal cat cd cfdisk chgrp chmod chown chroot' +
'cksum clear cmp comm command cp cron crontab csplit cut date dc dd ddrescue declare df ' +
'diff diff3 dig dir dircolors dirname dirs du echo egrep eject enable env ethtool eval ' +
'exec exit expand export expr false fdformat fdisk fg fgrep file find fmt fold format ' +
'free fsck ftp gawk getopts grep groups gzip hash head history hostname id ifconfig ' +
'import install join kill less let ln local locate logname logout look lpc lpr lprint ' +
'lprintd lprintq lprm ls lsof make man mkdir mkfifo mkisofs mknod more mount mtools ' +
'mv netstat nice nl nohup nslookup open op passwd paste pathchk ping popd pr printcap ' +
'printenv printf ps pushd pwd quota quotacheck quotactl ram rcp read readonly renice ' +
'remsync rm rmdir rsync screen scp sdiff sed select seq set sftp shift shopt shutdown ' +
'sleep sort source split ssh strace su sudo sum symlink sync tail tar tee test time ' +
'times touch top traceroute trap tr true tsort tty type ulimit umask umount unalias ' +
'uname unexpand uniq units unset unshar useradd usermod users uuencode uudecode v vdir ' +
'vi watch wc whereis which who whoami Wget xargs yes'
;
this.regexList = [
{ regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, // one line comments
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
{ regex: new RegExp(this.getKeywords(commands), 'gm'), css: 'functions' } // commands
];
}
SyntaxHighlighter.brushes.Bash.prototype = new SyntaxHighlighter.Highlighter();
SyntaxHighlighter.brushes.Bash.aliases = ['bash', 'shell'];

View file

@ -1,56 +0,0 @@
/**
* SyntaxHighlighter
* http://alexgorbatchev.com/
*
* @version
* 2.0.287 (February 06 2009)
*
* @author
* Alex Gorbatchev
*
* @copyright
* Copyright (C) 2004-2009 Alex Gorbatchev.
*
* Licensed under a GNU Lesser General Public License.
* http://creativecommons.org/licenses/LGPL/2.1/
*
* SyntaxHighlighter is donationware. You are allowed to download, modify and distribute
* the source code in accordance with LGPL 2.1 license, however if you want to use
* SyntaxHighlighter on your site or include it in your product, you must donate.
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
*/
SyntaxHighlighter.brushes.CSharp = function()
{
var keywords = 'abstract as base bool break byte case catch char checked class const ' +
'continue decimal default delegate do double else enum event explicit ' +
'extern false finally fixed float for foreach get goto if implicit in int ' +
'interface internal is lock long namespace new null object operator out ' +
'override params private protected public readonly ref return sbyte sealed set ' +
'short sizeof stackalloc static string struct switch this throw true try ' +
'typeof uint ulong unchecked unsafe ushort using virtual void while';
function fixComments(match, regexInfo)
{
var css = (match[0].indexOf("///") == 0)
? 'color1'
: 'comments'
;
return [new SyntaxHighlighter.Match(match[0], match.index, css)];
}
this.regexList = [
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, func : fixComments }, // one line comments
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
{ regex: /^\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // c# keyword
];
this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
};
SyntaxHighlighter.brushes.CSharp.prototype = new SyntaxHighlighter.Highlighter();
SyntaxHighlighter.brushes.CSharp.aliases = ['c#', 'c-sharp', 'csharp'];

View file

@ -1,91 +0,0 @@
/**
* SyntaxHighlighter
* http://alexgorbatchev.com/
*
* @version
* 2.0.287 (February 06 2009)
*
* @author
* Alex Gorbatchev
*
* @copyright
* Copyright (C) 2004-2009 Alex Gorbatchev.
*
* Licensed under a GNU Lesser General Public License.
* http://creativecommons.org/licenses/LGPL/2.1/
*
* SyntaxHighlighter is donationware. You are allowed to download, modify and distribute
* the source code in accordance with LGPL 2.1 license, however if you want to use
* SyntaxHighlighter on your site or include it in your product, you must donate.
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
*/
SyntaxHighlighter.brushes.Cpp = function()
{
// Copyright 2006 Shin, YoungJin
var datatypes = 'ATOM BOOL BOOLEAN BYTE CHAR COLORREF DWORD DWORDLONG DWORD_PTR ' +
'DWORD32 DWORD64 FLOAT HACCEL HALF_PTR HANDLE HBITMAP HBRUSH ' +
'HCOLORSPACE HCONV HCONVLIST HCURSOR HDC HDDEDATA HDESK HDROP HDWP ' +
'HENHMETAFILE HFILE HFONT HGDIOBJ HGLOBAL HHOOK HICON HINSTANCE HKEY ' +
'HKL HLOCAL HMENU HMETAFILE HMODULE HMONITOR HPALETTE HPEN HRESULT ' +
'HRGN HRSRC HSZ HWINSTA HWND INT INT_PTR INT32 INT64 LANGID LCID LCTYPE ' +
'LGRPID LONG LONGLONG LONG_PTR LONG32 LONG64 LPARAM LPBOOL LPBYTE LPCOLORREF ' +
'LPCSTR LPCTSTR LPCVOID LPCWSTR LPDWORD LPHANDLE LPINT LPLONG LPSTR LPTSTR ' +
'LPVOID LPWORD LPWSTR LRESULT PBOOL PBOOLEAN PBYTE PCHAR PCSTR PCTSTR PCWSTR ' +
'PDWORDLONG PDWORD_PTR PDWORD32 PDWORD64 PFLOAT PHALF_PTR PHANDLE PHKEY PINT ' +
'PINT_PTR PINT32 PINT64 PLCID PLONG PLONGLONG PLONG_PTR PLONG32 PLONG64 POINTER_32 ' +
'POINTER_64 PSHORT PSIZE_T PSSIZE_T PSTR PTBYTE PTCHAR PTSTR PUCHAR PUHALF_PTR ' +
'PUINT PUINT_PTR PUINT32 PUINT64 PULONG PULONGLONG PULONG_PTR PULONG32 PULONG64 ' +
'PUSHORT PVOID PWCHAR PWORD PWSTR SC_HANDLE SC_LOCK SERVICE_STATUS_HANDLE SHORT ' +
'SIZE_T SSIZE_T TBYTE TCHAR UCHAR UHALF_PTR UINT UINT_PTR UINT32 UINT64 ULONG ' +
'ULONGLONG ULONG_PTR ULONG32 ULONG64 USHORT USN VOID WCHAR WORD WPARAM WPARAM WPARAM ' +
'char bool short int __int32 __int64 __int8 __int16 long float double __wchar_t ' +
'clock_t _complex _dev_t _diskfree_t div_t ldiv_t _exception _EXCEPTION_POINTERS ' +
'FILE _finddata_t _finddatai64_t _wfinddata_t _wfinddatai64_t __finddata64_t ' +
'__wfinddata64_t _FPIEEE_RECORD fpos_t _HEAPINFO _HFILE lconv intptr_t ' +
'jmp_buf mbstate_t _off_t _onexit_t _PNH ptrdiff_t _purecall_handler ' +
'sig_atomic_t size_t _stat __stat64 _stati64 terminate_function ' +
'time_t __time64_t _timeb __timeb64 tm uintptr_t _utimbuf ' +
'va_list wchar_t wctrans_t wctype_t wint_t signed';
var keywords = 'break case catch class const __finally __exception __try ' +
'const_cast continue private public protected __declspec ' +
'default delete deprecated dllexport dllimport do dynamic_cast ' +
'else enum explicit extern if for friend goto inline ' +
'mutable naked namespace new noinline noreturn nothrow ' +
'register reinterpret_cast return selectany ' +
'sizeof static static_cast struct switch template this ' +
'thread throw true false try typedef typeid typename union ' +
'using uuid virtual void volatile whcar_t while';
var functions = 'assert isalnum isalpha iscntrl isdigit isgraph islower isprint' +
'ispunct isspace isupper isxdigit tolower toupper errno localeconv ' +
'setlocale acos asin atan atan2 ceil cos cosh exp fabs floor fmod ' +
'frexp ldexp log log10 modf pow sin sinh sqrt tan tanh jmp_buf ' +
'longjmp setjmp raise signal sig_atomic_t va_arg va_end va_start ' +
'clearerr fclose feof ferror fflush fgetc fgetpos fgets fopen ' +
'fprintf fputc fputs fread freopen fscanf fseek fsetpos ftell ' +
'fwrite getc getchar gets perror printf putc putchar puts remove ' +
'rename rewind scanf setbuf setvbuf sprintf sscanf tmpfile tmpnam ' +
'ungetc vfprintf vprintf vsprintf abort abs atexit atof atoi atol ' +
'bsearch calloc div exit free getenv labs ldiv malloc mblen mbstowcs ' +
'mbtowc qsort rand realloc srand strtod strtol strtoul system ' +
'wcstombs wctomb memchr memcmp memcpy memmove memset strcat strchr ' +
'strcmp strcoll strcpy strcspn strerror strlen strncat strncmp ' +
'strncpy strpbrk strrchr strspn strstr strtok strxfrm asctime ' +
'clock ctime difftime gmtime localtime mktime strftime time';
this.regexList = [
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
{ regex: /^ *#.*/gm, css: 'preprocessor' },
{ regex: new RegExp(this.getKeywords(datatypes), 'gm'), css: 'color1 bold' },
{ regex: new RegExp(this.getKeywords(functions), 'gm'), css: 'functions bold' },
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword bold' }
];
};
SyntaxHighlighter.brushes.Cpp.prototype = new SyntaxHighlighter.Highlighter();
SyntaxHighlighter.brushes.Cpp.aliases = ['cpp', 'c'];

View file

@ -1,85 +0,0 @@
/**
* SyntaxHighlighter
* http://alexgorbatchev.com/
*
* @version
* 2.0.287 (February 06 2009)
*
* @author
* Alex Gorbatchev
*
* @copyright
* Copyright (C) 2004-2009 Alex Gorbatchev.
*
* Licensed under a GNU Lesser General Public License.
* http://creativecommons.org/licenses/LGPL/2.1/
*
* SyntaxHighlighter is donationware. You are allowed to download, modify and distribute
* the source code in accordance with LGPL 2.1 license, however if you want to use
* SyntaxHighlighter on your site or include it in your product, you must donate.
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
*/
SyntaxHighlighter.brushes.CSS = function()
{
function getKeywordsCSS(str)
{
return '\\b([a-z_]|)' + str.replace(/ /g, '(?=:)\\b|\\b([a-z_\\*]|\\*|)') + '(?=:)\\b';
};
function getValuesCSS(str)
{
return '\\b' + str.replace(/ /g, '(?!-)(?!:)\\b|\\b()') + '\:\\b';
};
var keywords = 'ascent azimuth background-attachment background-color background-image background-position ' +
'background-repeat background baseline bbox border-collapse border-color border-spacing border-style border-top ' +
'border-right border-bottom border-left border-top-color border-right-color border-bottom-color border-left-color ' +
'border-top-style border-right-style border-bottom-style border-left-style border-top-width border-right-width ' +
'border-bottom-width border-left-width border-width border bottom cap-height caption-side centerline clear clip color ' +
'content counter-increment counter-reset cue-after cue-before cue cursor definition-src descent direction display ' +
'elevation empty-cells float font-size-adjust font-family font-size font-stretch font-style font-variant font-weight font ' +
'height left letter-spacing line-height list-style-image list-style-position list-style-type list-style margin-top ' +
'margin-right margin-bottom margin-left margin marker-offset marks mathline max-height max-width min-height min-width orphans ' +
'outline-color outline-style outline-width outline overflow padding-top padding-right padding-bottom padding-left padding page ' +
'page-break-after page-break-before page-break-inside pause pause-after pause-before pitch pitch-range play-during position ' +
'quotes right richness size slope src speak-header speak-numeral speak-punctuation speak speech-rate stemh stemv stress ' +
'table-layout text-align top text-decoration text-indent text-shadow text-transform unicode-bidi unicode-range units-per-em ' +
'vertical-align visibility voice-family volume white-space widows width widths word-spacing x-height z-index';
var values = 'above absolute all always aqua armenian attr aural auto avoid baseline behind below bidi-override black blink block blue bold bolder '+
'both bottom braille capitalize caption center center-left center-right circle close-quote code collapse compact condensed '+
'continuous counter counters crop cross crosshair cursive dashed decimal decimal-leading-zero default digits disc dotted double '+
'embed embossed e-resize expanded extra-condensed extra-expanded fantasy far-left far-right fast faster fixed format fuchsia '+
'gray green groove handheld hebrew help hidden hide high higher icon inline-table inline inset inside invert italic '+
'justify landscape large larger left-side left leftwards level lighter lime line-through list-item local loud lower-alpha '+
'lowercase lower-greek lower-latin lower-roman lower low ltr marker maroon medium message-box middle mix move narrower '+
'navy ne-resize no-close-quote none no-open-quote no-repeat normal nowrap n-resize nw-resize oblique olive once open-quote outset '+
'outside overline pointer portrait pre print projection purple red relative repeat repeat-x repeat-y rgb ridge right right-side '+
'rightwards rtl run-in screen scroll semi-condensed semi-expanded separate se-resize show silent silver slower slow '+
'small small-caps small-caption smaller soft solid speech spell-out square s-resize static status-bar sub super sw-resize '+
'table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group teal '+
'text-bottom text-top thick thin top transparent tty tv ultra-condensed ultra-expanded underline upper-alpha uppercase upper-latin '+
'upper-roman url visible wait white wider w-resize x-fast x-high x-large x-loud x-low x-slow x-small x-soft xx-large xx-small yellow';
var fonts = '[mM]onospace [tT]ahoma [vV]erdana [aA]rial [hH]elvetica [sS]ans-serif [sS]erif [cC]ourier mono sans serif';
this.regexList = [
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
{ regex: /\#[a-fA-F0-9]{3,6}/g, css: 'value' }, // html colors
{ regex: /(-?\d+)(\.\d+)?(px|em|pt|\:|\%|)/g, css: 'value' }, // sizes
{ regex: /!important/g, css: 'color3' }, // !important
{ regex: new RegExp(getKeywordsCSS(keywords), 'gm'), css: 'keyword' }, // keywords
{ regex: new RegExp(getValuesCSS(values), 'g'), css: 'value' }, // values
{ regex: new RegExp(this.getKeywords(fonts), 'g'), css: 'color1' } // fonts
];
this.forHtmlScript({
left: /(&lt;|<)\s*style.*?(&gt;|>)/gi,
right: /(&lt;|<)\/\s*style\s*(&gt;|>)/gi
});
};
SyntaxHighlighter.brushes.CSS.prototype = new SyntaxHighlighter.Highlighter();
SyntaxHighlighter.brushes.CSS.aliases = ['css'];

View file

@ -1,49 +0,0 @@
/**
* SyntaxHighlighter
* http://alexgorbatchev.com/
*
* @version
* 2.0.287 (February 06 2009)
*
* @author
* Alex Gorbatchev
*
* @copyright
* Copyright (C) 2004-2009 Alex Gorbatchev.
*
* Licensed under a GNU Lesser General Public License.
* http://creativecommons.org/licenses/LGPL/2.1/
*
* SyntaxHighlighter is donationware. You are allowed to download, modify and distribute
* the source code in accordance with LGPL 2.1 license, however if you want to use
* SyntaxHighlighter on your site or include it in your product, you must donate.
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
*/
SyntaxHighlighter.brushes.Delphi = function()
{
var keywords = 'abs addr and ansichar ansistring array as asm begin boolean byte cardinal ' +
'case char class comp const constructor currency destructor div do double ' +
'downto else end except exports extended false file finalization finally ' +
'for function goto if implementation in inherited int64 initialization ' +
'integer interface is label library longint longword mod nil not object ' +
'of on or packed pansichar pansistring pchar pcurrency pdatetime pextended ' +
'pint64 pointer private procedure program property pshortstring pstring ' +
'pvariant pwidechar pwidestring protected public published raise real real48 ' +
'record repeat set shl shortint shortstring shr single smallint string then ' +
'threadvar to true try type unit until uses val var varirnt while widechar ' +
'widestring with word write writeln xor';
this.regexList = [
{ regex: /\(\*[\s\S]*?\*\)/gm, css: 'comments' }, // multiline comments (* *)
{ regex: /{(?!\$)[\s\S]*?}/gm, css: 'comments' }, // multiline comments { }
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
{ regex: /\{\$[a-zA-Z]+ .+\}/g, css: 'color1' }, // compiler Directives and Region tags
{ regex: /\b[\d\.]+\b/g, css: 'value' }, // numbers 12345
{ regex: /\$[a-zA-Z0-9]+\b/g, css: 'value' }, // numbers $F5D3
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keyword
];
};
SyntaxHighlighter.brushes.Delphi.prototype = new SyntaxHighlighter.Highlighter();
SyntaxHighlighter.brushes.Delphi.aliases = ['delphi', 'pascal'];

View file

@ -1,35 +0,0 @@
/**
* SyntaxHighlighter
* http://alexgorbatchev.com/
*
* @version
* 2.0.287 (February 06 2009)
*
* @author
* Alex Gorbatchev
*
* @copyright
* Copyright (C) 2004-2009 Alex Gorbatchev.
*
* Licensed under a GNU Lesser General Public License.
* http://creativecommons.org/licenses/LGPL/2.1/
*
* SyntaxHighlighter is donationware. You are allowed to download, modify and distribute
* the source code in accordance with LGPL 2.1 license, however if you want to use
* SyntaxHighlighter on your site or include it in your product, you must donate.
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
*/
SyntaxHighlighter.brushes.Diff = function()
{
this.regexList = [
{ regex: /^\+\+\+.*$/gm, css: 'color2' },
{ regex: /^\-\-\-.*$/gm, css: 'color2' },
{ regex: /^\s.*$/gm, css: 'color1' },
{ regex: /^@@.*@@$/gm, css: 'variable' },
{ regex: /^\+[^\+]{1}.*$/gm, css: 'string' },
{ regex: /^\-[^\-]{1}.*$/gm, css: 'comments' }
];
};
SyntaxHighlighter.brushes.Diff.prototype = new SyntaxHighlighter.Highlighter();
SyntaxHighlighter.brushes.Diff.aliases = ['diff', 'patch'];

View file

@ -1,61 +0,0 @@
/**
* SyntaxHighlighter
* http://alexgorbatchev.com/
*
* @version
* 2.0.287 (February 06 2009)
*
* @author
* Alex Gorbatchev
*
* @copyright
* Copyright (C) 2004-2009 Alex Gorbatchev.
*
* Licensed under a GNU Lesser General Public License.
* http://creativecommons.org/licenses/LGPL/2.1/
*
* SyntaxHighlighter is donationware. You are allowed to download, modify and distribute
* the source code in accordance with LGPL 2.1 license, however if you want to use
* SyntaxHighlighter on your site or include it in your product, you must donate.
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
*/
SyntaxHighlighter.brushes.Groovy = function()
{
// Contributed by Andres Almiray
// http://jroller.com/aalmiray/entry/nice_source_code_syntax_highlighter
var keywords = 'as assert break case catch class continue def default do else extends finally ' +
'if in implements import instanceof interface new package property return switch ' +
'throw throws try while public protected private static';
var types = 'void boolean byte char short int long float double';
var constants = 'null';
var methods = 'allProperties count get size '+
'collect each eachProperty eachPropertyName eachWithIndex find findAll ' +
'findIndexOf grep inject max min reverseEach sort ' +
'asImmutable asSynchronized flatten intersect join pop reverse subMap toList ' +
'padRight padLeft contains eachMatch toCharacter toLong toUrl tokenize ' +
'eachFile eachFileRecurse eachB yte eachLine readBytes readLine getText ' +
'splitEachLine withReader append encodeBase64 decodeBase64 filterLine ' +
'transformChar transformLine withOutputStream withPrintWriter withStream ' +
'withStreams withWriter withWriterAppend write writeLine '+
'dump inspect invokeMethod print println step times upto use waitForOrKill '+
'getText';
this.regexList = [
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
{ regex: /""".*"""/g, css: 'string' }, // GStrings
{ regex: new RegExp('\\b([\\d]+(\\.[\\d]+)?|0x[a-f0-9]+)\\b', 'gi'), css: 'value' }, // numbers
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // goovy keyword
{ regex: new RegExp(this.getKeywords(types), 'gm'), css: 'color1' }, // goovy/java type
{ regex: new RegExp(this.getKeywords(constants), 'gm'), css: 'constants' }, // constants
{ regex: new RegExp(this.getKeywords(methods), 'gm'), css: 'functions' } // methods
];
this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
}
SyntaxHighlighter.brushes.Groovy.prototype = new SyntaxHighlighter.Highlighter();
SyntaxHighlighter.brushes.Groovy.aliases = ['groovy'];

View file

@ -1,43 +0,0 @@
/**
* SyntaxHighlighter
* http://alexgorbatchev.com/
*
* @version
* 2.0.287 (February 06 2009)
*
* @author
* Alex Gorbatchev
*
* @copyright
* Copyright (C) 2004-2009 Alex Gorbatchev.
*
* Licensed under a GNU Lesser General Public License.
* http://creativecommons.org/licenses/LGPL/2.1/
*
* SyntaxHighlighter is donationware. You are allowed to download, modify and distribute
* the source code in accordance with LGPL 2.1 license, however if you want to use
* SyntaxHighlighter on your site or include it in your product, you must donate.
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
*/
SyntaxHighlighter.brushes.JScript = function()
{
var keywords = 'abstract boolean break byte case catch char class const continue debugger ' +
'default delete do double else enum export extends false final finally float ' +
'for function goto if implements import in instanceof int interface long native ' +
'new null package private protected public return short static super switch ' +
'synchronized this throw throws transient true try typeof var void volatile while with';
this.regexList = [
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
{ regex: /\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keywords
];
this.forHtmlScript(SyntaxHighlighter.regexLib.scriptScriptTags);
};
SyntaxHighlighter.brushes.JScript.prototype = new SyntaxHighlighter.Highlighter();
SyntaxHighlighter.brushes.JScript.aliases = ['js', 'jscript', 'javascript'];

View file

@ -1,47 +0,0 @@
/**
* SyntaxHighlighter
* http://alexgorbatchev.com/
*
* @version
* 2.0.287 (February 06 2009)
*
* @author
* Alex Gorbatchev
*
* @copyright
* Copyright (C) 2004-2009 Alex Gorbatchev.
*
* Licensed under a GNU Lesser General Public License.
* http://creativecommons.org/licenses/LGPL/2.1/
*
* SyntaxHighlighter is donationware. You are allowed to download, modify and distribute
* the source code in accordance with LGPL 2.1 license, however if you want to use
* SyntaxHighlighter on your site or include it in your product, you must donate.
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
*/
SyntaxHighlighter.brushes.Java = function()
{
var keywords = 'abstract assert boolean break byte case catch char class const ' +
'continue default do double else enum extends ' +
'false final finally float for goto if implements import ' +
'instanceof int interface long native new null ' +
'package private protected public return ' +
'short static strictfp super switch synchronized this throw throws true ' +
'transient try void volatile while';
this.regexList = [
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
{ regex: /\b([\d]+(\.[\d]+)?|0x[a-f0-9]+)\b/gi, css: 'value' }, // numbers
{ regex: /(?!\@interface\b)\@[\$\w]+\b/g, css: 'color1' }, // annotation @anno
{ regex: /\@interface\b/g, css: 'color2' }, // @interface keyword
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // java keyword
];
this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
};
SyntaxHighlighter.brushes.Java.prototype = new SyntaxHighlighter.Highlighter();
SyntaxHighlighter.brushes.Java.aliases = ['java'];

View file

@ -1,83 +0,0 @@
/**
* SyntaxHighlighter
* http://alexgorbatchev.com/
*
* @version
* 2.0.287 (February 06 2009)
*
* @author
* Alex Gorbatchev
*
* @copyright
* Copyright (C) 2004-2009 Alex Gorbatchev.
*
* Licensed under a GNU Lesser General Public License.
* http://creativecommons.org/licenses/LGPL/2.1/
*
* SyntaxHighlighter is donationware. You are allowed to download, modify and distribute
* the source code in accordance with LGPL 2.1 license, however if you want to use
* SyntaxHighlighter on your site or include it in your product, you must donate.
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
*/
SyntaxHighlighter.brushes.Php = function()
{
var funcs = 'abs acos acosh addcslashes addslashes ' +
'array_change_key_case array_chunk array_combine array_count_values array_diff '+
'array_diff_assoc array_diff_key array_diff_uassoc array_diff_ukey array_fill '+
'array_filter array_flip array_intersect array_intersect_assoc array_intersect_key '+
'array_intersect_uassoc array_intersect_ukey array_key_exists array_keys array_map '+
'array_merge array_merge_recursive array_multisort array_pad array_pop array_product '+
'array_push array_rand array_reduce array_reverse array_search array_shift '+
'array_slice array_splice array_sum array_udiff array_udiff_assoc '+
'array_udiff_uassoc array_uintersect array_uintersect_assoc '+
'array_uintersect_uassoc array_unique array_unshift array_values array_walk '+
'array_walk_recursive atan atan2 atanh base64_decode base64_encode base_convert '+
'basename bcadd bccomp bcdiv bcmod bcmul bindec bindtextdomain bzclose bzcompress '+
'bzdecompress bzerrno bzerror bzerrstr bzflush bzopen bzread bzwrite ceil chdir '+
'checkdate checkdnsrr chgrp chmod chop chown chr chroot chunk_split class_exists '+
'closedir closelog copy cos cosh count count_chars date decbin dechex decoct '+
'deg2rad delete ebcdic2ascii echo empty end ereg ereg_replace eregi eregi_replace error_log '+
'error_reporting escapeshellarg escapeshellcmd eval exec exit exp explode extension_loaded '+
'feof fflush fgetc fgetcsv fgets fgetss file_exists file_get_contents file_put_contents '+
'fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype '+
'floatval flock floor flush fmod fnmatch fopen fpassthru fprintf fputcsv fputs fread fscanf '+
'fseek fsockopen fstat ftell ftok getallheaders getcwd getdate getenv gethostbyaddr gethostbyname '+
'gethostbynamel getimagesize getlastmod getmxrr getmygid getmyinode getmypid getmyuid getopt '+
'getprotobyname getprotobynumber getrandmax getrusage getservbyname getservbyport gettext '+
'gettimeofday gettype glob gmdate gmmktime ini_alter ini_get ini_get_all ini_restore ini_set '+
'interface_exists intval ip2long is_a is_array is_bool is_callable is_dir is_double '+
'is_executable is_file is_finite is_float is_infinite is_int is_integer is_link is_long '+
'is_nan is_null is_numeric is_object is_readable is_real is_resource is_scalar is_soap_fault '+
'is_string is_subclass_of is_uploaded_file is_writable is_writeable mkdir mktime nl2br '+
'parse_ini_file parse_str parse_url passthru pathinfo readlink realpath rewind rewinddir rmdir '+
'round str_ireplace str_pad str_repeat str_replace str_rot13 str_shuffle str_split '+
'str_word_count strcasecmp strchr strcmp strcoll strcspn strftime strip_tags stripcslashes '+
'stripos stripslashes stristr strlen strnatcasecmp strnatcmp strncasecmp strncmp strpbrk '+
'strpos strptime strrchr strrev strripos strrpos strspn strstr strtok strtolower strtotime '+
'strtoupper strtr strval substr substr_compare';
var keywords = 'and or xor array as break case ' +
'cfunction class const continue declare default die do else ' +
'elseif empty enddeclare endfor endforeach endif endswitch endwhile ' +
'extends for foreach function include include_once global if ' +
'new old_function return static switch use require require_once ' +
'var while abstract interface public implements extends private protected throw';
var constants = '__FILE__ __LINE__ __METHOD__ __FUNCTION__ __CLASS__';
this.regexList = [
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
{ regex: /\$\w+/g, css: 'variable' }, // variables
{ regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' }, // common functions
{ regex: new RegExp(this.getKeywords(constants), 'gmi'), css: 'constants' }, // constants
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keyword
];
this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags);
};
SyntaxHighlighter.brushes.Php.prototype = new SyntaxHighlighter.Highlighter();
SyntaxHighlighter.brushes.Php.aliases = ['php'];

View file

@ -1,27 +0,0 @@
/**
* SyntaxHighlighter
* http://alexgorbatchev.com/
*
* @version
* 2.0.287 (February 06 2009)
*
* @author
* Alex Gorbatchev
*
* @copyright
* Copyright (C) 2004-2009 Alex Gorbatchev.
*
* Licensed under a GNU Lesser General Public License.
* http://creativecommons.org/licenses/LGPL/2.1/
*
* SyntaxHighlighter is donationware. You are allowed to download, modify and distribute
* the source code in accordance with LGPL 2.1 license, however if you want to use
* SyntaxHighlighter on your site or include it in your product, you must donate.
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
*/
SyntaxHighlighter.brushes.Plain = function()
{
};
SyntaxHighlighter.brushes.Plain.prototype = new SyntaxHighlighter.Highlighter();
SyntaxHighlighter.brushes.Plain.aliases = ['text', 'plain'];

View file

@ -1,48 +0,0 @@
/**
* SyntaxHighlighter
* http://alexgorbatchev.com/
*
* @version
* 2.0.287 (February 06 2009)
*
* @author
* Alex Gorbatchev
*
* @copyright
* Copyright (C) 2004-2009 Alex Gorbatchev.
*
* Licensed under a GNU Lesser General Public License.
* http://creativecommons.org/licenses/LGPL/2.1/
*
* SyntaxHighlighter is donationware. You are allowed to download, modify and distribute
* the source code in accordance with LGPL 2.1 license, however if you want to use
* SyntaxHighlighter on your site or include it in your product, you must donate.
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
*/
SyntaxHighlighter.brushes.Python = function()
{
// Contributed by Gheorghe Milas
var keywords = 'and assert break class continue def del elif else ' +
'except exec finally for from global if import in is ' +
'lambda not or pass print raise return try yield while';
var special = 'None True False self cls class_';
this.regexList = [
{ regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' },
{ regex: /^\s*@\w+/gm, css: 'decorator' },
{ regex: /(['\"]{3})([^\1])*?\1/gm, css: 'comments' },
{ regex: /"(?!")(?:\.|\\\"|[^\""\n])*"/gm, css: 'string' },
{ regex: /'(?!')(?:\.|(\\\')|[^\''\n])*'/gm, css: 'string' },
{ regex: /\+|\-|\*|\/|\%|=|==/gm, css: 'keyword' },
{ regex: /\b\d+\.?\w*/g, css: 'value' },
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' },
{ regex: new RegExp(this.getKeywords(special), 'gm'), css: 'color1' }
];
this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
};
SyntaxHighlighter.brushes.Python.prototype = new SyntaxHighlighter.Highlighter();
SyntaxHighlighter.brushes.Python.aliases = ['py', 'python'];

View file

@ -1,49 +0,0 @@
/**
* SyntaxHighlighter
* http://alexgorbatchev.com/
*
* @version
* 2.0.287 (February 06 2009)
*
* @author
* Alex Gorbatchev
*
* @copyright
* Copyright (C) 2004-2009 Alex Gorbatchev.
*
* Licensed under a GNU Lesser General Public License.
* http://creativecommons.org/licenses/LGPL/2.1/
*
* SyntaxHighlighter is donationware. You are allowed to download, modify and distribute
* the source code in accordance with LGPL 2.1 license, however if you want to use
* SyntaxHighlighter on your site or include it in your product, you must donate.
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
*/
SyntaxHighlighter.brushes.Ruby = function()
{
// Contributed by Erik Peterson.
var keywords = 'alias and BEGIN begin break case class def define_method defined do each else elsif ' +
'END end ensure false for if in module new next nil not or raise redo rescue retry return ' +
'self super then throw true undef unless until when while yield';
var builtins = 'Array Bignum Binding Class Continuation Dir Exception FalseClass File::Stat File Fixnum Fload ' +
'Hash Integer IO MatchData Method Module NilClass Numeric Object Proc Range Regexp String Struct::TMS Symbol ' +
'ThreadGroup Thread Time TrueClass';
this.regexList = [
{ regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, // one line comments
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
{ regex: /\b[A-Z0-9_]+\b/g, css: 'constants' }, // constants
{ regex: /:[a-z][A-Za-z0-9_]*/g, css: 'color2' }, // symbols
{ regex: /(\$|@@|@)\w+/g, css: 'variable bold' }, // $global, @instance, and @@class variables
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
{ regex: new RegExp(this.getKeywords(builtins), 'gm'), css: 'color1' } // builtins
];
this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
};
SyntaxHighlighter.brushes.Ruby.prototype = new SyntaxHighlighter.Highlighter();
SyntaxHighlighter.brushes.Ruby.aliases = ['ruby', 'rails', 'ror'];

View file

@ -1,46 +0,0 @@
/**
* Code Syntax Highlighter.
* Version 1.5.2
* Copyright (C) 2004-2008 Alex Gorbatchev
* http://www.dreamprojections.com/syntaxhighlighter/
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/** Contributed by Yegor Jbanov and David Bernard. */
dp.sh.Brushes.Scala = function()
{
var keywords = 'val sealed case def true trait implicit forSome import match object null finally super ' +
'override try lazy for var catch throw type extends class while with new final yield abstract ' +
'else do if return protected private this package false';
var keyops = '[_:=><%#@]+';
this.regexList = [
{ regex: dp.sh.RegexLib.SingleLineCComments, css: 'comment' }, // one line comments
{ regex: dp.sh.RegexLib.MultiLineCComments, css: 'comment' }, // multiline comments
{ regex: new RegExp("(['\"]{3})([^\\1])*?\\1", 'gm'), css: 'string' }, // multi-line strings
{ regex: new RegExp('"(?!")(?:\\.|\\\\\\"|[^\\""\\n\\r])*"', 'gm'), css: 'string' }, // double-quoted string
{ regex: dp.sh.RegexLib.SingleQuotedString, css: 'string' }, // strings
{ regex: new RegExp('\\b([\\d]+(\\.[\\d]+)?|0x[a-f0-9]+)\\b', 'gi'), css: 'number' }, // numbers
{ regex: new RegExp(this.GetKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
{ regex: new RegExp(keyops, 'gm'), css: 'keyword' } // scala keyword
];
this.CssClass = 'dp-j';
this.Style = '.dp-j .annotation { color: #646464; }' +
'.dp-j .number { color: #C00000; }';
}
dp.sh.Brushes.Scala.prototype = new dp.sh.Highlighter();
dp.sh.Brushes.Scala.Aliases = ['scala'];

View file

@ -1,60 +0,0 @@
/**
* SyntaxHighlighter
* http://alexgorbatchev.com/
*
* @version
* 2.0.287 (February 06 2009)
*
* @author
* Alex Gorbatchev
*
* @copyright
* Copyright (C) 2004-2009 Alex Gorbatchev.
*
* Licensed under a GNU Lesser General Public License.
* http://creativecommons.org/licenses/LGPL/2.1/
*
* SyntaxHighlighter is donationware. You are allowed to download, modify and distribute
* the source code in accordance with LGPL 2.1 license, however if you want to use
* SyntaxHighlighter on your site or include it in your product, you must donate.
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
*/
SyntaxHighlighter.brushes.Sql = function()
{
var funcs = 'abs avg case cast coalesce convert count current_timestamp ' +
'current_user day isnull left lower month nullif replace right ' +
'session_user space substring sum system_user upper user year';
var keywords = 'absolute action add after alter as asc at authorization begin bigint ' +
'binary bit by cascade char character check checkpoint close collate ' +
'column commit committed connect connection constraint contains continue ' +
'create cube current current_date current_time cursor database date ' +
'deallocate dec decimal declare default delete desc distinct double drop ' +
'dynamic else end end-exec escape except exec execute false fetch first ' +
'float for force foreign forward free from full function global goto grant ' +
'group grouping having hour ignore index inner insensitive insert instead ' +
'int integer intersect into is isolation key last level load local max min ' +
'minute modify move name national nchar next no numeric of off on only ' +
'open option order out output partial password precision prepare primary ' +
'prior privileges procedure public read real references relative repeatable ' +
'restrict return returns revoke rollback rollup rows rule schema scroll ' +
'second section select sequence serializable set size smallint static ' +
'statistics table temp temporary then time timestamp to top transaction ' +
'translation trigger true truncate uncommitted union unique update values ' +
'varchar varying view when where with work';
var operators = 'all and any between cross in join like not null or outer some';
this.regexList = [
{ regex: /--(.*)$/gm, css: 'comments' }, // one line and multiline comments
{ regex: SyntaxHighlighter.regexLib.multiLineDoubleQuotedString, css: 'string' }, // double quoted strings
{ regex: SyntaxHighlighter.regexLib.multiLineSingleQuotedString, css: 'string' }, // single quoted strings
{ regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'color2' }, // functions
{ regex: new RegExp(this.getKeywords(operators), 'gmi'), css: 'color1' }, // operators and such
{ regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' } // keyword
];
};
SyntaxHighlighter.brushes.Sql.prototype = new SyntaxHighlighter.Highlighter();
SyntaxHighlighter.brushes.Sql.aliases = ['sql'];

View file

@ -1,50 +0,0 @@
/**
* SyntaxHighlighter
* http://alexgorbatchev.com/
*
* @version
* 2.0.287 (February 06 2009)
*
* @author
* Alex Gorbatchev
*
* @copyright
* Copyright (C) 2004-2009 Alex Gorbatchev.
*
* Licensed under a GNU Lesser General Public License.
* http://creativecommons.org/licenses/LGPL/2.1/
*
* SyntaxHighlighter is donationware. You are allowed to download, modify and distribute
* the source code in accordance with LGPL 2.1 license, however if you want to use
* SyntaxHighlighter on your site or include it in your product, you must donate.
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
*/
SyntaxHighlighter.brushes.Vb = function()
{
var keywords = 'AddHandler AddressOf AndAlso Alias And Ansi As Assembly Auto ' +
'Boolean ByRef Byte ByVal Call Case Catch CBool CByte CChar CDate ' +
'CDec CDbl Char CInt Class CLng CObj Const CShort CSng CStr CType ' +
'Date Decimal Declare Default Delegate Dim DirectCast Do Double Each ' +
'Else ElseIf End Enum Erase Error Event Exit False Finally For Friend ' +
'Function Get GetType GoSub GoTo Handles If Implements Imports In ' +
'Inherits Integer Interface Is Let Lib Like Long Loop Me Mod Module ' +
'MustInherit MustOverride MyBase MyClass Namespace New Next Not Nothing ' +
'NotInheritable NotOverridable Object On Option Optional Or OrElse ' +
'Overloads Overridable Overrides ParamArray Preserve Private Property ' +
'Protected Public RaiseEvent ReadOnly ReDim REM RemoveHandler Resume ' +
'Return Select Set Shadows Shared Short Single Static Step Stop String ' +
'Structure Sub SyncLock Then Throw To True Try TypeOf Unicode Until ' +
'Variant When While With WithEvents WriteOnly Xor';
this.regexList = [
{ regex: /'.*$/gm, css: 'comments' }, // one line comments
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
{ regex: /^\s*#.*$/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // vb keyword
];
this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
};
SyntaxHighlighter.brushes.Vb.prototype = new SyntaxHighlighter.Highlighter();
SyntaxHighlighter.brushes.Vb.aliases = ['vb', 'vbnet'];

View file

@ -1,63 +0,0 @@
/**
* SyntaxHighlighter
* http://alexgorbatchev.com/
*
* @version
* 2.0.287 (February 06 2009)
*
* @author
* Alex Gorbatchev
*
* @copyright
* Copyright (C) 2004-2009 Alex Gorbatchev.
*
* Licensed under a GNU Lesser General Public License.
* http://creativecommons.org/licenses/LGPL/2.1/
*
* SyntaxHighlighter is donationware. You are allowed to download, modify and distribute
* the source code in accordance with LGPL 2.1 license, however if you want to use
* SyntaxHighlighter on your site or include it in your product, you must donate.
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
*/
SyntaxHighlighter.brushes.Xml = function()
{
function process(match, regexInfo)
{
var constructor = SyntaxHighlighter.Match,
code = match[0],
tag = new XRegExp('(&lt;|<)[\\s\\/\\?]*(?<name>[:\\w-\\.]+)', 'xg').exec(code),
result = []
;
if (match.attributes != null)
{
var attributes,
regex = new XRegExp('(?<name> [\\w:\\-\\.]+)' +
'\\s*=\\s*' +
'(?<value> ".*?"|\'.*?\'|\\w+)',
'xg');
while ((attributes = regex.exec(code)) != null)
{
result.push(new constructor(attributes.name, match.index + attributes.index, 'color1'));
result.push(new constructor(attributes.value, match.index + attributes.index + attributes[0].indexOf(attributes.value), 'string'));
}
}
if (tag != null)
result.push(
new constructor(tag.name, match.index + tag[0].indexOf(tag.name), 'keyword')
);
return result;
}
this.regexList = [
{ regex: new XRegExp('(\\&lt;|<)\\!\\[[\\w\\s]*?\\[(.|\\s)*?\\]\\](\\&gt;|>)', 'gm'), css: 'color2' }, // <![ ... [ ... ]]>
{ regex: new XRegExp('(\\&lt;|<)!--\\s*.*?\\s*--(\\&gt;|>)', 'gm'), css: 'comments' }, // <!-- ... -->
{ regex: new XRegExp('(&lt;|<)[\\s\\/\\?]*(\\w+)(?<attributes>.*?)[\\s\\/\\?]*(&gt;|>)', 'sg'), func: process }
];
};
SyntaxHighlighter.brushes.Xml.prototype = new SyntaxHighlighter.Highlighter();
SyntaxHighlighter.brushes.Xml.aliases = ['xml', 'xhtml', 'xslt', 'html', 'xhtml'];

File diff suppressed because one or more lines are too long

View file

@ -1,310 +0,0 @@
.dp-highlighter
{
font-family: "Consolas", "Courier New", "Courier", "mono", "serif";
font-size: 12px;
background-color: #E7E5DC;
width: 99%;
overflow: auto;
padding-top: 1px; /* adds a little border on top when controls are hidden */
}
/* clear styles */
.dp-highlighter ol,
.dp-highlighter ol li,
.dp-highlighter ol li span
{
margin: 0;
padding: 0;
border: none;
}
.dp-highlighter a,
.dp-highlighter a:hover
{
background: none;
border: none;
padding: 0;
margin: 0;
}
.dp-highlighter .bar
{
padding-left: 45px;
}
.dp-highlighter.collapsed .bar,
.dp-highlighter.nogutter .bar
{
padding-left: 0px;
}
.dp-highlighter ol
{
list-style: decimal; /* for ie */
background-color: #fff;
margin: 0px 0px 1px 45px !important; /* 1px bottom margin seems to fix occasional Firefox scrolling */
padding: 0px;
color: #5C5C5C;
}
.dp-highlighter.nogutter ol,
.dp-highlighter.nogutter ol li
{
list-style: none !important;
margin-left: 0px !important;
}
.dp-highlighter ol li,
.dp-highlighter .columns div
{
list-style: decimal; /* better look for others, override cascade from OL */
list-style-position: outside !important;
background-color: #F8F8F8;
color: #5C5C5C;
padding: 0 3px 0 10px !important;
margin: 0 !important;
line-height: 14px;
}
.dp-highlighter.nogutter ol li,
.dp-highlighter.nogutter .columns div
{
border: 0;
}
.dp-highlighter .columns
{
background-color: #F8F8F8;
color: gray;
overflow: hidden;
width: 100%;
}
.dp-highlighter .columns div
{
padding-bottom: 5px;
}
.dp-highlighter ol li.alt
{
background-color: #FFF;
color: inherit;
}
.dp-highlighter ol li span
{
color: black;
background-color: inherit;
}
/* Adjust some properties when collapsed */
.dp-highlighter.collapsed ol
{
margin: 0px;
}
.dp-highlighter.collapsed ol li
{
display: none;
}
/* Additional modifications when in print-view */
.dp-highlighter.printing
{
border: none;
}
.dp-highlighter.printing .tools
{
display: none !important;
}
.dp-highlighter.printing li
{
display: list-item !important;
}
/* Styles for the tools */
.dp-highlighter .tools
{
padding: 3px 8px 3px 10px;
font: 9px Verdana, Geneva, Arial, Helvetica, sans-serif;
color: silver;
background-color: #f8f8f8;
padding-bottom: 10px;
}
.dp-highlighter.nogutter .tools
{
border-left: 0;
}
.dp-highlighter.collapsed .tools
{
border-bottom: 0;
}
.dp-highlighter .tools a
{
font-size: 9px;
color: #a0a0a0;
background-color: inherit;
text-decoration: none;
margin-right: 10px;
}
.dp-highlighter .tools a:hover
{
color: red;
background-color: inherit;
text-decoration: underline;
}
/* About dialog styles */
.dp-about { background-color: #fff; color: #333; margin: 0px; padding: 0px; }
.dp-about table { width: 100%; height: 100%; font-size: 11px; font-family: Tahoma, Verdana, Arial, sans-serif !important; }
.dp-about td { padding: 10px; vertical-align: top; }
.dp-about .copy { border-bottom: 1px solid #ACA899; height: 95%; }
.dp-about .title { color: red; background-color: inherit; font-weight: bold; }
.dp-about .para { margin: 0 0 4px 0; }
.dp-about .footer { background-color: #ECEADB; color: #333; border-top: 1px solid #fff; text-align: right; }
.dp-about .close { font-size: 11px; font-family: Tahoma, Verdana, Arial, sans-serif !important; background-color: #ECEADB; color: #333; width: 60px; height: 22px; }
/* Language specific styles */
.dp-highlighter .comment,
.dp-highlighter .comments { color: #008200; background-color: inherit; }
.dp-highlighter .string { color: #FF00FF; background-color: inherit; }
.dp-highlighter .keyword { color: #0000FF; background-color: inherit; }
.dp-highlighter .preprocessor { color: gray; background-color: inherit; }
.dp-highlighter .func { color: #FF0000; }
.dp-highlighter .vars { color: #008080; }
/* Language specific styles */
.dp-c {}
.dp-c .comment { color: green; }
.dp-c .string { color: blue; }
.dp-c .preprocessor { color: gray; }
.dp-c .keyword { color: blue; }
.dp-c .vars { color: #d00; }
.dp-vb {}
.dp-vb .comment { color: green; }
.dp-vb .string { color: blue; }
.dp-vb .preprocessor { color: gray; }
.dp-vb .keyword { color: blue; }
.dp-sql {}
.dp-sql .comment { color: green; }
.dp-sql .string { color: red; }
.dp-sql .keyword { color: blue; }
.dp-sql .func { color: #ff1493; }
.dp-sql .op { color: #808080; }
.dp-xml {}
.dp-xml .cdata { color: #ff1493; }
.dp-xml .comments { color: green; }
.dp-xml .tag { margin: 0; padding: 0; background: none; font-weight: bold; color: blue; }
.dp-xml .tag-name { color: black; font-weight: bold; }
.dp-xml .attribute { color: red; }
.dp-xml .attribute-value { color: blue; }
.dp-delphi {}
.dp-delphi .comment { color: #008200; font-style: italic; }
.dp-delphi .string { color: blue; }
.dp-delphi .number { color: blue; }
.dp-delphi .directive { color: #008284; }
.dp-delphi .keyword { font-weight: bold; color: navy; }
.dp-delphi .vars { color: #000; }
.dp-py {}
.dp-py .comment { color: green; }
.dp-py .string { color: red; }
.dp-py .docstring { color: green; }
.dp-py .keyword { color: blue; font-weight: bold;}
.dp-py .builtins { color: #ff1493; }
.dp-py .magicmethods { color: #808080; }
.dp-py .exceptions { color: brown; }
.dp-py .types { color: brown; font-style: italic; }
.dp-py .commonlibs { color: #8A2BE2; font-style: italic; }
.dp-rb {}
.dp-rb .comment { color: #c00; }
.dp-rb .string { color: #f0c; }
.dp-rb .symbol { color: #02b902; }
.dp-rb .keyword { color: #069; }
.dp-rb .variable { color: #6cf; }
.dp-css {}
.dp-css .comment { color: green; }
.dp-css .string { color: red; }
.dp-css .value { color: red; }
.dp-css .keyword { color: blue; }
.dp-css .colors { color: darkred; }
.dp-css .vars { color: #d00; }
.dp-j {}
.dp-j .comment { color: rgb(63,127,95); }
.dp-j .string { color: rgb(42,0,255); }
.dp-j .keyword { color: rgb(127,0,85); font-weight: bold }
.dp-j .annotation { color: #646464; }
.dp-j .number { color: #C00000; }
.dp-cpp {}
.dp-cpp .comment { color: #e00; }
.dp-cpp .string { color: red; }
.dp-cpp .preprocessor { color: #CD00CD; font-weight: bold; }
.dp-cpp .keyword { color: #5697D9; font-weight: bold; }
.dp-cpp .datatypes { color: #2E8B57; font-weight: bold; }
.dp-php { color: #800000; }
.dp-php .comment { color: #008000; }
.dp-php .keyword { color: #4B00FB; }
.dp-php .string { color: #FB00FB; }
.dp-php .func { color: #FF0000; }
.dp-php .vars { color: #008080; }
.dp-php .zbxe_funcs { color: #FF6820; }
.dp-php .zbxe_class { color: #FF6820; font-weight: bold; }
.dp-abap { color: #800000; }
.dp-abap .comment { color: #008000; }
.dp-abap .keyword { color: #4B00FB; }
.dp-abap .string { color: #FB00FB; }
.dp-abap .datatypes { color: #2E8B57; font-weight: bold; }
pre[name='code'] {
max-height: 300px;
font-size: 1.1em;
border: #666666 dotted 1px;
border-left: #22AAEE solid 5px;
padding: 5px;
overflow: auto;
}
.ch_infobox {
padding: 5px 0;
width: 99%;
background-color: #F8F8F8;
border-top: 1px solid #E7E5DC;
}
.ch_infobox .file_path {
font-size: 0.9em;
font-weight: bold;
margin-left: 10px;
}
.ch_infobox .description {
color: #AAA;
font-size: 0.9em;
margin-left: 10px;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 786 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 615 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 603 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 309 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 731 B

View file

@ -1,344 +0,0 @@
/**
* SyntaxHighlighter
* http://alexgorbatchev.com/
*
* @version
* 2.0.287 (February 06 2009)
*
* @author
* Alex Gorbatchev
*
* @copyright
* Copyright (C) 2004-2009 Alex Gorbatchev.
*
* Licensed under a GNU Lesser General Public License.
* http://creativecommons.org/licenses/LGPL/2.1/
*
* SyntaxHighlighter is donationware. You are allowed to download, modify and distribute
* the source code in accordance with LGPL 2.1 license, however if you want to use
* SyntaxHighlighter on your site or include it in your product, you must donate.
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
*/
.syntaxhighlighter,
.syntaxhighlighter div,
.syntaxhighlighter code,
.syntaxhighlighter span,
.syntaxhighlighter .bold,
.syntaxhighlighter .italic,
.syntaxhighlighter .line,
.syntaxhighlighter .line .number,
.syntaxhighlighter .line .content,
.syntaxhighlighter .line .content .block,
.syntaxhighlighter .line .content .spaces,
.syntaxhighlighter .bar,
.syntaxhighlighter .ruler,
.syntaxhighlighter .toolbar,
.syntaxhighlighter .toolbar a,
.syntaxhighlighter .toolbar a:hover
{
margin: 0;
padding: 0;
border: 0;
outline: 0;
background: none;
text-align: left;
float: none;
vertical-align: baseline;
position: static;
left: auto;
top: auto;
right: auto;
bottom: auto;
height: auto;
width: auto;
line-height: normal;
font-family: "Consolas", "Monaco", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace;
font-weight: normal;
font-style: normal;
font-size: 100%;
}
.syntaxhighlighter
{
width: 100%;
margin: 1em 0 1em 0;
padding: 1px; /* adds a little border on top and bottom */
position: relative;
}
.syntaxhighlighter .bold {
font-weight: bold;
}
.syntaxhighlighter .italic {
font-style: italic;
}
.syntaxhighlighter .line .number
{
float: left;
width: 3em;
padding-right: .3em;
text-align: right;
display: block;
}
/* Disable numbers when no gutter option is set */
.syntaxhighlighter.nogutter .line .number
{
display: none;
}
.syntaxhighlighter .line .content
{
margin-left: 3.3em;
padding-left: .5em;
display: block;
}
.syntaxhighlighter .line .content .block
{
display: block;
padding-left: 1.5em;
text-indent: -1.5em;
}
.syntaxhighlighter .line .content .spaces
{
display: none;
}
/* Disable border and margin on the lines when no gutter option is set */
.syntaxhighlighter.nogutter .line .content
{
margin-left: 0;
border-left: none;
}
.syntaxhighlighter .bar
{
}
.syntaxhighlighter.collapsed .bar
{
}
.syntaxhighlighter.nogutter .ruler
{
margin-left: 0;
padding-left: 0;
}
.syntaxhighlighter .ruler
{
padding: 0 0 .5em .5em;
margin-left: 3.3em;
overflow: hidden;
}
/* Adjust some properties when collapsed */
.syntaxhighlighter.collapsed .lines,
.syntaxhighlighter.collapsed .ruler
{
display: none;
}
/* Styles for the toolbar */
.syntaxhighlighter .toolbar
{
position: absolute;
right: 0px;
top: 0px;
font-size: 1px;
padding: 8px 8px 8px 0; /* in px because images don't scale with ems */
}
.syntaxhighlighter.collapsed .toolbar
{
font-size: 80%;
padding: .2em 0 .5em .5em;
position: static;
}
.syntaxhighlighter .toolbar a.item,
.syntaxhighlighter .toolbar .item
{
display: block;
float: left;
margin-left: 8px;
background-repeat: no-repeat;
overflow: hidden;
text-indent: -5000px;
}
.syntaxhighlighter.collapsed .toolbar .item
{
display: none;
}
.syntaxhighlighter.collapsed .toolbar .item.expandSource
{
background-image: url(magnifier.png);
display: inline;
text-indent: 0;
width: auto;
float: none;
height: 16px;
padding-left: 20px;
}
.syntaxhighlighter .toolbar .item.viewSource
{
background-image: url(page_white_code.png);
}
.syntaxhighlighter .toolbar .item.printSource
{
background-image: url(printer.png);
}
.syntaxhighlighter .toolbar .item.copyToClipboard
{
text-indent: 0;
background: none;
overflow: visible;
}
.syntaxhighlighter .toolbar .item.about
{
background-image: url(help.png);
}
/**
* Print view.
* Colors are based on the default theme without background.
*/
.syntaxhighlighter.printing,
.syntaxhighlighter.printing .line.alt1 .content,
.syntaxhighlighter.printing .line.alt2 .content,
.syntaxhighlighter.printing .line.highlighted .number,
.syntaxhighlighter.printing .line.highlighted.alt1 .content,
.syntaxhighlighter.printing .line.highlighted.alt2 .content,
.syntaxhighlighter.printing .line .content .block
{
background: none;
}
/* Gutter line numbers */
.syntaxhighlighter.printing .line .number
{
color: #bbb;
}
/* Add border to the lines */
.syntaxhighlighter.printing .line .content
{
color: #000;
}
/* Toolbar when visible */
.syntaxhighlighter.printing .toolbar,
.syntaxhighlighter.printing .ruler
{
display: none;
}
.syntaxhighlighter.printing a
{
text-decoration: none;
}
.syntaxhighlighter.printing .plain,
.syntaxhighlighter.printing .plain a
{
color: #000;
}
.syntaxhighlighter.printing .comments,
.syntaxhighlighter.printing .comments a
{
color: #008200;
}
.syntaxhighlighter.printing .string,
.syntaxhighlighter.printing .string a
{
color: blue;
}
.syntaxhighlighter.printing .keyword
{
color: #069;
font-weight: bold;
}
.syntaxhighlighter.printing .preprocessor
{
color: gray;
}
.syntaxhighlighter.printing .variable
{
color: #a70;
}
.syntaxhighlighter.printing .value
{
color: #090;
}
.syntaxhighlighter.printing .functions
{
color: #ff1493;
}
.syntaxhighlighter.printing .constants
{
color: #0066CC;
}
.syntaxhighlighter.printing .script
{
font-weight: bold;
}
.syntaxhighlighter.printing .color1,
.syntaxhighlighter.printing .color1 a
{
color: #808080;
}
.syntaxhighlighter.printing .color2,
.syntaxhighlighter.printing .color2 a
{
color: #ff1493;
}
.syntaxhighlighter.printing .color3,
.syntaxhighlighter.printing .color3 a
{
color: red;
}
.ch_infobox {
padding: 5px 0;
width: 99%;
background-color: #F8F8F8;
border-top: 1px solid #E7E5DC;
}
.ch_infobox .file_path {
font-size: 0.9em;
font-weight: bold;
margin-left: 10px;
}
.ch_infobox .description {
color: #AAA;
font-size: 0.9em;
margin-left: 10px;
}

View file

@ -1,183 +0,0 @@
/**
* SyntaxHighlighter
* http://alexgorbatchev.com/
*
* @version
* 2.0.287 (February 06 2009)
*
* @author
* Alex Gorbatchev
*
* @copyright
* Copyright (C) 2004-2009 Alex Gorbatchev.
*
* Licensed under a GNU Lesser General Public License.
* http://creativecommons.org/licenses/LGPL/2.1/
*
* SyntaxHighlighter is donationware. You are allowed to download, modify and distribute
* the source code in accordance with LGPL 2.1 license, however if you want to use
* SyntaxHighlighter on your site or include it in your product, you must donate.
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
*/
/************************************
* Default Syntax Highlighter theme.
*
* Interface elements.
************************************/
.syntaxhighlighter
{
background-color: #E7E5DC;
}
/* Highlighed line number */
.syntaxhighlighter .line.highlighted .number
{
background-color: #6CE26C;
color: black;
}
/* Highlighed line */
.syntaxhighlighter .line.highlighted.alt1 .content,
.syntaxhighlighter .line.highlighted.alt2 .content
{
background-color: #6CE26C;
}
/* Gutter line numbers */
.syntaxhighlighter .line .number
{
color: #5C5C5C;
}
/* Add border to the lines */
.syntaxhighlighter .line .content
{
border-left: 3px solid #6CE26C;
color: #000;
}
.syntaxhighlighter.printing .line .content
{
border: 0;
}
/* First line */
.syntaxhighlighter .line.alt1 .content
{
background-color: #fff;
}
/* Second line */
.syntaxhighlighter .line.alt2 .content
{
background-color: #F8F8F8;
}
.syntaxhighlighter .line .content .block
{
background: url(wrapping.png) 0 1.1em no-repeat;
}
.syntaxhighlighter .ruler
{
color: silver;
background-color: #F8F8F8;
border-left: 3px solid #6CE26C;
}
.syntaxhighlighter.nogutter .ruler
{
border: 0;
}
.syntaxhighlighter .toolbar
{
background-color: #F8F8F8;
border: #E7E5DC solid 1px;
}
.syntaxhighlighter .toolbar a
{
color: #a0a0a0;
}
.syntaxhighlighter .toolbar a:hover
{
color: red;
}
/************************************
* Actual syntax highlighter colors.
************************************/
.syntaxhighlighter .plain,
.syntaxhighlighter .plain a
{
color: #000;
}
.syntaxhighlighter .comments,
.syntaxhighlighter .comments a
{
color: #008200;
}
.syntaxhighlighter .string,
.syntaxhighlighter .string a
{
color: blue;
}
.syntaxhighlighter .keyword
{
color: #069;
font-weight: bold;
}
.syntaxhighlighter .preprocessor
{
color: gray;
}
.syntaxhighlighter .variable
{
color: #a70;
}
.syntaxhighlighter .value
{
color: #090;
}
.syntaxhighlighter .functions
{
color: #ff1493;
}
.syntaxhighlighter .constants
{
color: #0066CC;
}
.syntaxhighlighter .script
{
background-color: yellow !important;
}
.syntaxhighlighter .color1,
.syntaxhighlighter .color1 a
{
color: #808080;
}
.syntaxhighlighter .color2,
.syntaxhighlighter .color2 a
{
color: #ff1493;
}
.syntaxhighlighter .color3,
.syntaxhighlighter .color3 a
{
color: red;
}

View file

@ -1,184 +0,0 @@
/**
* SyntaxHighlighter
* http://alexgorbatchev.com/
*
* @version
* 2.0.287 (February 06 2009)
*
* @author
* Alex Gorbatchev
*
* @copyright
* Copyright (C) 2004-2009 Alex Gorbatchev.
*
* Licensed under a GNU Lesser General Public License.
* http://creativecommons.org/licenses/LGPL/2.1/
*
* SyntaxHighlighter is donationware. You are allowed to download, modify and distribute
* the source code in accordance with LGPL 2.1 license, however if you want to use
* SyntaxHighlighter on your site or include it in your product, you must donate.
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
*/
/**
* Django SyntaxHighlighter theme
*/
/************************************
* Interface elements.
************************************/
.syntaxhighlighter
{
background-color: #0B2F20;
}
/* Highlighed line number */
.syntaxhighlighter .line.highlighted .number
{
background-color: #336442;
color: #fff;
}
/* Highlighed line */
.syntaxhighlighter .line.highlighted .content
{
background-color: #336442 !important;
}
/* Gutter line numbers */
.syntaxhighlighter .line .number
{
color: #497958;
}
/* Add border to the lines */
.syntaxhighlighter .line .content
{
border-left: 3px solid #41A83E;
color: #B9BDB6;
}
.syntaxhighlighter.printing .line .content
{
border: 0;
}
/* First line */
.syntaxhighlighter .line.alt1 .content
{
}
/* Second line */
.syntaxhighlighter .line.alt2 .content
{
background-color: #0a2b1d;
}
.syntaxhighlighter .line .content .block
{
background: url(wrapping.png) 0 1.1em no-repeat;
}
.syntaxhighlighter .ruler
{
color: #C4B14A;
background-color: #245032;
border-left: 3px solid #41A83E;
}
.syntaxhighlighter.nogutter .ruler
{
border: 0;
}
.syntaxhighlighter .toolbar
{
background-color: #245032;
border: #0B2F20 solid 1px;
}
.syntaxhighlighter .toolbar a
{
color: #C4B14A;
}
.syntaxhighlighter .toolbar a:hover
{
color: #FFE862;
}
/************************************
* Actual syntax highlighter colors.
************************************/
.syntaxhighlighter .plain,
.syntaxhighlighter .plain a
{
color: #F8F8F8;
}
.syntaxhighlighter .comments,
.syntaxhighlighter .comments a
{
color: #336442;
font-style: italic;
}
.syntaxhighlighter .string,
.syntaxhighlighter .string a
{
color: #9DF39F;
}
.syntaxhighlighter .keyword
{
color: #96DD3B;
font-weight: bold !important;
}
.syntaxhighlighter .preprocessor
{
color: #91BB9E;
}
.syntaxhighlighter .variable
{
color: #FFAA3E;
}
.syntaxhighlighter .value
{
color: #F7E741;
}
.syntaxhighlighter .functions
{
color: #FFAA3E;
}
.syntaxhighlighter .constants
{
color: #E0E8FF;
}
.syntaxhighlighter .script
{
background-color: #497958 !important;
}
.syntaxhighlighter .color1,
.syntaxhighlighter .color1 a
{
color: #EB939A;
}
.syntaxhighlighter .color2,
.syntaxhighlighter .color2 a
{
color: #91BB9E;
}
.syntaxhighlighter .color3,
.syntaxhighlighter .color3 a
{
color: #EDEF7D;
}

View file

@ -1,183 +0,0 @@
/**
* SyntaxHighlighter
* http://alexgorbatchev.com/
*
* @version
* 2.0.287 (February 06 2009)
*
* @author
* Alex Gorbatchev
*
* @copyright
* Copyright (C) 2004-2009 Alex Gorbatchev.
*
* Licensed under a GNU Lesser General Public License.
* http://creativecommons.org/licenses/LGPL/2.1/
*
* SyntaxHighlighter is donationware. You are allowed to download, modify and distribute
* the source code in accordance with LGPL 2.1 license, however if you want to use
* SyntaxHighlighter on your site or include it in your product, you must donate.
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
*/
/**
* Emacs SyntaxHighlighter theme based on theme by Joshua Emmons
* http://www.skia.net/
*/
/************************************
* Interface elements.
************************************/
.syntaxhighlighter
{
background-color: #000000;
}
/* Highlighed line number */
.syntaxhighlighter .line.highlighted .number
{
background-color: #435A5F;
color: #fff;
}
/* Highlighed line */
.syntaxhighlighter .line.highlighted .content
{
background-color: #435A5F !important;
}
/* Gutter line numbers */
.syntaxhighlighter .line .number
{
color: #D3D3D3;
}
/* Add border to the lines */
.syntaxhighlighter .line .content
{
border-left: 3px solid #990000;
color: #B9BDB6;
}
.syntaxhighlighter.printing .line .content
{
border: 0;
}
/* First line */
.syntaxhighlighter .line.alt1 .content
{
}
/* Second line */
.syntaxhighlighter .line.alt2 .content
{
background-color: #0f0f0f;
}
.syntaxhighlighter .line .content .block
{
background: url(wrapping.png) 0 1.1em no-repeat;
}
.syntaxhighlighter .ruler
{
color: silver;
background-color: #000000;
border-left: 3px solid #990000;
}
.syntaxhighlighter.nogutter .ruler
{
border: 0;
}
.syntaxhighlighter .toolbar
{
background-color: #000000;
border: #000000 solid 1px;
}
.syntaxhighlighter .toolbar a
{
color: #646763;
}
.syntaxhighlighter .toolbar a:hover
{
color: #9CCFF4;
}
/************************************
* Actual syntax highlighter colors.
************************************/
.syntaxhighlighter .plain,
.syntaxhighlighter .plain a
{
color: #D3D3D3;
}
.syntaxhighlighter .comments,
.syntaxhighlighter .comments a
{
color: #FF7D27;
}
.syntaxhighlighter .string,
.syntaxhighlighter .string a
{
color: #FF9E7B;
}
.syntaxhighlighter .keyword
{
color: #00FFFF;
}
.syntaxhighlighter .preprocessor
{
color: #AEC4DE;
}
.syntaxhighlighter .variable
{
color: #FFAA3E;
}
.syntaxhighlighter .value
{
color: #090;
}
.syntaxhighlighter .functions
{
color: #81CEF9;
}
.syntaxhighlighter .constants
{
color: #FF9E7B;
}
.syntaxhighlighter .script
{
background-color: #990000 !important;
}
.syntaxhighlighter .color1,
.syntaxhighlighter .color1 a
{
color: #EBDB8D;
}
.syntaxhighlighter .color2,
.syntaxhighlighter .color2 a
{
color: #FF7D27;
}
.syntaxhighlighter .color3,
.syntaxhighlighter .color3 a
{
color: #AEC4DE;
}

View file

@ -1,184 +0,0 @@
/**
* SyntaxHighlighter
* http://alexgorbatchev.com/
*
* @version
* 2.0.287 (February 06 2009)
*
* @author
* Alex Gorbatchev
*
* @copyright
* Copyright (C) 2004-2009 Alex Gorbatchev.
*
* Licensed under a GNU Lesser General Public License.
* http://creativecommons.org/licenses/LGPL/2.1/
*
* SyntaxHighlighter is donationware. You are allowed to download, modify and distribute
* the source code in accordance with LGPL 2.1 license, however if you want to use
* SyntaxHighlighter on your site or include it in your product, you must donate.
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
*/
/**
* Fade to Grey SyntaxHighlighter theme based on theme by Brasten Sager
* http://www.ibrasten.com/
*/
/************************************
* Interface elements.
************************************/
.syntaxhighlighter
{
background-color: #121212;
}
/* Highlighed line number */
.syntaxhighlighter .line.highlighted .number
{
background-color: #3A3A00;
color: #fff;
}
/* Highlighed line */
.syntaxhighlighter .line.highlighted .content
{
background-color: #3A3A00 !important;
}
/* Gutter line numbers */
.syntaxhighlighter .line .number
{
color: #C3C3C3;
}
/* Add border to the lines */
.syntaxhighlighter .line .content
{
border-left: 3px solid #3185B9;
color: #B9BDB6;
}
.syntaxhighlighter.printing .line .content
{
border: 0;
}
/* First line */
.syntaxhighlighter .line.alt1 .content
{
}
/* Second line */
.syntaxhighlighter .line.alt2 .content
{
background-color: #000000;
}
.syntaxhighlighter .line .content .block
{
background: url(wrapping.png) 0 1.1em no-repeat;
}
.syntaxhighlighter .ruler
{
color: silver;
border-left: 3px solid #3185B9;
}
.syntaxhighlighter.nogutter .ruler
{
border: 0;
}
.syntaxhighlighter .toolbar
{
background-color: #000000;
border: #000000 solid 1px;
}
.syntaxhighlighter .toolbar a
{
color: #808080;
}
.syntaxhighlighter .toolbar a:hover
{
color: #96DAFF;
}
/************************************
* Actual syntax highlighter colors.
************************************/
.syntaxhighlighter .plain,
.syntaxhighlighter .plain a
{
color: #FFFFFF;
}
.syntaxhighlighter .comments,
.syntaxhighlighter .comments a
{
color: #696854;
}
.syntaxhighlighter .string,
.syntaxhighlighter .string a
{
color: #E3E658;
}
.syntaxhighlighter .keyword
{
color: #D01D33;
}
.syntaxhighlighter .preprocessor
{
color: #435A5F;
}
.syntaxhighlighter .variable
{
color: #898989;
}
.syntaxhighlighter .value
{
color: #090;
}
.syntaxhighlighter .functions
{
color: #AAAAAA;
font-weight: bold !important;
}
.syntaxhighlighter .constants
{
color: #96DAFF;
}
.syntaxhighlighter .script
{
background-color: #C3C3C3 !important;
color: #000;
}
.syntaxhighlighter .color1,
.syntaxhighlighter .color1 a
{
color: #FFC074;
}
.syntaxhighlighter .color2,
.syntaxhighlighter .color2 a
{
color: #4A8CDB;
}
.syntaxhighlighter .color3,
.syntaxhighlighter .color3 a
{
color: #96DAFF;
}

View file

@ -1,183 +0,0 @@
/**
* SyntaxHighlighter
* http://alexgorbatchev.com/
*
* @version
* 2.0.287 (February 06 2009)
*
* @author
* Alex Gorbatchev
*
* @copyright
* Copyright (C) 2004-2009 Alex Gorbatchev.
*
* Licensed under a GNU Lesser General Public License.
* http://creativecommons.org/licenses/LGPL/2.1/
*
* SyntaxHighlighter is donationware. You are allowed to download, modify and distribute
* the source code in accordance with LGPL 2.1 license, however if you want to use
* SyntaxHighlighter on your site or include it in your product, you must donate.
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
*/
/**
* Midnight SyntaxHighlighter theme based on theme by J.D. Myers
* http://webdesign.lsnjd.com/
*/
/************************************
* Interface elements.
************************************/
.syntaxhighlighter
{
background-color: #0F192A;
}
/* Highlighed line number */
.syntaxhighlighter .line.highlighted .number
{
background-color: #253E5A;
color: #fff;
}
/* Highlighed line */
.syntaxhighlighter .line.highlighted .content
{
background-color: #253E5A !important;
}
/* Gutter line numbers */
.syntaxhighlighter .line .number
{
color: #38566F;
}
/* Add border to the lines */
.syntaxhighlighter .line .content
{
border-left: 3px solid #435A5F;
color: #B9BDB6;
}
.syntaxhighlighter.printing .line .content
{
border: 0;
}
/* First line */
.syntaxhighlighter .line.alt1 .content
{
background-color: #0F192A;
}
/* Second line */
.syntaxhighlighter .line.alt2 .content
{
background-color: #0F192A;
}
.syntaxhighlighter .line .content .block
{
background: url(wrapping.png) 0 1.1em no-repeat;
}
.syntaxhighlighter .ruler
{
color: #38566F;
background-color: #0F192A;
border-left: 3px solid #435A5F;
}
.syntaxhighlighter.nogutter .ruler
{
border: 0;
}
.syntaxhighlighter .toolbar
{
background-color: #0F192A;
}
.syntaxhighlighter .toolbar a
{
color: #38566F;
}
.syntaxhighlighter .toolbar a:hover
{
color: #8AA6C1;
}
/************************************
* Actual syntax highlighter colors.
************************************/
.syntaxhighlighter .plain,
.syntaxhighlighter .plain a
{
color: #D1EDFF;
}
.syntaxhighlighter .comments,
.syntaxhighlighter .comments a
{
color: #428BDD;
}
.syntaxhighlighter .string,
.syntaxhighlighter .string a
{
color: #1DC116;
}
.syntaxhighlighter .keyword
{
color: #B43D3D;
}
.syntaxhighlighter .preprocessor
{
color: #8AA6C1;
}
.syntaxhighlighter .variable
{
color: #FFAA3E;
}
.syntaxhighlighter .value
{
color: #F7E741;
}
.syntaxhighlighter .functions
{
color: #FFAA3E;
}
.syntaxhighlighter .constants
{
color: #E0E8FF;
}
.syntaxhighlighter .script
{
background-color: #404040 !important;
}
.syntaxhighlighter .color1,
.syntaxhighlighter .color1 a
{
color: #F8BB00;
}
.syntaxhighlighter .color2,
.syntaxhighlighter .color2 a
{
color: #FFFFFF;
}
.syntaxhighlighter .color3,
.syntaxhighlighter .color3 a
{
color: #FFAA3E;
}

View file

@ -1,183 +0,0 @@
/**
* SyntaxHighlighter
* http://alexgorbatchev.com/
*
* @version
* 2.0.287 (February 06 2009)
*
* @author
* Alex Gorbatchev
*
* @copyright
* Copyright (C) 2004-2009 Alex Gorbatchev.
*
* Licensed under a GNU Lesser General Public License.
* http://creativecommons.org/licenses/LGPL/2.1/
*
* SyntaxHighlighter is donationware. You are allowed to download, modify and distribute
* the source code in accordance with LGPL 2.1 license, however if you want to use
* SyntaxHighlighter on your site or include it in your product, you must donate.
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
*/
/**
* RDark SyntaxHighlighter theme based on theme by Radu Dineiu
* http://www.vim.org/scripts/script.php?script_id=1732
*/
/************************************
* Interface elements.
************************************/
.syntaxhighlighter
{
background-color: #1B2426;
}
/* Highlighed line number */
.syntaxhighlighter .line.highlighted .number
{
background-color: #435A5F;
color: #fff;
}
/* Highlighed line */
.syntaxhighlighter .line.highlighted .content
{
background-color: #435A5F !important;
}
/* Gutter line numbers */
.syntaxhighlighter .line .number
{
color: #B9BDB6;
}
/* Add border to the lines */
.syntaxhighlighter .line .content
{
border-left: 3px solid #435A5F;
color: #B9BDB6;
}
.syntaxhighlighter.printing .line .content
{
border: 0;
}
/* First line */
.syntaxhighlighter .line.alt1 .content
{
background-color: #1B2426;
}
/* Second line */
.syntaxhighlighter .line.alt2 .content
{
background-color: #1B2426;
}
.syntaxhighlighter .line .content .block
{
background: url(wrapping.png) 0 1.1em no-repeat;
}
.syntaxhighlighter .ruler
{
color: silver;
background-color: #1B2426;
border-left: 3px solid #435A5F;
}
.syntaxhighlighter.nogutter .ruler
{
border: 0;
}
.syntaxhighlighter .toolbar
{
background-color: #1B2426;
}
.syntaxhighlighter .toolbar a
{
color: #646763;
}
.syntaxhighlighter .toolbar a:hover
{
color: #E0E8FF;
}
/************************************
* Actual syntax highlighter colors.
************************************/
.syntaxhighlighter .plain,
.syntaxhighlighter .plain a
{
color: #B9BDB6;
}
.syntaxhighlighter .comments,
.syntaxhighlighter .comments a
{
color: #878A85;
}
.syntaxhighlighter .string,
.syntaxhighlighter .string a
{
color: #5CE638;
}
.syntaxhighlighter .keyword
{
color: #5BA1CF;
}
.syntaxhighlighter .preprocessor
{
color: #435A5F;
}
.syntaxhighlighter .variable
{
color: #FFAA3E;
}
.syntaxhighlighter .value
{
color: #090;
}
.syntaxhighlighter .functions
{
color: #FFAA3E;
}
.syntaxhighlighter .constants
{
color: #E0E8FF;
}
.syntaxhighlighter .script
{
background-color: #435A5F !important;
}
.syntaxhighlighter .color1,
.syntaxhighlighter .color1 a
{
color: #E0E8FF;
}
.syntaxhighlighter .color2,
.syntaxhighlighter .color2 a
{
color: #FFFFFF;
}
.syntaxhighlighter .color3,
.syntaxhighlighter .color3 a
{
color: #FFAA3E;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 631 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 86 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 79 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 89 B

View file

@ -1,24 +0,0 @@
@charset "utf-8";
@import url(../../../../../modules/admin/tpl/css/admin.css);
#folder_area { clear:left; }
.border_type { float:left; margin-right:1em; width:120px; }
img.color_icon { width:14px; height:14px; border:1px solid #FFFFFF; }
img.color_icon_over { width:14px; height:14px; border:1px solid #000000; cursor:pointer; }
img.border_preview_color { width:30px; height:16px; border:1px solid #EEEEEE; background-color:#88EE22; }
img.border_preview_none_color { width:30px; height:12px; border:1px solid #EEEEEE; background-color:#FFFFFF; }
img.bg_preview_color { width:30px; height:16px; border:1px solid #000000; background-color:#FFFFFF; }
.editor_color_box { clear:both; height:65px; width:400px; border:1px solid #DDDDDD; padding:2px; }
.editor_link_type { float:left; margin-right:.5em; vertical-align:middle; white-space:nowrap; }
.editor_color_input { clear:both; }
li { list-style:none; float:left; margin:5px 10px 0px 0;}

View file

@ -1,77 +0,0 @@
<!--%import("popup.js")-->
<!--%import("popup.css")-->
<!--%import("../lang")-->
<div id="popHeader" class="wide">
<h3 class="xeAdmin">{$component_info->title} ver. {$component_info->version}</h3>
</div>
<form action="./" method="get" onSubmit="return false" id="fo">
<div id="popBody">
<table cellspacing="0" class="rowTable">
<col width="150" />
<col />
<tr>
<th scope="row"><div>{$lang->code_type}</div></th>
<td>
<select id="code_type" name="code_type">
<option value="Php">PHP</option>
<option value="Xml">HTML/XML</option>
<option value="Css">CSS</option>
<option value="JScript">Javascript</option>
<option value="Plain">Plain Text</option>
<option value="Diff">Diff</option>
<option value="Cpp">C++</option>
<option value="CSharp">C#</option>
<option value="Vb">Visual Basic</option>
<option value="Java">Java</option>
<option value="Delphi">Delphi</option>
<option value="Python">Python</option>
<option value="Ruby">Ruby</option>
<option value="Sql">SQL</option>
<option value="Abap">Abap</option>
<option value="Bash">Bash/shell</option>
<option value="Groovy">Groovy</option>
</select>
</td>
</tr>
<tr>
<th scope="row"><div>{$lang->file_path}</div></th>
<td>
<input type="text" id="file_path" name="file_path" class="inputTypeText w400" />
</td>
</tr>
<tr>
<th scope="row"><div>{$lang->description}</div></th>
<td>
<input type="text" id="description" name="description" class="inputTypeText w400" />
</td>
</tr>
<tr>
<th scope="row"><div>{$lang->first_line}</div></th>
<td>
<input type="text" id="first_line" name="first_line" value="1" class="inputTypeText w40" />
<input type="checkbox" id="nogutter" name="nogutter" value="Y" /> <label for="nogutter">{$lang->hidden_linenumber}</label>
</td>
</tr>
<tr>
<th scope="row"><div>{$lang->used_collapse}</div></th>
<td>
<input type="checkbox" id="collapse" name="collapse" value="Y" />
</td>
</tr>
<tr>
<th scope="row"><div>{$lang->hidden_controls}</div></th>
<td>
<input type="checkbox" id="nocontrols" name="nocontrols" value="Y" />
</td>
</tr>
</table>
</div>
<div id="popFooter">
<a href="#" onclick="insertCode()" class="button black strong"><span>{$lang->cmd_insert}</span></a>
<a href="#" onclick="winopen('./?module=editor&amp;act=dispEditorComponentInfo&amp;component_name={$component_info->component_name}','ComponentInfo','left=10,top=10,width=10,height=10,resizable=no,scrollbars=no,toolbars=no');return false;" class="button"><span>{$lang->about_component}</span></a>
</div>
</form>

View file

@ -1,78 +0,0 @@
/**
* popup으로 열렸을 경우 부모창의 위지윅에디터에 select된 멀티미디어 컴포넌트 코드를 체크하여
* 있으면 가져와서 원하는 곳에 삽입
**/
var selected_node = null;
function getCode() {
// 부모 위지윅 에디터에서 선택된 영역이 있는지 확인
if(typeof(opener)=='undefined') return;
var node = opener.editorPrevNode;
if(!node || node.nodeName != 'DIV') return;
selected_node = node;
var code_type = node.getAttribute('code_type');
var file_path = node.getAttribute('file_path');
var description = node.getAttribute('description');
var first_line = node.getAttribute('first_line');
var collapse = node.getAttribute('collapse');
var nogutter = node.getAttribute('nogutter');
var nocontrols = node.getAttribute('nocontrols');
jQuery('#code_type').val(code_type);
jQuery('#file_path').val(file_path);
jQuery('#description').val(description);
if(!first_line) jQuery('#first_line').val('1');
else jQuery('#first_line').val(first_line);
if(collapse == 'Y' || collapse == 'true') jQuery('#collapse').attr('checked', true);
if(nogutter == 'Y' || nogutter == 'true') jQuery('#nogutter').attr('checked', true);
if(nocontrols == 'Y' || nocontrols == 'true') jQuery('#nocontrols').attr('checked', true);
}
/* 추가 버튼 클릭시 부모창의 위지윅 에디터에 인용구 추가 */
function insertCode() {
if(typeof(opener)=='undefined') return;
var code_type = jQuery('#code_type').val();
var file_path = jQuery('#file_path').val();
var description = jQuery('#description').val();
var first_line = jQuery('#first_line').val();
var collapse = jQuery('#collapse').attr('checked');
var nogutter = jQuery('#nogutter').attr('checked');
var nocontrols = jQuery('#nocontrols').attr('checked');
var content = '';
if(selected_node) content = jQuery(selected_node).html();
else content = opener.editorGetSelectedHtml(opener.editorPrevSrl);
var style = "border: #666666 1px dotted; border-left: #22aaee 5px solid; padding: 5px; background: #FAFAFA url('./modules/editor/components/code_highlighter/code.png') no-repeat top right;";
if(!content) content = "&nbsp;";
var text = '<div editor_component="code_highlighter" code_type="'+code_type+'" file_path="'+file_path+'" description="'+description+'" first_line="'+first_line+'" collapse="'+collapse+'" nogutter="'+nogutter+'" nocontrols="'+nocontrols+'" style="'+style+'">'+content+'</div>'+"<br />";
if(selected_node) {
selected_node.setAttribute('code_type', code_type);
selected_node.setAttribute('file_path', file_path);
selected_node.setAttribute('description', description);
selected_node.setAttribute('first_line', first_line);
selected_node.setAttribute("collapse", collapse);
selected_node.setAttribute('nogutter', nogutter);
selected_node.setAttribute('nocontrols', nocontrols);
selected_node.setAttribute('style', style);
opener.editorFocus(opener.editorPrevSrl);
} else {
opener.editorFocus(opener.editorPrevSrl);
var iframe_obj = opener.editorGetIFrame(opener.editorPrevSrl)
opener.editorReplaceHTML(iframe_obj, text);
opener.editorFocus(opener.editorPrevSrl);
}
window.close();
}
jQuery(getCode);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Some files were not shown because too many files have changed in this diff Show more