ACE-自动完成python导入?

时间:2018-11-06 21:37:29

标签: autocomplete ace-editor

所以我在弄乱ACE库,让它在c ++ Qt5应用程序中运行,现在我想看看它如何在python模块上自动完成。

如果我想做

    import test as xx
    xx.printTest(10)

我如何获得ACE来打印可能的xx。选项? 还是有人可以指导我正确的方向进行阅读?

这是我当前的代码:

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Ace</title>
<script src="qrc:/jquery/latest.js" type="text/javascript"></script>
<script src="qrc:/ace/ace.js" type="text/javascript"></script>
<script src="qrc:/ace/ext-language_tools.js"></script>
<script src="qrc:/ace/snippets/python.js"></script>
<style type="text/css" media="screen">
    #editor {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        font: 14px monospace;
    }
</style>

<script>
    var editor;
    window.onload = function () {
        editor = ace.edit("editor");
        editor.setOptions({
            enableBasicAutocompletion: true,
            enableSnippets: true,
            enableLiveAutocompletion: true,
        });
    }
</script>
</head>
<body>
<div id="editor"></div>
</body>
</html>

TIA

0 个答案:

没有答案