Closed jgoldhammer closed 11 years ago
This feature is done with generic mode :
Those template was generated from the existing template Eclipse (see https://github.com/angelozerr/CodeMirror-Java) For instance for JS I have used JSDT Eclipse template https://github.com/angelozerr/CodeMirror-Java/blob/master/src/main/resources/templates/javascript/javascript-templates.xml
You must launch the main https://github.com/angelozerr/CodeMirror-Java/blob/master/src/main/java/codemirror/hint/generator/templates/eclipse/EclipseTemplate2JS.java
Today it doesn't exists clean code for that, it's just a POC.
Very cool. Like it. Maybe you can investigate if it is possible to show the suggestions after opening the link in the browser and return back to the codemirror editor. Currently, the suggestion list is removed after return to the codemirror-tab.
I know that the content info popup should be improved because it closes as soon as you try to focus it (when you click on the link, when you try tab etc). The reason of this bug is that it's the first popup which closes teh whole completion (when this popup looses teh focus). Marijn has added 'closeOnUnfocus' option but I must study it See https://groups.google.com/forum/?fromgroups#!topic/codemirror/5N0rop7dH1g
An other idea that I have done is that insert the content of the URL in the second popup. I have tried with an iframe but it doesn't work. I must try with XMLHttpRequest.
Sample:
http://codemirror-java.opensagres.cloudbees.net/xquery.html