プロジェクト

全般

プロフィール

Vote #69674

未完了

Code syntax highlighting in Wiki only works with Textile formatting

Admin Redmine さんが約2年前に追加. 約2年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Text formatting_26
対象バージョン:
-
開始日:
2011/04/10
期日:
進捗率:

0%

予定工数:
category_id:
26
version_id:
0
issue_org_id:
8120
author_id:
10982
assigned_to_id:
0
comments:
5
status_id:
1
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

Code syntax highlighting in Wiki only works with Textile formatting. However it could/should be formatting-independent. So that any Wiki formatting that produces some @< code class="xyz" >@ (spaces added to prevent parsing) gets a syntax-highlighted code.

Currently the code is at source:trunk/lib/redmine/wiki_formatting/textile/formatter.rb@5386#L50. However I guess a more generic variant of the code could be moved to source:trunk/app/helpers/application_helper.rb besides @textilizable@, @parse_*@, @replace_toc@, ...


journals

I messed up the description by not escaping a &lt;code&gt; tag. I wish I could update the description.
--------------------------------------------------------------------------------
Fixed description and tracker (it seems a feature-request to me) and selected category.
--------------------------------------------------------------------------------
Another choice is implementing a formatting-independent syntax highlighter in client side, using something like "Sunlight":http://sunlightjs.com/.
--------------------------------------------------------------------------------
Another JavaScript and CSS based client-side option is "Google's Code Prettifier":http://code.google.com/p/google-code-prettify/.
--------------------------------------------------------------------------------
Yet another client-side syntax highlighter, but this one already has a Rails plugin: https://github.com/antono/sh2
--------------------------------------------------------------------------------

Admin Redmine さんが約2年前に更新

  • カテゴリText formatting_26 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0