Changes between Version 3 and Version 4 of IncludeAttachmentMacro


Ignore:
Timestamp:
Aug 23, 2016, 6:33:39 PM (8 years ago)
Author:
figaro
Comment:

Cosmetic changes

Legend:

Unmodified
Added
Removed
Modified
  • IncludeAttachmentMacro

    v3 v4  
    11[[PageOutline(2-5,Contents,pullout)]]
    22
    3 = IncludeAttachment - embed the text of an attachment
     3= Display the text of an attachment
    44
    55== Description
    66
    7 This macro embeds the contents of an attachment in a wiki-formated text (e.g. a wiki page or a ticket). The text of the attachment is syntax-highlighted according to its MIME type. Currently only attachments of mime types starting with `text/` are accepted.
     7This macro embeds the contents of an attachment in a wiki-formatted text, for example a wiki page or a ticket. The text of the attachment is syntax-highlighted according to its MIME type. Currently only attachments of mime types starting with `text/` are accepted.
    88
    9 == Examples
    10 
    11 Include the attachment named `attachment.txt` of the `MyPage` wiki page:
     9To include the attachment named `attachment.txt` of the `MyPage` wiki page:
    1210
    1311{{{
     
    1513}}}
    1614
    17 Include a source file from a ticket attachment:
     15To include a source file from a ticket attachment:
    1816
    1917{{{
    2018IncludeAttachment(ticket:42:somefile.c)
    2119}}}
    22 
    23 == Permissions
    2420
    2521The user must have the `ATTACHMENT_VIEW` permission on the attachment to be able to include it using this macro.
     
    4945Change to the directory where you unpacked or checked out the sources and generate the .egg file:
    5046
    51 {{{
     47{{{#!sh
    5248$ cd includeattachmentmacro/trunk
    5349$ python setup.py bdist_egg
    5450}}}
    5551
    56 Copy the .egg file to the `plugins` directory of your trac environment:
     52Copy the .egg file to the `plugins` directory of your Trac environment:
    5753
    58 {{{
     54{{{#!sh
    5955$ cp dist/IncludeAttachment-0.1-py2.7.egg /path/to/trac/env/plugins
    6056}}}
    6157
    62 Enable the plugin in the trac configuration file (`/path/to/trac/env/conf/trac.ini`):
     58Enable the plugin in the trac configuration file `/path/to/trac/env/conf/trac.ini`:
    6359
    64 {{{
     60{{{#!ini
    6561[components]
    6662includeattachment.* = enabled