-
Notifications
You must be signed in to change notification settings - Fork 236
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
Change Default Text Color #172
Comments
The CSS shipped with the demo defines highlighting like this: .keyword {
-fx-fill: purple;
-fx-font-weight: bold;
} Your selector .styled-text-area .text.keyword {
-fx-fill: purple;
-fx-font-weight: bold;
} |
So then say in the java keywords demo how would I get the current text So in this case how would I change the Java Keywords demo so that it the Jordan On 08/31/2015 01:40 PM, Tomas Mikula wrote:
|
Sorry I wasn't clear enough. You did the right thing to add .styled-text-area .text{
-fx-fill:yellow;
} but in order to not override the keywords etc., you now in addition have to make them more specific. |
This still does not work I have: .styled-text-area{
} .styled-text-area .text .comment { All text is yellow and there is no syntax highlighting. On 08/31/2015 02:05 PM, Tomas Mikula wrote:
|
You need
|
You can disregard my last message sorry. CSS is somewhat new to me and I It's all good now. Thanks for the help and the great editing pane. Jordan On 08/31/2015 02:05 PM, Tomas Mikula wrote:
|
Is it possible to change the caret color? When changing fill on a -Jordan On 08/31/2015 02:18 PM, Tomas Mikula wrote:
|
It is actually not public API, but it so happens that the caret is a Path with zero area and stroke of width 1px and has the class .styled-text-area .caret {
-fx-stroke: yellow;
} |
first this looks like a cool control, thanks for the hard work.
I'm trying to implement a personal editor based on pandoc markdown. I want to implement syntax hi-lighting for it and stumbled across your project. I ran the java keyword demo included with the source. It looked nice, however when I spend long stretches at the computer I prefer an editor with a black background, think darcula in Intellij or Norway Today in Netbeans. So I proceeded to change the background colour to black, which was easy enough to achieve, I just added the following to the css file:
With a little googling I found that I had to set the fill for the text as follows:
However when I set the fill as above there is no longer any syntax hi-lighting everything is yellow. So I was wondering if this is a bug or if there is some other way to change the default text colour.
Anyway to replicate just add the above to the java-keywords.css file.
The text was updated successfully, but these errors were encountered: