Wikia

Vim Tips Wiki

Changes: Script:3556

Edit

Back to page

(Comments)
(Primitives)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{ScriptComments|openscad: syntax highlighting for the OpenSCAD 3D modeling language}}
 
{{ScriptComments|openscad: syntax highlighting for the OpenSCAD 3D modeling language}}
   
==Comments==
+
==Primitives==
 
 
To my copy, I added the 2d primitives:
 
To my copy, I added the 2d primitives:
+
<pre>
 
syn keyword openscad2dPrimitive square circle polygon import_dxf<br>
 
syn keyword openscad2dPrimitive square circle polygon import_dxf<br>
 
hi def link openscad2dPrimitive Keyword
 
hi def link openscad2dPrimitive Keyword
  +
</pre>
  +
--June 23, 2012
  +
  +
Thanks, I've added this to the code. -Taj 20130306
  +
  +
==Auto enable==
  +
To get it to work automajickally, I added this to my .vimrc after copying the script to <code>.vim/syntax/</code>
  +
<pre>
  +
au BufNewFile,BufRead *.scad setf openscad
  +
</pre>
  +
--December 2, 2012
  +
  +
==Comments==

Latest revision as of 17:05, March 6, 2013

Use this page to discuss script 3556 openscad: syntax highlighting for the OpenSCAD 3D modeling language

  • Add constructive comments, bug reports, or discuss improvements (see the guideline).
  • Do not document the script here (the author should do that on vim.org).
  • This page may be out of date: check the script's vim.org page above, and its release notes.

PrimitivesEdit

To my copy, I added the 2d primitives:

syn keyword openscad2dPrimitive square circle polygon import_dxf<br>
hi def link openscad2dPrimitive			Keyword

--June 23, 2012

Thanks, I've added this to the code. -Taj 20130306

Auto enableEdit

To get it to work automajickally, I added this to my .vimrc after copying the script to .vim/syntax/

au BufNewFile,BufRead *.scad            setf openscad

--December 2, 2012

CommentsEdit

Around Wikia's network

Random Wiki