Syntax Highlighting Only Helps differentiate between
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- powershell
- Domain
- tooling
Research direction
Start by locating the PowerShell syntax-highlighting definitions in the EditorSyntax repository and reproduce the provided code sample in the listed editors and themes. Compare highlighting for commands, variables, parameters, methods, properties, and $_; done means these categories receive consistent, distinct colors where the grammar supports them.
Written by the indexing model from the issue text.
Description
Environment
- Editor and Version (VS Code, Atom, Sublime (tried in all 3 problem has been there for a year if not more)):
- Your primary theme: Monokai
Issue Description
- Syntactical components are not as distinguished by color as they should be.
- Variables, Parameters/Switches, methods/properties all share the same color
- Commands/Functions can be different colors after a pipe
- Commands/Functions, Variables, Parameters/Switches, methods/properties should each have their own individual color
- There seems to be another problem of inconsistency in color with
$_and$_. - Monokai was just one of the better ones, it was worse in most other themes, including the vscode default dark, and powershell ISE theme
Screenshots

Expected Behavior
- Commands/Functions, Variables, Parameters/Switches, methods/properties should each have their own individual color REGARDLESS of theme
Code Samples
$variable = (Select-Object -Property Item, "Item2").item[0]
$variable.method | Where ($_.something -eq "$word")
$date = Get-Date
$date.day
- Dominant language
- PowerShell
- Stars
- 151
- Forks
- 55
- PR merge metrics
- No merged PRs in 30d
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.
More from PowerShell/EditorSyntax
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
PowerShell/EditorSyntax#224 · 2 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
PowerShell/EditorSyntax#222 · 2 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
PowerShell/EditorSyntax#221 · 2 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
PowerShell/EditorSyntax#220 · 2 comments · 1 reaction ·
-
Issue-Bug
Difficulty 3/5 1-2 days Newbie friendliness 48/100
PowerShell/EditorSyntax#219 · 2 comments ·
All issues in PowerShell/EditorSyntax
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
newrelic-experimental/preflight#793 · 1 comment ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
babalae/bettergi-scripts-list#3674 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
caddyserver/caddy#8046 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
zilliztech/memsearch#759 ·
-
comp/cron P2 sweeper:risk-automation type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
NousResearch/hermes-agent#117792 · 1 comment ·