This extension provides syntax highlighting for TargaScript (.tg) files in Visual Studio Code.
Features
Syntax highlighting for TargaScript files
Recognition of language keywords, operators, and built-in functions
Support for TargaScript's specific syntax constructs
TargaScript
TargaScript is a programming language designed by Miguel Targa. For more information about the language, visit the TargaScript GitHub repository.
Example
Here's how TargaScript code looks with this syntax highlighting:
// Fibonacci function in TargaScript
fn fibonacci(n) {
if (n <= 1) {
return n
}
return fibonacci(n-1) + fibonacci(n-2)
}
// Print first 10 Fibonacci numbers
let i = 0
repeat i < 10 {
print(fibonacci(i))
i = i + 1
}
Installation
Launch VS Code
Go to Extensions view (Ctrl+Shift+X or Cmd+Shift+X)
Search for "TargaScript"
Click Install
Manual Installation
If you prefer to install the extension manually:
Download the latest release from the GitHub repository
Unzip the downloaded file
Copy the folder to your VS Code extensions folder: