Author Topic: MultiDataViewer - HTML Color syntax formatting  (Read 3312 times)

pncdaspropagandas

  • Contributor
  • Active Member
  • *****
  • Posts: 93
    • View Profile
MultiDataViewer - HTML Color syntax formatting
« on: September 06, 2017, 15:18:42 »
I made rules for formatting html files in MultiDataViewer.

It's not perfect, but it's fine. Maybe someone could improve it.

Add the following to you "mcinstallpath\Extensions\MultiFileViewer\ColorFormatting.xml" file. Backup first if you like.

  <profile name="HTML" id="0596a19914574936a2e34f16fe87d476" ext="htm,html">
    <format themecolor="0" textcolor="#0000ff" backgroundcolor="-1" flags="256">&lt;\w+</format>
    <format themecolor="0" textcolor="#0000ff" backgroundcolor="-1" flags="256">&lt;*([/]?&gt;)</format>
    <format themecolor="0" textcolor="#0000ff" backgroundcolor="-1" flags="256">&lt;/.*&gt;</format>
    <format themecolor="0" textcolor="#ff0000" backgroundcolor="-1" flags="256">\b(?:[Aa][Cc][Cc][Ee][Pp]|[Aa][Cc][Cc][Ee][Pp][-][Cc][Hh][Aa][Rr][Ss][Ee]|[Aa][Cc][Cc][Ee][Ss][Ss][Kk][Ee][Yy]|[Aa][Cc][Ii][Oo][Nn]|[Aa][Ll][Ii][Gg][Nn]|[Aa][Ll]|[Aa][Ss][Yy][Nn][Cc]|[Aa][Uu][Oo][Cc][Oo][Mm][Pp][Ll][Ee][Ee]|[Aa][Uu][Oo][Ff][Oo][Cc][Uu][Ss]|[Aa][Uu][Oo][Pp][Ll][Aa][Yy]|[Bb][Gg][Cc][Oo][Ll][Oo][Rr]|[Bb][Oo][Rr][Dd][Ee][Rr]|[Cc][Hh][Aa][Ll][Ll][Ee][Nn][Gg][Ee]|[Cc][Hh][Aa][Rr][Ss][Ee]|[Cc][Hh][Ee][Cc][Kk][Ee][Dd]|[Cc][Ii][Ee]|[Cc][Ll][Aa][Ss][Ss]|[Cc][Oo][Ll][Oo][Rr]|[Cc][Oo][Ll][Ss]|[Cc][Oo][Ll][Ss][Pp][Aa][Nn]|[Cc][Oo][Nn][Ee][Nn]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rr][Ee][Aa][Dd][Oo][Nn][Ll][Yy]|[Rr][Ee][Ll]|[Rr][Ee][Qq][Uu][Ii][Rr][Ee][Dd]|[Rr][Ee][Vv][Ee][Rr][Ss][Ee][Dd]|[Rr][Oo][Ww][Ss]|[Rr][Oo][Ww][Ss][Pp][Aa][Nn])=</format>
    <format themecolor="0" textcolor="#ff0000" backgroundcolor="-1" flags="256">\b(?:[Ss][Aa][Nn][Dd][Bb][Oo][Xx]|[Ss][Cc][Oo][Pp][Ee]|[Ss][Cc][Oo][Pp][Ee][Dd]|[Ss][Ee][Ll][Ee][Cc][Ee][Dd]|[Ss][Hh][Aa][Pp][Ee]|[Ss][Ii][Zz][Ee]|[Ss][Ii][Zz][Ee][Ss]|[Ss][Pp][Aa][Nn]|[Ss][Pp][Ee][Ll][Ll][Cc][Hh][Ee][Cc][Kk]|[Ss][Rr][Cc]|[Ss][Rr][Cc][Dd][Oo][Cc]|[Ss][Rr][Cc][Ll][Aa][Nn][Gg]|[Ss][Rr][Cc][Ss][Ee]|[Ss][Aa][Rr]|[Ss][Ee][Pp]|[Ss][Yy][Ll][Ee]|[Aa][Bb][Ii][Nn][Dd][Ee][Xx]|[Aa][Rr][Gg][Ee]|[Ii][Ll][Ee]|[Rr][Aa][Nn][Ss][Ll][Aa][Ee]|[Yy][Pp][Ee]|[Uu][Ss][Ee][Mm][Aa][Pp]|[Vv][Aa][Ll][Uu][Ee]|[Ww][Ii][Dd][Hh]|[Ww][Rr][Aa][Pp]|)=</format>
    <format themecolor="0" textcolor="#8000ff" backgroundcolor="-1" flags="256">".*?"</format>
    <format themecolor="0" textcolor="#8000ff" backgroundcolor="-1" flags="256">'.*?'</format>
    <format themecolor="0" textcolor="#008000" backgroundcolor="-1" flags="256">&lt;!--.*--&gt;</format>
  </profile>