Announcement

Collapse
No announcement yet.

actsearchhighlightcolor

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    actsearchhighlightcolor

    Changing .actsearchhighlightcolor to use text-decoration:underline; also underlines the space between it and the previous word.

    Does anyone know if this can be changed to underline only the matching word and not the space in front of it as well?

    MS v8.5.0


    Bikster
    SellerDeck Designs and Responsive Themes

    #2
    Hi Jont,

    I can't see anything obvious on this one, so I've asked development for you. I'll post back as soon as I get a response.
    ********************
    Tracey
    SellerDeck

    Comment


      #3
      Thanks Tracey.


      Bikster
      SellerDeck Designs and Responsive Themes

      Comment


        #4
        Edit 'Actinic.pm' in your site folder in a text editor such as notepad (take a back-up first).

        locate:

        Code:
        push @Patterns, '([^\w;]' . $_ . '|^' . $_ . ')[\w\#\&\;]*';
        and replace it with:

        Code:
        push @Patterns, '((?<!\w)' . $_ . '|^' . $_ . ')[\w\#\&\;]*';
        Save and close the file and update your site.
        ********************
        Tracey
        SellerDeck

        Comment


          #5
          Thanks Tracey - much appreciated - I was never going to find that - installed and works a treat.


          Bikster
          SellerDeck Designs and Responsive Themes

          Comment


            #6
            Glad it worked for you, but just in case anyone else tries it, I've been informed that it may not work for everyone as it depends on the version of perl installed on the server. Apparently, not all perl versions provide support for the 'lookaround' assertions.
            ********************
            Tracey
            SellerDeck

            Comment


              #7
              Thanks Tracey - good to know should I roll it out to clients sites.


              Bikster
              SellerDeck Designs and Responsive Themes

              Comment

              Working...
              X