thank you so much Edward. The rulesDict, with the lead-in character portion is where I was going wrong.
PS - nearing completion of the PHP autocompleter, code suggest plugin. As usual, I need to polish it, and also figure out a way to make it work even after a user updates Leo (because I added a hack to qt_events). On Sunday, July 9, 2017 at 10:02:45 AM UTC-5, Adrian wrote: > > Hello, > > I am having some trouble figuring out how the colroizer works. I have > successfully mad some changes, but the number one thing that bothers me I > do not know how to fix. > > Namely, multi line strings. For example, I am working on some regex code > that works with HTML, so I have this: > > The coloring will not just be one color, it will be multiple colors as if > the text was not encased inquotes. This applies to bothphp and phpsection > modes. This also applies to HEREDOC strings. Please advise on how to make > one color. Just as""" """works correctly in python mode. > > > > > > $foo = " > <div class='methodsynopsis dc-description'> > <span class='type'>string</span> <span > class='methodname'><strong>mb_substr</strong></span> > ( <span class='methodparam'><span class='type'>string</span> <code > class='parameter'>$str</code></span> > , <span class='methodparam'><span class='type'>int</span> <code > class='parameter'>$start</code></span> > [, <span class='methodparam'><span class='type'>int</span> <code > class='parameter'>$length</code><span class='initializer'> = > NULL</span></span> > [, <span class='methodparam'><span class='type'>string</span> <code > class='parameter'>$encoding</code><span class='initializer'> = > mb_internal_encoding()</span></span> > ]] )</div> > "; > > > -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
