Program or script to see hex triplets in their actual color
I've got a theme file that looks like following:
PRIMARY1_COLOR=#7CACDF
PRIMARY2_COLOR=#A5C6E9
PRIMARY3_COLOR=#E2EDF8
SECONDARY1_COLOR=#7CACDF
SECONDARY2_COLOR=#A5C6E9开发者_StackOverflow中文版
SECONDARY3_COLOR=#B9D3EE
Is there any tool which allows editing such file while displaying actual colors?
You can use Geany. It has "Color chooser" button - select your hex code and click on it and you will see the color and will be able to change it.
You can create an HTML file with your favorite text editor and simply load it up your browser. Try this:
<style>
.PRIMARY1 { color: #7CACDF }
.PRIMARY2 { color: #A5C6E9 }
...
</style>
<div class="PRIMARY1">PRIMARY1</div>
<div class="PRIMARY2">PRIMARY2</div>
...
You can even automatically generate this with some clever find & replace or Excel formulas.
精彩评论