<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <font face="Comic Sans MS">Hi!</font><br>
    <div class="moz-cite-prefix">Le 19/01/2016 08:12, Mark Yagnatinsky a
      écrit :<br>
    </div>
    <blockquote
cite="mid:CAPbNvUxN55btYkk3iDowfwdps7QYQRpUgh3YhxWE3jB6mrnwjQ@mail.gmail.com"
      type="cite">
      <pre wrap="">If anyone knows how to do the following, I'd appreciate it.  First,
some background, just in case it turns out I'm asking the wrong
question.  I've asked here:
<a class="moz-txt-link-freetext" href="http://tex.stackexchange.com/questions/288297/percent-sign-in-url-without-hyperref">http://tex.stackexchange.com/questions/288297/percent-sign-in-url-without-hyperref</a>
about how to get the \url command from the url package to accept \% as
a synonym for %, just like the \url command from the hyperref package
does, because use a bare % sign makes TeXworks syntax highlighting get
confused since it looks like a comment.  I was told that \url is right
and my editor is wrong, so I went about trying to fix my editor.

It seems that the right approach here is editing the
syntax-patterns.txt file.  But I can't figure out the right rules to
get the effect I want.  First, I want \url to be blue just like other
commands.  Second, I want the url itself to not turn red when it
contains % signs.  I had hoped that some clever use of regex
assertions would do the trick, but I'm getting nowhere.

Is this possible?  Does anyone else have this problem?  What do other people do?

</pre>
    </blockquote>
    Looking at syntax-atterns.txt, I modified the <br>
    # LaTeX packages<br>
    blue        N    \\usepackage\s*(?:\[[^]]*\]\s*)?\{[^}]*\}<br>
    as<br>
    hotpink        N    \\url\s*(?:\[[^]]*\]\s*)?\{[^}]*\}<br>
    <br>
    and It looks like it is doing what you want!!<br>
    Right?<br>
    <br>
    Regards,<br>
    <br>
    --<br>
    Alain<br>
    <br>
  </body>
</html>