-code -test

Test: Syntax Highlighter

This is an attempt to implement a lightweight syntax highlighter via javascript so that I may illustrate code examples in a formatted code block.


p { 
    background-color: $(primary.background.color);
    background-image: linear-gradient(transparent 50%, $(inactive.tab.background.color) 50%);
    background-size: 3rem 3rem;
    background-origin: content-box;
    background-attachment: local;
    padding: 1rem;
    line-height: 1;
    border: 1px solid $(border.color); 
}

Comments