Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: add 'batch' alias for DOS syntax highlighting#4400

Open
xxiaoxiong wants to merge 1 commit into
highlightjs:mainfrom
xxiaoxiong:feat/add-batch-alias-dos-4395
Open

feat: add 'batch' alias for DOS syntax highlighting#4400
xxiaoxiong wants to merge 1 commit into
highlightjs:mainfrom
xxiaoxiong:feat/add-batch-alias-dos-4395

Conversation

@xxiaoxiong
Copy link
Copy Markdown

@xxiaoxiong xxiaoxiong commented May 23, 2026

Fixes #4395

Why
batch is the official name of the file format (batch file), but it cannot be used as an alias for DOS highlighting. The alias bat already exists (a shortening of batch), so batch is a natural addition for users who write language-batch in their code blocks.

Changes
Added "batch" to the aliases array in the DOS language definition.

Updated component: src/languages/dos.js

Testing
The batch alias now resolves to DOS syntax highlighting, consistent with the existing bat and cmd aliases.

Surface area

  • Languages / DOS
  • Enhancement

The file format is officially called 'batch file' and 'bat' (already an
alias) is a shortening of 'batch'. This adds 'batch' as an alias so
users can use `language-batch` in their code blocks.

Fixes highlightjs#4395
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Request] Add alias batch for DOS syntax highlighting

1 participant