How to highlight an entire HTML link

How to highlight an entire HTML link

3
NewbieNewbie
3

    Dec 06, 2005#1

    Hi,

    I have been searching for a way but not sure the syntax. I would love to do a search on here, but I cannot find a search box anywhere, so here goes.

    Often I find myself opening up .nfo files and inside are URL's to various webpages. I would like it if possible for UE to auto highlight those urls so I know where they are in the document. Other key words work well, but cant get the urls to work. It works just fine to right click and have it open in a browser, but some urls force me to highlight the string to do it.

    Any ideas?

    FT

    344
    MasterMaster
    344

      Dec 08, 2005#2

      Any examples here?
      Normally using all newest english version incl. each hotfix. Win 10 64 bit

      3
      NewbieNewbie
      3

        Dec 08, 2005#3

        What kind of example do you want? Any HTML link in a TXT document whether it be:

        https://forums.ultraedit.com/viewtopic.php?f=9&t=2285
        or
        http://www.cnn.com

        So long as it is a link starting with http:// or https://, would like the entire link to be highlighted in a different color. I know how to create keywords in wordlist.txt, but am unsure about the syntax on how to get it to highlight an entire URL. I used to use TextPad before and it did it by default, so I never had to think about it.

        344
        MasterMaster
        344

          Dec 09, 2005#4

          Hi

          There is some kind of solution like this:

          - Use www (or http) as one possible "beginning-string" (see below)
          - EXCLUDE . / & from delimiter list (You see: I needed your example)

          Remember: This might have some consequences to other strings, where you want to stop the coloring when reaching e.g. /

          see here

          Code: Select all

          /L20"Test" Line Comment = # Line Comment Preceding Chars = [~[^]^^$/\(] File Extensions = TEST TST
          /Delimiters = ~!%^*()+=|\{}[]:;"'<> ,?
          
          . . . . 
          
          /C2
          ** www
          
          ends up like:
          www.ultraedit.com
          forums.ultraedit.com/viewtopic.php?f=9&t=2285
          ww
          www
          wwwwIamRedToo
          Regards, Bego
          Normally using all newest english version incl. each hotfix. Win 10 64 bit

          3
          NewbieNewbie
          3

            Dec 09, 2005#5

            Thanks, that worked. I did some slight mods to that so that it would highlight a link with http:// in it. It works great.