ThaiTux.info - syntax highlight https://www.thaitux.info/taxonomy/term/186 python: ทำ syntax hightlight https://www.thaitux.info/node/188 <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even"><p>ทดลองทำ syntax highlight โดยลอกจาก <a href="http://drupal.org/node/65961">โมดูล GeSHiFilter</a> ของ <a href="http://drupal.org">drupal</a> ซึ่งเอามาจากโค๊ด PHP ที่ <a href="http://qbnz.com/highlighter/">GeSHi</a> อีกทีนึง แก้ปรับสี css นิดเดียว<br /> ทดลองดูซอร์สได้ดังนี้</p> <ul> <li><a href="/py/?cmd=source/dweb.sh">syntax highlighter - sh.py</a></li> </ul> <p>ตอนนี้ทำได้แค่ไพธอนภาษาเดียว และน่าจะยังมีบั๊กอยู่เยอะ จะค่อย ๆ ปรับปรุงไปเรื่อย ๆ ครับ</p> <p>ยังไม่รู้ว่าโค๊ดของโมดูลหลัก dweb จะเปลี่ยนแปลงไปยังไงนะครับ แต่ตอนนี้โพสต์แบบนี้ไปก่อน</p> </div></div></div><div class="field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-above"><div class="field-label">Topic:&nbsp;</div><div class="field-items"><div class="field-item even"><a href="/taxonomy/term/7">python</a></div><div class="field-item odd"><a href="/taxonomy/term/186">syntax highlight</a></div></div></div> Sun, 04 Feb 2007 13:44:48 +0000 wd 188 at https://www.thaitux.info https://www.thaitux.info/node/188#comments