Text editing is the process of selecting and preparing text [files].

learn more… | top users | synonyms

0
votes
1answer
23 views

RegEx expression to replace /randomword/ with <i>randomword</i>?

I'm looking for a RegEx expression to use with Find & Replace that will turn /randomword/ into <i>randomword</i> without actually changing the random word. Possible to do this ...
2
votes
0answers
46 views

Yank plain text in Emacs?

Using Windows 7 / 8, GNU Emacs 24.3.1 I often yank text copied from browser or incoming email. Is there a way to yank/paste as plain text, leaving out special characters? I tried Ditto and Puretext ...
-1
votes
0answers
17 views

Join lines with specific character at the end of line

I have many (50,000) lines of text and I have to do two tasks: I have to join two lines. One of them has point end of it to the previous one in whole text example: line1:hello line2:goodbye. I ...
42
votes
4answers
16k views

How can I filter a file for lines containing a string in Sublime Text 2?

I want to filter a file I'm editing in Sublime Text 2 for lines contain a certain string, if possible including regular expressions. Consider the following file: foo bar baz qux quuux baz When ...
2
votes
2answers
249 views

Transpose emacs rectangles

Suppose I have this text: RUN_ RUN_ RUN_ RUN_ RUN_ and want this one: RUN_A RUN_B RUN_C RUN_D RUN_E I would like to be able to write ABCDE and somehow `transpose' it and kill-yank it as a ...
31
votes
6answers
17k views

emacs: how to indent/unindent region of python code by 4 spaces?

I have a region of python code selected in emacs. What are the most efficient ways to indent and unindent every line in it by 4 spaces? Ideally I'd like something that's not context sensitive (eg. ...
6
votes
5answers
3k views

How do I delete the next line in vim?

In emacs, whenever I want to delete a few lines of text, I just use C-k until all the text is gone. However, in vim it seems a bit more complex. I know I can do d$ to delete until the end of the ...
5
votes
4answers
8k views

Why does the margin on a numbered list over 99 become large (2007 Word)?

Have a numbered list in 2007 Word. Everything was fine until item 100. At 100 and on, the margin between the number and the text is very large. How do I make it normal? Thanks! i.e.- 98. ...
0
votes
0answers
13 views

TextWrangler: indent comments at same level as code

In TextWrangler, when I comment a line of code using ⌘+/ it add the comment symbol at column 0. Uncommented: print("test") Commented: # print("test") Is it possible to instead configure ...
0
votes
2answers
170 views

How can I perform free-form, canvas-like text editing?

My 5-1/2 y.o. son is starting to use a computer and one of the things he likes to do is to type stuff into an editor. He has used TuxPaint before and is familiar with the idea of a "canvas" for ...
0
votes
1answer
31 views

Replace a couple of strings of text automatically?

More detailed: I've got a folder with data for a game which code is pure text and customizable (M.U.G.E.N). Beside all other things, the *.cns file of each character contains following string of ...
21
votes
11answers
31k views

Convert unix line endings to windows

I recently moved back to Windows from Linux. I have some files with CRLFs, some with LFs and some that are mixed. Is there a utility that will help me find all my Unix-touched files and convert them ...
2
votes
7answers
14k views

Find and Replace several several different values all at once

I have a file with multiple instances of Text_1 and Text1 and I need to replace both those strings with Text_A and TextB respectively. Currently I'm doing two Find and Replace functions on each ...
1
vote
2answers
215 views

How to append a CR to end of all .txt files in a directory

Is there an easy way to do this? I'm actually combining about 500 files using copy *.txt myoutputFile.txt. The problem is, that command inserts the new/next file at the current/end position of the ...
2
votes
3answers
336 views

Unicode text lost when saved as ansi

When i have saved a text file using a notepad with ANSI i lost all of the info since it became all question marks. Is there a way to convert it back to Unicode to retrieve the text?
0
votes
0answers
14 views

In Eclipse PDT (php), can I configure text select to exclude the $ prefix?

I've recently switched to Eclipse PDT but came from an editor where the dollar sign prefix is not selected when selecting text tokens (e.g. double-clicking a variable, ctrl+shift+arrow over a ...
1
vote
2answers
10k views

Automatic forward-deleting

First and foremost... please forgive my somewhat approximate English. (I'm French.) Oh and my loooooong sentences too (I need lots of words for little meaning when speaking foreign languages... plus ...
6
votes
12answers
4k views

Parsing text files

I encountered a situation tonight where I wanted to parse a text file. I had a very, very long word list that contained English words delimited by lines. I wanted to get rid of every word (or line) ...
0
votes
0answers
17 views

Quicksilver - Keyboard macro to select all text to right of cursor

At one point, I had this set up on another machine, but I don't have that mac anymore. I would like a global override to have cmd+shift+right arrow select all text to the right of the cursor on the ...
0
votes
1answer
40 views

What does `-n` option in sed do?

This is the man page entry for -n: -n suppress automatic printing of pattern space I notice that when not using -n for certain operations, each line is printed to stdout (and the requested ...
0
votes
1answer
176 views

Extract multiple strings between two words in a file

I have a text file made this way: hjkhkhkjhkh<start:"xxxxxxxxxxxx:"alt>asdsadasd<start:"yyyyyyyyyyyyyy:"alt>gfhfg ...
1
vote
1answer
40 views

How to delete the 3rd occurrence of a pattern in a file, and beyond

How can I find the third occurrence of a pattern in a file (Note: not in a line) and delete the line containing the pattern and n lines below that (say, 5 lines below). e.g., COVER fafjasfj isfapifj ...
11
votes
4answers
7k views

Ctrl+Backspace inserts a small box instead of erasing

When I press Ctrl+Backspace, sometimes a small square is inserted, instead of the entire word being erased. If I copy and paste the character here, I get this: ``. But it doesn’t look quite like that ...
8
votes
6answers
2k views

Free tool for graphical representations of XML files [closed]

I need a tool which displays an XML file in a nice way. With "nice way" I mean a way on which I can fold and unfold all the nodes. Is there any free tool that runs on Windows Vista that does this ...
0
votes
2answers
63 views

How can I use advanced text editing in Notepad ++?

I have a little question. I've saved in a text file all the folders with sub-folders and files library of my music hard-drive and I try to clean this with notepad++. I've removed the path of the ...
4
votes
4answers
84 views

Apply regex to certain occurrences

I have a large file with plain text (no html tags, etc.). What I want to do is to apply regex to whole file on the one hand but on the other I want to choose which changes will be applied. For ...
1
vote
1answer
62 views

Multi line find and replace

I recently moved about 30k images from Picasa to imgur . I need to replace all those links in my wordpress blog . I have exported all the posts to xml file ( it is 96mb) . I tried this powershell ...
0
votes
0answers
42 views

Can eclipse Ctrl+Left / Ctrl+Right skip the camel case and go to next full word instead?

When I hit Ctrl+Right or Ctrl+Left in Eclipse (Juno and Kepler at least), and I'm going through camel cased words, it takes me to the next capitalized part of a camelCased word so instead of going ...
4
votes
4answers
946 views

VERY large text files and Snow Leopard

Sometimes I need to work on EXTREMELY large text files. 200-300 megs or more. My favorite text editor on my MacBook Pro is TextMate. However, TM chokes on very large text files. Even ones around ...
2
votes
7answers
27k views

Application to open / edit a very large CSV file (500 MB, 4 million records)? [duplicate]

Possible Duplicates: Text Editor for very big file - Windows What editor/viewer to use to inspect large text based files? I have a CSV file which has about 4 million rows and is about 500 ...
6
votes
3answers
3k views

Show/Hide function folding margin on Notepad++

Is it possible to get rid of the function folding margin on Notepad++? It seems like the sort of thing that should be in the prefs but I'm not seeing it anywhere.
-2
votes
1answer
38 views

Batch text replace

I have a text file full of links like this . Links are from different sites so they don't follow same structure http://somesite1.com/wp-content/uploads/2014/10/cats.jpg ...
1
vote
3answers
35 views

How to copy text side by side in Npp or Sublime text?

I have to 2 text files . First is A B C D Second is 1 2 3 4 How do I copy both file contents side by side like this in Notepad++ or Sublime Text . If these both don't support this then please ...
0
votes
1answer
50 views

Convert old MS-DOS text document with IBM/EPSON-codes to “modern” format like ODT/PDF/DOC/etc

I have an electronic book. Format of this book is plain text with control codes for IBM/EPSON matrix printers. How can I convert this document to "modern" format (like ODT/PDF/DOC/any other)?
0
votes
1answer
69 views

Copying straight text from latex generated file

I'm trying to do some corrections to a PDF documented generated from latex. To do the corrections I first copy the text out of the PDF. What happens is that in the generated PDF, the words are cut ...
0
votes
1answer
102 views

Combining MS Word “track changes” comments from multiple readers/editors

I am a writer and use MS Word (Mac 2011) for pretty much everything, and especially the Track Changes function, which allows you to add comments to the document. I have been circulating my work to ...
0
votes
0answers
13 views

How to add custom character to start/end of line on Subtitleworkshop or somewhere else?

How can I add three dots (…) at the beginning and/or end of a line (of course different lines) that doesn’t have a dot at the end and also to a line that start with lowercase? Something like if I ...
4
votes
2answers
576 views

How to perform search and replace in lots of files with Emacs at once?

I'm looking for a solution to how to perform a search and replace in all files in a directory using Emacs.
5
votes
5answers
2k views

Ubuntu vi Acting Strange

I just installed Ubuntu Server 8 and found vi to be acting strangely (compared to vi on Fedora, CentOS and OSX). When I use the 'a' command to enter text, pressing the arrow keys results in "C", "D", ...
1
vote
1answer
3k views

Replace text when in visual-block mode

Maybe I'm searching the wrong way, but I've failed to find out how to do this. Here's the scenario: I have a list in a text file where I want to insert the same word on multiple lines, here's an ...
1
vote
1answer
783 views

Changing text in current visual selection in Vim

I have some part of a line visually selected. I would like to remove all non-word characters in the selection and replace all whitespace characters with underscores. How would I go on about this?
1
vote
1answer
2k views

Search & replace with wildcards and variable length strings in Notepad++

I am trying to edit a series of strings in Notepad++ using search & replace. What I'd like to do is to search for a particular piece of HTML code, then delete a portion of it. The challenging ...
0
votes
1answer
68 views

Is there way to add Language shortcuts in Mac OS X?

On iOS, I could add a language short cut easily in settings. Like gd stands for "have a good day". Is there a way of doing that on a Mac? I don't know if this is even possible since OS X doesn't ...
1
vote
1answer
623 views

How to setup predictive text (autocomplete) on Mac?

Apart from native support for text shortcuts, how can I enable autocomplete on Mac, presumably Cocoa applications? I mean autocomplete from dictionary or words previously used. Something like ...
0
votes
3answers
625 views

Search a text string and replace the whole line which contains it on a group of text files (Windows)

I'm looking for an automated solution than can search if a specified text string is on a line (may not be an exact match - just as long as the specified text string is contained in the line) on a ...
16
votes
4answers
56k views

How can I edit Unicode text in Notepad++?

Sometimes I edit English text that includes Unicode characters. For some reason, on my PC, Notepad++ converts Unicode characters to ???'s thereby corrupting the text and losing all that data. I'm ...
1
vote
2answers
216 views

Parsing two input files and comparing line existence

I need to take two text files and check to see if a line that exists in File A doesn't exist anywhere in File B. Each line in File A that does not exist in File B should be copied to an output log. ...
2
votes
7answers
8k views

How to delete all lines which contain a word with TextWrangler?

I have a giant file with thousands of lines, I want to delete only the lines which have the word "Foo" in them. How would I go about doing this? I'm on a Mac, so I could use some command line ...
2
votes
3answers
35 views

Is there a way to do concatenated copying of text in os-x or linux?

Say you are copying snippets of a word document into textedit. It is a waste of time to go back and forth for each snippet when you can do it once using concatenation into a copy-queue. Is there a ...
1
vote
4answers
95 views

How to find and replace string data in text file

I'd like to be able to parse a text file which contains data such as: 2014-08-06 18:06:15 e:\shared\filename1.Shared orphan entry BM-100 2014-08-06 18:46:15 e:\shared\filename222.Shared orphan ...