Re: netbeans module coding questions
oh my god, i feel full of love now. i thought netbeans community is dead From: Ernie Rael Sent: Saturday, September 24, 2022 11:28 PM To: dev@netbeans.apache.org ; Peter Cheung Subject: Re: netbeans module coding questions There are some excellent answers, perhaps you are blocked on your side. You can view the thread at: https://lists.apache.org/list?dev@netbeans.apache.org:2022-9 -ernie On 9/24/22 8:11 AM, Peter Cheung wrote: > am i being blocked? whatever i ask, no one willing to answer 🙁 > > > Thanks > > From Peter (System Architect, Quantr Limited https://www.quantr.hk , Mobile > : 96554595) > > > From: Peter Cheung > Sent: Thursday, September 8, 2022 1:46 AM > To: dev@netbeans.apache.org > Subject: netbeans module coding questions > > hi > 1. I want to customize the editor's side bar (the one showing the line > number), I want to add some icon to it. Any example for this? > 2. The highlightfactory + highlighter is highlighting the editor by char > offset. Is it possible to highlight some rows? > thanks > Peter
Re: netbeans module coding questions
There are some excellent answers, perhaps you are blocked on your side. You can view the thread at: https://lists.apache.org/list?dev@netbeans.apache.org:2022-9 -ernie On 9/24/22 8:11 AM, Peter Cheung wrote: am i being blocked? whatever i ask, no one willing to answer 🙁 Thanks From Peter (System Architect, Quantr Limited https://www.quantr.hk , Mobile : 96554595) From: Peter Cheung Sent: Thursday, September 8, 2022 1:46 AM To: dev@netbeans.apache.org Subject: netbeans module coding questions hi 1. I want to customize the editor's side bar (the one showing the line number), I want to add some icon to it. Any example for this? 2. The highlightfactory + highlighter is highlighting the editor by char offset. Is it possible to highlight some rows? thanks Peter - To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org For additional commands, e-mail: dev-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: netbeans module coding questions
Hi Peter, Am Samstag, dem 24.09.2022 um 15:11 + schrieb Peter Cheung: > am i being blocked? whatever i ask, no one willing to answer 🙁 you need to subscribe to dev@netbeans.apache.org. This is a public mailinglist and it is your job to ensure, that you read it. I cleared all your emails for delivery. As you can see here: https://lists.apache.org/thread/gf47jkk4sjm8fkj5hqx2970y2ycn0613 you got multiple replies. I send this email to the mailinglist and explicitly to you, but you can't expect people to do this and thus I repeat, that you need to subscribe. See here: https://netbeans.apache.org/community/mailing-lists.html Greetings Matthias - To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org For additional commands, e-mail: dev-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: netbeans module coding questions
am i being blocked? whatever i ask, no one willing to answer 🙁 Thanks From Peter (System Architect, Quantr Limited https://www.quantr.hk , Mobile : 96554595) From: Peter Cheung Sent: Thursday, September 8, 2022 1:46 AM To: dev@netbeans.apache.org Subject: netbeans module coding questions hi 1. I want to customize the editor's side bar (the one showing the line number), I want to add some icon to it. Any example for this? 2. The highlightfactory + highlighter is highlighting the editor by char offset. Is it possible to highlight some rows? thanks Peter
Re: netbeans module coding questions
Hello, You have a very good example here: https://github.com/junichi11/netbeans-color-codes-preview BTW, it is a very useful plugin that I would expect be part of core NB eventually. Hope it helps. Cheers, JM On Sun, Sep 11, 2022 at 3:20 PM Christian Lenz wrote: > Hey Peter, > > you can have a look here: > https://github.com/joakim-eriksson/nb-eslint/tree/master/src/se/jocke/nb/eslint/annotation > we did this with Annotations. Unfortunatly, I couldn’t find a solution, how > to add the glyph Icon, just before or after the line number. Now it is on > top. If you do this by your own with a sidebar, just have a look at this > cool repo: https://github.com/junichi11/netbeans-color-codes-preview > there you can see, that this is the other implementation that was > suggested, with the Sidebar factory. > > > Cheers > > Chris > > Von: Peter Cheung > Gesendet: Mittwoch, 7. September 2022 20:30 > An: dev@netbeans.apache.org > Betreff: netbeans module coding questions > > hi >1. I want to customize the editor's side bar (the one showing the line > number), I want to add some icon to it. Any example for this? >2. The highlightfactory + highlighter is highlighting the editor by > char offset. Is it possible to highlight some rows? > thanks > Peter > >
AW: netbeans module coding questions
Hey Peter, you can have a look here: https://github.com/joakim-eriksson/nb-eslint/tree/master/src/se/jocke/nb/eslint/annotation we did this with Annotations. Unfortunatly, I couldn’t find a solution, how to add the glyph Icon, just before or after the line number. Now it is on top. If you do this by your own with a sidebar, just have a look at this cool repo: https://github.com/junichi11/netbeans-color-codes-preview there you can see, that this is the other implementation that was suggested, with the Sidebar factory. Cheers Chris Von: Peter Cheung Gesendet: Mittwoch, 7. September 2022 20:30 An: dev@netbeans.apache.org Betreff: netbeans module coding questions hi 1. I want to customize the editor's side bar (the one showing the line number), I want to add some icon to it. Any example for this? 2. The highlightfactory + highlighter is highlighting the editor by char offset. Is it possible to highlight some rows? thanks Peter
Re: netbeans module coding questions
On 07. 09. 22 19:46, Peter Cheung wrote: hi 1. I want to customize the editor's side bar (the one showing the line number), I want to add some icon to it. Any example for this? Two ways: 1/ register a sidebar on the 'west' side. See editor.fold.nbui module - you're free to paint whatever you want. 2/ make an annotation and assign a glyph to it. See the Editor Annotations APIs, e.g. debugger annotations for example. 2. The highlightfactory + highlighter is highlighting the editor by char offset. Is it possible to highlight some rows? At least two ways. - make an AnnotationType of 'line' type. Use Annoation API to mark the line. - make the highlight include the terminating newline and include HighlightsContainer.ATTR_EXTENDS_EOL = true in its attributes. -S. - To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org For additional commands, e-mail: dev-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: netbeans module coding questions
On Wed, 7 Sept 2022, 19:30 Peter Cheung, wrote: >2. The highlightfactory + highlighter is highlighting the editor by > char offset. Is it possible to highlight some rows? > Well, you can make it highlight rows. I have a flash on save module that highlights all changed rows in PraxisLIVE. https://github.com/praxis-live/praxis-live/tree/master/praxis.live.editor.saveflash/src/org/praxislive/ide/editor/saveflash It's quite a useful feature. Good for talks, but also occasionally for picking up unintentional changes. Keep meaning to tidy up and contribute. Best wishes, Neil
netbeans module coding questions
hi 1. I want to customize the editor's side bar (the one showing the line number), I want to add some icon to it. Any example for this? 2. The highlightfactory + highlighter is highlighting the editor by char offset. Is it possible to highlight some rows? thanks Peter