My SketchUp Plugins list, and blog about the world of plugins for SketchUp.
Pages
▼
Ruby Code Syntax Highlighting Test
This is a snippet of SketchUp Ruby code. How does it look?
a = 10.0.feet
b = 250.0.feet
pts = []
0.step(b, 1.feet) do |x|
y = a * Math::sin( (x / b) * 2 * Math::PI)
#p x, y
pts << [x, y]
end
Sketchup.active_model.active_entities.add_edges pts
Al, thanks for the commment. Color syntax highlighting is what I wanted. Blogger is a difficult platform to work with and it's been a struggle to organize everything I want to put on this blog.
I'm trying to comment on the code.
ReplyDeletewhat should I be looking for?
The slightly different color of x,y on line6?
Al, thanks for the commment. Color syntax highlighting is what I wanted. Blogger is a difficult platform to work with and it's been a struggle to organize everything I want to put on this blog.
ReplyDelete