ไปยังเนื้อหา ช่วยนำทาง ไปค้นหา

ข้อมูลสำคัญทันใจ

ลิงก์ลัดเครือข่าย ส.ก.น.

แนะนำเว็บไซต์นักเรียน

แนะนำเว็บไซต์ศิษย์เก่า

นำทางเว็บไซต์

ดูบทความตามหมวดหมู่

สมัคร Feed RSS / Atom

วิธีใช้ Textile แต่งข้อความ

ในการเขียนบทความ/ข่าวใน suannonweb โดยทั่วไป อาจต้องการแต่งข้อความ เช่น ใส่ตัวหนา เอียง ใส่สี หรือ เพิ่มสิ่งที่เป็นมากกว่าข้อความธรรมดา เช่น ลิงก์ ตาราง หรือ รูปภาพ

เพื่อไม่ต้องให้ผู้ใช้เรียนภาษา HTML ทั้งหมด ในขณะที่ไม่ต้องการให้โค้ด HTML ที่สร้างอัตโนมัติเป็นโค้ดที่ไม่ตรงตามมาตรฐาน จึงได้ใช้ภาษาแต่งอักษร Textile ของ Dean Allen ผู้เดียวกับที่พัฒนาระบบ Textpattern ที่ suannonweb กำลังใช้เป็น CMS

ก่อนที่จะลงไปในรายละเอียด ผู้ที่ต้องการแต่งข้อความเร็วๆ สามารถคลิกลิงก์ “ช่วยเหลือการแต่งด้วย Textile” ที่ด้านบนซ้ายของกล่องข้อความ เพื่อดูวิธีแต่งข้อความลัด

บทความนี้ใช้เนื้อหาบางส่วนจาก Textpattern Help และจะเสนอให้ทางทีมพัฒนา Textpattern เพิ่มเนื้อหาภาษาไทยกับ Help ในอนาคต

Textile ทำอะไรได้บ้าง

  • เปลี่ยนเครื่องหมายคำพูดเดี่ยวและคู่ (' and ") ที่ใช้กำหนดคำพูดด้วย สัญลักษณ์ HTML สำหรับเครื่องหมายเปิดและปิดคำพูด (‘’ and “”) ในข้อความที่อ่านได้ ในขณะที่ไม่เปลี่ยนเครื่องหมาย prime ในต้องใช้ในแท็ก HTML
  • แทนยัติภังค์คู่ (—) ด้วยสัญลักษณ์ยัติภังค์ยาว หรือ em-dash (—)
* Replace single hyphens surrounded by spaces with an en-dash (–) entity. * Replace triplets of periods (…) with an ellipsis (…) entity. * Convert many nonstandard characters (ŸúߊπŒ) to browser-safe entities corresponding to keyboard input. * Apply block- and phrase-level structural tags automatically and at the discretion of the writer via quick tags. * Allow the quick creation of simple and complex tables * Allow the simple application of style, class, id, language and alignment attributes to elements * Create hyperlinks and insert images via quick tags. * Define acronyms via quick tags * Wrap an tag around runs of three or more capital letters automatically. * Convert ™, ®, and © to ™, ®, and © * Convert the letter x to a dimension sign: 2×4 to 2×4 and 8 × 10 to 8×10

↑ กลับด้านบน ↑