Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Changing do-file cursor color

    I am trying to change the default do-file color scheme. Once I change the background to black, the cursor is not visible because it is black. Is there a way to change cursor color?

  • #2
    Biraj, normally programs don't need to worry about the caret color, as it is automatically inverted by the OS in response to control's background:
    https://msdn.microsoft.com/en-us/lib...97(VS.85).aspx

    However, Stata is using a Scintilla text editing component in its doeditor, for which additional steps are required to make it work with a black background:
    http://www.scintilla.org/SciTEFAQ.html#BlackBackground

    There is no setting in the Stata preferences responsible for this, so the caret color will stay black (unless you find a way to tweak it on OS level, which is likely going to affect all of your programs).
    It's probably easier to write to the developers and request a fix. Also the "gutter" font is not configurable, and is barely readable with inverted color settings (see below).

    Best, Sergiy Radyakin

    Click image for larger version

Name:	gutter.png
Views:	1
Size:	1.8 KB
ID:	1127443

    Comment


    • #3
      However, Stata is using a Scintilla text editing component in its doeditor, for which additional steps are required to make it work with a black background:
      http://www.scintilla.org/SciTEFAQ.html#BlackBackground
      Thanks Sergiy Radyakin for shedding light on the issue.

      I am running Stata 13.1 so I cannot change the cursor color easily. It seems like you can do this with a few clicks in Stata 14 (https://www.statalist.org/forums/for...more-generally). Scintilla is also totally new to me and that's why I would appreciate if someone could guide me as to how to implement Sergiv's suggestion in practice.

      Where is the "user options file" usually located in windows? And do you just have to change those settings in a single file or is there more to it?

      Thanks!

      Br,
      Samuel

      Comment

      Working...
      X