This is an automated email from the ASF dual-hosted git repository.
carlosrovira pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push:
new 9184ea4 add hljs.as to Jewel
9184ea4 is described below
commit 9184ea476adf95c3188c744360148dfe1d787c65
Author: Carlos Rovira <[email protected]>
AuthorDate: Mon Jun 3 17:32:26 2019 +0200
add hljs.as to Jewel
---
.../projects/Jewel/src/main/royale/JewelClasses.as | 3 ++
frameworks/projects/Jewel/src/main/royale/hljs.as | 37 ++++++++++++++++++++++
2 files changed, 40 insertions(+)
diff --git a/frameworks/projects/Jewel/src/main/royale/JewelClasses.as
b/frameworks/projects/Jewel/src/main/royale/JewelClasses.as
index 63a8393..1b25904 100644
--- a/frameworks/projects/Jewel/src/main/royale/JewelClasses.as
+++ b/frameworks/projects/Jewel/src/main/royale/JewelClasses.as
@@ -116,6 +116,9 @@ package
//import org.apache.royale.jewel.beads.views.JewelLabelViewBead;
JewelLabelViewBead;
import org.apache.royale.jewel.beads.validators.removeErrorTip;
removeErrorTip;
+
+ import dialogPolyfill; dialogPolyfill;
+ import hljs; hljs;
}
}
diff --git a/frameworks/projects/Jewel/src/main/royale/hljs.as
b/frameworks/projects/Jewel/src/main/royale/hljs.as
new file mode 100644
index 0000000..e9433da
--- /dev/null
+++ b/frameworks/projects/Jewel/src/main/royale/hljs.as
@@ -0,0 +1,37 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package
+{
+ /**
+ * @externs
+ */
+ public class hljs
+ {
+ /**
+ * <inject_html>
+ * <script
src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
+ * <link rel="stylesheet" title="Atom One Dark"
href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/atom-one-dark.min.css">
+ * </inject_html>
+ */
+ public function hljs(){}
+
+ COMPILE::JS
+ public static function highlightBlock(block:Element):void {}
+ }
+}
\ No newline at end of file