xyw-vscode/README.md
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# XYW Language Support for VS Code Syntax highlighting for the XYW assembly language. ## Features - Syntax highlighting for `.xyw` and `.xim` files - Comment support (`;` line comments) - Highlights: - Directives (`.include`, `.label`, `.macro`, `.string`, etc.) - Instructions (stack, arithmetic, logic, memory, control flow) - Labels and label references - Numeric literals (`$hex`, `%binary`, decimal) - Strings with escape sequences ## Installation ### Option 1: Install from VSIX (Recommended) 1. Package the extension: ```bash cd xyw-vscode npx @vscode/vsce package ``` 2. Install the generated `.vsix` file: - Open VS Code - Press `Ctrl+Shift+P` → "Extensions: Install from VSIX..." - Select the `.vsix` file ### Option 2: Development Mode 1. Open the `xyw-vscode` folder in VS Code 2. Press `F5` to launch an Extension Development Host with the extension loaded ### Option 3: Symlink to Extensions Folder Create a symlink from your VS Code extensions folder to this directory: **Windows (PowerShell as Admin):** ```powershell cmd /c mklink /D "$env:USERPROFILE\.vscode\extensions\xyw-language" "C:\path\to\xyw\xyw-vscode" ``` **macOS/Linux:** ```bash ln -s /path/to/xyw/xyw-vscode ~/.vscode/extensions/xyw-language ``` Then restart VS Code. |