yes it works even without registering it in the layer.xml. Should be another API probably...
Le mer. 3 juin 2020 à 16:43, Emilian Bold <[email protected]> a écrit : > So code folding works. I'm not sure which API offers integration into that > Options panel... > > --emi > > > On Wed, Jun 3, 2020 at 5:37 PM Bilu Al <[email protected]> wrote: > >> hum, i am not sure. I was hoping it would work like the CodeTemplates. >> >> Its works fine in the Editor, i would like to be able to enable/disable >> it in the Editor Options for that specific language >> >> Le mer. 3 juin 2020 à 13:07, Emilian Bold <[email protected]> a >> écrit : >> >>> Hm, I never knew code folding is supposed to auto-register in that >>> setting panel. Are you sure? >>> >>> Do you not see code folding in the editor? >>> >>> --emi >>> >>> >>> On Wed, Jun 3, 2020 at 12:37 PM Bilu Al <[email protected]> wrote: >>> >>>> Its not working: >>>> [image: 25.png] >>>> >>>> but for CodeTemplate works fine my custom language is displayed: >>>> [image: 22.png] >>>> >>>> >>>> is there anything wrong in my layer.xml ? >>>> >>>> Le mer. 3 juin 2020 à 08:01, Emilian Bold <[email protected]> a >>>> écrit : >>>> >>>>> Looks good to me: >>>>> >>>>> > Register FoldManagerFactory into xml layer into the directory >>>>> "Editors/<mime-type>/FoldManager/" >>>>> >>>>> --emi >>>>> >>>>> On Wed, Jun 3, 2020 at 1:42 AM Bilu Al <[email protected]> wrote: >>>>> > >>>>> > Hello, >>>>> > >>>>> > Is it possible to register custom language to the language context >>>>> tab in editor options for: Folding, Formating, Hints etc... >>>>> > >>>>> > This works fine for CodeTemplates in layer file : >>>>> > <folder name="Editors"> >>>>> > <folder name="text"> >>>>> > <folder name="x-custom"> >>>>> > <folder name="CodeTemplates"> >>>>> > <file name="Xxxtemplates.xml" >>>>> url="/com/xxx/xxx/config/Xxxtemplates.xml"/> >>>>> > </folder> >>>>> > >>>>> > >>>>> > But not for FoldManager, not sure to have the right syntax. >>>>> FoldManagerFactory already implemented: >>>>> > <folder name="FoldManager"> >>>>> > <file name="com-xxx-xxx-parser-XXXFoldManagerFactory.instance"/> >>>>> > </folder> >>>>> > >>>>> > >>>>> > >>>>> > --------------------------------------------------------------------- >>>>> > 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 >>>>> > >>>>> >>>>
