Skip to content

configure stderr color in console (now red) #212

Closed

Description

@aput

Python errors printed into the PythonScript console are in red.
I have a requirement (due to color deficiency) to change this to a different color.
And I think I looked pretty much everywehere.

How can I change the stderr color in console?

Activity

  1. chcg commented on Nov 5, 2021

    @chcg
    Collaborator

    This is hardcoded at the moment, see:

    // 1 is stderr, red text
    callScintilla(SCI_STYLESETSIZE, 1 /* = style number */, 8 /* = size in points */);
    callScintilla(SCI_STYLESETFORE, 1, RGB(250, 0, 0));

    and could just be changed if you would compile the plugin on your own.

  2. Ekopalypse commented on Nov 14, 2021

    @Ekopalypse
    Contributor

    @aput - this can be already done, create a startup.py file and put this into it
    console.editor.styleSetFore(1, (240, 128, 0))
    restart npp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions