Permalink
Browse files

• Txt2tags bundle from Aurelio Jargas: http://txt2tags.sourceforge.net

Txt2tags converts text files with minimal markup to HTML, XHTML, SGML, LaTeX, Lout, Man page, MoinMoin, MagicPoint and PageMaker.


git-svn-id: http://svn.textmate.org/trunk/Bundles/Txt2tags.tmbundle@6953 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
sorbits committed Apr 5, 2007
0 parents commit 97258b43dffc130e6619820dbb0cd5e0d142c83d
Showing with 6,408 additions and 0 deletions.
  1. +22 −0 Commands/Convert to Default Target.tmCommand
  2. +27 −0 Commands/Convert to HTML and Preview.tmCommand
  3. +33 −0 Commands/Definition List.tmCommand
  4. +22 −0 Commands/HTML.tmCommand
  5. +22 −0 Commands/LaTeX.tmCommand
  6. +31 −0 Commands/List.tmCommand
  7. +22 −0 Commands/Lout.tmCommand
  8. +22 −0 Commands/MagicPoint (mgp).tmCommand
  9. +22 −0 Commands/Man Page.tmCommand
  10. +22 −0 Commands/MoinMoin (wiki).tmCommand
  11. +31 −0 Commands/Numbered List.tmCommand
  12. +22 −0 Commands/PageMaker.tmCommand
  13. +22 −0 Commands/Plain Text.tmCommand
  14. +22 −0 Commands/Sgml.tmCommand
  15. +29 −0 Commands/Show Active Configuration.tmCommand
  16. +29 −0 Commands/Show Document Outline.tmCommand
  17. +37 −0 Commands/Show Keyboard Shortcuts.tmCommand
  18. +20 −0 Commands/Show Txt2tags Version.tmCommand
  19. +22 −0 Commands/Syntax Cheat Sheet.tmCommand
  20. +35 −0 Commands/Table.tmCommand
  21. +22 −0 Commands/XHTML.tmCommand
  22. +25 −0 DragCommands/Insert HTML include.tmDragCommand
  23. +35 −0 DragCommands/Insert Image Mark.tmDragCommand
  24. +24 −0 DragCommands/Insert T2T include.tmDragCommand
  25. +54 −0 Preferences/Comments.tmPreferences
  26. +16 −0 Snippets/Bold.tmSnippet
  27. +16 −0 Snippets/Current Date.tmSnippet
  28. +17 −0 Snippets/Encoding.tmSnippet
  29. +29 −0 Snippets/Image.tmSnippet
  30. +17 −0 Snippets/Include Config.tmSnippet
  31. +17 −0 Snippets/Include as Raw.tmSnippet
  32. +17 −0 Snippets/Include as Tagged.tmSnippet
  33. +17 −0 Snippets/Include as Txt2tags.tmSnippet
  34. +17 −0 Snippets/Include as Verbatim.tmSnippet
  35. +16 −0 Snippets/Input File.tmSnippet
  36. +16 −0 Snippets/Italic.tmSnippet
  37. +37 −0 Snippets/Link.tmSnippet
  38. +16 −0 Snippets/Modification Time.tmSnippet
  39. +16 −0 Snippets/Monospaced.tmSnippet
  40. +18 −0 Snippets/Numbered Title.tmSnippet
  41. +17 −0 Snippets/Options.tmSnippet
  42. +16 −0 Snippets/Output File.tmSnippet
  43. +17 −0 Snippets/Post-Processing.tmSnippet
  44. +17 −0 Snippets/Pre-Processing.tmSnippet
  45. +14 −0 Snippets/Protected (Raw).tmSnippet
  46. +18 −0 Snippets/Protected Block (Raw).tmSnippet
  47. +16 −0 Snippets/Quote.tmSnippet
  48. +17 −0 Snippets/Style.tmSnippet
  49. +18 −0 Snippets/Table Of Contents.tmSnippet
  50. +17 −0 Snippets/Target.tmSnippet
  51. +18 −0 Snippets/Title.tmSnippet
  52. +16 −0 Snippets/Underline.tmSnippet
  53. +22 −0 Snippets/Verbatim Block (code).tmSnippet
  54. +4,715 −0 Support/bin/txt2tags
  55. +231 −0 Syntaxes/Txt2tags.tmLanguage
  56. +18 −0 Templates/Manual Page (man).tmTemplate/info.plist
  57. +77 −0 Templates/Manual Page (man).tmTemplate/template_in.txt
  58. +188 −0 info.plist
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>beforeRunningCommand</key>
+ <string>saveActiveFile</string>
+ <key>command</key>
+ <string>txt2tags "$TM_FILEPATH"</string>
+ <key>input</key>
+ <string>none</string>
+ <key>keyEquivalent</key>
+ <string>@r</string>
+ <key>name</key>
+ <string>Convert to Default Target</string>
+ <key>output</key>
+ <string>showAsTooltip</string>
+ <key>scope</key>
+ <string>text.txt2tags</string>
+ <key>uuid</key>
+ <string>0EC28386-027E-49E4-AEDE-B212796B5AD8</string>
+</dict>
+</plist>
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>beforeRunningCommand</key>
+ <string>nop</string>
+ <key>command</key>
+ <string>. "$TM_SUPPORT_PATH/lib/webpreview.sh"
+
+html_header "Txt2tags Preview"
+txt2tags -t html -i- -o-
+html_footer
+</string>
+ <key>input</key>
+ <string>document</string>
+ <key>keyEquivalent</key>
+ <string>^~@p</string>
+ <key>name</key>
+ <string>Preview</string>
+ <key>output</key>
+ <string>showAsHTML</string>
+ <key>scope</key>
+ <string>text.txt2tags</string>
+ <key>uuid</key>
+ <string>4B8C62A1-82C3-40C6-9595-4546EE8B2CA0</string>
+</dict>
+</plist>
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>beforeRunningCommand</key>
+ <string>nop</string>
+ <key>command</key>
+ <string>if test -z "$TM_SELECTED_TEXT"; then
+ echo
+ echo ": Term 1"
+ echo "Description 1"
+ echo ": Term 2"
+ echo "Description 2"
+ echo ":"
+else
+ echo "$TM_SELECTED_TEXT" | sed 's/^/: /'
+fi</string>
+ <key>fallbackInput</key>
+ <string>none</string>
+ <key>input</key>
+ <string>selection</string>
+ <key>name</key>
+ <string>Definition List</string>
+ <key>output</key>
+ <string>replaceSelectedText</string>
+ <key>scope</key>
+ <string>text.txt2tags</string>
+ <key>tabTrigger</key>
+ <string>:</string>
+ <key>uuid</key>
+ <string>CE8367B5-2C5D-4057-B1EE-9EB026173E31</string>
+</dict>
+</plist>
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>beforeRunningCommand</key>
+ <string>saveActiveFile</string>
+ <key>command</key>
+ <string>txt2tags -t html "$TM_FILEPATH"</string>
+ <key>input</key>
+ <string>none</string>
+ <key>keyEquivalent</key>
+ <string>^H</string>
+ <key>name</key>
+ <string>HTML</string>
+ <key>output</key>
+ <string>showAsTooltip</string>
+ <key>scope</key>
+ <string>text.txt2tags</string>
+ <key>uuid</key>
+ <string>05B145C3-6D67-4E63-8163-FE161E9CA4EB</string>
+</dict>
+</plist>
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>beforeRunningCommand</key>
+ <string>saveActiveFile</string>
+ <key>command</key>
+ <string>txt2tags -t tex "$TM_FILEPATH"</string>
+ <key>input</key>
+ <string>none</string>
+ <key>keyEquivalent</key>
+ <string>^H</string>
+ <key>name</key>
+ <string>LaTeX</string>
+ <key>output</key>
+ <string>showAsTooltip</string>
+ <key>scope</key>
+ <string>text.txt2tags</string>
+ <key>uuid</key>
+ <string>505FE1E0-237F-460F-B9E7-9F05A9B7E85C</string>
+</dict>
+</plist>
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>beforeRunningCommand</key>
+ <string>nop</string>
+ <key>command</key>
+ <string>if test -z "$TM_SELECTED_TEXT"; then
+ echo
+ echo "- Item 1"
+ echo "- Item 2"
+ echo "-"
+else
+ echo "$TM_SELECTED_TEXT" | sed 's/^/- /'
+fi</string>
+ <key>fallbackInput</key>
+ <string>none</string>
+ <key>input</key>
+ <string>selection</string>
+ <key>name</key>
+ <string>List</string>
+ <key>output</key>
+ <string>replaceSelectedText</string>
+ <key>scope</key>
+ <string>text.txt2tags</string>
+ <key>tabTrigger</key>
+ <string>-</string>
+ <key>uuid</key>
+ <string>5928BD4D-E6E6-49F3-ADFE-518FC4E663A7</string>
+</dict>
+</plist>
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>beforeRunningCommand</key>
+ <string>saveActiveFile</string>
+ <key>command</key>
+ <string>txt2tags -t lout "$TM_FILEPATH"</string>
+ <key>input</key>
+ <string>none</string>
+ <key>keyEquivalent</key>
+ <string>^H</string>
+ <key>name</key>
+ <string>Lout</string>
+ <key>output</key>
+ <string>showAsTooltip</string>
+ <key>scope</key>
+ <string>text.txt2tags</string>
+ <key>uuid</key>
+ <string>CAB527E2-384C-46CE-96E0-641F941C9776</string>
+</dict>
+</plist>
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>beforeRunningCommand</key>
+ <string>saveActiveFile</string>
+ <key>command</key>
+ <string>txt2tags -t mgp "$TM_FILEPATH"</string>
+ <key>input</key>
+ <string>none</string>
+ <key>keyEquivalent</key>
+ <string>^H</string>
+ <key>name</key>
+ <string>MagicPoint (mgp)</string>
+ <key>output</key>
+ <string>showAsTooltip</string>
+ <key>scope</key>
+ <string>text.txt2tags</string>
+ <key>uuid</key>
+ <string>ED33B096-631A-41B2-AEB0-50E771F41E37</string>
+</dict>
+</plist>
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>beforeRunningCommand</key>
+ <string>saveActiveFile</string>
+ <key>command</key>
+ <string>txt2tags -t man "$TM_FILEPATH"</string>
+ <key>input</key>
+ <string>none</string>
+ <key>keyEquivalent</key>
+ <string>^H</string>
+ <key>name</key>
+ <string>Man Page</string>
+ <key>output</key>
+ <string>showAsTooltip</string>
+ <key>scope</key>
+ <string>text.txt2tags</string>
+ <key>uuid</key>
+ <string>90B93795-AC8C-41C1-8C41-786C1A113D43</string>
+</dict>
+</plist>
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>beforeRunningCommand</key>
+ <string>saveActiveFile</string>
+ <key>command</key>
+ <string>txt2tags -t moin "$TM_FILEPATH"</string>
+ <key>input</key>
+ <string>none</string>
+ <key>keyEquivalent</key>
+ <string>^H</string>
+ <key>name</key>
+ <string>MoinMoin (wiki)</string>
+ <key>output</key>
+ <string>showAsTooltip</string>
+ <key>scope</key>
+ <string>text.txt2tags</string>
+ <key>uuid</key>
+ <string>E03416E2-4742-4AC4-B152-D838A6542696</string>
+</dict>
+</plist>
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>beforeRunningCommand</key>
+ <string>nop</string>
+ <key>command</key>
+ <string>if test -z "$TM_SELECTED_TEXT"; then
+ echo
+ echo "+ Item 1"
+ echo "+ Item 2"
+ echo "+"
+else
+ echo "$TM_SELECTED_TEXT" | sed 's/^/+ /'
+fi</string>
+ <key>fallbackInput</key>
+ <string>none</string>
+ <key>input</key>
+ <string>selection</string>
+ <key>name</key>
+ <string>Numbered List</string>
+ <key>output</key>
+ <string>replaceSelectedText</string>
+ <key>scope</key>
+ <string>text.txt2tags</string>
+ <key>tabTrigger</key>
+ <string>+</string>
+ <key>uuid</key>
+ <string>70E9A4C5-9F6F-4139-BE41-3685017D6169</string>
+</dict>
+</plist>
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>beforeRunningCommand</key>
+ <string>saveActiveFile</string>
+ <key>command</key>
+ <string>txt2tags -t pm6 "$TM_FILEPATH"</string>
+ <key>input</key>
+ <string>none</string>
+ <key>keyEquivalent</key>
+ <string>^H</string>
+ <key>name</key>
+ <string>PageMaker</string>
+ <key>output</key>
+ <string>showAsTooltip</string>
+ <key>scope</key>
+ <string>text.txt2tags</string>
+ <key>uuid</key>
+ <string>0E94ACC5-07FC-48BA-8FE0-9557224856F8</string>
+</dict>
+</plist>
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>beforeRunningCommand</key>
+ <string>saveActiveFile</string>
+ <key>command</key>
+ <string>txt2tags -t txt "$TM_FILEPATH"</string>
+ <key>input</key>
+ <string>none</string>
+ <key>keyEquivalent</key>
+ <string>^H</string>
+ <key>name</key>
+ <string>Plain Text</string>
+ <key>output</key>
+ <string>showAsTooltip</string>
+ <key>scope</key>
+ <string>text.txt2tags</string>
+ <key>uuid</key>
+ <string>1B1B0B59-A69B-4601-9884-23480A27914B</string>
+</dict>
+</plist>
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>beforeRunningCommand</key>
+ <string>saveActiveFile</string>
+ <key>command</key>
+ <string>txt2tags -t sgml "$TM_FILEPATH"</string>
+ <key>input</key>
+ <string>none</string>
+ <key>keyEquivalent</key>
+ <string>^H</string>
+ <key>name</key>
+ <string>Sgml</string>
+ <key>output</key>
+ <string>showAsTooltip</string>
+ <key>scope</key>
+ <string>text.txt2tags</string>
+ <key>uuid</key>
+ <string>AFAA4B88-20AB-44B3-8BF3-4D3E66FEB3A0</string>
+</dict>
+</plist>
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>beforeRunningCommand</key>
+ <string>nop</string>
+ <key>command</key>
+ <string>. "$TM_SUPPORT_PATH/lib/webpreview.sh"
+
+test -z $TM_FILENAME &amp;&amp; title="Txt2tags" || title="${TM_FILENAME%.*}"
+
+html_header "$title - Active Configuration"
+
+cd "$TM_DIRECTORY" # needed to expand possible includes
+txt2tags -t txt --dump-config -i- -o- | pre
+
+html_footer</string>
+ <key>input</key>
+ <string>document</string>
+ <key>name</key>
+ <string>Show Active Configuration</string>
+ <key>output</key>
+ <string>showAsHTML</string>
+ <key>scope</key>
+ <string>text.txt2tags</string>
+ <key>uuid</key>
+ <string>69189D22-7020-4A1D-AF4C-1A3A068D0ADA</string>
+</dict>
+</plist>
Oops, something went wrong.

0 comments on commit 97258b4

Please sign in to comment.