Version 4 (modified by 18 years ago) ( diff ) | ,
---|
This page documents the 1.4 (latest stable) release. Documentation for other releases can be found here.
CamelCase
New words created by smashing together capitalized words.
CamelCase is the original wiki convention for creating hyperlinks, with the additional requirement that the capitals are followed by a lower-case letter; hence “AlabamA” and “ABc” will not be links.
Customizing the Wiki behavior
Some people dislike linking by CamelCase. While Trac remains faithful to the original Wiki style, it provides a number of ways for making life easier to these people.
- There's an option to simply ignore links to missing pages when the link is written using the CamelCase style, instead of that word being replaced by grey links followed by a question mark. That's quite useful when CamelCase style is used to name code artifacts like class names and there's no corresponding page for them.
- There's an option to automatically insert space characters between words
constitutive of a CamelCase link, when rendering the link.
e.g. Camel Case - Creation of explicit Wiki links is also easy, see WikiPageNames for details.
- Lastly, wiki formatting can be disabled completely in some places (e.g. when rendering commit log messages)
See relevant configuration settings:
[wiki]
default_edit_area_height | Default height of the textarea on the wiki edit page. (Since 1.1.5) | 20 |
ignore_missing_pages | Enable/disable highlighting CamelCase links to missing pages. | disabled |
max_size | Maximum allowed wiki page size in characters. | 262144 |
render_unsafe_content |
Enable/disable the use of unsafe HTML tags such as For public sites where anonymous users can edit the wiki it is recommended to leave this option disabled. | disabled |
safe_origins |
List of URIs considered "safe cross-origin", that will be
rendered as To make any origins safe, specify "*" in the list. | data: |
safe_schemes |
List of URI schemes considered "safe", that will be rendered as
external links even if | cvs,file,ftp,git,irc,http,https,news,sftp,smb,ssh,svn,svn+ssh |
split_page_names | Enable/disable splitting the WikiPageNames with space characters. | disabled |
[wikiextras]
done_phrases |
Analogous to | DONE,DEBUGGED,FIXED,REVIEWED |
fixme_phrases |
A list of attentional phrases or single words, separated by comma
( | BUG,FIXME |
lbox_width |
Width of left aligned boxes (defaults to
| 300 |
rbox_width | Width of right aligned boxes. | 300 |
shadowless_boxes | Use shadowless boxes. | disabled |
todo_phrases |
Analogous to | REVIEW,TODO |
wide_toc |
Right aligned boxes with table of contents,
produced by the | disabled |
[wikiextras-custom-phrases]
Custom phrases are configurable by providing associations between a CSS class and the list of phrases separated by comma.
Example:
[wikiextras-custom-phrases] nice = NICE, COOL
[wikiextras-symbols]
The set of symbols is configurable by providing associations between symbols and wiki keywords. A default set of symbols and keywords is defined, which can be revoked one-by-one (_remove) or all at once (_remove_defaults).
Example:
[wikiextras-symbols] _remove_defaults = true _remove = <- -> « = << » = >> ∑ = (SUM) ♥ = <3
Keywords are space-separated!
A symbol can also be removed by associating it with no keyword:
← =
Use the ShowSymbols
macro to find out the current set of symbols
and keywords.
_remove | Space-separated(!) list of keywords that shall not be interpreted as symbols (even if defined in this section). | (no default) |
_remove_defaults | Set to true to remove all default symbols. | disabled |
More information on CamelCase
See also: WikiPageNames, WikiNewPage, WikiFormatting, TracWiki