File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -266,15 +266,15 @@ Registering Custom Highlights</h3>
266
266
</xmp>
267
267
268
268
In the example above,
269
- the same [=custom highlight=] object is [=registered=] under the names ' foo' and ' bar' .
269
+ the same [=custom highlight=] object is [=registered=] under the names <code> foo</code> and <code> bar</code> .
270
270
Since each of the [=style rules=] target the same highlight and have the same [=specificity=] ,
271
271
authors might expect the last rule to win in cascading order
272
272
and the highlighted content to be green.
273
273
However, each highlight name gets an independent set of highlight styles,
274
274
and the highlight will be painted once per name.
275
- In this case, because ' foo' was registered before ' bar' ,
276
- the highlight will be first painted with ' foo' 's color (green)
277
- and then with ' bar' 's color (red).
275
+ In this case, because <code> foo</code> was registered before <code> bar</code> ,
276
+ the highlight will be first painted with <code> foo</code> 's color (green)
277
+ and then with <code> bar</code> 's color (red).
278
278
As a result, the highlighted content will appear red.
279
279
</div>
280
280
You can’t perform that action at this time.
0 commit comments