LotJ Color Preview - VSCode Extension
April 3, 2025 ยท View on GitHub
This VSCode extension provides a live preview of color-coded text for the Legends of the Jedi (LotJ) MUD. It allows you to see how the text will appear in the game as you type, making it easier to create, edit, and visualize color codes in real-time.
Installation
1. Download the Latest .vsix File
- Go to the Releases section of this repository.
- Download the latest
.vsixfile.
2. Install the Extension Manually
- Open VSCode.
- Navigate to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window or by pressing
Ctrl+Shift+X. - Click on the three-dot menu in the Extensions view.
- Select "Install from VSIX..." from the dropdown.
- Locate the downloaded
.vsixfile and select it. - The extension will be installed.
3. Reload VSCode
After installing the extension, you need to reload VSCode for the extension to be activated. You can do this by:
- Closing and reopening VSCode, or
- Pressing
Ctrl+Shift+Pto open the Command Palette, typingReload Window, and selecting theDeveloper: Reload Windowoption.
Once VSCode is reloaded, the extension will be ready for use.
Usage
- Open or create a text file containing LotJ color codes.
- Run the command
LotJ Color Previewfrom the command palette (Ctrl+Shift+P). - A new preview panel will open beside your text editor, displaying the color-coded text as it would appear in the Legends of the Jedi MUD.
- The preview will update automatically as you type or modify the text in the active editor.
Settings
-
lotjcolor.breakbetweenlines(default:true):Controls whether a blank line break is inserted between lines of text. This can improve readability for those who prefer spaced-out text.
-
lotjcolor.displayfont(default:'Courier New', Courier, monospace):Specifies the font family used in the preview panel.
-
lotjcolor.displayfontsize(default:0.8125):Defines the font size in em units for the preview panel.
To modify these settings:
- Open the settings in VSCode (Ctrl+,).
- Search for "Lotj Color" to find the related settings.
Credits
This extension is inspired by and based on the original LotJ Color Checker created by Xerakon. You can find the original tool at LotJ Color Checker.