blob: db09932eaf6c7da314150fa185a09ea813bdd22c [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<meta name="copyright" content="Copyright (c) IBM Corporation and others 2011.">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="../orion/plugin.js"></script>
<script type="text/javascript" src="../orion/editor/webContentAssist.js"></script>
<script type="text/javascript" src="../orion/editor/htmlGrammar.js"></script>
<script type="text/javascript">
window.onload = function() {
var provider = new eclipse.PluginProvider();
// Content assist for CSS, JavaScript
(function() {
provider.registerServiceProvider("orion.edit.contentAssist",
new orion.editor.CssContentAssistProvider(),
{name: "CSS content assist", pattern: "\\.css$"});
provider.registerServiceProvider("orion.edit.contentAssist",
new orion.editor.JavaScriptContentAssistProvider(),
{name: "JavaScript content assist", pattern: "\\.js$"});
}());
// Syntax highlighting for HTML
(function() {
var serviceImpl = { /* Grammar-based, so no service impl. All data is in properties */ };
var serviceProperties = orion.editor.HtmlGrammar;
provider.registerServiceProvider("orion.edit.highlighter", serviceImpl, serviceProperties);
}());
// Register our editor for html, js, json, css, xml, java
(function() {
var serviceImpl = {};
var serviceProperties = {
name: "Orion web editor",
href: "../edit/edit.html#${Location}",
validationProperties: {Name: "*.(css|js|json|htm|html|txt|xml|java)"}
};
provider.registerServiceProvider("orion.navigate.openWith", serviceImpl, serviceProperties);
}());
provider.connect();
};
</script>
</head>
<body>
</body>
</html>