G33kDude / MultiTester.ahk

Write apps using HTML, CSS, JS, and AHK
https://autohotkey.com/boards/viewtopic.php?f=6&t=35119
MIT License
15 stars 5 forks source link

HTML regex fix #1

Closed kczx3 closed 6 years ago

kczx3 commented 6 years ago

For the HTML regex, you need the lazy modifier on the multi-line comments for them to highlight properly.

    static Needle := "
    ( LTrim Join Comments
        ODims)
        (\<\!--.*?--\>)        ; Multiline comments
        |(<(?:\/\s*)?)(\w+)   ; Tag
        |([<>\/])             ; Punctuation
        |(&\w+?;)             ; Entities
        |((?<=[>;])[^<>&]+)   ; Text
        |(""[^""]*""|'[^']*') ; String
        |(\w+\s*)(=)          ; Attribute
    )"
G33kDude commented 6 years ago

This issue was moved to G33kDude/RichCode.ahk#7