Author Topic: Custom colours  (Read 4827 times)

dunkers

  • Senior Community Member
  • Posts: 778
  • Hero Points: 36
Custom colours
« on: May 18, 2019, 09:07:19 PM »
I know this has been kind of asked for before, but not quite like this...

Currently I am colouring build output using ANSI escape characters and, of course, the build window doesn't show these. I have set up the 'process' language to see the ANSI sequences as tokens, and now the stuff between the sequences is coloured. Yay!

But... they're the wrong colours. I want OK to be green and ERROR to be red, and the only way I've found to do this so far is to define [32;1m as a comment, and [31;1m as a number (I am using the light watercolours profile). Works,  but...

Obviously, if I change my colour scheme the colouring of the build window will change too. So, how about additional colour tags for specific colours? That is, instead of using the attribute 'comment' to get green, there is a specific attribute called 'green' that can be defined as green. Easy peasy, no? Takes no work for you SE folks (other than to add the primary colour names, or maybe just 'color1', etc., and the user can make them show what they want to show. Changing colour profile would then keep absolute colours the same with no effort.

[After this, just need a simple way to consume the ANSI sequences so they disappear from the window but still get to trigger the colours.]

Edit: Sorry! Moved here from the general topic.
« Last Edit: May 18, 2019, 09:14:24 PM by dunkers »

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 7045
  • Hero Points: 535
Re: Custom colours
« Reply #1 on: July 28, 2019, 12:50:15 PM »
V24 will support escape coloring in the build window.

dunkers

  • Senior Community Member
  • Posts: 778
  • Hero Points: 36
Re: Custom colours
« Reply #2 on: July 28, 2019, 12:58:51 PM »
Blinding! Thanks very much  ;D

dunkers

  • Senior Community Member
  • Posts: 778
  • Hero Points: 36
Re: Custom colours
« Reply #3 on: October 09, 2019, 02:26:08 PM »
Gorgeous, thank you! Although I can only speak for the green since I've yet to make any build errors...  ;D