Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added web-build service

  • Loading branch information...
commit 2b17188f6d372442b42e00ddfbd382dc0c3fb74f 1 parent fd91bb1
@AndiDittrich authored
Showing with 350 additions and 161 deletions.
  1. +1 −1  Build/DynamicSourcefileLoader.dev.js
  2. +2 −2 Build/EnlighterJS.css
  3. +74 −74 Build/EnlighterJS.js
  4. +2 −2 Build/EnlighterJS.yui.css
  5. +5 −5 Build/EnlighterJS.yui.js
  6. +7 −0 CHANGES.md
  7. +4 −1 Examples/Themes.html
  8. +4 −1 Examples/c.html
  9. +4 −1 Examples/cpp.html
  10. +4 −1 Examples/csharp.html
  11. +4 −1 Examples/css.html
  12. +4 −1 Examples/html.html
  13. +4 −1 Examples/java.html
  14. +4 −1 Examples/js.html
  15. +4 −1 Examples/json.html
  16. +4 −1 Examples/markdown.html
  17. +4 −1 Examples/nohighlight.html
  18. +4 −1 Examples/nsis.html
  19. +4 −1 Examples/php.html
  20. +4 −1 Examples/python.html
  21. +4 −1 Examples/raw.html
  22. +4 −1 Examples/ruby.html
  23. +4 −1 Examples/sql.html
  24. +4 −1 Examples/unit.html
  25. +4 −1 Examples/xml.html
  26. +4 −0 README.md
  27. +4 −1 Resources/BootstrapTemplate.phtml
  28. +90 −0 Resources/Builder.phtml
  29. +13 −0 Resources/Template.css
  30. +8 −0 Util/PageGenerator.php
  31. +18 −5 Util/concat-compress.xml
  32. +0 −37 Util/human-readable-filter.xml
  33. +46 −15 build.xml
View
2  Build/DynamicSourcefileLoader.dev.js
@@ -15,7 +15,7 @@ requires:
*/
window.addEvent('domready', function(){
// generated sourcefile list (space separated values) - placeholder get replaced during build process
- var enlighterJsSources = "Source/EnlighterJS.js Source/SpecialLineHighlighter.js Source/Language/Generic.js Source/LanguageManager.js Source/Native/Element.EnlighterJS.js Source/Tokenizer.js Source/Token.js Source/Renderer/InlineRenderer.js Source/Renderer/BlockRenderer.js Source/Tokenizer/Lazy.js Source/Tokenizer/Xml.js Source/Util/Helper.js Source/UI/TabPane.js Source/Util/Metainit.js Source/Language/Cpp.js Source/Language/CSharp.js Source/Language/Xml.js Source/Language/Css.js Source/Language/Java.js Source/Language/Js.js Source/Language/Markdown.js Source/Language/Php.js Source/Language/Python.js Source/Language/Ruby.js Source/Language/Shell.js Source/Language/Sql.js Source/Language/Nsis.js Source/Language/Raw.js Source/Language/Template.mylang.js";
+ var enlighterJsSources = "${include.JSsources} Source/Language/Cpp.js Source/Language/CSharp.js Source/Language/Xml.js Source/Language/Css.js Source/Language/Java.js Source/Language/Js.js Source/Language/Markdown.js Source/Language/Php.js Source/Language/Python.js Source/Language/Ruby.js Source/Language/Shell.js Source/Language/Sql.js Source/Language/Nsis.js Source/Language/RAW.js Source/Language/Template.mylang.js";
var enlighterCssSources = "Source/Themes/Base.css Source/Themes/MooTools.css Source/Themes/Enlighter.css Source/Themes/Git.css Source/Themes/Mocha.css Source/Themes/Panic.css Source/Themes/Tutti.css Source/Themes/Twilight.css";
// extract sourcefiles
View
4 Build/EnlighterJS.css
@@ -4,8 +4,8 @@ name: EnlighterJS
description: Post Syntax Highlighter for MooTools - based on the famous Lighter.js
license: MIT-Style X11 License
-version: 2.2
-build: c9d6e6119856a2f256dcf83bd403899f/May 17 2014
+version: 2.2.1
+build: c9d6e6119856a2f256dcf83bd403899f/May 31 2014
authors:
- Andi Dittrich (author of EnlighterJS)
View
148 Build/EnlighterJS.js
@@ -4,8 +4,8 @@ name: EnlighterJS
description: Post Syntax Highlighter for MooTools - based on the famous Lighter.js
license: MIT-Style X11 License
-version: 2.2
-build: 349e21bf9ca3eb132c7df880bf52d588/May 17 2014
+version: 2.2.1
+build: 57f86abaae4b557601cdd55a28e9c912/May 31 2014
authors:
- Andi Dittrich (author of EnlighterJS)
@@ -615,78 +615,6 @@ EnlighterJS.LanguageManager = new Class({
}
});/*
---
-description: Extends MooTools.Element with the `enlight()` shortcut. Also adds `light()` and `unlight()` for backward compatibility with Lighter.js
-
-license: MIT-style X11 License
-
-authors:
- - Andi Dittrich
-
-requires:
- - core/1.4.5
-
-provides: [Element.enlight]
-...
- */
-(function(){
- Element.implement({
- /**
- * Highlights an element/Removes Element highlighting
- *
- * @param {Object, Boolean} [options] EnlighterJS options Object or Boolean value to enable/disable highlighting
- * @returns {Element} The current Element instance.
- */
- enlight: function(options){
- // mixed input check - options available ?
- options = (typeof(options) == "undefined") ? {} : options;
-
- // convert "true" to empty Object!
- options = (options===true) ? {} : options;
-
- // enlighter instance already available ?
- var enlighter = this.retrieve('EnlighterInstance');
-
- // hide highlighted sourcecode ?
- if (options === false){
- if (enlighter !== null) {
- enlighter.enlight(false);
- }
- // highlight sourcecode and use options
- }else{
- // create new enlighter instance
- if (enlighter === null) {
- enlighter = new EnlighterJS(this, options, null);
- this.store('EnlighterInstance', enlighter);
- }
- enlighter.enlight(options);
- }
-
- // element instance
- return this;
- },
-
- /**
- * Highlights an element
- * @DEPRECATED since v2.0 - this method will be removed in the future
- * @param {Object} [options] EnlighterJS Options Object
- * @returns {Element} The current Element instance.
- */
- light : function(options) {
- return this.enlight(options);
- },
-
- /**
- * Removes/hides Element highlighting
- * @DEPRECATED since v2.0 - this method will be removed in the future
- * @returns {Element} The current Element instance.
- */
- unlight : function(){
- return this.enlight(false);
- }
- });
-
-})();/*
----
description: Code parsing engine for Lighter.
license: MIT-style
@@ -1183,6 +1111,78 @@ EnlighterJS.Tokenizer.Xml = new Class({
});
/*
---
+description: Extends MooTools.Element with the `enlight()` shortcut. Also adds `light()` and `unlight()` for backward compatibility with Lighter.js
+
+license: MIT-style X11 License
+
+authors:
+ - Andi Dittrich
+
+requires:
+ - core/1.4.5
+
+provides: [Element.enlight]
+...
+ */
+(function(){
+ Element.implement({
+ /**
+ * Highlights an element/Removes Element highlighting
+ *
+ * @param {Object, Boolean} [options] EnlighterJS options Object or Boolean value to enable/disable highlighting
+ * @returns {Element} The current Element instance.
+ */
+ enlight: function(options){
+ // mixed input check - options available ?
+ options = (typeof(options) == "undefined") ? {} : options;
+
+ // convert "true" to empty Object!
+ options = (options===true) ? {} : options;
+
+ // enlighter instance already available ?
+ var enlighter = this.retrieve('EnlighterInstance');
+
+ // hide highlighted sourcecode ?
+ if (options === false){
+ if (enlighter !== null) {
+ enlighter.enlight(false);
+ }
+ // highlight sourcecode and use options
+ }else{
+ // create new enlighter instance
+ if (enlighter === null) {
+ enlighter = new EnlighterJS(this, options, null);
+ this.store('EnlighterInstance', enlighter);
+ }
+ enlighter.enlight(options);
+ }
+
+ // element instance
+ return this;
+ },
+
+ /**
+ * Highlights an element
+ * @DEPRECATED since v2.0 - this method will be removed in the future
+ * @param {Object} [options] EnlighterJS Options Object
+ * @returns {Element} The current Element instance.
+ */
+ light : function(options) {
+ return this.enlight(options);
+ },
+
+ /**
+ * Removes/hides Element highlighting
+ * @DEPRECATED since v2.0 - this method will be removed in the future
+ * @returns {Element} The current Element instance.
+ */
+ unlight : function(){
+ return this.enlight(false);
+ }
+ });
+
+})();/*
+---
name: Helper
description: Helper to initialize multiple Enlighter instances on your page as well as code-groups
View
4 Build/EnlighterJS.yui.css
@@ -6,8 +6,8 @@ name: EnlighterJS
description: Post Syntax Highlighter for MooTools - based on the famous Lighter.js
license: MIT-Style X11 License
-version: 2.2
-build: c9d6e6119856a2f256dcf83bd403899f/May 17 2014
+version: 2.2.1
+build: c9d6e6119856a2f256dcf83bd403899f/May 31 2014
authors:
- Andi Dittrich (author of EnlighterJS)
View
10 Build/EnlighterJS.yui.js
@@ -6,8 +6,8 @@ name: EnlighterJS
description: Post Syntax Highlighter for MooTools - based on the famous Lighter.js
license: MIT-Style X11 License
-version: 2.2
-build: 349e21bf9ca3eb132c7df880bf52d588/May 17 2014
+version: 2.2.1
+build: 57f86abaae4b557601cdd55a28e9c912/May 31 2014
authors:
- Andi Dittrich (author of EnlighterJS)
@@ -36,8 +36,7 @@ this.aliases={};this.rules={};this.code=a;this.tokenizer=new EnlighterJS.Tokeniz
},this)},setupLanguage:function(){},getTokens:function(){return this.tokenizer.getTokens(this,this.code)},getRules:function(){return this.rules},hasDelimiters:function(){return this.delimiters.start&&this.delimiters.end},addRule:function(c,b,a){this.rules[c]=b;this.addAlias(c,a)},addAlias:function(b,a){this.aliases[b]=a||b},csvToRegExp:function(a,b){return new RegExp("\\b("+a.replace(/,\s*/g,"|")+")\\b",b)
},delimToRegExp:function(d,b,a,e,f){d=d.escapeRegExp();if(b){b=b.escapeRegExp()}a=(a)?a.escapeRegExp():d;var c=(b)?d+"[^"+a+b+"\\n]*(?:"+b+".[^"+a+b+"\\n]*)*"+a:d+"[^"+a+"\\n]*"+a;return new RegExp(c+(f||""),e||"")},strictRegExp:function(){var b="(";for(var a=0;a<arguments.length;a++){b+=arguments[a].escapeRegExp();b+=(a<arguments.length-1)?"|":""}b+=")";return new RegExp(b,"gim")}});EnlighterJS.LanguageManager=new Class({Implements:Options,options:{language:"generic"},initialize:function(a){this.setOptions(a)
},languageAliases:{standard:"generic",javascript:"js",md:"markdown","c++":"cpp",c:"cpp",styles:"css",bash:"shell",json:"js",py:"python",html:"xml",jquery:"js",mootools:"js","ext.js":"js","c#":"csharp"},getLanguage:function(a){var b=(this.options.language!=null?this.options.language.trim().toLowerCase():"");if(this.languageAliases[b]){b=this.languageAliases[b]}if(b.trim()==""||!EnlighterJS.Language[b]){b="generic"
-}if(a==null||a.trim()==""){return b}a=a.trim().toLowerCase();if(this.languageAliases[a]){a=this.languageAliases[a]}if(EnlighterJS.Language[a]){return a}else{return b}}});(function(){Element.implement({enlight:function(a){a=(typeof(a)=="undefined")?{}:a;a=(a===true)?{}:a;var b=this.retrieve("EnlighterInstance");if(a===false){if(b!==null){b.enlight(false)}}else{if(b===null){b=new EnlighterJS(this,a,null);
-this.store("EnlighterInstance",b)}b.enlight(a)}return this},light:function(a){return this.enlight(a)},unlight:function(){return this.enlight(false)}})})();EnlighterJS.Tokenizer=new Class({initialize:function(){},getTokens:function(g,c){var f=null;var b=null;var d=this.parseTokens(g,c);for(var a=0,e=0;a<d.length;a++){if(e<d[a].index){f=c.substring(e,d[a].index);b=new EnlighterJS.Token(f,"unknown",e);
+}if(a==null||a.trim()==""){return b}a=a.trim().toLowerCase();if(this.languageAliases[a]){a=this.languageAliases[a]}if(EnlighterJS.Language[a]){return a}else{return b}}});EnlighterJS.Tokenizer=new Class({initialize:function(){},getTokens:function(g,c){var f=null;var b=null;var d=this.parseTokens(g,c);for(var a=0,e=0;a<d.length;a++){if(e<d[a].index){f=c.substring(e,d[a].index);b=new EnlighterJS.Token(f,"unknown",e);
d.splice(a,0,b)}e=d[a].end}if(e<c.length){f=c.substring(e,c.length);b=new EnlighterJS.Token(f,"unknown",e);d.push(b)}return d},parseTokens:function(b,a){throw new Error("Extending classes must override the parseTokens() method.")}});EnlighterJS.Token=new Class({text:null,type:null,index:-1,length:-1,end:-1,initialize:function(c,b,a){this.text=c;this.type=b;this.index=a;this.length=this.text.length;
this.end=this.index+this.length},contains:function(a){return(a.index>=this.index&&a.index<this.end)},isBeyond:function(a){return(this.index>=a.end)},overlaps:function(a){return(this.index==a.index&&this.length>a.length)},toString:function(){return this.index+" - "+this.text+" - "+this.end}});EnlighterJS.Renderer.InlineRenderer=new Class({Implements:Options,options:{inlineContainerTag:"span"},initialize:function(a){this.setOptions(a)
},render:function(d,c,b){var a=new Element(this.options.inlineContainerTag);d.getTokens().each(function(f,e){var g=f.type?(d.aliases[f.type]||f.type):"";a.grab(new Element("span",{"class":g,text:f.text}))});return a}});EnlighterJS.Renderer.BlockRenderer=new Class({Implements:Options,options:{hover:"hoverEnabled",oddClassname:"odd",evenClassname:"even",showLinenumbers:true},initialize:function(a){this.setOptions(a)
@@ -47,7 +46,8 @@ var g=i.text.split("\n");if(g.length>1){e.grab(new Element("span",{"class":j,tex
g=c[1]||c[0];f.push(new EnlighterJS.Token(g,j,b))}},this);f=f.sort(function(j,i){return j.index-i.index});for(var d=0,a=0;d<f.length;d++){if(f[d]===null){continue}for(a=d+1;a<f.length&&f[d]!==null;a++){if(f[a]===null){continue}else{if(f[a].isBeyond(f[d])){break}else{if(f[a].overlaps(f[d])){f[d]=null}else{if(f[d].contains(f[a])){f[a]=null}}}}}}return f.clean()}});EnlighterJS.Tokenizer.Xml=new Class({Extends:EnlighterJS.Tokenizer,initialize:function(){},parseTokens:function(b,a){var d=/((?:\&lt;|<)[A-Z][A-Z0-9]*)(.*?)(\/?(?:\&gt;|>))/gi;
var k=/\b([\w-]+)([ \t]*)(=)([ \t]*)(['"][^'"]+['"]|[^'" \t]+)/gi;var l=[];var g=null;var f=null;var h=0;while((g=d.exec(a))!=null){l.push(new EnlighterJS.Token(g[1],"kw1",g.index));while((f=k.exec(g[2]))!=null){h=g.index+g[1].length+f.index;l.push(new EnlighterJS.Token(f[1],"kw2",h));h+=f[1].length+f[2].length;l.push(new EnlighterJS.Token(f[3],"kw1",h));h+=f[3].length+f[4].length;l.push(new EnlighterJS.Token(f[5],"st0",h))
}l.push(new EnlighterJS.Token(g[3],"kw1",g.index+g[1].length+g[2].length))}Object.each(b.getRules(),function(i,j){while(null!==(g=i.exec(a))){h=g[1]&&g[0].contains(g[1])?g.index+g[0].indexOf(g[1]):g.index;text=g[1]||g[0];l.push(new EnlighterJS.Token(text,j,h))}},this);l=l.sort(function(j,i){return j.index-i.index});for(var e=0,c=0;e<l.length;e++){if(l[e]===null){continue}for(c=e+1;c<l.length&&l[e]!==null;
-c++){if(l[c]===null){continue}else{if(l[c].isBeyond(l[e])){break}else{if(l[c].overlaps(l[e])){l[e]=null}else{if(l[e].contains(l[c])){l[c]=null}}}}}}return l.clean()}});(function(){EnlighterJS.Util.Helper=(function(d,c){if(c.grouping===false){d.enlight(c)}else{var a={};var b=[];Array.each(d,function(e){var f=e.get("data-enlighter-group");if(f){if(a[f]){a[f].push(e)}else{a[f]=[e]}}else{b.push(e)}});b.each(function(e){e.enlight(c)
+c++){if(l[c]===null){continue}else{if(l[c].isBeyond(l[e])){break}else{if(l[c].overlaps(l[e])){l[e]=null}else{if(l[e].contains(l[c])){l[c]=null}}}}}}return l.clean()}});(function(){Element.implement({enlight:function(a){a=(typeof(a)=="undefined")?{}:a;a=(a===true)?{}:a;var b=this.retrieve("EnlighterInstance");if(a===false){if(b!==null){b.enlight(false)}}else{if(b===null){b=new EnlighterJS(this,a,null);
+this.store("EnlighterInstance",b)}b.enlight(a)}return this},light:function(a){return this.enlight(a)},unlight:function(){return this.enlight(false)}})})();(function(){EnlighterJS.Util.Helper=(function(d,c){if(c.grouping===false){d.enlight(c)}else{var a={};var b=[];Array.each(d,function(e){var f=e.get("data-enlighter-group");if(f){if(a[f]){a[f].push(e)}else{a[f]=[e]}}else{b.push(e)}});b.each(function(e){e.enlight(c)
});Object.each(a,function(f){var g=Object.clone(c);g.forceTheme=true;g.theme=f[0].get("data-enlighter-theme")||c.theme||"Enlighter";var e=new EnlighterJS.UI.TabPane(g.theme);Array.each(f,function(j,i){var h=e.addTab(j.get("data-enlighter-title")||j.get("data-enlighter-language")||g.language);(new EnlighterJS(j,g,h)).enlight(true)}.bind(this));e.getContainer().inject(f[0],"before");e.selectTab(0)}.bind(this))
}})})();EnlighterJS.UI.TabPane=new Class({container:null,controlContainer:null,paneContainer:null,tabs:[],selectedTabIndex:0,initialize:function(a){this.container=new Element("div",{"class":"EnlighterJSTabPane "+a.toLowerCase()+"EnlighterJSTabPane"});this.controlContainer=new Element("ul");this.paneContainer=new Element("div",{"class":"pane"});var b=new Element("div",{"class":"controls"});b.grab(this.controlContainer);
b.grab(new Element("div",{"class":"clearfixList"}));this.container.grab(b);this.container.grab(this.paneContainer)},selectTab:function(a){if(a<this.tabs.length){this.tabs[this.selectedTabIndex].pane.setStyle("display","none");this.tabs[this.selectedTabIndex].control.removeClass("selected");this.tabs[a].pane.setStyle("display","block");this.tabs[a].control.addClass("selected");this.selectedTabIndex=a
View
7 CHANGES.md
@@ -1,3 +1,10 @@
+### Version 2.2.1 ##
+* Added Web-based Build-Service to easily generate custom EnlighterJS packages
+* Added Webbuild Target (used for Promethium CloudBuilder Service)
+* Improved Build-File
+* Removed "Util/human-readable-filter.xml" - formattings moved into the "concat-compress" task
+* Bugfix: Invalid directory names within buildfile
+
### Version 2.2 ##
* Added language support for C# (csharp) [provided by Joshua Maag](https://github.com/joshmaag)
* Added C# language example
View
5 Examples/Themes.html
@@ -77,8 +77,11 @@
<ul class="nav navbar-nav navbar-right">
<li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Get EnlighterJS<b class="caret"></b></a>
<ul class="dropdown-menu">
+ <li class="dropdown-header">Special</li>
+ <li><a href="Builder.html">Custom EnlighterJS Build</a></li>
+ <li class="divider"></li>
<li class="dropdown-header">Get it from GitHub</li>
- <li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Download (latest)</a></li>
+ <li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Download Package (latest)</a></li>
<li><a href="https://github.com/AndiDittrich/EnlighterJS">Browse on GitHub</a></li>
</ul>
</li>
View
5 Examples/c.html
@@ -77,8 +77,11 @@
<ul class="nav navbar-nav navbar-right">
<li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Get EnlighterJS<b class="caret"></b></a>
<ul class="dropdown-menu">
+ <li class="dropdown-header">Special</li>
+ <li><a href="Builder.html">Custom EnlighterJS Build</a></li>
+ <li class="divider"></li>
<li class="dropdown-header">Get it from GitHub</li>
- <li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Download (latest)</a></li>
+ <li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Download Package (latest)</a></li>
<li><a href="https://github.com/AndiDittrich/EnlighterJS">Browse on GitHub</a></li>
</ul>
</li>
View
5 Examples/cpp.html
@@ -77,8 +77,11 @@
<ul class="nav navbar-nav navbar-right">
<li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Get EnlighterJS<b class="caret"></b></a>
<ul class="dropdown-menu">
+ <li class="dropdown-header">Special</li>
+ <li><a href="Builder.html">Custom EnlighterJS Build</a></li>
+ <li class="divider"></li>
<li class="dropdown-header">Get it from GitHub</li>
- <li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Download (latest)</a></li>
+ <li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Download Package (latest)</a></li>
<li><a href="https://github.com/AndiDittrich/EnlighterJS">Browse on GitHub</a></li>
</ul>
</li>
View
5 Examples/csharp.html
@@ -77,8 +77,11 @@
<ul class="nav navbar-nav navbar-right">
<li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Get EnlighterJS<b class="caret"></b></a>
<ul class="dropdown-menu">
+ <li class="dropdown-header">Special</li>
+ <li><a href="Builder.html">Custom EnlighterJS Build</a></li>
+ <li class="divider"></li>
<li class="dropdown-header">Get it from GitHub</li>
- <li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Download (latest)</a></li>
+ <li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Download Package (latest)</a></li>
<li><a href="https://github.com/AndiDittrich/EnlighterJS">Browse on GitHub</a></li>
</ul>
</li>
View
5 Examples/css.html
@@ -77,8 +77,11 @@
<ul class="nav navbar-nav navbar-right">
<li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Get EnlighterJS<b class="caret"></b></a>
<ul class="dropdown-menu">
+ <li class="dropdown-header">Special</li>
+ <li><a href="Builder.html">Custom EnlighterJS Build</a></li>
+ <li class="divider"></li>
<li class="dropdown-header">Get it from GitHub</li>
- <li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Download (latest)</a></li>
+ <li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Download Package (latest)</a></li>
<li><a href="https://github.com/AndiDittrich/EnlighterJS">Browse on GitHub</a></li>
</ul>
</li>
View
5 Examples/html.html
@@ -77,8 +77,11 @@
<ul class="nav navbar-nav navbar-right">
<li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Get EnlighterJS<b class="caret"></b></a>
<ul class="dropdown-menu">
+ <li class="dropdown-header">Special</li>
+ <li><a href="Builder.html">Custom EnlighterJS Build</a></li>
+ <li class="divider"></li>
<li class="dropdown-header">Get it from GitHub</li>
- <li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Download (latest)</a></li>
+ <li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Download Package (latest)</a></li>
<li><a href="https://github.com/AndiDittrich/EnlighterJS">Browse on GitHub</a></li>
</ul>
</li>
View
5 Examples/java.html
@@ -77,8 +77,11 @@
<ul class="nav navbar-nav navbar-right">
<li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Get EnlighterJS<b class="caret"></b></a>
<ul class="dropdown-menu">
+ <li class="dropdown-header">Special</li>
+ <li><a href="Builder.html">Custom EnlighterJS Build</a></li>
+ <li class="divider"></li>
<li class="dropdown-header">Get it from GitHub</li>
- <li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Download (latest)</a></li>
+ <li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Download Package (latest)</a></li>
<li><a href="https://github.com/AndiDittrich/EnlighterJS">Browse on GitHub</a></li>
</ul>
</li>
View
5 Examples/js.html
@@ -77,8 +77,11 @@
<ul class="nav navbar-nav navbar-right">
<li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Get EnlighterJS<b class="caret"></b></a>
<ul class="dropdown-menu">
+ <li class="dropdown-header">Special</li>
+ <li><a href="Builder.html">Custom EnlighterJS Build</a></li>
+ <li class="divider"></li>
<li class="dropdown-header">Get it from GitHub</li>
- <li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Download (latest)</a></li>
+ <li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Download Package (latest)</a></li>
<li><a href="https://github.com/AndiDittrich/EnlighterJS">Browse on GitHub</a></li>
</ul>
</li>
View
5 Examples/json.html
@@ -77,8 +77,11 @@
<ul class="nav navbar-nav navbar-right">
<li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Get EnlighterJS<b class="caret"></b></a>
<ul class="dropdown-menu">
+ <li class="dropdown-header">Special</li>
+ <li><a href="Builder.html">Custom EnlighterJS Build</a></li>
+ <li class="divider"></li>
<li class="dropdown-header">Get it from GitHub</li>
- <li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Download (latest)</a></li>
+ <li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Download Package (latest)</a></li>
<li><a href="https://github.com/AndiDittrich/EnlighterJS">Browse on GitHub</a></li>
</ul>
</li>
View
5 Examples/markdown.html
@@ -77,8 +77,11 @@
<ul class="nav navbar-nav navbar-right">
<li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Get EnlighterJS<b class="caret"></b></a>
<ul class="dropdown-menu">
+ <li class="dropdown-header">Special</li>
+ <li><a href="Builder.html">Custom EnlighterJS Build</a></li>
+ <li class="divider"></li>
<li class="dropdown-header">Get it from GitHub</li>
- <li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Download (latest)</a></li>
+ <li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Download Package (latest)</a></li>
<li><a href="https://github.com/AndiDittrich/EnlighterJS">Browse on GitHub</a></li>
</ul>
</li>
View
5 Examples/nohighlight.html
@@ -77,8 +77,11 @@
<ul class="nav navbar-nav navbar-right">
<li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Get EnlighterJS<b class="caret"></b></a>
<ul class="dropdown-menu">
+ <li class="dropdown-header">Special</li>
+ <li><a href="Builder.html">Custom EnlighterJS Build</a></li>
+ <li class="divider"></li>
<li class="dropdown-header">Get it from GitHub</li>
- <li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Download (latest)</a></li>
+ <li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Download Package (latest)</a></li>
<li><a href="https://github.com/AndiDittrich/EnlighterJS">Browse on GitHub</a></li>
</ul>
</li>
View
5 Examples/nsis.html
@@ -77,8 +77,11 @@
<ul class="nav navbar-nav navbar-right">
<li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Get EnlighterJS<b class="caret"></b></a>
<ul class="dropdown-menu">
+ <li class="dropdown-header">Special</li>
+ <li><a href="Builder.html">Custom EnlighterJS Build</a></li>
+ <li class="divider"></li>
<li class="dropdown-header">Get it from GitHub</li>
- <li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Download (latest)</a></li>
+ <li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Download Package (latest)</a></li>
<li><a href="https://github.com/AndiDittrich/EnlighterJS">Browse on GitHub</a></li>
</ul>
</li>
View
5 Examples/php.html
@@ -77,8 +77,11 @@
<ul class="nav navbar-nav navbar-right">
<li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Get EnlighterJS<b class="caret"></b></a>
<ul class="dropdown-menu">
+ <li class="dropdown-header">Special</li>
+ <li><a href="Builder.html">Custom EnlighterJS Build</a></li>
+ <li class="divider"></li>
<li class="dropdown-header">Get it from GitHub</li>
- <li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Download (latest)</a></li>
+ <li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Download Package (latest)</a></li>
<li><a href="https://github.com/AndiDittrich/EnlighterJS">Browse on GitHub</a></li>
</ul>
</li>
View
5 Examples/python.html
@@ -77,8 +77,11 @@
<ul class="nav navbar-nav navbar-right">
<li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Get EnlighterJS<b class="caret"></b></a>
<ul class="dropdown-menu">
+ <li class="dropdown-header">Special</li>
+ <li><a href="Builder.html">Custom EnlighterJS Build</a></li>
+ <li class="divider"></li>
<li class="dropdown-header">Get it from GitHub</li>
- <li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Download (latest)</a></li>
+ <li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Download Package (latest)</a></li>
<li><a href="https://github.com/AndiDittrich/EnlighterJS">Browse on GitHub</a></li>
</ul>
</li>
View
5 Examples/raw.html
@@ -77,8 +77,11 @@
<ul class="nav navbar-nav navbar-right">
<li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Get EnlighterJS<b class="caret"></b></a>
<ul class="dropdown-menu">
+ <li class="dropdown-header">Special</li>
+ <li><a href="Builder.html">Custom EnlighterJS Build</a></li>
+ <li class="divider"></li>
<li class="dropdown-header">Get it from GitHub</li>
- <li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Download (latest)</a></li>
+ <li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Download Package (latest)</a></li>
<li><a href="https://github.com/AndiDittrich/EnlighterJS">Browse on GitHub</a></li>
</ul>
</li>
View
5 Examples/ruby.html
@@ -77,8 +77,11 @@
<ul class="nav navbar-nav navbar-right">
<li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Get EnlighterJS<b class="caret"></b></a>
<ul class="dropdown-menu">
+ <li class="dropdown-header">Special</li>
+ <li><a href="Builder.html">Custom EnlighterJS Build</a></li>
+ <li class="divider"></li>
<li class="dropdown-header">Get it from GitHub</li>
- <li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Download (latest)</a></li>
+ <li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Download Package (latest)</a></li>
<li><a href="https://github.com/AndiDittrich/EnlighterJS">Browse on GitHub</a></li>
</ul>
</li>
View
5 Examples/sql.html
@@ -77,8 +77,11 @@
<ul class="nav navbar-nav navbar-right">
<li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Get EnlighterJS<b class="caret"></b></a>
<ul class="dropdown-menu">
+ <li class="dropdown-header">Special</li>
+ <li><a href="Builder.html">Custom EnlighterJS Build</a></li>
+ <li class="divider"></li>
<li class="dropdown-header">Get it from GitHub</li>
- <li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Download (latest)</a></li>
+ <li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Download Package (latest)</a></li>
<li><a href="https://github.com/AndiDittrich/EnlighterJS">Browse on GitHub</a></li>
</ul>
</li>
View
5 Examples/unit.html
@@ -77,8 +77,11 @@
<ul class="nav navbar-nav navbar-right">
<li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Get EnlighterJS<b class="caret"></b></a>
<ul class="dropdown-menu">
+ <li class="dropdown-header">Special</li>
+ <li><a href="Builder.html">Custom EnlighterJS Build</a></li>
+ <li class="divider"></li>
<li class="dropdown-header">Get it from GitHub</li>
- <li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Download (latest)</a></li>
+ <li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Download Package (latest)</a></li>
<li><a href="https://github.com/AndiDittrich/EnlighterJS">Browse on GitHub</a></li>
</ul>
</li>
View
5 Examples/xml.html
@@ -77,8 +77,11 @@
<ul class="nav navbar-nav navbar-right">
<li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Get EnlighterJS<b class="caret"></b></a>
<ul class="dropdown-menu">
+ <li class="dropdown-header">Special</li>
+ <li><a href="Builder.html">Custom EnlighterJS Build</a></li>
+ <li class="divider"></li>
<li class="dropdown-header">Get it from GitHub</li>
- <li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Download (latest)</a></li>
+ <li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Download Package (latest)</a></li>
<li><a href="https://github.com/AndiDittrich/EnlighterJS">Browse on GitHub</a></li>
</ul>
</li>
View
4 README.md
@@ -6,6 +6,10 @@ Using it can be as simple as adding a single script and style to your website, c
It also supports the automatic creation of tab-panes to display groups of code together (useful for multi-language examples - e.g. html+css+js)
The Documentation as well as the Theme Demo is available [here](http://enlighterjs.andidittrich.de "EnligherJS Documentation")
+### Download ###
+* [Download Full-Package](https://github.com/AndiDittrich/EnlighterJS/archive/master.zip)
+* [Custom-Builds](http://enlighterjs.andidittrich.de/Builder.html)
+
![Screenshot](http://enlighterjs.andidittrich.de/screenshot1.png)
Features
View
5 Resources/BootstrapTemplate.phtml
@@ -78,8 +78,11 @@
<ul class="nav navbar-nav navbar-right">
<li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Get EnlighterJS<b class="caret"></b></a>
<ul class="dropdown-menu">
+ <li class="dropdown-header">Special</li>
+ <li><a href="Builder.html">Custom EnlighterJS Build</a></li>
+ <li class="divider"></li>
<li class="dropdown-header">Get it from GitHub</li>
- <li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Download (latest)</a></li>
+ <li><a href="https://github.com/AndiDittrich/EnlighterJS/archive/master.zip">Download Package (latest)</a></li>
<li><a href="https://github.com/AndiDittrich/EnlighterJS">Browse on GitHub</a></li>
</ul>
</li>
View
90 Resources/Builder.phtml
@@ -0,0 +1,90 @@
+<p>
+ You can generate your customized EnlighterJS Builds by using the <a title="Promethium" href="http://promethium.andidittrich.de/">Promethium CloudBuilder</a>. Maybe you don't need all Theme/Languages and you want to strip down the package. The Builder always uses the latest EnlighterJS release and automatically compresses the files using the <a href="http://yui.github.io/yuicompressor/">YUI Compressor</a> (both compressed & uncompessed builds are included!).<br /> No Sourcefiles are included.
+</p>
+
+<form method="post" action="http://promethium.andidittrich.de/enlighterjs/">
+ <h3>Include Language Support</h3>
+ <div class="form-group">
+ <div class="checkbox">
+ <label><input value="1" type="checkbox" name="Language[Cpp]">"Cpp/C" Language</label>
+ </div>
+ <div class="checkbox">
+ <label><input value="1" type="checkbox" name="Language[CSharp]">"C#" Language</label>
+ </div>
+ <div class="checkbox">
+ <label><input value="1" type="checkbox" name="Language[Css]">"Css" Language</label>
+ </div>
+ <div class="checkbox">
+ <label><input value="1" type="checkbox" name="Language[Java]">"Java" Language</label>
+ </div>
+ <div class="checkbox">
+ <label><input value="1" type="checkbox" name="Language[Js]">"Javascript" Language</label>
+ </div>
+ <div class="checkbox">
+ <label><input value="1" type="checkbox" name="Language[Markdown]">"Markdown" Language</label>
+ </div>
+ <div class="checkbox">
+ <label><input value="1" type="checkbox" name="Language[Nsis]">"NSIS" Language</label>
+ </div>
+ <div class="checkbox">
+ <label><input value="1" type="checkbox" name="Language[Php]">"PHP" Language</label>
+ </div>
+ <div class="checkbox">
+ <label><input value="1" type="checkbox" name="Language[Python]">"Python" Language</label>
+ </div>
+ <div class="checkbox">
+ <label><input value="1" type="checkbox" name="Language[RAW]">"RAW" Language</label>
+ </div>
+ <div class="checkbox">
+ <label><input value="1" type="checkbox" name="Language[Ruby]">"Ruby" Language</label>
+ </div>
+ <div class="checkbox">
+ <label><input value="1" type="checkbox" name="Language[Shell]">"Shell/Bash" Language</label>
+ </div>
+ <div class="checkbox">
+ <label><input value="1" type="checkbox" name="Language[Sql]">"SQL" Language</label>
+ </div>
+ <div class="checkbox">
+ <label><input value="1" type="checkbox" name="Language[Xml]">"XML/HTML" Language</label>
+ </div>
+ </div>
+
+ <h3>Include Themes</h3>
+ <div class="form-group">
+ <div class="checkbox">
+ <label><input value="1" type="checkbox" name="Theme[Enlighter]">"Enlighter" Theme</label>
+ </div>
+ <div class="checkbox">
+ <label><input value="1" type="checkbox" name="Theme[Git]">"Git" Theme</label>
+ </div>
+ <div class="checkbox">
+ <label><input value="1" type="checkbox" name="Theme[MooTools]">"MooTools" Theme</label>
+ </div>
+ <div class="checkbox">
+ <label><input value="1" type="checkbox" name="Theme[Mocha]">"Mocha" Theme</label>
+ </div>
+ <div class="checkbox">
+ <label><input value="1" type="checkbox" name="Theme[Panic]">"Panic" Theme</label>
+ </div>
+ <div class="checkbox">
+ <label><input value="1" type="checkbox" name="Theme[Tutti]">"Tutti" Theme</label>
+ </div>
+ <div class="checkbox">
+ <label><input value="1" type="checkbox" name="Theme[Twilight]">"Twilight" Theme</label>
+ </div>
+ </div>
+
+ <h3>Special Features</h3>
+ <div class="form-group">
+ <div class="checkbox">
+ <label><input value="1" type="checkbox" name="Feature[Metainit]">Include the Metainit Utility for easy initialization</label>
+ </div>
+ </div>
+
+ <br />
+ <p>
+ <small>The build-process may tke a few seconds</small>
+ </p>
+ <hr />
+ <button class="btn btn-primary btn-lg" type="submit">Download Custom Build</button>
+</form>
View
13 Resources/Template.css
@@ -35,4 +35,17 @@ body {
}
h2, h3, h4{
clear: left;
+}
+
+.form-group{
+ padding: 5px 10px 5px 0px;
+ border-left: solid 3px #e0e0e0;
+ background-color: #f9f9f9;
+}
+.form-group .checkbox{
+ display: block;
+ padding: 5px 0px 5px 40px;
+}
+.form-group .checkbox label{
+ color: #707070;
}
View
8 Util/PageGenerator.php
@@ -43,6 +43,14 @@ function cdnbase($file){
'headerContent' => $enlighterMetaInitDirective
));
+// === Builder ========================================================
+$builderContent = captureTemplate('Resources/Builder.phtml') ;
+renderTemplate($outputDir.'Builder.html', array(
+'pageContent' => $builderContent,
+'pageTitle' => 'Generate your custom EnlighterJS Build',
+'headerContent' => ''
+));
+
// === Language Examples =================================================
$languages = array(
View
23 Util/concat-compress.xml
@@ -7,7 +7,7 @@
@requires Java 1.5
@requires Yahoo YUI-Compressor
@author Andi Dittrich <andi.dittrich@a3non.org>
- @version 1.0
+ @version 1.3
@license MIT Style X11 License
!-->
@@ -33,10 +33,23 @@
<arg line="--type ${compress.type}" />
</java>
- <!-- add linebreaks -->
- <ant antfile="util/human-readable-filter.xml">
- <property name="filter.file" value="${build.dir}${compress.output}" />
- </ant>
+<!-- Add Linebreaks before+after comments -->
+ <replace file="${build.dir}${compress.output}">
+ <!-- before -->
+ <replacefilter>
+ <replacetoken>/*!</replacetoken>
+ <replacevalue><![CDATA[
+
+/*!]]></replacevalue>
+ </replacefilter>
+
+ <!-- after
+ <replacefilter>
+ <replacetoken>*/</replacetoken>
+ <replacevalue><![CDATA[*/
+]]></replacevalue>
+ </replacefilter> -->
+ </replace>
<!-- Get checksums !-->
<checksum file="${build.dir}${uncompress.output}" property="uncompress.checksum"/>
View
37 Util/human-readable-filter.xml
@@ -1,37 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
- Content Filter
- Adds Linebreaks after comments
-
- @requires Java 1.5
- @author Andi Dittrich <andi.dittrich@a3non.org>
- @version 1.0
- @license MIT Style X11 License
-
-!-->
-<project name="human-readable" default="build">
-
- <!-- Generate Build -->
- <target name="build">
-
- <!-- Add Linebreaks before+after comments -->
- <replace file="${filter.file}">
- <!-- before -->
- <replacefilter>
- <replacetoken>/*!</replacetoken>
- <replacevalue><![CDATA[
-
-/*!]]></replacevalue>
- </replacefilter>
-
- <!-- after
- <replacefilter>
- <replacetoken>*/</replacetoken>
- <replacevalue><![CDATA[*/
-]]></replacevalue>
- </replacefilter> -->
- </replace>
-
- </target>
-</project>
View
61 build.xml
@@ -15,8 +15,20 @@
<property name="yui.jar" value="Util/yuicompressor-2.4.8.jar" />
<property name="build.dir" value="Build/" />
<property name="www.dir" value="PublicHtml/" />
- <property name="build.var.version" value="2.2" />
+ <property name="build.var.version" value="2.2.1" />
+ <!-- Themes to include !-->
+ <property name="include.themes" value="Source/Themes/MooTools.css Source/Themes/Enlighter.css Source/Themes/Git.css Source/Themes/Mocha.css Source/Themes/Panic.css Source/Themes/Tutti.css Source/Themes/Twilight.css" />
+
+ <!-- Languages to include !-->
+ <property name="include.languages" value="Source/Language/Cpp.js Source/Language/CSharp.js Source/Language/Xml.js Source/Language/Css.js Source/Language/Java.js Source/Language/Js.js Source/Language/Markdown.js Source/Language/Php.js Source/Language/Python.js Source/Language/Ruby.js Source/Language/Shell.js Source/Language/Sql.js Source/Language/Nsis.js Source/Language/RAW.js" />
+
+ <!-- Base Sourcefiles to include !-->
+ <property name="include.JsBaseSources" value="Source/EnlighterJS.js Source/SpecialLineHighlighter.js Source/Language/Generic.js Source/LanguageManager.js Source/Tokenizer.js Source/Token.js Source/Renderer/InlineRenderer.js Source/Renderer/BlockRenderer.js Source/Tokenizer/Lazy.js Source/Tokenizer/Xml.js" />
+
+ <!-- Additional Features to include !-->
+ <property name="include.JsFeatures" value="Source/Native/Element.EnlighterJS.js Source/Util/Helper.js Source/UI/TabPane.js Source/Util/Metainit.js" />
+
<!-- ANT.contrib package -->
<path id="ant.contrib.classpath" location="Util/ant-contrib-1.0b3.jar"></path>
<taskdef resource="net/sf/antcontrib/antlib.xml">
@@ -26,28 +38,19 @@
<!-- Generate Build -->
<target name="build">
<!-- Cleanup Build Dir -->
- <delete dir="${build.dir}" />
-
- <!-- Themes to include !-->
- <property name="include.themes" value="Source/Themes/MooTools.css Source/Themes/Enlighter.css Source/Themes/Git.css Source/Themes/Mocha.css Source/Themes/Panic.css Source/Themes/Tutti.css Source/Themes/Twilight.css" />
-
- <!-- Languages to include !-->
- <property name="include.languages" value="Source/Language/Cpp.js Source/Language/CSharp.js Source/Language/Xml.js Source/Language/Css.js Source/Language/Java.js Source/Language/Js.js Source/Language/Markdown.js Source/Language/Php.js Source/Language/Python.js Source/Language/Ruby.js Source/Language/Shell.js Source/Language/Sql.js Source/Language/Nsis.js Source/Language/Raw.js" />
-
- <!-- Sourcefiles to include !-->
- <property name="include.JSsources" value="Source/EnlighterJS.js Source/SpecialLineHighlighter.js Source/Language/Generic.js Source/LanguageManager.js Source/Native/Element.EnlighterJS.js Source/Tokenizer.js Source/Token.js Source/Renderer/InlineRenderer.js Source/Renderer/BlockRenderer.js Source/Tokenizer/Lazy.js Source/Tokenizer/Xml.js Source/Util/Helper.js Source/UI/TabPane.js Source/Util/Metainit.js" />
+ <delete dir="${build.dir}" />
<!-- ****************************** JS BUILD LIBRARY **************************** -->
- <ant antfile="util/concat-compress.xml">
+ <ant antfile="Util/concat-compress.xml">
<property name="compress.description" value="Enlighter" />
<property name="compress.type" value="js" />
- <property name="compress.input" value="notice.txt ${include.JSsources} ${include.languages}" />
+ <property name="compress.input" value="notice.txt ${include.JsBaseSources} ${include.JsFeatures} ${include.languages}" />
<property name="compress.output" value="EnlighterJS.yui.js" />
<property name="uncompress.output" value="EnlighterJS.js" />
</ant>
<!-- ****************************** CSS BUILD *********************************** -->
- <ant antfile="util/concat-compress.xml">
+ <ant antfile="Util/concat-compress.xml">
<property name="compress.description" value="Enlighter" />
<property name="compress.type" value="css" />
<property name="compress.input" value="notice.txt Source/Themes/Base.css ${include.themes}" />
@@ -61,6 +64,34 @@
<replace file="${build.dir}DynamicSourcefileLoader.dev.js" token="{{CSSSOURCES}}" value="Source/Themes/Base.css ${include.themes}" />
</target>
+ <target name="webbuild">
+ <!-- Copy files !-->
+ <copy file="CHANGES.md" tofile="${build.dir}CHANGES.md" />
+ <copy file="LICENSE.md" tofile="${build.dir}LICENSE.md" />
+ <copy file="README.md" tofile="${build.dir}README.md" />
+
+ <!-- ****************************** JS BUILD LIBRARY **************************** -->
+ <ant antfile="Util/concat-compress.xml">
+ <property name="compress.description" value="Enlighter" />
+ <property name="compress.type" value="js" />
+ <property name="compress.input" value="notice.txt ${include.JsBaseSources} ${include.JsFeatures} ${include.languages}" />
+ <property name="compress.output" value="EnlighterJS.yui.js" />
+ <property name="uncompress.output" value="EnlighterJS.js" />
+ </ant>
+
+ <!-- ****************************** CSS BUILD *********************************** -->
+ <ant antfile="Util/concat-compress.xml">
+ <property name="compress.description" value="Enlighter" />
+ <property name="compress.type" value="css" />
+ <property name="compress.input" value="notice.txt Source/Themes/Base.css ${include.themes}" />
+ <property name="compress.output" value="EnlighterJS.yui.css" />
+ <property name="uncompress.output" value="EnlighterJS.css" />
+ </ant>
+
+ <!-- Create Archive !-->
+ <zip destfile="${build.dir}/EnlighterJS.zip" basedir="${build.dir}" />
+ </target>
+
<!-- Generate Examples -->
<target name="examples">
<!-- Cleanup www Dir -->
@@ -74,7 +105,7 @@
</target>
<!-- Generate Demo Website !-->
- <target name="www" depends="build">
+ <target name="www">
<!-- Cleanup www Dir -->
<delete dir="${www.dir}" />
<mkdir dir="${www.dir}"/>
Please sign in to comment.
Something went wrong with that request. Please try again.