Skip to content

Commit

Permalink
Merge pull request #2 from YJSoft/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
YJSoft committed Oct 22, 2014
2 parents 49e04d6 + 4c37593 commit 34a2613
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
language: php
php:
- 5.2
- 5.3
- 5.4
- 5.5
Expand Down
14 changes: 7 additions & 7 deletions info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
<title xml:lang="ko">Syntax Highlighter</title>
<title xml:lang="en">Syntax Highlighter</title>
<description xml:lang="ko">코드를 보기 좋게 출력합니다.</description>
<version>1.4</version>
<date>2014-10-20</date>
<version>1.1</version>
<date>2014-10-22</date>
<license>MIT, GNU LGPL</license>
<link>http://xmz.kr/</link>

<author link="http://yjsoft.pe.kr/" email_address="yjsoft@yjsoft.pe.kr">
<name xml:lang="ko">YJSoft</name>
<name xml:lang="jp">YJSoft</name>
<name xml:lang="en">YJSoft</name>
</author>
<author link="http://yjsoft.pe.kr/" email_address="yjsoft@yjsoft.pe.kr">
<name xml:lang="ko">YJSoft</name>
<name xml:lang="jp">YJSoft</name>
<name xml:lang="en">YJSoft</name>
</author>

<author link="http://xemagazine.com/" email_address="bnufactory@gmail.com">
<name xml:lang="ko">BNU</name>
Expand Down
9 changes: 5 additions & 4 deletions syntaxhighlighter.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,9 @@ function transHTML($xml_obj)
if($option_highlight)
{
$option_highlight = preg_replace_callback("/([0-9]{1,})[-]([0-9]{1,})/",
function ($matches) {
$start = (int) $matches[1];
create_function(
'$matches',
'$start = (int) $matches[1];
$end = (int) $matches[2];
debugPrint($start . "~" . $end);
Expand All @@ -95,8 +96,8 @@ function ($matches) {
$lines[] = $i;
}
return implode(",", $lines);
},$option_highlight);
return implode(",", $lines);'
),$option_highlight);

$option[] = 'highlight:['.$option_highlight.']';
}
Expand Down

0 comments on commit 34a2613

Please sign in to comment.