Ticket #7750 (new enhancement)
mysql syntax support in the wiki source highlighting
| Reported by: | spSerg | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.11-retriage |
| Component: | wiki system | Version: | 0.11-stable |
| Severity: | minor | Keywords: | |
| Cc: |
Description
Just found, that new Pygments can process MySQL syntax coloring. But your code cant forward such syntax selector. Just sql only.
But sql highlighter can't process correctly unicode (not latin symbols) in comments.
Just add new item into cycle at Line 281 in file /trac/mimeview/api.py
'mysql'
In cycle
281 for x in ['ada', 'asm', 'asp', 'awk', 'idl', 'inf', 'java', 'ksh', 'lua', 282 'm4', 'mail', 'psp', 'rfc', 'rst', 'sql', 'tcl', 'tex', 'zsh']: 283 KNOWN_MIME_TYPES.setdefault('text/x-%s' % x, []).append(x)
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


