Help on installing Notepad++
Notepad++ is a very popular editor for coding. The new version (2022) includes support for Gui4Cli.
Notepad++ is a very popular editor for coding. The new version (2022) includes support for Gui4Cli.
Make Notepad++ the default Gui4Cli editor
Start Gui4Cli and load the "Gui4Cli gui" from the Gui4Cli shortcuts or taskbar menu.
In the 2nd tab, "Auto Guis", change the "Editor" to the full path of "Notepad++.exe"
Start Gui4Cli and load the "Gui4Cli gui" from the Gui4Cli shortcuts or taskbar menu.
In the 2nd tab, "Auto Guis", change the "Editor" to the full path of "Notepad++.exe"
Add shortcuts and menu items for Help
The following will add the following 2 shortcuts and respective menu items in Notepad++'s "Run" menu:
(Note - the "AppData" folder is normally "Hidden" by Windows, so you have to un-hide it)
Scroll down to where it says <UserDefinedCommands> and add the following 2 lines:
The following will add the following 2 shortcuts and respective menu items in Notepad++'s "Run" menu:
- ALT-F2 - Will open the Gui4Cli Manual at the topic of the word you have highlighted
- ALT-F5 - Will open "EventTree.gui" which is a helpful gui located in the Gui/Scied folder in the Gui4Cli directory and provides a list of all events in the gui so you can navigate it easily.
(Note - the "AppData" folder is normally "Hidden" by Windows, so you have to un-hide it)
Scroll down to where it says <UserDefinedCommands> and add the following 2 lines:
<Command name="Get Gui4Cli Help" Ctrl="no" Alt="yes" Shift="no" Key="113">"c:\Program Files (x86)\Gui4Cli\Gui4Cli.exe" -command htmlhelp keyword home:Gui4Cli.chm $(CURRENT_WORD)</Command>
<Command name="Add to Gui4Cli Event Viewer" Ctrl="no" Alt="yes" Shift="no" Key="115">"c:\Program Files (x86)\Gui4Cli\Gui4Cli.exe" -command guiload home:gui/scied/eventtree.gui -fs "$(FULL_CURRENT_PATH)"</Command>
<Command name="Add to Gui4Cli Event Viewer" Ctrl="no" Alt="yes" Shift="no" Key="115">"c:\Program Files (x86)\Gui4Cli\Gui4Cli.exe" -command guiload home:gui/scied/eventtree.gui -fs "$(FULL_CURRENT_PATH)"</Command>
Dark Mode colors
To set the colors for dark mode for Gui4Cli, you have to edit the following file:
"C:/Users/......../AppData/Roaming/Notepad++/themes/DarkModeDefault.xml".
Add the following "LexerType" along with the others found there:
To set the colors for dark mode for Gui4Cli, you have to edit the following file:
"C:/Users/......../AppData/Roaming/Notepad++/themes/DarkModeDefault.xml".
Add the following "LexerType" along with the others found there:
Font
The normal monospace font provided by Windows is Courier New, but I prefer the one used Visual Studio, which is freely available and is called "Cascadia Code". Download it here...
The normal monospace font provided by Windows is Courier New, but I prefer the one used Visual Studio, which is freely available and is called "Cascadia Code". Download it here...
Below is a screengrab of Notepad++ in dark mode, with the accompanying optional "EventTree.gui" showing the code overview.