color-coding

Color (syntax highlighting) within an HTML <code> tag

不问归期 提交于 2020-01-28 16:25:42
问题 In a code fragment like the following ... class Foo { internal Foo() { for (int i = 0; i < 42; ++i); } } ... its various keywords and so on are color-coded when they're displayed in my browsers. When I do "View source", I don't see anything special in the HTML that would implement this color-coding. How and/or where is this syntax-specific color-highlighting implemented, then? For example is it built-in to the browsers, or is it implemented by site-specific JavaScript editing the DOM within

Color (syntax highlighting) within an HTML <code> tag

三世轮回 提交于 2020-01-28 16:24:59
问题 In a code fragment like the following ... class Foo { internal Foo() { for (int i = 0; i < 42; ++i); } } ... its various keywords and so on are color-coded when they're displayed in my browsers. When I do "View source", I don't see anything special in the HTML that would implement this color-coding. How and/or where is this syntax-specific color-highlighting implemented, then? For example is it built-in to the browsers, or is it implemented by site-specific JavaScript editing the DOM within

Color coding tasks in a Microsoft Project Macro

自作多情 提交于 2019-12-11 00:26:25
问题 This seems like it should be straight forward, but I'm seeing some strange behavior. I'm attempting to color code my tasks based on a flag. It appears to be correctly coloring the tasks, but at some point in the processing the initial tasks that were colored are getting reset to black. The task that it happens on seems to be fairly inconsistent too. Here's how I'm trying to perform this task (simplified to it's barest form): Sub ColorTasks() Dim t As Task For Each t In ActiveProject.Tasks

What are the practical differences when working with colors in a linear vs. a non-linear RGB space?

岁酱吖の 提交于 2019-11-29 18:40:23
What is the basic property of a linear RGB space and what is the fundamental property of a non-linear one? When talking about the values inside each channel in those 8 (or more) bits, what changes? In OpenGL, colors are 3+1 values, and with this i mean RGB+alpha, with 8 bit reserved to each channel, and this is the part that i get clearly. But when it comes to gamma correction i don't get what the effect of working in a non-linear RGB space is. Since i know how to use a curve in a graphic software for photo-editing, my explanation is that in a linear RGB space you take the values as they are,

What are the practical differences when working with colors in a linear vs. a non-linear RGB space?

♀尐吖头ヾ 提交于 2019-11-28 13:20:15
问题 What is the basic property of a linear RGB space and what is the fundamental property of a non-linear one? When talking about the values inside each channel in those 8 (or more) bits, what changes? In OpenGL, colors are 3+1 values, and with this i mean RGB+alpha, with 8 bit reserved to each channel, and this is the part that i get clearly. But when it comes to gamma correction i don't get what the effect of working in a non-linear RGB space is. Since i know how to use a curve in a graphic