Modify ↓
Opened 16 years ago
Closed 14 years ago
#7750 closed enhancement (duplicate)
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: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal 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 (0)
Change History (2)
comment:1 by , 16 years ago
Milestone: | → 0.11-retriage |
---|
comment:2 by , 14 years ago
Milestone: | next-minor-0.12.x |
---|---|
Resolution: | → duplicate |
Status: | new → 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.