-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Labels
Milestone
Description
Parameters in function signatures are currently parsed to a single html element such as
<em class="sig-param">myparam=4</em>
It would be nice to split this down further into classed spans, so that we could highlight different parts of the parameters separately. For example:
<em class="sig-param">
<span class="sig-param-name">myparam</span>=<span class="sig-param-value">4</span>
</em>
(line breaks only for better readability. Actual code wound not have linebreaks as they would result in whitespace in the rendered HTML.)
Things to consider:
- This requires further splitting at the parser level.
- Maybe even add a class for
=
? - Type annotations could be considered as well, as a separate span.