WordPress.org

Forums

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

  1. wagnerlip
    Member
    Posted 1 year 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.
    Wagner.

    .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

    https://wordpress.org/plugins/crayon-syntax-highlighter/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Crayon Syntax Highlighter
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.