notepad-plus-plus / notepad-plus-plus

Notepad++ official repository
https://notepad-plus-plus.org/
Other
22.85k stars 4.59k forks source link

Feature request: link the .csx extension (C# script) to the C# language #13294

Open thomasgoldstein opened 1 year ago

thomasgoldstein commented 1 year ago

Description of the Issue

When I open a .csx (C# script) file, no syntax coloring is applied to the file.

Steps to Reproduce the Issue

  1. Open a .csx file
  2. No C# syntax coloring by default (I need to manually select the C# language from the menu to get syntax coloring)

Expected Behavior

When I open a .csx file, I'd like the language to be automatically set to C#, so that the syntax coloring is automatically applied to the file (same as when opening a .cs file)

Actual Behavior

When I open a .csx file, the language selected is "None (Normal Text)". Due to this, no specific syntax coloring is applied to the file.

molsonkiko commented 1 year ago

Not ideal, but it's pretty easy to just go to Settings->Style Configurator, find C# on the language menu, go to User ext. : on the language menu, and add enter csx there. This is a global setting that persists across Notepad++ installations, so not too much added labor.