Add syntax highlighting for Powershell
Nobody has claimed this yet.
- 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.
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" }
```
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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