Golfreeze.packetlove.com: Life style of Golfreeze Canon400D Family kammtan.com Jazz Freebsd Unix Linux System Admin guitar Music

All about unix linux freebsd and FAQ for Packetlove.com Web hosting , Mail hosting , VoIP + IP PBX server => Loadtest gatling.io knowledge => Topic started by: golfreeze on กรกฎาคม 05, 2016, 09:25:27 AM

Title: import scala.stx ลงใน editplus เพื่อเชค syntax ของตัวโปรแกรม load test script .
Post by: golfreeze on กรกฎาคม 05, 2016, 09:25:27 AM
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