It has become common practice on Mathematica.SE to us the Unicode characters for a number of Mathematica symbols. This works because these are correctly interpreted when copied and pasted into a Notebook.
Mathematica provides double-bracket characters for
Part application. These can greatly improve legibility of code with lots of square brackets, but attempting to use them in posts reveals a problem.
list[[Ordering[set[[All, 1]], 15]]]
\[RightDoubleBracket] should look like:
But instead it looks like this, with an extra space to the outside of these brackets, and the brackets are not vertically aligned:
list〚Ordering[set〚All, 1〛, 15]〛
There is however another pair of Unicode characters that have the correct appearance but unfortunately Mathematica does not interpret these correctly, so copy and paste of this line will fail:
list⟦Ordering[set⟦All, 1⟧, 15]⟧
I am requesting a formatting change, if it is possible, such that the upper line of code is rendered in appearance as the lower line.
Conceivably this could be done by either:
Changing the display kerning of the Unicode
U+301Bcharacters to behave as single-width characters without the space, and correct alignment, possibly using the syntax highlighter script.
Replacing these characters with
U+27E7for display, but somehow using
U+301Bwhen the code is copied.
If either of these is possible I am requesting that it be done.