Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: Background color controls #96

Closed
ghost opened this issue Nov 14, 2014 · 2 comments
Closed

Suggestion: Background color controls #96

ghost opened this issue Nov 14, 2014 · 2 comments

Comments

@ghost
Copy link

ghost commented Nov 14, 2014

Hi Tomas, Would it be possible to specify background color(s) for parts of code area by line numbers?

For example area.setBackground(color) : would color all, or setBackground(color, start # , end #) where end is exclusive. I am trying to find a way to achieve something like this (photoshoped-image):

example

Thanks,
Maher

@TomasMikula
Copy link
Member

Hi Maher, this would be possible with paragraph-level styling (#6). Then you would be able to set background color (and any other properties) for whole paragraphs/lines.

@TomasMikula
Copy link
Member

This is now possible with the latest SNAPSHOT release. In InlineCssTextArea, you can use

area.setParagraphStyle(7, "-fx-background-color: gray;");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant