- Release 2.0.0
Added code highlighting capabilities
diff --git a/download/index.php b/download/index.php
index ce46225..93f4a9a 100644
--- a/download/index.php
+++ b/download/index.php
@@ -25,6 +25,17 @@
// # Paste your HTML content between the EOHTML markers!
$html = file_get_contents('_index.html');
+
+ // Syntax Highlighting
+ $App->AddExtraHtmlHeader('<link rel="stylesheet" type="text/css" href="//eclipse.org/orion/editor/releases/5.0/built-editor.css"/>');
+ $App->AddExtraHtmlHeader('<script src="//eclipse.org/orion/editor/releases/5.0/built-editor.min.js"></script>');
+ $App->AddExtraHtmlHeader('<script>
+ /*global require*/
+ require(["orion/editor/edit"], function(edit) {
+ edit({className: "editor"});
+ });
+ </script>');
+
# Generate the web page
$App->generatePage($theme, $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html);
?>
\ No newline at end of file
diff --git a/index.php b/index.php
index 5f8c9ed..1be738c 100755
--- a/index.php
+++ b/index.php
@@ -26,15 +26,6 @@
// # Paste your HTML content between the EOHTML markers!
$html = file_get_contents('home/_index.html');
- $App->AddExtraHtmlHeader('<link rel="stylesheet" type="text/css" href="//eclipse.org/orion/editor/releases/5.0/built-editor.css"/>');
- $App->AddExtraHtmlHeader('<script src="//eclipse.org/orion/editor/releases/5.0/built-editor.min.js"></script>');
- $App->AddExtraHtmlHeader('<script>
- /*global require*/
- require(["orion/editor/edit"], function(edit) {
- edit({className: "editor"});
- });
- </script>');
-
# Generate the web page
$App->generatePage($theme, $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html);