Making WordPress.org


Ignore:
Timestamp:
07/08/2025 03:23:48 AM (13 months ago)
Author:
dd32
Message:

Trac: Allow CSS syntax highlighting for code blocks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/trac.wordpress.org/templates/ticket_change.html

    r14395 r14482  
    2020
    2121        # Unsupported code types get converted to plaintext.
    22         wikidom = re.sub( r'{{{\s*#!(?!CommitTicketReference|xml|php|js|javascript|sql|sh|table|tr|th|td|diff)(\S+)\s', '{{{#!default \n \\1', wikidom, flags=re.IGNORECASE )
     22        wikidom = re.sub( r'{{{\s*#!(?!CommitTicketReference|xml|php|js|javascript|css|sql|sh|table|tr|th|td|diff)(\S+)\s', '{{{#!default \n \\1', wikidom, flags=re.IGNORECASE )
    2323
    2424        # Long code blocks (20k+) should be truncated to 10k characters.
     
    2626
    2727        # Convert WikiMarkup.
    28         wikidom = wiki_to_html( context, wikidom, escape_newlines)
     28        wikidom = wiki_to_html( context, wikidom, escape_newlines )
    2929
    3030        return wikidom;
Note: See TracChangeset for help on using the changeset viewer.