Modify ↓
Ticket #7750 (closed enhancement: duplicate)
Opened 3 years ago
Last modified 20 months ago
mysql syntax support in the wiki source highlighting
| Reported by: | spSerg | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | wiki system | Version: | 0.11-stable |
| Severity: | minor | Keywords: | |
| Cc: | |||
| Release Notes: | |||
| API Changes: | |||
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
comment:1 Changed 3 years ago by rblank
- Milestone set to 0.11-retriage
comment:2 Changed 20 months ago by cboos
- Milestone next-minor-0.12.x deleted
- Resolution set to duplicate
- Status changed from new to closed
According to comment:1.
Note: See
TracTickets for help on using
tickets.



[7594] added the possibility to use any MIME type as a processor, so you should be able to use text/x-mysql if you use the current trunk. I'm not quite sure it will be picked up by Pygments, though.
This is related to #5613, #5533 and #5828.