Skip to content

(Feature Request) Syntax Highlighting for Batch scripts #5345

@eliandoran

Description

@eliandoran

Discussed in https://github.com/orgs/TriliumNext/discussions/829

Originally posted by Br0kenSilos December 23, 2024
Would it be possible to add syntax highlighting for Windows/CMD batch scripts in either or both the Code note type and the code snippets?

I do still write a lot of long and semi complicated batch scripts. Usually I write these in VS Code because the syntax highlighting there is really helpful to me. As you can see in the examples below, it makes a huge difference in readability. But I also like to store my batch and other scripts and do version control in my Trilium.

I do realize that very few people write batch scripts these days so it may not be worth the effort. But IF it's simple to do, I would really love it.

notepad
vscode

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions