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

learn more… | top users | synonyms

5
votes
2answers
6k 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 ...
5
votes
2answers
1k views

Remove Byte Order Mark (BOM)

Background Run SQL files using pgsql that were edited with gVim on Windows. Problem The BOM character causes syntax errors with pgsql. I would like to edit files using gVim and, when saved, no ...
5
votes
2answers
2k views

Windows Text Editor With SCP Support and No Install

Is there a programmer's text editor (line numbers, syntax highlighting) for Windows 7 that offers Edit in Place via SCP A non-administrator instalation/runs without instalation Free is nice, ...
5
votes
1answer
416 views

Edit a file through an on-the-fly encryption stream in Unix

Okay this is a weird sort of question. I might get down-voted for being stupid here. I'd like to be able to edit an encrypted file, but without having to manually decrypt it to a location on the ...
5
votes
1answer
3k views

Is there a difference between the tab symbols when using “Show White Space and TAB”?

I have a tab-delimited file that I have opened in Notepad++, was having trouble parsing it, so turned on View->Show Symbol->Show White Space and TAB. I noticed that there were two different types of ...
5
votes
1answer
2k views

“Overtype” mode in MS Powerpoint 2007?

is there any way to turn on the "Overtyping" feature in Powerpoint 2007 (you press the Insert key and then typing new characters replaces any existing characters to the right side of the insertion ...
4
votes
4answers
10k views

Delete blank lines from a text file

I am trying to delete all the blank lines in a text file. Is there a quick way to do this? What I have line one line two What I want line one line two I am using Notepad++, so a solution using ...
4
votes
3answers
11k views

Split a string in ksh

I am looking for a quick/easy way to split a string in ksh. It has varied number delimiters (spaces) between each item. Example: value1 value2 value3 Any suggestions/advice?
4
votes
1answer
9k views

Combine two files column-wise in Ubuntu?

I have two files: one is like preface Introduction chapter 1 the other is like 1 2 3 I was wondering how to column-wise combine the two files into one: preface 1 Introduction 2 chapter 1 3 ...
4
votes
2answers
710 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.
4
votes
2answers
5k views

Cygwin - how to edit a read only file?

I'm trying to edit /etc/hosts using Vi in Cygwin but it's read only. Is there a command similar to sudo? How do I edit a read-only file? Thanks
4
votes
2answers
631 views

Text files on linux have “<97>” characters

When viewing a particular text file in vim or less on Linux or OS X, all the en dashes show up as highlighted "<97>" characters. What control-sequence do I need to type in order to substitute the ...
4
votes
4answers
6k views

How do I convert a column of text to upper case in Excel 2007 without creating a new column?

I know that you can use formulas and convert the data that way, but how can I convert to Upper (or Lower or proper) in place? Is there an easy way built into excel to instruct a non-superuser with?
4
votes
2answers
1k views

Split a large text file

I have a large text file grouped with separate headers that I need to split into separate files. For instance the file has headers like this: --Heading 1-- some text text --Heading 2-- more text ...
4
votes
4answers
2k views

Is there any Firefox addon to convert text to UPPERCASE or lowercase [closed]

Is there any Firefox addon to convert a bit of selected text (in text fields), to "UPPER CASE", "lower case", "Proper Case", and "Sentence case"? This is useful when writing email.
4
votes
1answer
1k views

How do I get Dash Doc App to respect indentation?

When I expand an abbreviation with Dash Doc App it starts at the cursor location in my text editor (Sublime Text), but then ignores the original placement of the cursor and the next lines begin on the ...
4
votes
2answers
126 views

Getting vi/vim syntax highlighting used by certain user

At work most web-development we do, is done in vi/vim, on a debian-server. Sometimes we have to alter some files as root, and the syntax-highlighting-model of that user (root) is absolutely awesome. ...
4
votes
4answers
87 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 ...
4
votes
4answers
1k 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 ...
4
votes
0answers
424 views

Which command line text editor has the closest keybindings to Notepadd++, Gedit, or Kate (or any modern CUA style editor)?

I'm looking for a text editor that has an amazing common user access (CUA) mode (or can be configured to have it) that resembles closely modern editors like Notepad++, Gedit, Kate, Sublime, etc. I've ...
3
votes
7answers
11k 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 ...
3
votes
5answers
7k views

How to split a text file into multiple text files

I have a text file called entry.txt that contains the following: [ entry1 ] 1239 1240 1242 1391 1392 1394 1486 1487 1489 1600 1601 1603 1657 1658 1660 2075 2076 2078 2322 2323 2325 2740 2741 2743 ...
3
votes
3answers
375 views

Write a bashscript to double every newline character in a text file?

I need a bash script that will take a file and add a second \n character for every \n character already in the file: that is: abcd\nbcda becomes abcd\n\nbcda how do I start. OR, should I ...
3
votes
2answers
1k views

How can I edit file permissions (e.g. make script files executable) from within Sublime Text 2?

When writing e.g. shell scripts, I want to change their permissions (primarily the executable permission) from within Sublime Text 2. How can I accomplish that?
3
votes
4answers
2k views

Remove lines ending with a specific format in Notepad++

I've got a simple array in Notepad++: bla.vmt" bla.vtf" bla_exponent.vtf" I want to get rid of the lines ending with .vmt and _exponent.vtf.
3
votes
3answers
118 views

Typing a column of numbers (1,2,3…)

I am writing a C# program containing these lines: Console.Writeline("1"); Console.Writeline("2"); [...] Console.Writeline("26"); Is there a quick way to type the 26 numbers? I'm using Visual ...
3
votes
1answer
5k views

How to change the text direction on Windows?

Sometimes when I'm typing, text orientation changes from LTR to RTL, but I am not able to find any shortcut to change the text direction on Windows. How can I change the text direction inside a text ...
3
votes
1answer
1k views

Is there a way to prevent notepad from inserting new lines when using word wrap?

I remember it wasn't doing this before but now when I am writing a few paragraphs and paste it into a forum post, I notice my lines were broken into new lines where I have to merge them manually. Is ...
3
votes
3answers
400 views

“Drag” selected text using the keyboard?

If I select some text in a text input field/area/window, I can drag that text to another position somewhere within the text area using the mouse. Is it possible to do this dragging using the keyboard? ...
3
votes
4answers
2k views

How to replace a list of strings by another list

I have a file which has (many) strings I'd like to replace, so I thought about using a simple command like: sed 's/string1/string2/g' file1 > out However, there are too many strings for that ...
3
votes
1answer
1k views

DokuWiki - How to show the edit buttons on section headers

In DokuWiki, is there any plugin compatible with the latest stable release (2009-02-14), that can show the edit buttons on section headers (like Wikipedia or MediaWiki) instead of showing them at the ...
3
votes
1answer
1k views

Is there a tool for automatically checking English grammar?

I need to run through a document and check that it contains proper English grammar. My toolset for spell-checking for words include ispell and OpenOffice, but they seem only to do spell-checking. ...
3
votes
2answers
340 views

How to Remove Columns from a Notepad++ File

I want to remove a column in the middle of a txt file in notepad++. The length of the file is approximate 50K+ lines so i prefer to not have to hold down a key while the cursor slowly makes its way ...
3
votes
2answers
357 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 ...
3
votes
2answers
33 views

How do I make uniq only consider the first field?

I am using FreeBSD 3.2-RELEASE If I have some sorted text, like this last output— zikla13:Oct:20:22:34 zikla13:Oct:5:00:31 zikla14:Oct:17:22:01 zikla14:Oct:12:23:35 zikla14:Oct:12:23:34 ...
3
votes
1answer
635 views

How to do a search-and-replace in Opera for textarea context?

How do I do a search-and-replace in Opera for a textarea's context? I have a web page with html form and I need to input and edit large text in this form. Easy example: Stay on this page, scroll ...
3
votes
1answer
199 views

How do I convert a plaintext file to OpenOffice document, so that tabs become indents?

How do I convert (or paste) a plaintext file to OpenOffice document, so that tabs become indents? Currently, dynamically wrapped long lines which start with a tab are only indented (by that tab) ...
3
votes
2answers
12 views

LibreOffice presentation: wider text background, like html padding?

When setting a text's background in a LibreOffice presentation, it may look like this: Is there a way to increase the background size, as in making it wider? I'm trying to get an effect similar to ...
3
votes
2answers
5k views

Multiline select in Notepad++

In Sublime Text, if I perform a find for an occurrence of a particular word, not only is this occurrence found, but it is also selected and has the cursor at the end of each occurrence so that pushing ...
3
votes
2answers
32 views

Breaking the line in between the code in Notepad++

I have a file with line(s) that look like this: <url><loc>URL</loc><lastmod>Date</lastmod><changefreq>Time</changefreq> I'm editing the file in Notepad++, ...
2
votes
7answers
32k 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 ...
2
votes
3answers
960 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?
2
votes
2answers
169 views

How do I split a wrapped numeric list into several lines?

I have some text in this format all on 1 line: 1v YHWH said, Let us make man in our image, after our likeness, and God created man in his own image. 2v And God formed man from the ground, and he ...
2
votes
2answers
14k views

How to search and replace a string in multiple text files (within a directory) with Windows CMD?

I have multiple text files within a directory, each of which I want to replace every occurrence of the string 1 setlinewidth to 10 setlinewidth. How do I do this via Windows cmd? Please help.
2
votes
2answers
74 views

Is there a way to print 2 lines (if any) before and after a target or print a placeholder if not?

I'm not native english speaker so I hope to be clear. I know about grep -C 2 "TARGET" inputfile to select 2 rows before and after the row of the TARGET, but I'm not able to use it to manage my ...
2
votes
2answers
521 views

Is there any way to auto-save all my entered text in Firefox?

I love the idea that gmail and Stackoverflow record my message so when I come again to that tab or draft I can find all the text that I have typed earlier already filled in. On Internet not every ...
2
votes
3answers
482 views

How to substitute multiple lines between delimiters

Given the text example: .... text ,.. {{{python string1 = 'abcde' string2 = '12345' print(string1[[1:3]]) print(string2[[:-1]]) }}} .... text ,.. The [[ and ]] also appear outside of {{{ too. ...
2
votes
1answer
176 views

Windows equivalent of Mac OSX Cmd + Left/Cmd + Right shortcuts

When in text editors on a Mac, you can do ⌘+← or ⌘+→ to skip to the beginning or end of lines, respectively. You can also add shift, such as ⌘+shift+←, to highlight an entire line. Are there Windows ...
2
votes
4answers
1k views

Create a term-document matrix from files

I have a set of files from example001.txt to example100.txt. Each file contains a list of keywords from a superset (the superset is available if we want it). So example001.txt might contain apple ...
2
votes
2answers
2k views

What's is the easiest way to append ';' to the end of lines which contain the char ':'?

I have a text file, whose content is like: body font-size: 12px color: blue td font-size: 14px ... I want to append ; to the lines which contain :, so the content will be: body ...