bobbylight / RSyntaxTextArea

A syntax highlighting, code folding text editor for Java Swing applications.
BSD 3-Clause "New" or "Revised" License
1.12k stars 259 forks source link

[feature] possibility to implement custom line number formatting #517

Closed Mino260806 closed 1 year ago

Mino260806 commented 1 year ago

Feature Overview

This feature regards how line numbers are displayed in RTextScrollPane. For example, instead of displaying 12, we would have the freedom to display any string like ١٢ (hindu-arabic) or 0xC (in hex)

Why this feature is needed

Some people who are used to other numeral systems would find it more convenient and natural to be read the line numbers in that system.

It's also a must when developing a Hex Editor using this library, because line numbers should be displayed as hex offsets

bobbylight commented 1 year ago

Fixed via #518. Thanks again for the PR!