Author Topic: import scala.stx ลงใน editplus เพื่อเชค syntax ของตัวโปรแกรม load test script .  (Read 4025 times)

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2140
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
import scala.stx ลงใน editplus เพื่อเชค syntax ของตัวโปรแกรม load test script .

ปกติถ้าเราไม่ได้ import scala.stx แล้วไปเขียนโคด ผ่าน editplus หรือ sublime มันจะไม่แสดงเป็น syntax ของ algorithm ให้ครับ
เราสามารถเพิ่มหรือ import scala.stx ได้ดังนี้ครับ

## รวม .stx ของภาษาอื่นในโปรแกรม editplus
https://www.editplus.com/others.html

1. ทำการ download scala.zip  เพื่อแตกออกมาเป็น scala.stx แล้วเข้าไปที่ folder Editplus 
https://www.editplus.com/dn.php?n=scala.zip

2. ทำการเปิดเข้า Editplus แล้วไปที่ Tools -> Preferences
3. เปิดไปที่ Files แล้วเลือก Settings & syntax.
4. คลิก Add แล้วตั้งชื่อว่า Scala
5. แล้วไปคลิกที่ "Syntax file" กด "..." เพื่อ Browse หาไฟล์ scala.stx
6. Click the Syntax colors tab.
Choose the colors you want to use for each category (this is how mine is set up - all colors chosen from the default pallette).
7. Back on the category tree choose Templates (still under Files).
Add a new template and call it SourcePawn.
Click the ellipsis (...) next to File Path and browse to the .sp file you extracted from the .zip (template.sp).
You should have something like this: http://joe.to/~bl4nk/imgs/editplus-3.png
8. คลิก "Apply" แล้วคลิกปุ่ม "OK" หลังจากนั้นก็จะเห็น syntax เป็นสีๆ ครับผม

##reference
https://forums.alliedmods.net/showthread.php?t=69038
« Last Edit: กรกฎาคม 05, 2016, 09:49:00 AM by golfreeze »