1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 06:17:58 +01:00

Move an inline style from util.objectToString to a new Key highlight group.

This commit is contained in:
Doug Kearns
2009-10-16 00:28:27 +11:00
parent 9c2f01bfea
commit 9b0e6ac28b
2 changed files with 3 additions and 2 deletions

View File

@@ -25,6 +25,8 @@ Highlights.prototype.CSS = <![CDATA[
Object color: maroon; Object color: maroon;
String color: green; String color: green;
Key font-weight: bold;
Enabled color: blue; Enabled color: blue;
Disabled color: red; Disabled color: red;

View File

@@ -514,8 +514,7 @@ const util = { //{{{
} }
value = template.highlight(value, true, 150); value = template.highlight(value, true, 150);
// FIXME: Inline style. let key = <span highlight="Key">{i}</span>;
let key = <span style="font-weight: bold;">{i}</span>;
if (!isNaN(i)) if (!isNaN(i))
i = parseInt(i); i = parseInt(i);
else if (/^[A-Z_]+$/.test(i)) else if (/^[A-Z_]+$/.test(i))