Edgewall Software

Ticket #7750 (new enhancement)

Opened 3 months ago

Last modified 2 months ago

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

Changed 2 months ago by rblank

  • milestone set to 0.11-retriage

[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.

Add/Change #7750 (mysql syntax support in the wiki source highlighting)

Author



Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change from (none). Next status will be 'new'
The owner will change from (none) to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.