typst / typst/typst

Add syntax highlighting for Powershell

Open
#5,658 3 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request text
Dominant language
Rust
Stars
56.1k
Forks
1.7k
Avg merge
3d 10h
Merged PRs (30d)
22

Description

Description

Current version of typst does not highlight powershell code (code block language: powershell), but I think it is big enough to have a builtin support for it.

image

https://github.com/SublimeText/PowerShell/blob/master/PowerShell.sublime-syntax seems to works well

#set raw(syntaxes: "PowerShell.sublime-syntax")
```powershell
Get-Process | Where-Object { $_.Name -eq "svchost" }
```

image

I think powershell, ps1, pwsh can all be the languages code for Powershell if it is going to be added.

Use Case

People writing content about Powershell.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing Typst's syntax-highlighting integration and compare its supported language definitions with the referenced PowerShell.sublime-syntax file. Verify the powershell, ps1, and pwsh aliases using the code-block example; done means PowerShell code receives builtin highlighting without requiring a custom syntax file.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell, rust
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.