Displaying code on the web can be difficult especially when dealing with content mangament systems. This applet formats code into valid html to be displayed on the web and adds customizable syntax highlighting to make your code more readable. It currently handles Processing, Arduino, HTML, and CSS but more languages will be added.
Paste your code below or preview some sample code.
/* comment */ /* arduino synth interface anthony mattox www.anthonymattox.com */ import processing.serial.*; Serial port; slider[] Wave=new slider[32]; Set melBars; void setup() { size(1200,800); noStroke(); noFill(); smooth(); // create waveform sliders for(int i=0; i<Wave.length; i++) { Wave[i]=new slider(i*31+125, 100, 255, color(0)); } // create instance of sequencer set, parameter is # of notes melBars=new Set(17); PFont font; // hooray Gotham, youll need to add your own font file // tools>create font, add your file name below font = loadFont("Gotham-Light-30.vlw"); textFont(font); // set up serial port println("Available serial ports:"); println(Serial.list()); port = new Serial(this, Serial.list()[0], 9600); }
// Syntax Highlighter created by anthony mattox; valid HTML, CSS, PHP; for Processing & Arduino;
// using JQuery JavaScript Library, JQuery UI, farbtastic color picker, JQuery Spinbutton, JQuery Checkboxes;
// more information on project; generated markup is free to use with attribution (link included automatically by default);