|
I want to check for newlines, comments, etc. around a source element. How can I get the text? |
|
Resource.getSourceText();
|
Typically you will use this in concert with Element.getEndOffset() - find the location of something of interest and then check the text around it for something.
Source: NetBeans FAQ
Related Tips
|
Page 1 of 0 ( 0 comments )
You can share your information about this topic using the form below!
Please do not post your questions with this form! Thanks.