Try It Yourself

Tryit Home


ตัวแก้ไขโค้ด

ด้วยโปรแกรมแก้ไขโค้ดออนไลน์ของเรา คุณสามารถแก้ไขโค้ดและดูผลลัพธ์ในเบราว์เซอร์ของคุณ







ตัวแก้ไขรหัสส่วนหน้า

ด้วยโปรแกรมแก้ไขโค้ดออนไลน์ของ W3Schools คุณสามารถแก้ไขโค้ด HTML, CSS และ JavaScript และดูผลลัพธ์ในเบราว์เซอร์ของคุณได้

หน้าต่างด้านซ้ายสามารถแก้ไขได้ - แก้ไขรหัสและคลิกที่ปุ่ม "เรียกใช้" เพื่อดูผลลัพธ์ในหน้าต่างด้านขวา

"ขนาดผลลัพธ์" คืนค่าความกว้างและความสูงของหน้าต่างผลลัพธ์เป็นพิกเซล (แม้ว่าคุณจะปรับขนาดหน้าต่างเบราว์เซอร์)

คุณสามารถควบคุมขนาดของหน้าต่างด้วยแถบระหว่างหน้าต่าง (รางน้ำแบบลากได้)

ไอคอนอธิบายไว้ในตารางด้านล่าง:

ไอคอน คำอธิบาย
ไปที่ www.w3schools.com
ปุ่มเมนูสำหรับตัวเลือกเพิ่มเติม
บันทึกรหัสของคุณ (และแบ่งปันกับผู้อื่น)
Change orientation (horizontally or vertically)
Change color theme (dark or light)

Learn to Code

If you are new to coding, we suggest that you start with HTML, and move on to CSS and JavaScript:

HTML Tutorial CSS Tutorial JavaScript Tutorial

Backend Code Compiler

The backend code compiler allows you to edit Python, C#, C++, PHP, Node.js, Java, Bash, Clojure, Fortran, Go, Kotlin, Perl, R, Ruby, Scala, Swift, TypeScript, and VB.NET code, and view the result in your browser.


Result Size:
  • prog.r
  • Input
  • +
  • +
# We need this line of code to show graphs in our compiler
bitmap(file="out.png")

# Create a vector of pies
x <- c(10,20,30,40)

# Display the pie chart
pie(x)

Click on the "Try it Yourself" button to see how it works.

Code Compiler Explained

The Dropdown list to the right of the "Run" button allows you to change programming languages.

By selecting the "input" tab, you can add user input to use in the code.

The "+" tabs allows you to add additional files (for the same language you are currently running) to run.

Tip: You will find most of the topics above in our home page.