SkillAgentSearch skills...

OpenSeesNotepadPlusPlus

Custom Language for Notepad++. It has the same functionality as the Tcl language option in Notepad++, with added features for OpenSees Commands. Modified from work done by aliirmak (https://github.com/aliirmak/notepad-plus-plus-opensees/blob/master/OpenSees.xml)

Install / Use

/learn @ambaker1/OpenSeesNotepadPlusPlus
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

OpenSeesNotepadPlusPlus

Custom Language (and more) for Notepad++. It has the same functionality as the Tcl language option in Notepad++, with added features for OpenSees Commands. Modified from work done by aliirmak (https://github.com/aliirmak/notepad-plus-plus-opensees/blob/master/OpenSees.xml)

Code used for example pictures taken from https://opensees.berkeley.edu/wiki/index.php/Elastic_Frame_Example

This work was done with Notepad++ 8.1.9, Tcl 8.6.10, and OpenSees 3.3.0 Alex Baker, 2021. ambaker1@mtu.edu

OpenSees Language:

A User-Defined language that formats OpenSees files according to OpenSees and Tcl commands.

Installation Instructions
Download the OpenSeesLight.xml or OpenSeesDark.xml file in the repository.
Open your Notepad++, select "Language" on the menu bar, and choose "User Defined Language/Define your Language".
Click the "Import" button, and select the OpenSeesLight.xml or OpenSeesDark.xml file.
For dark themes, make sure that the "Enable global background color" is checked within "Settings/Style Configurator".
Restart Notepad++.
While in an OpenSees .tcl file, select "Language", and choose "OpenSees".
If the style is not to your liking, you can modify it in the "Define your Language" settings.

Autocompletion for Tcl and OpenSees functions:

Autocompletion of OpenSees and Tcl functions.

Copy "OpenSees.xml" to the "autoCompletion" folder within your Notepad++ installation. Restart Notepad++, and make sure that autocompletion is turned on in Settings -> Preferences -> Auto-Completion.

Running OpenSees in Notepad++:

Run a Tcl file in OpenSees directly from Notepad++.

While in Notepad++, press F5.
In the run command box, put in one of the following:

Command Line Version:

cmd /K cd /d "$(CURRENT_DIRECTORY)" && OpenSees "$(FILE_NAME)"

Powershell Version:

powershell -noexit -command Set-Location -LiteralPath '$(CURRENT_DIRECTORY)'; OpenSees '$(FILE_NAME)'

Note: If you have not set OpenSees in your PATH, change "OpenSees" to the full filepath where the executable is.

If you click "save", you can save it as a shortcut. I have mine set as CTRL-SHIFT-ENTER

Contributing

If there are Tcl commands, OpenSees commands, or OpenSees keywords missing, either raise a GitHub issue about it, or fork the repository and submit a pull request. If you are submitting a pull request and just adding keywords, please do not modify the XML files directly. Just add the keywords to the corresponding text files in the "source" directory of the repository, and the UpdateLangFiles.tcl script will take care of the rest.

Related Skills

View on GitHub
GitHub Stars5
CategoryDevelopment
Updated6mo ago
Forks7

Languages

Tcl

Security Score

77/100

Audited on Sep 4, 2025

No findings