/** * SyntaxHighlighter * http://alexgorbatchev.com/SyntaxHighlighter * * SyntaxHighlighter is donationware. If you are using it, please donate. * http://alexgorbatchev.com/SyntaxHighlighter/donate.html * * @version * 3.0.83 (July 02 2010) * * @copyright * Copyright (C) 2004-2010 Alex Gorbatchev. * * @license * Dual licensed under the MIT and GPL licenses. */ ;(function() { typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; function Brush() { var my_constant = 'true false'; var my_keyword = 't font halign valign spacing direction language script points paths file_path size width radius diameter angle height twist slices scale fn auto convexity module center for if else'; var my_type = 'int'; var my_function = 'text polygon square circle surface import rotate_extrude linear_extrude minkowski color resize meniscus cube_round_corner echo difference translate rotate hull sphere cube cylinder union'; this.regexList = [ {regex: /^ *#.*/gm, css: 'my_preprocessor'}, {regex: SyntaxHighlighter.regexLib.doubleQuotedString, css:'string'}, {regex: SyntaxHighlighter.regexLib.singleQuotedString, css:'string'}, {regex: SyntaxHighlighter.regexLib.multiLineCComments, css:'my_comment'}, {regex: SyntaxHighlighter.regexLib.singleLineCComments, css:'my_comment'}, {regex: new RegExp(this.getKeywords(my_type),'gm'), css:'my_type bold'}, {regex: new RegExp(this.getKeywords(my_keyword),'gm'), css:'my_keyword bold'}, {regex: new RegExp(this.getKeywords(my_constant),'gm'), css:'my_constant bold'}, {regex: new RegExp(this.getKeywords(my_function),'gm'), css:'my_function bold'}, ]; }; Brush.prototype = new SyntaxHighlighter.Highlighter(); Brush.aliases = ['scad']; SyntaxHighlighter.brushes.Scad = Brush; typeof(exports) != 'undefined' ? exports.Brush = Brush : null; })();