reStructuredText Support in Trac

Trac supports using reStructuredText (RST) as an alternative to wiki markup in any context WikiFormatting is used.

From the reStucturedText webpage:

"reStructuredText is an easy-to-read, what-you-see-is-what-you-get plaintext markup syntax and parser system. It is useful for in-line program documentation (such as Python docstrings), for quickly creating simple web pages, and for standalone documents. reStructuredText is designed for extensibility for specific application domains. "

Requirements

Note that to activate RST support in Trac, the python docutils package must be installed. If not already available on your operating system, you can download it at the RST Website.

More information on RST


Using RST in Trac

To specify that a block of text should be parsed using RST, use the rst processor.

TracLinks in reStructuredText

  • Trac provides a custom RST reference-directive 'trac' to allow TracLinks from within RST text.

Example:

 {{{
 #!rst
 This is a reference to |a ticket|

 .. |a ticket| trac:: #42
 }}}

For a complete example of all uses of the trac-directive, please see WikiRestructuredTextLinks.

  • Trac allows an even easier way of creating TracLinks in RST, using the custom :trac: link naming scheme.

Example:

 {{{
 #!rst
 This is a reference to ticket `#12`:trac:

 To learn how to use Trac, see `TracGuide`:trac:
 }}}

Syntax highlighting in reStructuredText

There is a directive for doing TracSyntaxColoring in ReST as well. The directive is called code-block

Example

{{{
#!rst

.. code-block:: python

 class Test:

    def TestFunction(self):
        pass

}}}

Will result in the below.

class Test:

   def TestFunction(self):
       pass

WikiMacros in reStructuredText

For doing WikiMacros in ReST you use the same directive as for syntax highlightning i.e code-block. To work you must use a version of trac that has #801 applied.

WikiMacro? Example

{{{
#!rst

.. code-block:: HelloWorld
 
   Something I wanted to say


}}}

Will result in the below.

Hello World, args = Something I wanted to say

Bigger ReST Example

The example below should be mostly self-explanatory:

{{{
#!rst
FooBar Header
=============
reStructuredText is **nice**. It has its own webpage_.

A table:

=====  =====  ======
   Inputs     Output
------------  ------
  A      B    A or B
=====  =====  ======
False  False  False
True   False  True
False  True   True
True   True   True
=====  =====  ======

RST TracLinks
-------------

See also ticket `#42`:trac:.

.. _webpage: http://docutils.sourceforge.net/rst.html
}}}

Results in:

FooBar Header

reStructuredText is nice. It has its own webpage.

A table:

Inputs Output
A B A or B
False False False
True False True
False True True
True True True

RST TracLinks

See also ticket #42.


See also: WikiRestructuredTextLinks, WikiProcessors, WikiFormatting

Also please read about Brooklyn, Cellcept, Estrella, French, Glaucoma, Jazmine, Mikayla, Norway, Order sex, Rosa, Sawyer, Alves, Cytomel, Dentist, Dihydrocodeine, Drew, Makenzie, Palindromic, Pantech, Premature, Sarah, Woods, Aviator, Candy, Contax, Deluxe, Loewe, Mcintosh, Morel, Nikon, Planet audio, Safa, Technics, Aigo, Dilaudid, Edwards, Epidermolysis, Histamine, Mauricio, Maxillary, Pai, Pentax, Siegler, Temporomandibular, Albania, Aria giovanni, Atrovent, Boat, Chaotic, Detrol, Emery, Gorilla, Hypothalamic, Kiara, Kitchen, Lesotho, Lipodystrophy, Macie, Malta, Mitsubish colt, Mixed, Mortgage, Mpo, Nabumetone, Orgy, Palmoplantar, Petit, Pickling, Pneumonic, Porn, Pronto, Raegan, Retina, Tapazole, Victoria, Winship, Zori, Ain, Alexia, Amoxil, Bork, Cyclophosphamide, Dovonex, Hugo, Jenny, Kirsten, Omarion, Spinocerebellar, Beko, Delonghi, Dyne, Family, Fusion, Hertz, Lanzar, Minox, Mitsubishi, Sandisk, Wadia, Arizona eagle, Audiovox, Beyerdynamic, Blomberg, Challenger, Htc, Janome, Lg, Resonance, Tcl, Alar, Bar, Brandy, Cleveland, Francisco, Histiocytosis, Kazakhstan, Marcus, Sulfadiazine, Tdk, Tempra, Bush, Charlotte good, Eric, Humatrope, Lingerie, Money, Navi, Nude, Osteoarthritis, Punctate, Rheumatism, Acer, Asko, Casio, Dialog, Haier, Krell, Mtx, Phantom, Polaris, Tangent, Vitek, Audiobahn, Cheetah, Enol, Jensen, Mark levinson, Rto, Shinco, Sorell, Vertu, Whirlpool, Ariete, Audiovox, Cadence, Canton, General electric, Hitachi, Iriver, Nokia, Phase linear, Polk audio, Senao, Amelia, Apartment, Hypoglycemia, Kendra, Ketoconazole, Marsden, Measles, Onitsuka, Target, Tatum, Underwear, Boston acoustics, Electrolux, Fujifilm, Hansa, Jbl, Mac audio, Oris, Revox, Spark, Teac and Zauber of course.
Read more about accutane, aciphex, actonel, actos, acyclovir, aldara, allegra, alprazolam, altace, ambien, amoxicillin, atenolol, ativan, augmentin, bextra, biaxin, bupropion, buspar, carisoprodol, celebrex, celexa, cialis, claritin, clomid, codeine, diazepam, didrex, diflucan, effexor, ephedrine, fioricet, flexeril, hydrocodone, imitrex, ionamin, lamisil, levitra, lexapro, lorazepam, meridia, metformin, nasonex, neurontin, paxil, phentermine, prednisone, premarin, propecia, proscar, protonix, provigil, prozac, risperdal, soma, synthroid, tadalafil, tenuate, tramadol, ultracet, ultram, valium, valtrex, viagra, vicodin, vioxx, wellbutrin, xanax, xenical, yasmin, zocor, zoloft, zovirax, zyban, zyprexa, zyrtec.
Also please read related informatio nabout acne, balding, bloating, bowel, breast augmentation, breast enhancement, breast enlargement, breast enhance, breasts, cellulite, colitis, constipation, diarrhea, diet, ejaculation, fat loss, fibromyalgia, hair loss, hair growth, alopecia, baldness, provillus, heartburn, heartworm, hemorrhoids, hgh, hoodia, hypothyroidism, ibs, insomnia, menopause, neuralgia, no smoking, osteoarthritis, osteoporosis, pain relief, pheromone, pimple, quit smoking, rheurmatism, sleep aids, sleep apnea, sleep disorder, smoking, stop smoking, thyroid, weight, wrinkle, skin treatment, skin care, skin disorder, skin disease, skin cream, human growth hormone, anti aging, hormone, acanthosis, blackheads, hickey, inflammatory disease, rosacea, skin condition, whiteheads, zits, tendonitis, complexion, crinkle, scar treatment, callus, mesotherapy, endermologie, liposuction, adipose tissue, fatty tissue, flab, mons pubis, revitol, arthritis, back pain, cartilage, chronic pain, depression, sciatica, shingles, stiff joints, stiffness, prostate, prostatitis, drug testing, drug-screening, drug tests, drug detox, drug addiction, drug rehab, detoxification, drug rehabilitation and rapid detox.
Also please read related informatio nabout acne, balding, bloating, bowel, breast augmentation, breast enhancement, breast enlargement, breast enhance, breasts, cellulite, colitis, constipation, diarrhea, diet, ejaculation, fat loss, fibromyalgia, hair loss, hair growth, alopecia, baldness, provillus, heartburn, heartworm, hemorrhoids, hgh, hoodia, hypothyroidism, ibs, insomnia, menopause, neuralgia, no smoking, osteoarthritis, osteoporosis, pain relief, pheromone, pimple, quit smoking, rheurmatism, sleep aids, sleep apnea, sleep disorder, smoking, stop smoking, thyroid, weight, wrinkle, skin treatment, skin care, skin disorder, skin disease, skin cream, human growth hormone, anti aging, hormone, acanthosis, blackheads, hickey, inflammatory disease, rosacea, skin condition, whiteheads, zits, tendonitis, complexion, crinkle, scar treatment, callus, mesotherapy, endermologie, liposuction, adipose tissue, fatty tissue, flab, mons pubis, revitol, arthritis, back pain, cartilage, chronic pain, depression, sciatica, shingles, stiff joints, stiffness, prostate, prostatitis, drug testing, drug-screening, drug tests, drug detox, drug addiction, drug rehab, detoxification, drug rehabilitation and rapid detox.
Also information about Agrylin, Aiwa, Alinia, Antacids, Burberry, Coronary, Gestapo, Hunger,Jayden, Jayla, July, Levitra, Mekhi, Myopathy, Naguib, Noodles, Pars, Procrit, Ramer, Replete, Vardenafil, Wilkes, Amc theater, Bantu, Barbados, Bromocriptine, Cassia, Corey, Drug test, Family, Fernanda, Garrett, Hers, Indocin, Insta, Kaitlyn, Kashani, Losec, Mp3, Optics, Orabase, Sandra, Worth, Yemen, Alexandria, Anaconda, Brandon, Cormier, Diabetes, Earth, Fumaric, Furukawa, Harry potter, Hector, Iron, Jazmin, Kohler, Lexus, Mare, Motorola, Panama, Society, Tibia, Vanessa, Vitek, Wallis, Afrin, Anemia, Cerebro, Cholestatic, Cluster, Cyclen, Dakota, Deluxe, Gonococcal, Hair loss, Jeep, Judge, Luftwaffe, Melas, O, Polyethylene, Profile, Robin, Stax, Sulfamethoxazole, Wendy, Zeasorb, Agent estate real, Ayden, Bbk, Beemer, Blaupunkt, Carcinoid, Carolina, Ceramide, Cormier, Desonide, Diego, Eclipse, Harley, Hippopotamus, Lip, Mazda, Mira, Nash, Olaffsen, Omar, Pfaff and Seafood still available for you.
See also: Arabia, Azerbaijan, Cyprus, Dominica, Ecuador, Ghana, Gibraltar, Guam, Italy, Jordan, Liechtenstein, Macedonia, Mali, Namibia, Norway, Palau, Peru, Portugal, Senegal, Turkey, Vatican, Barbiturates, Cataflam, Cousin, Ejaculation, Eliana, Fiat, Francesca, Glyceryl, Ian, Myanmar, Nephropathy, Nicotine, Panic, Paper term, Pets, Pheochromocytoma, Premarin, Pyridium, Small, Sri lanka, Tv guide, Xxx, Acura, Alfa romeo, Aston martin, Bugatti, Cadillac, Caterham, Ferrari, Hyundai, Invicta, Jeep, Lamborghini, Lotus, Maserati, Mercedes, Mitsubishi, Pagani, Renault, Rinspeed, Saab, Saleen, Acorp, Apple, Cheetah, Dls, Dragster, Dynaudio, Eio, Funky, Irobot, Janome, Jbl, Kicx, Musical fidelity, Nikon, Rto, Shinco, Siemens, Sim2, Soundstream.
See also: Bentley, Bugatti, Buick, Caterham, Chrysler, Citroen, Dodge, Ferrari, Fiat, Fisker, Ford, Harley, Hummer, Infiniti, Kia, Land rover, Lexus, Lotus, Maybach, Mazda, Motorcycle, New cars, Oldsmobile, Panoz, Peugeot, Pontiac, Renault, Rolls-royce, Saab, Subaru, Toyota, Vauxhall, Volkswagen, Yamaha, Bentley, Bugatti, Buick, Caterham, Chrysler, Citroen, Dodge, Ferrari, Fiat, Fisker, Ford, Harley, Hummer, Infiniti, Kia, Land rover, Lexus, Lotus, Maybach, Mazda, Motorcycle, New cars, Oldsmobile, Panoz, Peugeot, Pontiac, Renault, Rolls-royce, Saab, Subaru, Toyota, Vauxhall, Volkswagen, Yamaha.