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 317e9ee temporal fix for inject_html in @extern classes
317e9ee is described below
commit 317e9ee88712b72a1c225645f840c9dc81a11353
Author: Carlos Rovira <[email protected]>
AuthorDate: Fri Aug 16 11:49:58 2019 +0200
temporal fix for inject_html in @extern classes
---
.../royale/components/ExampleAndSourceCodeTabbedSectionContent.as | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git
a/examples/royale/TourDeJewel/src/main/royale/components/ExampleAndSourceCodeTabbedSectionContent.as
b/examples/royale/TourDeJewel/src/main/royale/components/ExampleAndSourceCodeTabbedSectionContent.as
index 75d9a3a..b122740 100644
---
a/examples/royale/TourDeJewel/src/main/royale/components/ExampleAndSourceCodeTabbedSectionContent.as
+++
b/examples/royale/TourDeJewel/src/main/royale/components/ExampleAndSourceCodeTabbedSectionContent.as
@@ -37,6 +37,11 @@ package components
{
/**
* constructor.
+ *
+ * <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>
*
* @langversion 3.0
* @playerversion Flash 10.2
@@ -130,7 +135,10 @@ package components
{
sourceCodeMXMLText.text = event.target.sourceCode;
+ COMPILE::JS
+ {
hljs.highlightBlock(sourceCodeMXMLText.element);
+ }
}