libreoffice-code-highlighter
libreoffice-code-highlighter copied to clipboard
Developer Notes
Can the wiki be enabled for developer notes?
Quick and Dirty Development Environment
- See https://wiki.documentfoundation.org/Development/Extension_Development for an overview
- LO files are zipped folders with a renamed extension. Extract them to a directory, change files as required then zip them again with the required extension
- Expose functions for development by uncommenting the corresponding entry in ../META_INF/manifest.xml
- Use the apso extension to edit the macro and display a console
- After the macro is changed the script has to be reloaded by closing and opening the document
- Script LibreOffice remotely via a socket to save reloading lo after each code change
- Tip: Indicate development version in gui by editing description.xml version value to add
!
- How to enable debug console logging?
- How to inject temporary options for development without changing dialog?
https://github.com/jmzambon/libreoffice-code-highlighter/issues/8#issuecomment-1192444464
I'm not clear [...] how to enable logging.
Go to Tools -> Options -> Advanced -> Open Expert Configuration. Search for
ooo.ext.code-highlighter.Registry -> Settingsand change the value ofLogLevelto 1 (INFO) or 2 (DEBUG).If you want the log to be saved in a file, set
LogToFileto 1: the log will be outputted to the user's LibreOffice profile with the name codehighlighter.log.
It still won't log to the apso console.