Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlaf Otto2016-04-28 13:37:15 +0000
committerOlaf Otto2016-04-28 13:37:15 +0000
commit5e8b643cefdeffce4261c26c4968cde8c8e02b50 (patch)
treea55ac48235d9d9cbe82318266458ad1d8315814b
parentb6aeaaa27ba0959a90b55dc661d946d544b51438 (diff)
downloadblueprint-5e8b643cefdeffce4261c26c4968cde8c8e02b50.tar.gz
blueprint-5e8b643cefdeffce4261c26c4968cde8c8e02b50.tar.xz
blueprint-5e8b643cefdeffce4261c26c4968cde8c8e02b50.zip
- Release 2.0.0
Added code highlighting capabilities
-rwxr-xr-xindex.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/index.php b/index.php
index 1be738c..5f8c9ed 100755
--- a/index.php
+++ b/index.php
@@ -26,6 +26,15 @@
// # 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);

Back to the top