Discuz Thai

 ลืมรหัสผ่าน
 สมัครสมาชิก

ข้อตกลงการใช้งานกระดานข่าวดิสคัสไทย DiscuzThai Agreement (English Version) ประกาศดิสคัสไทย - ทำเนียบดิสคัสภาษาไทย

Discuz! X3.5 Thai R20231001 Rev.8 (NEW) [วิดีโอช่วยสอน] อัปเกรด Discuz! X3.4 เป็น X3.5 Discord ของ Discuz! Thai Community อย่างเป็นทางการ

Discuz! X3.4 Thai R20220811 (REV.75) สิ้นสุดการสนับสนุน Discuz! X3.4 ภาษาไทยตั้งแต่วันนี้เป็นต้นไป (ขอแนะนำให้อัปเกรดเป็น X3.5 แทน)

ค้นหา
แท็กยอดนิยม: ดิสคัสภาษาไทย Discuz Thai
ดู: 13270|ตอบกลับ: 14

CodeSyntaxHighlighter?For Discuz 6.0.0

[คัดลอกลิงก์]
acaz โพสต์ 2008-2-22 18:41:19 |โหมดอ่าน
Installation Instructions?

Step 1:

1.1 แก้ไขปละเพิ่มภาษาไทยที่ใช้งาน
เปิดไฟลล์ \templates\default\templates.lang.php
?แนะนำ?ถ้าคุณมีภาษาที่เฉพาะ?แนะนำให้ค้นหาเฉพาะคำนำหน้าเท่านั้น?
ค้นหา
  1.         'post_discuzcode_input_free' => 'กรุณาใส่ข้อความฟรี',
  2.         'post_discuzcode_input_hide' => 'กรุณาใส่ข้อความที่ต้องการซ่อน',
คัดลอกไปที่คลิปบอร์ด
เพิ่มโค๊ดนี้ด้านล่าง
  1.         'post_discuzcode_input_csharp' => 'นำเข้าโค๊ดภาษา C',
  2.         'post_discuzcode_input_css' => 'นำเข้าโค๊ดภาษา CSS',
  3.         'post_discuzcode_input_cpp' => 'นำเข้าโค๊ดภาษา C++',
  4.         'post_discuzcode_input_delphi' => 'นำเข้าโค๊ดภาษา Delphi',
  5.         'post_discuzcode_input_java' => 'นำเข้าโค๊ดภาษา Java',
  6.         'post_discuzcode_input_javascript' => 'นำเข้าโค๊ดภาษา JavaScript',
  7.         'post_discuzcode_input_php' => 'นำเข้าโค๊ดภาษา PHP',
  8.         'post_discuzcode_input_python' => 'นำเข้าโค๊ดภาษา Python',
  9.         'post_discuzcode_input_ruby' => 'นำเข้าโค๊ดภาษา Ruby',
  10.         'post_discuzcode_input_sql' => 'นำเข้าโค๊ดภาษา SQL',
  11.         'post_discuzcode_input_vb' => 'นำเข้าโค๊ดภาษา Visual Basic',
  12.         'post_discuzcode_input_xml' => 'นำเข้าโค๊ดภาษา XML',
  13.         'post_discuzcode_input_html' => 'นำเข้าโค๊ดภาษา Html',
  14.         'post_code_tip' => 'Note: คลิ๊ก [ที่นี่] เพื่อดูรายละเอียดทั่วไปรวมทั้งทดสอบและแก้ไขโค๊ดนี้ หรือสั่งพิมพ์!',
คัดลอกไปที่คลิปบอร์ด
1.2 เพิ่มโค๊ดสำหรับนำเลือกใช้งาน
เปิดไฟลล์\templates\default\discuzcode.htm
ค้นหา
  1. function tpl_codedisp($discuzcodes, $code) {
  2. }-->
  3. <!--{block return}--><div class="blockcode"><span class="headactions" onclick="copycode($('code$discuzcodes[codecount]'));">{lang discuzcode_copyclipboard}</span><h5>{lang discuzcode_code}:</h5><code id="code$discuzcodes[codecount]">$code</code></div><!--{/block}-->
  4. <!--{eval return $return;}-->
  5. <!--{eval
  6. }
คัดลอกไปที่คลิปบอร์ด
เพิ่มโค๊ดนี้ด้านล่าง
  1. function tpl_codecsh($discuzcodes, $codeclass, $codename, $code) {
  2. }-->
  3. <!--{block return}-->
  4. <div class="blockcode"><h5>The $codename code:</h5><div class="dp-msgborder" id="code$discuzcodes[codecount]" title="Note: คลิ๊ก [ที่นี่] เพื่อดูรายละเอียดทั่วไปรวมทั้งทดสอบและแก้ไขโค๊ดนี้ หรือสั่งพิมพ์!"><pre name="code" class="$codeclass">$code</pre></div></div>
  5. <!--{/block}-->
  6. <!--{eval return $return;}-->
  7. <!--{eval
  8. }
คัดลอกไปที่คลิปบอร์ด
1.3 เพิ่มปุ่มนำเข้าโค๊ด

1.3.1 เปิดไฟลล์ \templates\default\post_editor.htm
ค้นหา
  1. <script type="text/javascript">
  2. lang['post_discuzcode_code'] = '{lang post_discuzcode_input_code}';
  3. lang['post_discuzcode_quote'] = '{lang post_discuzcode_input_quote}';
  4. lang['post_discuzcode_free'] = '{lang post_discuzcode_input_free}';
  5. lang['post_discuzcode_hide'] = '{lang post_discuzcode_input_hide}';
คัดลอกไปที่คลิปบอร์ด
เพิ่มโค๊ดนี้ด้านล่าง
  1. lang['post_discuzcode_csharp'] = '{lang post_discuzcode_input_csharp}';
  2. lang['post_discuzcode_css'] = '{lang post_discuzcode_input_css}';
  3. lang['post_discuzcode_cpp'] = '{lang post_discuzcode_input_cpp}';
  4. lang['post_discuzcode_delphi'] = '{lang post_discuzcode_input_delphi}';
  5. lang['post_discuzcode_java'] = '{lang post_discuzcode_input_java}';
  6. lang['post_discuzcode_javascript'] = '{lang post_discuzcode_input_javascript}';
  7. lang['post_discuzcode_php'] = '{lang post_discuzcode_input_php}';
  8. lang['post_discuzcode_python'] = '{lang post_discuzcode_input_python}';
  9. lang['post_discuzcode_ruby'] = '{lang post_discuzcode_input_ruby}';
  10. lang['post_discuzcode_sql'] = '{lang post_discuzcode_input_sql}';
  11. lang['post_discuzcode_vb'] = '{lang post_discuzcode_input_vb}';
  12. lang['post_discuzcode_xml'] = '{lang post_discuzcode_input_xml}';
  13. lang['post_discuzcode_html'] = '{lang post_discuzcode_input_html}';
คัดลอกไปที่คลิปบอร์ด
1.3.2 ค้นหา
  1. <!--{if $forum['allowbbcode'] && $allowcusbbcode}-->
  2.                                                 <!--{eval $cusnum=0;}-->
  3.                                                 <!--{loop $_DCACHE['bbcodes_display'] $tag $bbcode}-->
  4.                                                 <td><a id="{$editorid}_cmd_custom{$bbcode[params]}_$tag"><img src="images/common/$bbcode[icon]" title="$bbcode[explanation]" alt="$tag" /></a></td><!--{if in_array($cusnum++, array(5, 25))}--></tr></table><table summary="Editor ToolBar" cellpadding="0" cellspacing="0" id="{$editorid}_morebuttons{if $cusnum == 6}1{else}2{/if}" {if !$advanceeditor}style="display: none"{/if}><tr><!--{/if}-->
  5.                                                 <!--{/loop}-->
  6.                                         <!--{/if}-->
  7.                                         </tr>
คัดลอกไปที่คลิปบอร์ด
เพิ่มโค๊ดนี้ด้านล่าง
  1. <!--Code Syntax Highlighter Star BY [url]www.ppps.cn[/url]-->
  2.                     <tr>
  3.                                                 <td><a id="{$editorid}_cmd_html"><img src="plugins/CSH/Button/bb_HTML.gif" title="{lang post_discuzcode_input_html}" alt="{lang post_discuzcode_input_html}" /></a></td>
  4.                                                 <td><a id="{$editorid}_cmd_xml"><img src="plugins/CSH/Button/bb_XML.gif" title="{lang post_discuzcode_input_xml}" alt="{lang post_discuzcode_input_xml}" /></a></td>
  5.                                                 <td><a id="{$editorid}_cmd_css"><img src="plugins/CSH/Button/bb_CSS.gif" title="{lang post_discuzcode_input_css}" alt="{lang post_discuzcode_input_css}" /></a></td>
  6.                                                 <td><a id="{$editorid}_cmd_javascript"><img src="plugins/CSH/Button/bb_JS.gif" title="{lang post_discuzcode_input_javascript}" alt="{lang post_discuzcode_input_javascript}" /></a></td>
  7.                                                 <td><a id="{$editorid}_cmd_php"><img src="plugins/CSH/Button/bb_PHP.gif" title="{lang post_discuzcode_input_php}" alt="{lang post_discuzcode_input_php}" /></a></td>
  8.                                                 <td><a id="{$editorid}_cmd_sql"><img src="plugins/CSH/Button/bb_SQL.gif" title="{lang post_discuzcode_input_sql}" alt="{lang post_discuzcode_input_sql}" /></a></td>
  9.                                                 <td><a id="{$editorid}_cmd_csharp"><img src="plugins/CSH/Button/bb_Csharp.gif" title="{lang post_discuzcode_input_csharp}" alt="{lang post_discuzcode_input_csharp}" /></a></td>
  10.                                                 <td><a id="{$editorid}_cmd_cpp"><img src="plugins/CSH/Button/bb_Cpp.gif" title="{lang post_discuzcode_input_cpp}" alt="{lang post_discuzcode_input_cpp}" /></a></td>
  11.                                                 <td><a id="{$editorid}_cmd_delphi"><img src="plugins/CSH/Button/bb_Delphi.gif" title="{lang post_discuzcode_input_delphi}" alt="{lang post_discuzcode_input_delphi}" /></a></td>
  12.                                                 <td><a id="{$editorid}_cmd_java"><img src="plugins/CSH/Button/bb_Java.gif" title="{lang post_discuzcode_input_java}" alt="{lang post_discuzcode_input_java}" /></a></td>
  13.                                                 <td><a id="{$editorid}_cmd_python"><img src="plugins/CSH/Button/bb_Python.gif" title="{lang post_discuzcode_input_python}" alt="{lang post_discuzcode_input_python}" /></a></td>
  14.                                                 <td><a id="{$editorid}_cmd_ruby"><img src="plugins/CSH/Button/bb_Ruby.gif" title="{lang post_discuzcode_input_ruby}" alt="{lang post_discuzcode_input_ruby}" /></a></td>
  15.                                                 <td><a id="{$editorid}_cmd_vb"><img src="plugins/CSH/Button/bb_VB.gif" title="{lang post_discuzcode_input_vb}" alt="{lang post_discuzcode_input_vb}" /></a></td>
  16.                     </tr>
  17.                     <!--Code Syntax Highlighter End BY [url]www.ppps.cn[/url]-->
คัดลอกไปที่คลิปบอร์ด
Step 2

2.1 เปิดไฟลล์ \include\javascript\editor.js

2.1.1 ค้นหา
  1. insertText(text, strlen(opentag), strlen(closetag), in_array(tagname, ['code', 'quote', 'free', 'hide']) ? true : false);
คัดลอกไปที่คลิปบอร์ด
เปลี่ยนเป็น
  1. insertText(text, strlen(opentag), strlen(closetag), in_array(tagname, ['code', 'quote', 'free', 'hide', 'html', 'xml', 'css', 'javascript', 'php', 'sql', 'csharp', 'cpp', 'delphi', 'java', 'python', 'ruby', 'vb']) ? true : false);
คัดลอกไปที่คลิปบอร์ด
2.1.2 ค้นหา
  1. if(in_array(cmd, ['quote', 'code', 'free', 'hide'])) {
คัดลอกไปที่คลิปบอร์ด
เปลี่ยนเป็น
  1. if(in_array(cmd, ['quote', 'code', 'free', 'hide', 'html', 'xml', 'css', 'javascript', 'php', 'sql', 'csharp', 'cpp', 'delphi', 'java', 'python', 'ruby', 'vb'])) {
คัดลอกไปที่คลิปบอร์ด
2.2 เปิดไฟลล์ discuzcode.func.php

2.2.1 ค้นหา
  1. function codedisp($code) {
  2.         global $discuzcodes;
  3.         $discuzcodes['pcodecount']++;
  4.         $code = htmlspecialchars(str_replace('\"', '"', preg_replace("/^[\n\r]*(.+?)[\n\r]*$/is", "\\1", $code)));
  5.         $discuzcodes['codehtml'][$discuzcodes['pcodecount']] = tpl_codedisp($discuzcodes, $code);
  6.         $discuzcodes['codecount']++;
  7.         return "[\tDISCUZ_CODE_$discuzcodes[pcodecount]\t]";
  8. }
คัดลอกไปที่คลิปบอร์ด
เพิ่มโค๊ดนี้ด้านบน
  1. //Code Syntax Highlighter Star BY [url]www.ppps.cn[/url]
  2. function syntaxhighlighter($code,$codeclass) {
  3.         global $discuzcodes;
  4.         $discuzcodes['pcodecount']++;
  5.         $codeclass = $codeclass == 'csharp' ? 'c-sharp' : $codeclass;
  6.         $codename = $codeclass == 'code' ? '' : $codeclass;
  7.         $code = htmlspecialchars(str_replace('\"', '"', preg_replace("/^[\n\r]*(.+?)[\n\r]*$/is", "\\1", $code)));
  8.         $discuzcodes['codehtml'][$discuzcodes['pcodecount']] =  tpl_codecsh($discuzcodes,$codeclass, $codename, $code);
  9.         $discuzcodes['codecount']++;
  10.         return "[\tDISCUZ_CODE_$discuzcodes[pcodecount]\t]";
  11. }
คัดลอกไปที่คลิปบอร์ด
2.2.2 ค้นหา
  1. if($parsetype != 1 && !$bbcodeoff && $allowbbcode) {
  2.                 $message = preg_replace("/\s*\[code\](.+?)\[\/code\]\s*/ies", "codedisp('\\1')", $message);
  3.         }
คัดลอกไปที่คลิปบอร์ด
เปลี่ยนเป็น
  1. //Code Syntax Highlighter Star BY [url]www.ppps.cn[/url]
  2.         if($parsetype != 1 && !$bbcodeoff && $allowbbcode) {
  3.                 $message = preg_replace("/\s*\[code\](.+?)\[\/code\]\s*/ies", "syntaxhighlighter('\\1','code')", $message);
  4.         }

  5.         if($parsetype != 1 && !$bbcodeoff && $allowbbcode) {
  6.                 $message = preg_replace("/\s*\[csharp\](.+?)\[\/csharp\]\s*/ies", "syntaxhighlighter('\\1','csharp')", $message);
  7.         }
  8.         if($parsetype != 1 && !$bbcodeoff && $allowbbcode) {
  9.                 $message = preg_replace("/\s*\[css\](.+?)\[\/css\]\s*/ies", "syntaxhighlighter('\\1','css')", $message);
  10.         }
  11.         if($parsetype != 1 && !$bbcodeoff && $allowbbcode) {
  12.                 $message = preg_replace("/\s*\[cpp\](.+?)\[\/cpp\]\s*/ies", "syntaxhighlighter('\\1','cpp')", $message);
  13.         }
  14.         if($parsetype != 1 && !$bbcodeoff && $allowbbcode) {
  15.                 $message = preg_replace("/\s*\[delphi\](.+?)\[\/delphi\]\s*/ies", "syntaxhighlighter('\\1','delphi')", $message);
  16.         }
  17.         if($parsetype != 1 && !$bbcodeoff && $allowbbcode) {
  18.                 $message = preg_replace("/\s*\[java\](.+?)\[\/java\]\s*/ies", "syntaxhighlighter('\\1','java')", $message);
  19.         }
  20.         if($parsetype != 1 && !$bbcodeoff && $allowbbcode) {
  21.                 $message = preg_replace("/\s*\[javascript\](.+?)\[\/javascript\]\s*/ies", "syntaxhighlighter('\\1','javascript')", $message);
  22.         }
  23.         if($parsetype != 1 && !$bbcodeoff && $allowbbcode) {
  24.                 $message = preg_replace("/\s*\[php\](.+?)\[\/php\]\s*/ies", "syntaxhighlighter('\\1','php')", $message);
  25.         }
  26.         if($parsetype != 1 && !$bbcodeoff && $allowbbcode) {
  27.                 $message = preg_replace("/\s*\[python\](.+?)\[\/python\]\s*/ies", "syntaxhighlighter('\\1','python')", $message);
  28.         }
  29.         if($parsetype != 1 && !$bbcodeoff && $allowbbcode) {
  30.                 $message = preg_replace("/\s*\[ruby\](.+?)\[\/ruby\]\s*/ies", "syntaxhighlighter('\\1','ruby')", $message);
  31.         }
  32.         if($parsetype != 1 && !$bbcodeoff && $allowbbcode) {
  33.                 $message = preg_replace("/\s*\[sql\](.+?)\[\/sql\]\s*/ies", "syntaxhighlighter('\\1','sql')", $message);
  34.         }
  35.         if($parsetype != 1 && !$bbcodeoff && $allowbbcode) {
  36.                 $message = preg_replace("/\s*\[vb\](.+?)\[\/vb\]\s*/ies", "syntaxhighlighter('\\1','vb')", $message);
  37.         }
  38.         if($parsetype != 1 && !$bbcodeoff && $allowbbcode) {
  39.                 $message = preg_replace("/\s*\[html\](.+?)\[\/html\]\s*/ies", "syntaxhighlighter('\\1','html')", $message);
  40.         }
  41.         if($parsetype != 1 && !$bbcodeoff && $allowbbcode) {
  42.                 $message = preg_replace("/\s*\[xml\](.+?)\[\/xml\]\s*/ies", "syntaxhighlighter('\\1','xml')", $message);
  43.         }
  44. //Code Syntax Highlighter Star BY [url]www.ppps.cn[/url]
คัดลอกไปที่คลิปบอร์ด
2.3 JS&CSS

2.3.1 เปิดไฟลล์ \templates\default\footer.htm

ค้นหา
  1. </body></html>
คัดลอกไปที่คลิปบอร์ด
เพิ่มโค๊ดนี้ด้านบน
  1. <script class="javascript" src="plugins/CSH/Scripts/shCore.js"></script>
  2. <script class="javascript" src="plugins/CSH/Scripts/shBrushCode.js"></script>
  3. <script class="javascript" src="plugins/CSH/Scripts/shBrushCSharp.js"></script>
  4. <script class="javascript" src="plugins/CSH/Scripts/shBrushPhp.js"></script>
  5. <script class="javascript" src="plugins/CSH/Scripts/shBrushJScript.js"></script>
  6. <script class="javascript" src="plugins/CSH/Scripts/shBrushJava.js"></script>
  7. <script class="javascript" src="plugins/CSH/Scripts/shBrushVb.js"></script>
  8. <script class="javascript" src="plugins/CSH/Scripts/shBrushSql.js"></script>
  9. <script class="javascript" src="plugins/CSH/Scripts/shBrushXml.js"></script>
  10. <script class="javascript" src="plugins/CSH/Scripts/shBrushDelphi.js"></script>
  11. <script class="javascript" src="plugins/CSH/Scripts/shBrushPython.js"></script>
  12. <script class="javascript" src="plugins/CSH/Scripts/shBrushRuby.js"></script>
  13. <script class="javascript" src="plugins/CSH/Scripts/shBrushCss.js"></script>
  14. <script class="javascript" src="plugins/CSH/Scripts/shBrushCpp.js"></script>
  15. <script class="javascript">
  16. dp.SyntaxHighlighter.ClipboardSwf = 'plugins/CSH/Scripts/clipboard.swf';
  17. dp.SyntaxHighlighter.HighlightAll('code');
  18. </script>
คัดลอกไปที่คลิปบอร์ด
2.3.2 เปิดไฟลล์ \templates\default\css.htm

เพิ่มโค๊ดนี้ด้านล่างสุด
  1. /*Coloring code*/
  2. .dp-highlighter{font-family:"consolas","courier new",courier,mono,serif; font-size:12px; background-color:#f1f8fe; width:99%; overflow:auto; margin:0; padding-top:1px;}
  3. .dp-highlighter ol, .dp-highlighter ol li, .dp-highlighter ol li span{margin:0; padding:0; border:none;}
  4. .dp-highlighter a, .dp-highlighter a:hover{background:none; border:none; padding:0; margin:0;}
  5. .dp-highlighter .bar{padding-left:45px;}
  6. .dp-highlighter.collapsed .bar, .dp-highlighter.nogutter .bar{padding-left:0px;}
  7. .dp-highlighter ol{list-style:decimal; background-color:#fff; margin:0px 0px 1px 45px !important; padding:0px; color:#5C5C5C;}
  8. .dp-highlighter.nogutter ol, .dp-highlighter.nogutter ol li{list-style:none !important; margin-left:0px !important;}
  9. .dp-highlighter ol li, .dp-highlighter .columns div{list-style:decimal-leading-zero;
  10. list-style-position:outside !important; border-left:3px solid #CAD9EA; background-color:#F8F8F8; color:#5C5C5C; padding:0 3px 0 10px !important; margin:0 !important; line-height:16px;}
  11. .dp-highlighter.nogutter ol li, .dp-highlighter.nogutter .columns div{border:0;}
  12. .dp-highlighter .columns{background-color:#F8F8F8; color:gray; overflow:hidden; width:100%;}
  13. .dp-highlighter .columns div{padding-bottom:5px;}
  14. .dp-highlighter ol li.alt{background-color:#FFF; color:inherit;}
  15. .dp-highlighter ol li span{color:black; background-color:inherit;}
  16. .dp-highlighter.collapsed ol{margin:0px;}
  17. .dp-highlighter.collapsed ol li{display:none;}
  18. .dp-highlighter.printing{border:none;}
  19. .dp-highlighter.printing .tools{display:none !important;}
  20. .dp-highlighter.printing li{display:list-item !important;}
  21. .dp-highlighter .tools{padding:3px 8px 3px 10px; font:9px Verdana,Geneva,Arial,Helvetica,sans-serif; color:silver; background-color:#f8f8f8; padding-bottom:10px; border-left:3px solid #CAD9EA;}
  22. .dp-highlighter.nogutter .tools{border-left:0;}
  23. .dp-highlighter.collapsed .tools{border-bottom:0;}
  24. .dp-highlighter .tools a{font-size:9px; color:#a0a0a0; background-color:inherit; text-decoration:none; margin-right:10px;}
  25. .dp-highlighter .tools a:hover{color:red; background-color:inherit; text-decoration:underline;}
  26. .dp-about{background-color:#fff; color:#333; margin:0px; padding:0px;}
  27. .dp-about table{width:100%; height:100%; font-size:11px; font-family:Tahoma,Verdana,Arial,sans-serif !important;}
  28. .dp-about td{padding:10px; vertical-align:top;}
  29. .dp-about .copy{border-bottom:1px solid #ACA899; height:95%;}
  30. .dp-about .title{color:red; background-color:inherit; font-weight:bold;}
  31. .dp-about .para{margin:0 0 4px 0;}
  32. .dp-about .footer{background-color:#ECEADB; color:#333; border-top:1px solid #fff; text-align:right;}
  33. .dp-about .close{font-size:11px; font-family:Tahoma,Verdana,Arial,sans-serif !important; background-color:#ECEADB; color:#333; width:60px; height:22px;}
  34. .dp-highlighter .comment,.dp-highlighter .comments{color:#008200; background-color:inherit;}
  35. .dp-highlighter .string{color:blue; background-color:inherit;}
  36. .dp-highlighter .keyword{color:#069; font-weight:bold; background-color:inherit;}
  37. .dp-highlighter .preprocessor{color:gray; background-color:inherit;}
คัดลอกไปที่คลิปบอร์ด
สุดท้าย : อัพโหลดโฟเดอร์ CSH ไปวางไว้ที่โฟเดอร์ plugins

ท้ายสุด : อัพเดทแคชและใช้งานครับ

ขออภัย! โพสต์นี้มีไฟล์แนบหรือรูปภาพที่ไม่ได้รับอนุญาตให้คุณเข้าถึง

คุณจำเป็นต้อง ลงชื่อเข้าใช้ เพื่อดาวน์โหลดหรือดูไฟล์แนบนี้ คุณยังไม่มีบัญชีใช่ไหม? สมัครสมาชิก

x

คะแนน

จำนวนผู้เข้าร่วม 1จิตพิศัย +10 Money +10 ย่อ เหตุผล
buachompoox + 10 + 10 ขอบคุณครับ

ดูบันทึกคะแนน

mastergtx โพสต์ 2008-2-22 18:59:29
~[48]~ เยี่ยมจริงๆ ครับ ขอบคุณมากมายที่แบ่งปัน
powermacc โพสต์ 2008-2-22 21:29:59
งงจังมันคืออะไรเนี่ย
DarkEagle โพสต์ 2008-2-22 22:15:48
ต้นฉบับโพสโดย powermacc เมื่อ 2008-2-22 21:29
งงจังมันคืออะไรเนี่ย

มันคือตัวแยกโค้ดสี เพื่อให้ดูง่ายไงครับ แต่อันนี้ จะแยกสีได้หลายภาษาเลย ตามที่เค้าบอก ว่ามีภาษาของโปรแกรมอะไรบ้าง เพื่อที่จะทำให้เข้าใจในการอ่านมากขึ้นจ้า
buachompoox โพสต์ 2008-2-23 00:42:49
โอวมานยอดมาก ทดสอบแล้วใช้รวมกับ php code ที่ก่อนหน้านี้แสดงผลได้สมบูรณ งับ











LIVEDEMO : http://buachompoox.powermacc.com/thread-160-1-1.html

สำหรับคนที่จะลองเทสนะครับ

[ แก้ไขล่าสุด buachompoox เมื่อ 2008-2-23 01:19 ]

ขออภัย! โพสต์นี้มีไฟล์แนบหรือรูปภาพที่ไม่ได้รับอนุญาตให้คุณเข้าถึง

คุณจำเป็นต้อง ลงชื่อเข้าใช้ เพื่อดาวน์โหลดหรือดูไฟล์แนบนี้ คุณยังไม่มีบัญชีใช่ไหม? สมัครสมาชิก

x
kunimi โพสต์ 2008-2-23 13:04:36
แก้โค๊ด เยอะจริงๆเลยครับ  ตาลายแทน อิอิ
yardsoul โพสต์ 2008-2-23 18:02:52
สุดยอดมากครับชอบสุดๆแต่ไม่มีเว็ปเกี่ยวกับโค้ดให้ใช้แฮะไม่รู้จะทำไปทำไม~(22)~
buachompoox โพสต์ 2008-3-24 21:26:24
สำหรับคนที่ใช้งาน ปลั้กอินตัวนี้แนะนำให้ปิดระบบคำค้น(TAG) เพราะเวลาข้อความด้านในโค้ดไปตรงกับ คำค้น(TAG)เข้ามาจะบัคเป็นโค้ด <span> ครับ แจ้งมาเพื่อทราบสำหรับผู้ที่จะใช้งานจ้า
nathawat โพสต์ 2008-4-30 18:06:16
จะเอาลองไปทำดูนะครับ
nathawat โพสต์ 2008-5-2 03:09:21
จะลองเอาไปทำดูนะครับ
ขออภัย! คุณไม่ได้รับสิทธิ์ในการดำเนินการในส่วนนี้ กรุณาเลือกอย่างใดอย่างหนึ่ง ลงชื่อเข้าใช้ | สมัครสมาชิก

รายละเอียดเครดิต

รายชื่อผู้กระทำผิด|Archiver|ดิสคัส ไทย Follow us: Become a fan on facebook. Follow us on Twitter.

GMT+7, 2024-5-1 08:32

Powered by Discuz! X3.4, Rev.66

Copyright © 2001-2021 Tencent Cloud. Licensed

ตอบกระทู้ ขึ้นไปด้านบน ไปที่หน้ารายการกระทู้