Re: add highlight in pure programmatically
Peter Cheung <[email protected]> Sat, 23 Sep 2017 18:02:52 +0000
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <ME1PR01MB02605A9EDD7486902B7790FDB5640@ME1PR01MB0260.ausprd01.prod.outlook.com> |
--_000_ME1PR01MB02605A9EDD7486902B7790FDB5640ME1PR01MB0260ausp_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable You example is correct, i registered the HightlightFactory by mimetype=3D""= , so all file types are hocked to my factory. Thanks again Gentlemen ________________________________ From: Neil C Smith <[email protected]> Sent: Monday, September 18, 2017 1:44 AM To: [email protected] Subject: [platform-dev] Re: add highlight in pure programmatically Hi, On Sun, 17 Sep 2017, 17:53 Peter Cheung <[email protected]<mailto:mcheu= [email protected]>> wrote: Hi Why the following code has no effect to add highlight? How are you registering your highlight layer factory and creating the highl= ight layer? I was getting my head around this last week to make a simple sa= ve-flash plugin - source here if it helps - https://github.com/praxis-live/= praxis-live/tree/develop/praxis.live.editor.saveflash/src/net/neilcsmith/pr= axis/live/editor/saveflash Best wishes, Neil -- Neil C Smith Artist & Technologist www.neilcsmith.net<http://www.neilcsmith.net> Praxis LIVE - hybrid visual IDE for creative coding - www.praxislive.org<ht= tp://www.praxislive.org> --_000_ME1PR01MB02605A9EDD7486902B7790FDB5640ME1PR01MB0260ausp_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <html> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-= 1"> <style type=3D"text/css" style=3D"display:none;"><!-- P {margin-top:0;margi= n-bottom:0;} --></style> </head> <body dir=3D"ltr"> <div id=3D"divtagdefaultwrapper" style=3D"font-size:12pt;color:#000000;font= -family:Calibri,Helvetica,sans-serif;" dir=3D"ltr"> <p>You example is correct, i registered the HightlightFactory by mimetype= =3D"", so all file types are hocked to my factory.</p> <p>Thanks again Gentlemen</p> <br> <br> <div style=3D"color: rgb(0, 0, 0);"> <hr tabindex=3D"-1" style=3D"display:inline-block; width:98%"> <div id=3D"divRplyFwdMsg" dir=3D"ltr"><font face=3D"Calibri, sans-serif" co= lor=3D"#000000" style=3D"font-size:11pt"><b>From:</b> Neil C Smith <neil= [email protected]><br> <b>Sent:</b> Monday, September 18, 2017 1:44 AM<br> <b>To:</b> [email protected]<br> <b>Subject:</b> [platform-dev] Re: add highlight in pure programmatically</= font> <div> </div> </div> <div>Hi,<br> <br> <div class=3D"gmail_quote"> <div dir=3D"ltr">On Sun, 17 Sep 2017, 17:53 Peter Cheung <<a href=3D"mai= lto:[email protected]">[email protected]</a>> wrote:<br> </div> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex; border-left:1= px #ccc solid; padding-left:1ex"> <div dir=3D"ltr"> <div style=3D"font-family:Calibri,Helvetica,sans-serif; font-size:12pt; col= or:rgb(0,0,0)"> Hi</div> <div style=3D"font-family:Calibri,Helvetica,sans-serif; font-size:12pt; col= or:rgb(0,0,0)"> Why the following code has no effect to add highlight?</div> <div style=3D"font-family:Calibri,Helvetica,sans-serif; font-size:12pt; col= or:rgb(0,0,0)"> </div> </div> </blockquote> </div> <div class=3D"gmail_quote"> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex; border-left:1= px #ccc solid; padding-left:1ex"> <div dir=3D"ltr"> <div style=3D"font-family:Calibri,Helvetica,sans-serif; font-size:12pt; col= or:rgb(0,0,0)"> </div> </div> </blockquote> </div> <div class=3D"gmail_quote"> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex; border-left:1= px #ccc solid; padding-left:1ex"> <div dir=3D"ltr"> <div style=3D"font-family:Calibri,Helvetica,sans-serif; font-size:12pt; col= or:rgb(0,0,0)"> </div> </div> </blockquote> </div> <div><br> </div> <div>How are you registering your highlight layer factory and creating the = highlight layer? I was getting my head around this last week to make a simp= le save-flash plugin - source here if it helps - <a href=3D"https://gi= thub.com/praxis-live/praxis-live/tree/develop/praxis.live.editor.saveflash/= src/net/neilcsmith/praxis/live/editor/saveflash">https://github.com/praxis-= live/praxis-live/tree/develop/praxis.live.editor.saveflash/src/net/neilcsmi= th/praxis/live/editor/saveflash</a></div> <div><br> </div> <div>Best wishes, </div> <div><br> </div> <div>Neil</div> <div class=3D"gmail_quote"> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex; border-left:1= px #ccc solid; padding-left:1ex"> <div dir=3D"ltr"> <div style=3D"font-family:Calibri,Helvetica,sans-serif; font-size:12pt; col= or:rgb(0,0,0)"> <br> </div> </div> </blockquote> </div> <div dir=3D"ltr">-- <br> </div> <div class=3D"gmail_signature"> <div dir=3D"ltr">Neil C Smith <div>Artist & Technologist</div> <div><a href=3D"http://www.neilcsmith.net" target=3D"_blank">www.neilcsmith= .net</a></div> <div><br> </div> <div>Praxis LIVE - hybrid visual IDE for creative coding - <a href=3D"http:= //www.praxislive.org" target=3D"_blank"> www.praxislive.org</a></div> </div> </div> </div> </div> </div> </body> </html> --_000_ME1PR01MB02605A9EDD7486902B7790FDB5640ME1PR01MB0260ausp_--