Alias Highlighter is a Visual Studio Code extension designed to provide syntax highlighting for .alias files used with the batch file generator created by Omar Sakr. This extension enhances the readability of alias definitions, making them intuitive and visually clear. It complements the Python Batch File Generator seamlessly.
Features
Syntax Highlighting for .alias Files:
Operators (>>): Highlighted in gray.
Aliases: Highlighted in orange.
Variables: Variables like $1, $2 are highlighted in green.
Works seamlessly with .alias files located in the alias folder of the Python Batch File Generator.
How to Use
Install the Alias Highlighter extension from the Visual Studio Code Marketplace.
Open any .alias file in Visual Studio Code.
Syntax highlighting is applied automatically.
Example .alias File
php artisan serve --port=$1 >> srv
echo "$1" >> eco
npm run dev >> dev
Output
>> Operator: Displayed in gray.
Aliases: E.g., srv, eco, dev are displayed in orange.
Variables: E.g., $1 is displayed in green.
Related GitHub Project: Python Batch File Generator
The Alias Highlighter extension is tailored for .alias files utilized by the Python Batch File Generator, a tool for managing and creating batch files for Python scripts and custom aliases.
Python Batch File Generator Features:
Global Access: Run Python scripts and aliases from any directory.
Automated Batch Generation: Automatically generates .bat files for Python scripts and aliases.
Custom Aliases with Arguments: Supports arguments like $1, $2 in .alias files, which are converted to %1, %2 for batch execution.
Integration with .alias Files
Aliases defined in .alias files (e.g., php artisan serve >> srv) are converted into .bat files (e.g., srv.bat). The Alias Highlighter ensures these .alias files are easy to read and maintain in Visual Studio Code.
GitHub Repository
Explore the Python Batch File Generator on GitHub.
Install Now
Install Alias Highlighter today to streamline editing .alias files and boost efficiency. Pair it with the Python Batch File Generator for the ultimate batch file management workflow.