code_highlighter 에디터 컴포넌트 수정

- HTML모드 전환시 개행이 두배로 늘어나던 문제 수정
- 언어선택에서 HTML을 최상단으로 이동
- PHP/CSS 구문 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3337 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
bnu 2007-12-14 02:41:39 +00:00
parent d17132422e
commit 96408798bc
5 changed files with 91 additions and 84 deletions

View file

@ -49,7 +49,7 @@ class code_highlighter extends EditorHandler {
if($option_nocontrols == 'Y' && $option_collapse !== 'Y') $code_type = $code_type.':nocontrols';
$body = $xml_obj->body;
$body = preg_replace('@<br\\s*/?>@Ui' , "\r\n", $body);
$body = preg_replace('@(<br\\s*/?>)(\n)?@i' , "\n", $body);
$body = strip_tags($body);
if(!$GLOBALS['_called_code_highlighter_']) {