Ready to get started?Download WordPress


Crayon Syntax Highlighter
how to highlight "label:" with CSH ? (1 post)

  1. wagnerlip
    Posted 5 months ago #

    I installed Crayon Syntax Highlighter (CSH), and created an additional language for Atmel AVR Assembly, as well a new .CSS file for coloring the inner words, elements, instruction set, etc. It is working very fine, I plan to sent it to the CSH for a future release along the new version.

    Not being an expert of Regex or other tools, how can I make CSH recognize and color labels in the AVR Assembly code?

    As an example, below, how can it recognize the word "reset:" and "start:" to color different from the rest of the code? I thought about the collon ":" symbol after the unknown label, but I need help.

    Thank you.

    .cseg                       ;
            .org    $000                ;
    reset:  rjmp    start               ;
            ;                           ; aqui vetores de interrupcao
    start:  ldi     temp, low(ramend)   ; setup do stack
            out     spl, temp           ; endere├žo low
            ldi     temp, high(ramend)  ;
            out     sph, temp           ; endere├žo high



You must log in to post.

About this Plugin

About this Topic


No tags yet.