programmingfonts icon indicating copy to clipboard operation
programmingfonts copied to clipboard

Request: Consider adding ascii diagram/charts/arts in the example snippet

Open sam-rad opened this issue 11 months ago • 2 comments

It would be very helpful to pick if the default snippet also includes some ascii diagram/charts as comment. There are a few fonts that don't handle those pretty:

Good Example:

Image

Bad Example:

Image

And here's the comments I used:

      ╭─────────────────────────────╮
      │                  ╭───╮      │
      │  ╭───╮           │╭─╮│      │
      │  ↑   │           │↑ ││      │
void (*signal(int, void (*fp)(int)))(int);
 ↑    ↑      │      ↑    ↑  ││      │
 │    ╰──────╯      │    ╰──╯│      │
 │                  ╰────────╯      │
 ╰──────────────────────────────────╯
 
 
okta-awscli --okta-profile=aws-666 --profile=aws-666
            ╰────────┬───────────╯ ╰───────┬──────╯
                     │                     │
                     │	                   ╰────── profile to store temporary credentials
                     ╰────── profile to use in .okta-aws

If this is something you're open to adding, I can prepare a diff myself.

sam-rad avatar Feb 08 '25 19:02 sam-rad

For sure, that would be super helpful. Perhaps try and find a compact example that covers as much as possible in as few lines as possible?

braver avatar Feb 09 '25 15:02 braver

Hey, I just added a code sample menu so code moved around a bit. You're still welcome to add ascii to an existing code sample, or perhaps add a separate ascii art sample?

braver avatar Feb 19 '25 20:02 braver