[feature]: Add PowerShell syntax highlighting to editor code blocks

未关闭
#10,399 2 条评论 0 个 reaction 已指派 2 人 在 GitHub 查看

维护者通常 1 天内回复

@vihar 已经在做这个了。

开始于 2026年11月24日。

评估

这个 Issue 还没有评估数据。

描述

✨feature plane
Is there an existing issue for this?
  • I have searched the existing issues
Summary
Is there an existing issue for this?
  • I have searched the existing issues and discussions

I found #9799 and the related #9800 work for adding or improving the code-block language selector, but I did not find an issue specifically tracking PowerShell syntax highlighting support.

Summary

Add PowerShell as a supported syntax-highlighting language in Plane editor code blocks.

Current behavior
  1. Create or edit a Plane Page.
  2. Insert a code block.
  3. Open the code-block language selector.
  4. Search for PowerShell or power.
  5. The selector displays No languages found.
  6. The block remains Plain Text, with no PowerShell syntax highlighting.

Typing or importing a fenced block using a PowerShell identifier also does not provide PowerShell highlighting:

~~~markdown
```powershell
Get-Process | Where-Object CPU -gt 100

The same problem applies when using common aliases such as: 

~~~markdown ```ps1 Get-Process ```

```pwsh
Get-Process
Why should this be worked on?

Plane currently exposes a searchable language selector for code blocks, but searching for PowerShell or power returns no matching language. PowerShell content therefore has to remain classified as Plain Text, including scripts stored in Plane Pages as operational documentation.

The language should be available as:

  • Display name: PowerShell
  • Canonical identifier: powershell
  • Common aliases: ps1, pwsh, and posh

Where filename or extension metadata is applicable, the implementation should recognize common PowerShell file types:

  • .ps1 - PowerShell script
  • .psm1 - PowerShell module
  • .psd1 - PowerShell data file or module manifest
主要语言
TypeScript
星标
63k
派生
6.5k
平均合并
2 天 16 小时
30 天内合并 PR
70

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

makeplane/plane 的其他 Issue

查看 makeplane/plane 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。