Plugins: Source code viewer based on Scintilla

Summarized Installation Instructions

I summarized this forum and fixed .xml file to keep formatting even after modifying via GUI.
I include new zip file with all files included and README.txt with installation instructions.
dosv_0_0_0_4.zip (1.9 MB)

| CLICK FOR MORE | README.txt file explaining more details

Install on Windows (tested on Win11 Directory Opus 13.5 x64):

  1. Copy and Replace Plugin (You can backup original files before replacing):
    x64/dosv.dll and x64/SciLexer.dll (or x86/.. for 32 bit) -->
    C:\Program Files\GPSoftware\Directory Opus\Viewers
  2. Copy and Replace Plugin Config (or create folder if doesn't exist):
    dosv.config.xml -->
    C:\Users\YOUR_USERNAME\AppData\Roaming\GPSoftware\Directory Opus\ConfigFiles\Plugins
    Change YOUR_USERNAME
    2.1 (Optional) For different theme copy dosv.config_*.xml file and rename to dosv.config.xml
  3. Fully restart Directory Opus. Exit DO from System Tray as it runs in background or kill with Task Manager.
  4. Open Viewer Pane (F7). Click on any code file (.py .xml etc.) and syntax should be highlighted

Install on Linux (not tested):

  1. Extract InstallPlugin_v0.1 to the same folder as dosv_0_0_0_4.zip
    For example:
    myfolder
    |- InstallPlugin_v0.1
    |- dosv_0_0_0_4.zip
  2. Open Directory Opus and navigate to that myfolder
  3. In Directory Opus double click InstallPlugin_v0.1
    In case of error you could copy files manually like we did in Windows installation just paths will be different but I don't know those paths this might help tho: How to backup or locate your Opus configuration (Simple)
  4. Fully restart Directory Opus. Exit DO from System Tray as it runs in background or kill with Task Manager.

Fixing and Editing Syntax Theme File dosv.config.xml:

Other xml theme files might contain empty parameters: eolFill="" fontName="" fontSize=""
With such empty parameters formatting doesn't look nice. Simply deleting those parameters could help but if you modify it through GUI Preferences -> Viewer -> Plugins -> DOSV gear icon. Those empty lines will be added again and it will mess up formatting.
Solution is to fill in each empty parameter e.g. from this

to this

To make it easier you can use "Find & Replace" with regex in a text editor (I use Sublime Text)
Find: eolFill="" (.*) fontName="" fontSize=""
Replace: eolFill="0" $1 fontName="Courier New" fontSize="10"
After replacing all lines everything should work well even if updated in GUI.

1 Like