Syntax highlighting, code folding and snippets for kob, a small language for writing JSON web APIs with plain English words.
สีตามไวยากรณ์ พับโค้ด และ snippet สำหรับ ภาษา kob ภาษาสำหรับเขียน web API ด้วยคำภาษาอังกฤษง่ายๆ ที่อ่านออกเสียงแล้วเข้าใจ
table books
title is text
not empty
price is decimal
at least 0
note add a book
on post "/books"
input title as text
input price as decimal
set book to record with
title as title
price as price
save book into books
response book
Features / ความสามารถ
Syntax highlighting for statements, types, text, numbers, response statuses, field names, path parameters and note comments
สีตามไวยากรณ์ ของคำสั่ง ชนิดข้อมูล ข้อความ ตัวเลข สถานะ ชื่อช่อง ตัวแปรใน path และบรรทัด note
Folding by indentation: collapse a route or a table
พับโค้ดตามย่อหน้า: ย่อ route หรือตารางได้
4-space indentation by default, with automatic indent after on, if, for each, repeat and record withย่อหน้า 4 ช่อง อัตโนมัติ และขึ้นบรรทัดใหม่แล้วย่อหน้าให้เอง
Toggle comment with Ctrl+/ adds or removes noteคอมเมนต์ด้วยCtrl+/ เติมหรือเอา note ออก
Snippets / snippet: type the prefix and press Tab (พิมพ์คำแล้วกด Tab)
Prefix
Inserts
get
on get "/path"
post
on post "/path" with an input line
table
a table with its first field
if
if ... otherwise
foreach
for each ... in ...
fromto
for each n from 1 to 10
repeat
repeat 3 times
record
set ... to record with
find
find ... where ... then if ... is missing
Requirements / สิ่งที่ต้องมี
This extension only helps you edit .kob files. To check and run kob programs, install the kob command.