基于 JavaFX 的代碼編輯器:RichTextFX
RichTextFX 提供 JavaFX API 的文本框,作為文本范圍的樣式。RichTextFX 是基礎的富文本編輯器,還是帶有語法高亮功能的代碼編輯器。
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.
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!