Last active
August 29, 2015 14:21
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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