Skip to content

Instantly share code, notes, and snippets.

@spoenemann
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spoenemann/6c7259458e52ff998acf to your computer and use it in GitHub Desktop.
Save spoenemann/6c7259458e52ff998acf to your computer and use it in GitHub Desktop.
Configuration code for embedding an Xtext editor in a web page (beta2 version)
<link rel="stylesheet" type="text/css" href="xtext/2.9.0.beta2/xtext.css"/>
<script src="webjars/requirejs/2.1.17/require.min.js"></script>
<script type="text/javascript">
require.config({
paths: {
"text": "webjars/requirejs-text/2.0.10-3/text",
"jquery": "webjars/jquery/2.1.4/jquery.min",
"xtext/xtext": "xtext/2.9.0.beta2/xtext"
}
});
require(["xtext/xtext"], function(xtext) {
xtext.createEditor();
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment