Permalink
Browse files

Release v2.0

  • Loading branch information...
AndiDittrich committed Apr 27, 2014
1 parent 6d7f361 commit a1002bafa0a853a85c1972645eb26fff2bdc9910
Showing with 9,431 additions and 5,272 deletions.
  1. +3 −1 .gitignore
  2. +59 −0 Build/DynamicSourcefileLoader.dev.js
  3. +372 −109 Build/EnlighterJS.css
  4. +827 −967 Build/EnlighterJS.js
  5. +38 −27 Build/EnlighterJS.yui.css
  6. +53 −52 Build/EnlighterJS.yui.js
  7. +56 −1 CHANGES.md
  8. +254 −0 Development.phtml
  9. +0 −47 Examples/Quickstart.html
  10. +0 −39 Examples/Template.html
  11. +0 −64 Examples/Testcase.Metainit.html
  12. +0 −487 Examples/Testcase.Themes.html
  13. +0 −84 Examples/Testcase.cpp.html
  14. +0 −109 Examples/Testcase.css.html
  15. +0 −69 Examples/Testcase.html.html
  16. +0 −126 Examples/Testcase.java.html
  17. +0 −55 Examples/Testcase.json.html
  18. +0 −121 Examples/Testcase.md.html
  19. +0 −91 Examples/Testcase.nsis.html
  20. +0 −141 Examples/Testcase.php.html
  21. +0 −139 Examples/Testcase.ruby.html
  22. +0 −69 Examples/Testcase.sql.html
  23. +0 −191 Examples/Testcase.unit.html
  24. +0 −56 Examples/Testcase.xml.html
  25. +738 −0 Examples/Themes.html
  26. +205 −0 Examples/c.html
  27. +164 −0 Examples/cpp.html
  28. +180 −0 Examples/css.html
  29. +0 −449 Examples/data/Themes.html
  30. +0 −46 Examples/data/cpp.html
  31. +0 −71 Examples/data/css.html
  32. +0 −17 Examples/data/json.html
  33. +0 −83 Examples/data/md.html
  34. +0 −31 Examples/data/sql.html
  35. +0 −18 Examples/data/xml.html
  36. +148 −0 Examples/html.html
  37. +206 −0 Examples/java.html
  38. +108 −28 Examples/{Testcase.js.html → js.html}
  39. +135 −0 Examples/json.html
  40. +210 −0 Examples/markdown.html
  41. +145 −0 Examples/nohighlight.html
  42. +171 −0 Examples/nsis.html
  43. +221 −0 Examples/php.html
  44. +182 −0 Examples/python.html
  45. +145 −0 Examples/raw.html
  46. +219 −0 Examples/ruby.html
  47. +150 −0 Examples/sql.html
  48. +261 −0 Examples/unit.html
  49. +145 −0 Examples/xml.html
  50. +1 −1 LICENSE.md
  51. +67 −0 Quickstart-jsinit.html
  52. +37 −0 Quickstart.html
  53. +355 −181 README.md
  54. +117 −0 Resources/BootstrapTemplate.phtml
  55. +59 −0 Resources/DynamicSourcefileLoader.js
  56. +38 −0 Resources/Template.css
  57. +14 −0 Resources/TestcaseData/Quickstart.phtml
  58. +90 −0 Resources/TestcaseData/Theme.phtml
  59. +91 −0 Resources/TestcaseData/c.html
  60. +50 −0 Resources/TestcaseData/cpp.html
  61. +66 −0 Resources/TestcaseData/css.html
  62. +4 −1 {Examples/data → Resources/TestcaseData}/html.html
  63. +5 −1 {Examples/data → Resources/TestcaseData}/java.html
  64. +5 −1 {Examples/data → Resources/TestcaseData}/js.html
  65. +21 −0 Resources/TestcaseData/json.html
  66. +96 −0 Resources/TestcaseData/markdown.html
  67. +31 −0 Resources/TestcaseData/nohighlight.html
  68. +5 −1 {Examples/data → Resources/TestcaseData}/nsis.html
  69. +5 −1 {Examples/data → Resources/TestcaseData}/php.html
  70. +68 −0 Resources/TestcaseData/python.html
  71. +31 −0 Resources/TestcaseData/raw.html
  72. +5 −1 {Examples/data → Resources/TestcaseData}/ruby.html
  73. +36 −0 Resources/TestcaseData/sql.html
  74. +17 −23 {Examples/data → Resources/TestcaseData}/unit.html
  75. +31 −0 Resources/TestcaseData/xml.html
  76. +21 −0 Resources/bootstrap-LICENSE
  77. +7 −0 Resources/bootstrap-theme.min.css
  78. +7 −0 Resources/bootstrap.min.css
  79. BIN Resources/favicon.png
  80. 0 {Examples → Resources}/mootools-LICENSE
  81. 0 {Examples → Resources}/mootools-core-1.4.5-full-nocompat.js
  82. +820 −0 Resources/mootools-more-1.4.0.1.js
  83. +0 −70 Source/Compiler.js
  84. +0 −57 Source/Element.EnlighterJS.js
  85. +180 −83 Source/EnlighterJS.js
  86. +0 −116 Source/Helper.js
  87. +0 −155 Source/Language.js
  88. +2 −7 Source/{Languages → Language}/Cpp.js
  89. +2 −4 Source/{Languages → Language}/Css.js
  90. +172 −0 Source/Language/Generic.js
  91. +4 −6 Source/{Languages → Language}/Java.js
  92. +2 −4 Source/{Languages → Language}/Js.js
  93. +7 −9 Source/{Languages/Md.js → Language/Markdown.js}
  94. +3 −6 Source/{Languages → Language}/Nsis.js
  95. +2 −5 Source/{Languages → Language}/Php.js
  96. +11 −4 Source/{Languages → Language}/Python.js
  97. +3 −3 Source/{Languages → Language}/RAW.js
  98. +2 −4 Source/{Languages → Language}/Ruby.js
  99. +2 −5 Source/{Languages → Language}/Shell.js
  100. +2 −6 Source/{Languages → Language}/Sql.js
  101. +90 −0 Source/Language/Template.mylang.js
  102. +48 −0 Source/Language/Xml.js
  103. +23 −15 Source/{Alias.js → LanguageManager.js}
  104. +0 −26 Source/Languages/C.js
  105. +0 −25 Source/Languages/Html.js
  106. +0 −46 Source/Languages/Language.template.js
  107. +0 −37 Source/Languages/Xml.js
  108. +0 −39 Source/Metainit.js
  109. +73 −0 Source/Native/Element.EnlighterJS.js
  110. +31 −26 Source/{Compiler/List.js → Renderer/BlockRenderer.js}
  111. +15 −20 Source/{Compiler/Inline.js → Renderer/InlineRenderer.js}
  112. +2 −3 Source/SpecialLineHighlighter.js
  113. +174 −0 Source/Themes/Base.css
  114. +116 −0 Source/Themes/Enlighter.css
  115. +19 −9 Source/Themes/Git.css
  116. +21 −9 Source/Themes/Mocha.css
  117. +47 −0 Source/Themes/MooTools.css
  118. +16 −1 Source/Themes/Panic.css
  119. +0 −130 Source/Themes/Standard.css
  120. +15 −4 Source/Themes/Tutti.css
  121. +21 −7 Source/Themes/Twilight.css
  122. +6 −11 Source/Token.js
  123. +49 −58 Source/Tokenizer.js
  124. +59 −64 Source/Tokenizer/Lazy.js
  125. +10 −15 Source/Tokenizer/Smart.js
  126. +82 −79 Source/Tokenizer/Xml.js
  127. +65 −0 Source/UI/ShadowClipboard.js
  128. +24 −14 Source/{ → UI}/TabPane.js
  129. +83 −0 Source/Util/Helper.js
  130. +53 −0 Source/Util/Metainit.js
  131. +0 −3 TODO.md
  132. +70 −0 Util/ExampleGenerator.php
  133. +112 −0 Util/PageGenerator.php
  134. BIN Util/ant-contrib-0.6.jar
  135. BIN Util/ant-contrib-1.0b3.jar
  136. BIN Util/yuicompressor-2.4.7.jar
  137. BIN Util/yuicompressor-2.4.8.jar
  138. +54 −53 Util/yuicompressor-LICENSE
  139. +56 −27 build.xml
  140. +6 −6 notice.txt
  141. +2 −2 package.yml
  142. BIN screenshot1.png
  143. BIN screenshot2.png
View
@@ -1,2 +1,4 @@
.settings*
-.project
+.project
+gfx/*
+PublicHtml/*
@@ -0,0 +1,59 @@
+/*!
+---
+name: EnlighterJS Development Sourcefile Loader
+description: Dynamically loads all EnlighterJS Sourcefiles (used for rapid development without the requirement of rebuilds)
+
+license: MIT-style X11 License
+
+authors:
+ - Andi Dittrich
+
+requires:
+ - Core/1.4.5
+ - More/Asset
+...
+*/
+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/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
+ var jsfiles = enlighterJsSources.split(' ');
+ var cssfiles = enlighterCssSources.split(' ');
+
+ // sequential js file loading
+ var loadScript = (function(file){
+ Asset.javascript(file, {
+ onLoad : function(){
+ if (jsfiles.length > 0){
+ loadScript(jsfiles.shift());
+ }else{
+ window.fireEvent('jsloaded');
+ }
+ },
+ onError: function(msg){
+ alert(msg);
+ }
+ });
+ });
+ loadScript(jsfiles.shift());
+
+ // sequential css file loading
+ var loadStyles = (function(file){
+ Asset.css(file, {
+ onLoad : function(){
+ if (cssfiles.length > 0){
+ loadStyles(cssfiles.shift());
+ }else{
+ window.fireEvent('cssloaded');
+ }
+ },
+ onError: function(msg){
+ alert(msg);
+ }
+ });
+ });
+ loadStyles(cssfiles.shift());
+});
+
Oops, something went wrong.

0 comments on commit a1002ba

Please sign in to comment.