Difference between revisions of "Template:Jscad"

From BITPlan Wiki
Jump to navigation Jump to search
Line 77: Line 77:
 
}}
 
}}
 
= Syntaxh highlighted source code =
 
= Syntaxh highlighted source code =
{{#tag:source|{{{code|}}} }}
+
{{#tag:source|lang=javascript|{{{code|}}} }}
 
</includeonly>
 
</includeonly>

Revision as of 14:33, 10 June 2019

Usage

Put your JSCAD code inside a source tag and add a call of this template



  
  
  
  


OpenJSCAD example

Source code

Below is the OpenJsCad script.

Syntaxh highlighted source code

lang=javascript