Skip to main content
3 of 9
Removed incorrect #3
JW0914
  • 8.6k
  • 9
  • 8

Inconsistent Windows syntax highlighting for Registry [.reg] code

(There is an intentional leading whitespace on code fence code for it to display correctly)

Registry [.reg] code used to display correctly, and still does on some questions/answers, however on others it doesn't, and there's no obvious reason why. Ever since Superuser switched what's used for syntax highlighting, very few Windows syntaxes work correctly and they do not work the same across all questions/answers on Superuser, regardless of the Windows syntax used, which is baffling.

It would be nice for Superuser to embrace Windows syntax highlighting since equal amounts of content on Superuser is Windows related, as syntax primarily used on non-Windows languages always seems to work and work consistently across questions/answers.



Correctly Displayed

  1. <!-- language-all: lang-powershell -->: Will randomly display .reg code correctly on some questions/answers, but not others, whereas ```powershell code fence will not (content too long to display editor)
    Unremovable items from New right-click menu
    Correct1


  1. <!-- language-all: lang-reg -->: Will randomly display .reg code correctly on some questions/answers, but not others, same for ```reg code fence
    Set windows 10 certificate import wizard as default when opening files Correct2



Incorrectly Displayed

  1. ```reg: Will randomly display .reg code correctly on some questions/answers, but not others, same for <!-- language-all: lang-reg -->
    Create .REG file to edit only single Octet at specific address in Binary Value without affecting other bytes in binary data
    Incorrect1

    Some .exe files have blank icons on taskbar despite having icons
    Incorrect2


  1. <!-- language-all: lang-reg -->:
    Some .exe files have blank icons on taskbar despite having icons
    Incorrect3


  1. <!-- language-all: lang-powershell -->:
    Some .exe files have blank icons on taskbar despite having icons
    Incorrect5
JW0914
  • 8.6k
  • 9
  • 8