Dyalog / ride

Cross-platform IDE for Dyalog APL
https://dyalog.github.io/ride
MIT License
206 stars 32 forks source link

Use colour to differentiate output from input #825

Open AleBeda opened 2 years ago

AleBeda commented 2 years ago

Suggestion for enhancement: use color to differentiate output from input

Indented input and left-aligned output was a good idea in the time of printing teletypes (https://youtu.be/_DTpQ4Kk2wA) but it looks a bit awkward by today’s standards.

In addition to indentation, consider differentiating between input and output with color and/or font.

RIDE version

IDE:
  Version: 4.3.3463
  Platform: MacIntel
  Date: 2020-07-07 10:44:21 +0100
  Git commit: 0cd6e9faf39a5d6a5f5caa94d1ff51743d5cdd75
  Preferences:{
    "floating":"1",
    "kbdLocale":"en_US_Mac",
    "wse":"1",
    "dbg":"1",
    "wrap":"1",
    "squiggleTips":"1"
  }

Interpreter:
  Version: 18.0.40684
  Platform: Mac-64
  Edition: Unicode/64
  Date: Jun 19 2021 at 00:08:08
abrudz commented 2 years ago

It may be that all we need is an option to preserve syntax colouring for old input, just like the Windows IDE can:

image

Note that APL2 and APLX can differentiate between various types of input and output, e.g. image image

AleBeda commented 2 years ago

@abrudz this would be great. In fact, blue for input, black for output, and red for errors is just perfect. I would also use gray for boxes and train trees.