We think syntax highlighting makes the structure of code easier to understand. But as it stands, we highlight the obvious (like the word
function) and leave most of the content in black. Rather than highlighting the differences betweencurrentIndexand the keywordfunction, we could highlight the difference betweencurrentIndexandrandomIndex.
La réflexion est pertinente et sans aller jusqu’à ce que propose Bret Victor, la coloration syntaxique pourrait être employée pour montrer les flux de données dans la lignée de ce qui a été fait avec Semantic Highlighting (cache). Certains langages seraient certainement plus faciles à gérer que d’autres. Certaines logiques également. Une nouvelle façon d’apprendre à coder ?