Edgewall Software
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 Remy Blank, 16 years ago

Milestone: 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.

comment:2 by Christian Boos, 14 years ago

Milestone: next-minor-0.12.x
Resolution: duplicate
Status: newclosed

According to comment:1.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.