W3Schools Online Code Compiler
With W3Schools online code compiler, you can 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.
Example
# 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.
Web Editor Explained
The window to the left is editable - edit the code and click on the "Run" button to view the result in the right window.
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.
You can control the size of a window with the bar in between the windows (draggable gutter).
The icons are explained in the table below:
| Icon | Description |
|---|---|
| Go to www.w3schools.com | |
| Menu button for more options | |
| Change orientation (horizontally or vertically) | |
| Change color theme (dark or light) |