基于 JavaFX 的代碼編輯器:RichTextFX

jopen 10年前發布 | 36K 次閱讀 JavaFX Java開發 RichTextFX

RichTextFX 提供 JavaFX API 的文本框,作為文本范圍的樣式。RichTextFX 是基礎的富文本編輯器,還是帶有語法高亮功能的代碼編輯器。
68747470733a2f2f676f6f676c6564726976652e636f6d2f686f73742f3042346135416e4e6e5a686b62596c566c62567072596e685064566b2f726963682d746578742e706e67.png

在線示例

RichTextFX 有著大量的擴展空間,比如,支持段落級樣式,文本中的任意節點,包括樣式信息的復制粘貼等。

Features

  • Assign arbitrary styles to arbitrary ranges of text.
  • Display line numbers or, more generally, any graphic in front of each paragraph. Can be used to show breakpoint toggles on each line of code.
  • Positioning a popup window relative to the caret or selection. Useful e.g. to position an autocompletion box.
  • Getting the character index under the mouse when the mouse stays still over the text for a specified period of time. Useful for displaying tooltips depending on the word under the mouse.

項目主頁:http://www.baiduhome.net/lib/view/home/1410272269195

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!