haidubogdan commented on PR #9240:
URL: https://github.com/apache/netbeans/pull/9240#issuecomment-3989483629
> We already talked about "customization" and it is fine to make it hard
coded, but can't we do it direclty inside a css file. it is still hard coded
but I can change this, if i want in the settings. So my idea is to add the css
to the css file and read it from there.
I remember being a hustle to include a css resource file and after in
runtime in the compiled state to read it.
@lkishalmi used this solution which seems to work.
```
String configPath = "Editors/" + MarkdownDataObject.MIME_TYPE
+"/FontsColors/" + profile + "/Defaults/viewer.css";
FileObject config = FileUtil.getSystemConfigFile(configPath)
```
And this is my worry about this, in my personal opinion it doesn't seem to
be efficient.
I would be inclined to use a static String or a bundle property value to be
more adapted with how java works.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists