Sponsored Content
Full Discussion: Editors for UNIX
Top Forums UNIX for Dummies Questions & Answers Editors for UNIX Post 20393 by Neo on Thursday 25th of April 2002 01:17:28 PM
Old 04-25-2002
I can't make this recommendation strong enough so I'll simply type it in two bold capital letters:

VI
 

5 More Discussions You Might Find Interesting

1. Programming

editors?

Just started out with C and are looking for a good editor in *nix that marks the code with colors. This is maybe a newbie thing to have the C code in colors but i like it and you can almost always se when you are typing wrong. :) Ive heard that emacs should have that option but i havent... (3 Replies)
Discussion started by: hexdoctor
3 Replies

2. UNIX for Dummies Questions & Answers

Mail utilities and editors.

I was wondering what other mail utilities besides 'mutt, unix mail, PINE and elm' are available for unix. Also, what other editors are around besides 'VI, pico, vim and emacs'... I've been searching the net looking for some answers, but nothing much has come up.. thanx! (1 Reply)
Discussion started by: Shonnie
1 Replies

3. Windows & DOS: Issues & Discussions

GUI Text Editors in WinXP -- what's their problem?

jEdit, Total Edit, EDXOR, all have one thing in common -- whatever they save in what they call "Unix" encoding and line endings inevitably shows up in a CLI text editor like pico or vim having garbage characters somewhere close to the beginning or, though this is more rare, somewhere in the body of... (0 Replies)
Discussion started by: SilversleevesX
0 Replies

4. UNIX and Linux Applications

opinions on video editors

What is everyones opinions on these video editors? PiTiVi Avidemux Cinelerra Kdenlive Kino Linux Video Editing: Top Five Linux Video Editors (0 Replies)
Discussion started by: cokedude
0 Replies

5. UNIX for Dummies Questions & Answers

UNIX Basics about shell and editors and default settings

Hi all, I have 3-4 years of experience working on unix environment. I am not a beginner, but unix is not my primary skill set. I am very good at awk programming and doing many of my tasks very well, really very weak on basics. I moved to a new job recently and the settings there are driving me... (5 Replies)
Discussion started by: ysvsr1
5 Replies
Text::WikiCreole(3pm)					User Contributed Perl Documentation				     Text::WikiCreole(3pm)

NAME
Text::WikiCreole - Convert Wiki Creole 1.0 markup to XHTML VERSION
Version 0.07 DESCRIPTION
Text::WikiCreole implements the Wiki Creole markup language, version 1.0, as described at http://www.wikicreole.org. It reads Creole 1.0 markup and returns XHTML. SYNOPSIS
use Text::WikiCreole; creole_plugin &myplugin; # register custom plugin parser my $html = creole_parse($creole_text); ... FUNCTIONS
creole_parse Self-explanatory. Takes a Creole markup string argument and returns HTML. creole_plugin Creole 1.0 supports two plugin syntaxes: << plugin content >> and <<< plugin content >>> Write a function that receives the text between the <<>> delimiters as $_[0] (and not including the delimiters) and returns the text to be displayed. For example, here is a simple plugin that converts plugin text to uppercase: sub uppercase_plugin { $_[0] =~ s/([a-z])/u$1/gs; return $_[0]; } creole_plugin &uppercase_plugin; If you do not register a plugin function, plugin markup will be left as is, including the surrounding << >>. creole_link You may wish to customize [[ links ]], such as to prefix a hostname, port, etc. Write a function, similar to the plugin function, which receives the URL part of the link (with leading and trailing whitespace stripped) as $_[0] and returns the customized link. For example, to prepend "http://my.domain/" to pagename: sub mylink { return "http://my.domain/$_[0]"; } creole_link &mylink; creole_customlinks If you want complete control over links, rather than just modifying the URL, register your link markup function with creole_link() as above and then call creole_customlinks(). Now your function will receive the entire link markup chunk, such as [[ some_wiki_page | page description ]] and must return HTML. This has no effect on "bare" link markup, such as http://cpan.org. creole_barelink Same purpose as creole_link, but for "bare" link markup. sub mybarelink { return "$_[0].html"; } creole_barelink &mybarelink; creole_custombarelinks Same purpose as creole_customlinks, but for "bare" link markup. creole_img Same purpose as creole_link, but for image URLs. sub myimg { return "http://my.comain/$_[0]"; } creole_img &myimg; creole_customimgs Similar to creole_customlinks, but for images. creole_tag You may wish to customize the opening and/or closing tags for the various bits of Creole markup. For example, to assign a CSS class to list items: creole_tag("li", "open", "<li class=myclass>"); Or to see all current tags: print creole_tag(); The tags that may be of interest are: br dd dl dt em h1 h2 h3 h4 h5 h6 hr ilink img inowiki ip li link mono nowiki ol p strong sub sup table td th tr u ul Those should be self-explanatory, except for inowiki (inline nowiki), ilink (bare links, e.g. http://www.cpan.org), and ip (indented paragraph). OFFICIAL MARKUP
Here is a summary of the official Creole 1.0 markup elements. See http://www.wikicreole.org for the full details. Headings: = heading 1 -> <h1>heading 1</h1> == heading 2 -> <h2>heading 2</h2> ... ====== heading 6 -> <h6>heading 6</h6> Various inline markup: ** bold ** -> <strong> bold </strong> // italics // -> <em> italics </em> **// both //** -> <strong><em> both </em></strong> [[ link ]] -> <a href="link">link</a> [[ link | text ]] -> <a href="link">text</a> http://cpan.org -> <a href="http://cpan.org">http://cpan.org</a> line \ break -> line <br /> break {{img.jpg|alt}} -> <img src="img.jpg" alt="alt"> Lists: * unordered list <ul><li>unordered list</li> * second item <li>second item</li> ## nested ordered -> <ol><li>nested ordered</li> *** uber-nested <ul><li>uber-nested</li></ul> * back to level 1 </ol><li>back to level 1</li></ul> Tables: |= h1 |= h2 -> <table><tr><th>h1</th><th>h2</th></tr> | c1 | c2 <tr><td>c1</td><td>c2</td></tr></table> Nowiki (Preformatted): {{{ <pre> ** not bold ** ** not bold ** escaped HTML: -> escaped HTML: <i> test </i> &lt;i&gt; test &lt;/i&gt; }}} <pre> {{{ inline\also }}} -> <tt>inline\also</tt> Escape Character: ~** not bold ** -> ** not bold ** tilde: ~~ -> tilde: ~ Paragraphs are separated by other blocks and blank lines. Inline markup can usually be combined, overlapped, etc. List items and plugin text can span lines. EXTENDED MARKUP
In addition to OFFICIAL MARKUP, Text::WikiCreole also supports the following markup: Plugins: << plugin >> -> whatever you want (see creole_plugin above) <<< plugin >>> -> whatever you want (see creole_plugin above) Triple-bracket syntax has priority, in order to allow you to embed double-brackets in plugins, such as to embed Perl code. Inline: ## monospace ## -> <tt> monospace </tt> ^^ superscript ^^ -> <sup> superscript </sup> ,, subscript ,, -> <sub> subscript </sub> __ underline __ -> <u> underline </u> (TM) -> &trade; (R) -> &reg; (C) -> &copy; ... -> &hellip; -- -> &ndash; Indented Paragraphs: :this -> <div style="margin-left:2em"><p>this is indented is indented</p> :: more indented <div style="margin-left:2em"><p> more indented</div></div> Definition Lists: ; Title -> <dl><dt>Title</dt> : item 1 : item 2 <dd>item 1</dd><dd>item 2</dd> ; Title 2 : item2a <dt>Title 2</dt><dd>item 2a</dd></dl> AUTHOR
Jason Burnett, "<jason at jnj.org>" BUGS
Please report any bugs or feature requests to "bug-text-wikicreole at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Text-WikiCreole>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. SUPPORT
You can find documentation for this module with the perldoc command. perldoc Text::WikiCreole You can also look for information at: o AnnoCPAN: Annotated CPAN documentation <http://annocpan.org/dist/Text-WikiCreole> o CPAN Ratings <http://cpanratings.perl.org/d/Text-WikiCreole> o RT: CPAN's request tracker <http://rt.cpan.org/NoAuth/Bugs.html?Dist=Text-WikiCreole> o Search CPAN <http://search.cpan.org/dist/Text-WikiCreole> ACKNOWLEDGEMENTS
The parsing algorithm is basically the same as (and inspired by) the one in Document::Parser. Document::Parser is OO and is, as such, incompatible with my brain. COPYRIGHT &; LICENSE Copyright 2007 Jason Burnett, all rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.0 2008-10-05 Text::WikiCreole(3pm)
All times are GMT -4. The time now is 12:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy