Sublime Text 4 Euphoria Package
- Posted by ron77 in August
- 1165 views
Hi all, today I decided to work on a Package for the Sublime Text 4 editor to add syntax highlighting and support for the Euphoria programming language I haven't uploaded it to GitHub yet, and it's meant to be installed manually - how? First, install the Sublime Text 4 editor (free to try, costs money to use permanently) Then download the zip file I am sharing here from Dropbox and read the README.md file it explain everything: Here is the constant of the README.md file
- Installation Guide - Euphoria Package for Sublime Text
- Quick Installation
- Method 1: Manual Installation (Recommended)
1. Download all files from the artifacts provided 2. Locate your Sublime Text Packages directory: - Windows: `%APPDATA%\Sublime Text\Packages` - macOS: `/Library/Application Support/Sublime Text/Packages` - Linux: `/.config/sublime-text/Packages`
3. Create the package directory:
4. Copy all files into the `Euphoria` directory with this structure:
5. Restart Sublime Text or use `Ctrl+Shift+P` → "Package Control: Reload"
- Method 2: User Package Installation
1. Place all files directly in the User package directory: - Windows: `%APPDATA%\Sublime Text\Packages\User` - macOS: `/Library/Application Support/Sublime Text/Packages/User` - Linux: `/.config/sublime-text/Packages/User`
2. Restart Sublime Text
- Verification
1. Open a Euphoria file (create a test file with `.e` extension) 2. Check syntax highlighting is applied 3. Try code completion by typing `puts` and pressing Tab 4. Test build system: `Tools` → `Build System` → select "Euphoria - Run" 5. Test snippets: type `func` and press Tab
- File Extensions Supported
The package will automatically activate for files with these extensions: - `.e` - Euphoria source files - `.ex` - Euphoria executable files - `.exw` - Euphoria Windows executable files - `.eu` - Euphoria unit files - `.ew` - Euphoria Windows unit files
- Requirements for Build Systems
To use the build systems, ensure you have: - eui (Euphoria Interpreter) in your PATH - euc (Euphoria Translator) in your PATH - gcc (C Compiler) for translated programs
Test by running these commands in your terminal:
- Troubleshooting
- Syntax highlighting not working - Check that files are saved in the `Packages/Euphoria/` directory - Verify file has correct extension (.e, .ex, .exw, .eu, .ew) - Restart Sublime Text
- Build system not found - Ensure `.sublime-build` files are in the package directory - Check `Tools` → `Build System` menu for "Euphoria" options
- Completions not appearing - Verify `Euphoria.sublime-completions` is in the package directory - Check that file scope is `source.euphoria` - Try typing a function name and pressing Ctrl+Space
- Snippets not working - Ensure all `.sublime-snippet` files are in the package directory - Type trigger word (e.g., `func`) and press Tab - Verify snippet scope is `source.euphoria`
- Manual Activation
If automatic detection fails, manually set the syntax: 1. Open a Euphoria file 2. View → Syntax → Euphoria 3. Or press Ctrl+Shift+P → "Set Syntax: Euphoria"
- Getting Help
If you encounter issues: 1. Check the Console: `View` → `Show Console` 2. Look for error messages related to Euphoria package 3. Verify all files are correctly placed and named 4. Ensure Sublime Text version is 3.0 or higher
The package should work immediately after proper installation!
- #
DropBox Sublime Text Package for euphoria programming lanaguage

