CodeAreaFX

CodeAreaFX是一款专为JavaFX设计的文本区域组件,提供了丰富的API来样式化文本范围,适用于创建带有语法高亮的富文本编辑器和代码编辑器。本文介绍如何使用预构建的“fat”JAR文件运行演示,包括自动高亮显示Java关键字和富文本编辑功能。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

CodeAreaFX is a text area for JavaFX with API to style ranges of text. It is intended as a base for rich-text editors and code editors with syntax highlighting.

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

https://github.com/TomasMikula/CodeAreaFX

Demos

1. Automatic highlighting of Java keywords

Screenshot of the JavaKeywords demo

Run using the pre-built JAR

Download the pre-built "fat" JAR file and run

java -cp codearea-demos-fat-yyyymmdd.jar codearea.demo.JavaKeywords
Run from the source repo
gradle JavaKeywords
Source code

JavaKeywords.java

2. Rich-text editor

Screenshot of the RichText demo

Run using the pre-built JAR

Download the pre-built "fat" JAR file and run

java -cp codearea-demos-fat-yyyymmdd.jar codearea.demo.RichText
Run from the source repo
gradle RichText
Source code

RichText.java

Source code of this demo is dedicated to the public domain.

License

GPLv2 with the Classpath Exception

Links

API Documentation
Downloads
Dropped Features
Known Issues
Java 8 Development Gotchas

转载于:https://www.cnblogs.com/cuizhf/p/3537888.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值