2017-05-16 25 views
0

私はace_editorの注釈で長いテキストを表示しようとしています。アノテーションを表示するためのアイコンはgutter_cellにあります。私の質問は次のとおりです。エースエディタ長文の注釈の折り返し

すべてのテキストが表示されるようにテキストを折り返す最善の方法は何ですか?

私はhtmlを使ってみましたが、成功しませんでした。


enter image description here


this.currentEditor.session.setAnnotations([{ 
     row: this.currentLine - 1, 
     column: 0, 
     text: message, //<---- very long text 
     type: "info" 
}]); 

答えて

1

この

.ace_tooltip { 
    max-width:50px; 
    word-wrap:break-word!important; 
    white-space: pre-wrap!important; 
} 
のようにCSSを追加してみてください