Alternate user defined language file for "FreeBasic" ??



  • Is there an alternative to the built in FreeBasic language file ?? I find that the built in one isn’t very useful (colors are not very contrasting and no auto completion - unless I am missing something).

    Alternatively, can I get the source of the built in version to tweak.

    Regards,
    Dave



  • AFIK there is no FreeBasic formatter builtin or supplied with Notepad++. There is FreeBasic.XML. Note you’ll have to remove the extraneous [code] tags before and after the <NotepadPlus> tags to make it a valid XML file. Place a copy of the XML file in the UDL folder: ...\Notepad++\UserDefineLangs and restart Notepad++.

    Now it’s up to you to modify FreeBasic.xml to change the “usefulness” factor as you see fit. UDL files are only loaded when Notepad++ starts, necessitating a series of edit/save/restart operations as you tweak the file.



  • @artie-finkelstein said in Alternate user defined language file for "FreeBasic" ??:

    Now it’s up to you to modify FreeBasic.xml to change the “usefulness” factor as you see fit. UDL files are only loaded when Notepad++ starts, necessitating a series of edit/save/restart operations as you tweak the file.

    Actually, once it is imported the first time, all you have to do is use Language > User Defined Language > Define Your Language to edit the values in the GUI editor, rather than editing the source XML directly – and changes in that dialog are effective immediately, so you can tweak until it looks good.

    @David-Slipper also said,

    and no auto completion

    You have to define your own auto-completion file for a UDL. Relevant doc: https://npp-user-manual.org/docs/auto-completion/ with a description of how it works and the XML syntax required.



  • Many thanks guys.
    Dave


Log in to reply