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

learn more… | top users | synonyms

1
vote
2answers
960 views

How to remove blank lines in .txt files

I want to change a text file's format, removing all blank lines. How can I do that? (2) 5. The function of the condenser is to: a) vapourise the liquid refrigerant b) change ...
2
votes
3answers
407 views

Unicode text lost when saved as ANSI

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

Create macro and hop to next line

so my question is if there is a possibility that a macro ends in the next line. I currently need to edit an xml file in notepad++ and after certain lines I have to add a <br />. I already ...
0
votes
1answer
27 views

Have a very large fixed width .txt file, have column widths for the records to guide me, and need .CSV out of it [closed]

The text file is a tax roll off the tax assessor website, and it is 2.63 GB. Every program that I have tried, including UltraEdit, Convert XLS, didn't find anything helpful in excel because we're ...
0
votes
0answers
27 views

How can I change the name of adjacent specifiers all together by changing only one line in VS2013? [migrated]

I want to change, for example, all four (not all occurrences, only these four) Vector3 specifiers into Vector2 only by editing one line (bottom line in this case)?. Is there a way to do this in ...
0
votes
0answers
21 views

Word two page layout: odd on the right, even on the left [duplicate]

How can I set up MS Word to display the even page on the right and the odd page on the left, when using the two page layout (like programs as the adobe reader do)? Here is an example. On the left is ...
-3
votes
0answers
84 views

How to effectively copy/edit text files containing null characters on Windows?

I have a problem with the clipboard on Windows. Specifically when copying text the content is always cut off at NULL characters, so I have no way to copy an entire chunk of text containing NULL ...
16
votes
5answers
58k 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 ...
0
votes
0answers
9 views

Place cursor into visible text on Mac

When I open a long text file in TextEdit or other text editor and scroll down using the PageDown key, the cursor doesn't move. When I press an arrow to move the cursor, the editor scrolls back to the ...
7
votes
2answers
17k views

Notepad++ inserting special Unicode characters in UTF-8

What's the best ways to enter special Unicode characters into a Notepad++ document? Do I have to rely on the operating system (Windows)? Looking for a see-and-click solution. I can bring up the ...
1
vote
2answers
13k 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 ...
0
votes
1answer
30 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
51 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 ...
42
votes
4answers
17k 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
261 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
18k 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 ...
6
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
18 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
181 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
34 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 ...
22
votes
11answers
32k 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 ...
3
votes
7answers
15k 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
217 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 ...
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 ...
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
23 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
44 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
239 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
42 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
66 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
76 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
47 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
967 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
28k 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 ...
7
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
47 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
51 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
85 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
145 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
14 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
589 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
809 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 ...