DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Tabbed Plaintext: Good or not-so-good idea?  (Read 10,148 times)

Tuxman

  • OMG not him again!
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 2,522
    • Participated in NANY Challenge Seven Times
Tabbed Plaintext: Good or not-so-good idea?
« on: December 13, 2010, 03:27 PM »
Sometimes I need the same text a few times with only a few modifications, like: for posting in my WordPress and in discussion boards. As I found it pointless to have one separate text file per format, I usually write it pseudo-formatted and do some regex search and replace on the fly.

Some days ago I had an idea how to optimize handling such things:
"Multi-paged" plaintext.

My approach:
I define a "separator" as a page-break symbol and split the text into multiple tabs then.

Raw draft:

Code
This is text on page 1. Some more text. Yay!

==========================

This is text on page 2. Look how funny it is. Dance, joy.

--->

Code
 ________________________________________
| Tabbed Plaintext Editor            |_|X|
|________________________________________|
|        |________                       |
| Page 1 | Page 2 |                      |
|________|________|______________________|
|                                        |
| This is text on page 1. (...)          |
|                                        |
|________________________________________|

Pro:
* The "tabbed" text files are still plaintext, so they can be edited even with Notepad.
* No bells & whistles, only splitting.

Con:
Well, name them. I wanted to start coding it in January or something, so if there is something wrong with my thoughts, it would be fine if I knew it in time.

:)
I bet when Cheetahs race and one of them cheats, the other one goes "Man, you're such a Cheetah!" and they laugh & eat a zebra or whatever.

rjbull

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 3,217
Re: Tabbed Plaintext: Good or not-so-good idea?
« Reply #1 on: December 13, 2010, 04:18 PM »
If you're on Windows - with a handle like Tuxman I expect you have a strong preference for Linux - would mouser's Form Letter Machine be equivalent?

The Form Letter Machine  is a program that will help you to write letters and emails by mixing and matching from pre-written paragraphs.

Tuxman

  • OMG not him again!
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 2,522
    • Participated in NANY Challenge Seven Times
Re: Tabbed Plaintext: Good or not-so-good idea?
« Reply #2 on: December 13, 2010, 05:02 PM »
Well, I like penguins :) but I don't target a specific OS.
It is similar indeed, but it works differently and does a lot of stuff that I don't need, like assigning “text types“, pairs of keys and values etc.

What I want to do is nothing more than, basically, a tabbed Notepad.
I bet when Cheetahs race and one of them cheats, the other one goes "Man, you're such a Cheetah!" and they laugh & eat a zebra or whatever.

Deozaan

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 9,827
    • Participated in NANY Challenge Eight Times
    • Cody Award
Re: Tabbed Plaintext: Good or not-so-good idea?
« Reply #3 on: December 14, 2010, 08:10 AM »
Do you want it to actually create the tabs and pages in ASCII like that, or were you just using ASCII to demonstrate what you wanted?

If you really just need a tabbed text editor, why not use something like Sublime Text, Edit Pad, or NotePad++?

Tuxman

  • OMG not him again!
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 2,522
    • Participated in NANY Challenge Seven Times
Re: Tabbed Plaintext: Good or not-so-good idea?
« Reply #4 on: December 14, 2010, 10:33 AM »
I was just using ASCII to demonstrate what I wanted. Too lazy to do some GUI mockups.

Because they don't allow me to have multiple "pages" in only 1 file.  :P

Quote
I found it pointless to have one separate text file per format
I bet when Cheetahs race and one of them cheats, the other one goes "Man, you're such a Cheetah!" and they laugh & eat a zebra or whatever.

superboyac

  • Is your software in my list?
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 6,347
Re: Tabbed Plaintext: Good or not-so-good idea?
« Reply #5 on: December 14, 2010, 03:03 PM »
Interesting...a multi-page text file.

Tuxman

  • OMG not him again!
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 2,522
    • Participated in NANY Challenge Seven Times
Re: Tabbed Plaintext: Good or not-so-good idea?
« Reply #6 on: December 26, 2010, 04:48 PM »
If anyone cares, theory is done. Now we'll head over to the actually complicated part.
I bet when Cheetahs race and one of them cheats, the other one goes "Man, you're such a Cheetah!" and they laugh & eat a zebra or whatever.

kunkel321

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 626
    • Participated in NANY Challenge Once
Re: Tabbed Plaintext: Good or not-so-good idea?
« Reply #7 on: December 26, 2010, 05:36 PM »
Hey, this sounds pretty cool!  At work I use a singe large txt file that is a list of about 500 clients' contact info, alphabetized.  I always thought it would be nice if I could drill-down into the contents, by initial, in the same way that most contacts databases do...  Sounds like your system would work for that.  I'd humbly recommend allowing multiple rows of tabs....  I like my text editors to be narrow and off to the side of my desktop.  Also, you indicated a separation as being 13 dashes,  maybe a less-restrictive number, such as >30, <10 would be easier... (though the rebel in me does like the #13  ;)  )

Tuxman

  • OMG not him again!
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 2,522
    • Participated in NANY Challenge Seven Times
Re: Tabbed Plaintext: Good or not-so-good idea?
« Reply #8 on: December 26, 2010, 05:54 PM »
As the separator is user-defined and might as well be changed globally, depending on the implementation, it's OK.
But I do like 13, too.  8)
I bet when Cheetahs race and one of them cheats, the other one goes "Man, you're such a Cheetah!" and they laugh & eat a zebra or whatever.

Original address: https://www.donationcoder.com/forum/index.php?topic=24880.0