Format code with markup with javascript formatting