Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Displaying greek letters #43

Open
yuriever opened this issue Dec 2, 2024 · 3 comments
Open

Displaying greek letters #43

yuriever opened this issue Dec 2, 2024 · 3 comments

Comments

@yuriever
Copy link

yuriever commented Dec 2, 2024

Currently, some commonly used non-ASCII letters, e.g. Greek letters, are displayed as their full names in VSCode. Is it able to display these letters like in notebooks?

@yuriever
Copy link
Author

yuriever commented Dec 7, 2024

Curiously, the greek letters in usage will be rendered as in notebook.

(* ::Package:: *)


BeginPackage["Global`"];


f::usage="\[Alpha]";


Begin["`Private`"];


f[\[Alpha]_]:=
    \[Alpha];

f["\[Alpha]"]:=
    "\[Alpha]";


End[];


EndPackage[];
image

@TurbulenceChaos
Copy link

TurbulenceChaos commented Dec 9, 2024

Currently, I use the prettify-symbols-mode package and its fork vsc-conceal to display greek letters. This feature has been added to the official vscode backlog.
output
Here is an example configuration:

  "conceal.substitutions": [
    {
      "language": "wolfram",
      "substitutions": [
        {
          "ugly": "\\\\\\[Omega\\]",
          "pretty": "ω"
        },
        {
          "ugly": "\\\\\\[CapitalOmega\\]",
          "pretty": "Ω"
        }
      ]
    }
  ],

@yuriever
Copy link
Author

yuriever commented Dec 9, 2024

Currently, I use the prettify-symbols-mode package and its fork vsc-conceal to display greek letters. This feature has been added to the official vscode backlog. output output Here is an example configuration:

  "conceal.substitutions": [
    {
      "language": "wolfram",
      "substitutions": [
        {
          "ugly": "\\\\\\[Omega\\]",
          "pretty": "ω"
        },
        {
          "ugly": "\\\\\\[CapitalOmega\\]",
          "pretty": "Ω"
        }
      ]
    }
  ],

Sadly this extension has stopped being maintained.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants