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

learn more… | top users | synonyms

1
vote
1answer
54 views

Vim, highlight repeated words

When writing a technical document (papers, blueprints...) it's very likely to repeat a keyword, and a lot of time is wasted in trying to replace repetitions with synonyms. A very helpful tool in this ...
0
votes
4answers
438 views

Why has no-one made a predictive keyboard driver/library? [closed]

On mobile devices we're used to our devices anticipating what we are typing and completing or correcting at least some of our mistakes, increasing text entry speed and, it is hoped, accuracy. From ...
0
votes
3answers
301 views

Remove lines efficiently in Vim

How can you remove given lines efficiently in Vim? I want to remove all lines which match this :g!/div/ I unsuccessfully ran: :g!/div/s/^*//g
0
votes
6answers
4k views

Add text to the beginning of every other line in Notepad++

What I want to do is: Add <title> to the beginning of lines 1, 3, 5, etc...(hundreds of lines in a notepad++ file) Add </title> to the end of lines 1, 3, 5, etc... Then: Add ...
0
votes
1answer
9k views

UNIX: how to merge 2 text files?

Is there a way to merge 2 text files into one (by appending the content of the second right after the first one) in Unix ?
0
votes
3answers
537 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 ...
0
votes
2answers
496 views

Using sed, how to print all lines that match a certain date?

Using sed, how to print all lines where the birthdays are in November or December? Assuming input file name "datebook" as follows: Steve Blenheim:238-923-7366:95 Latham Lane, Easton, PA ...
0
votes
1answer
30 views

Win7 Built-in Text Editor with File Change Notify

Is there any built-in software that will allow me to view a text file but will also notify me if the text file I am editing/viewing is changed by another process? There are third-party solutions for ...
0
votes
3answers
110 views

Process plain text data

I've this plain text file that I need to be automatically examined and results written in another plain text file. Note that I'll use plain text and CSV interchangeably, since CSVs are plain text ...
0
votes
2answers
2k views

Exclude some matches with sed

I have a series of files with entries(namespaces in source code) like FW.WGS.Web.HHH.Controls, FW.WGS.Web.HHH.Email, FW.WGS.Web.HHH.Account, etc and some with entries FW.WGS.Web.Controls, ...
0
votes
2answers
707 views

How can I make a Windows 7 allow me to edit a data file?

I am running a Windows 7 operating system. I would like to edit a data file named "hosts" that is found in the following library: c:\windows\system32\drivers\etc\hosts The OS does not allow changes, ...
0
votes
1answer
735 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 ...
0
votes
2answers
3k views

What is the ^I character and how do I find it with sed?

I usually import data from csv files to MySQL, but my data provider leaves NULL entries as "", so I need to replace "" with "\N". This is easy enough with a script like for csvfile in *.csv do ...
0
votes
3answers
499 views

Looking for an automated solution than can 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 ...
0
votes
3answers
127 views

how can I use the ctl+arrow windows shortcut to navigate through each word in a text at Mac?

How can I use the Ctrl + Arrow windows shortcut to navigate through a text sting on a Mac?
0
votes
2answers
2k 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.
0
votes
2answers
78 views

Simplest way to erase and replace content of multiples text files

I'm trying to do quite a simple thing. I have 40 text files in which in need to delete everything and replace with the content of a template text-file. What is the easiest/fastest way? NB: I don't ...
0
votes
2answers
203 views

JSON formatted text file makes CPU jump to 100%

I'm editing a JSON formatted text file in Mac OS X Mountain Lion (10.8.2) on a 2.3 GHz Intel Core i7 with 8 GB of RAM. The file is approx. 3 MB large so it's not very big. Anyhow this is making both ...
0
votes
1answer
286 views

Replacing all white spaces with commas in a 46MB text file

How long should replacing all white spaces with commas take in my 46MB text file using a simple text editor such as textmate on Mac?
0
votes
1answer
43 views

Prevent breaking of specified part of paragraph

For example, we have a paragraph: Quick brown fox jumps over the lazy dog How can i prevent breaking the part "the lazy" ? I means, that this string will be incorrect in my formatting: Quick ...
0
votes
1answer
247 views

What is the name of the Mac OS X text editor that uses a green and yellow lotus flower icon?

I'm pretty sure there's a Mac text editor out there that uses a green and yellow lotus flower as it's icon but I cannot seem to remember the name. Can anyone help me out?
0
votes
2answers
73 views

Print or grep lines which start from second column

I want to print lines which start from second column (first column is white space). $ cat test.txt first second third four second five seven Output should be: second second ...
0
votes
2answers
35 views

Inserting a linebreak in lines starting with a pattern

I have a huge file that has the following format: #pair: 0 1 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 ...
0
votes
1answer
170 views

Cleaning out Span tags from HTML files

I have a giant number of span tags to clean out of HTM files due to a conversion from RoboHelp to Flare. Here is an example: <span class="span_1">ANYWORD</span> A large number of the ...
0
votes
1answer
244 views

Batch transpose a comma separated file

I'd like to reorder a file with a batch from this schema: Default Web Site;anonymousAuthentication Default Web Site;windowsAuthentication Daisy;anonymousAuthentication Daisy;windowsAuthentication ...
0
votes
1answer
67 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 ...
0
votes
1answer
990 views

How to select a word with keyboard when the cursor is on or adjacent to the word?

It is possible to select a single word by double clicking on any part of the word. With only my keyboard, is it possible to select a word when the cursor is on or adjacent to the word?
0
votes
1answer
170 views

Do more recent versions of scite crash less often?

Scite is not a bad editor, but the version I have (1.72) crashes on largish ruby files (there's one file that's 65KB it consistently barfs on). Are newer versions any better?
0
votes
1answer
637 views

Command-A doesn't select text in several Mac OS X text edit fields

I'm trying to make my Mac follow behavior I know it must have done in the past where, when one presses ⌘ + A, it will select all the text. The problem has started recently and I think it might be ...
0
votes
1answer
59 views

How to use Advanced Editing in Notepad++ or similar

I would like to be able to edit sections of text in the following way. I might have a section as seen below. Example. Instance=wall { VisGroups=(32) MeshFile=wall.gmt CollTarget=False ...
0
votes
2answers
61 views

Replace words on given line numbers

I have a file 1.txt INTEGER-d_int () INTEGER-d_int () INTEGER-d_int ( ) INTEGER-d_intClass() INTEGER-d_intClass new() and I want to replace the occurrence of d_int with d_INT on the ...
0
votes
1answer
20 views

How can I do a backwards query-replace in emacs

From the documentation of query-replace: [...] In Transient Mark mode, if the mark is active, operate on the contents of the region. Otherwise, operate from point to the end of the buffer. ...
0
votes
2answers
2k views

Removing Trailing Whitespace in .txt file

How do I remove a trailing whitespace on each line in a .txt file in following command? I created script below to remove 1st character in each line but this creates a whitespace at the end of each ...
0
votes
1answer
37 views

How to improve the hotkeys Ctrl+Left and Ctrl+Right?

I'm just wondering if anyone of you figured out a way to improve these bindings or use them together with other bindings to make go through lines of text faster/easier. namely the problem i'm facing ...
0
votes
1answer
197 views

Reversed text in Chrome [duplicate]

Possible Duplicate: How to change the text direction on Windows? I was typing something in Chrome and all of a sudden, the text reversed. It was now typing Right-to-Left like Arabic instead ...
0
votes
1answer
90 views

How can I switch vim mode quickly?

This question is not the same as In vim, how can I quickly switch between tabs?, but what I want is a bit similar to it, since we are all trying to find shortcuts when editing with vim:) Now I am in ...
0
votes
4answers
6k views

How do I insert line breaks into a text file - not programming, not fixed width - via find & replace

This is a different from someone else's similarly-titled question. Neither Excel nor OpenOffice allow users to specify line delimiters, so I'm trying to replace semi-colons with line breaks. How do I ...
0
votes
2answers
177 views

Is there a fast way to change multiple links in a HTML file?

I have a HTML file containing the code for an image map with over 200 links, like this: <area shape="RECT" coords="410, 7, 438, 35" href="/ItemDetails.jsp?item=os_landranger_1"/> The problem ...
0
votes
1answer
86 views

How to do Linux-like file modifications on Windows command line?

I need to do some more or less easy replacements in certain files on Windows machines. This is part of an automated software build process, so to be able to reproduce it on all build mashines I ...
0
votes
1answer
617 views

Editing files on linux server from windows

I want to edit text files on Linux server from Windows, using text editor like Notepad++ or UltraEdit. I've managed to do so using WinSCP. It can edit files remotely and offers me to choose local ...
0
votes
5answers
276 views

Replacing text in file at certain width

Is there a program that I can use that will let me replace text at a certain width? Example: I want to replace 20-26 with 0s. From: ...
0
votes
2answers
3k views

Visual Studio 2010: Is it possible to force editor to use ANSI rather than UTF-8?

I am having issues with some files in automated processes, specifically with batch files and sql files. Visual Studio seems to create these as UTF-8 rather than ansi and adds some kind of special ...
0
votes
1answer
96 views

Eclipse Line Selection

In Eclipse I used to be able to select a line by clicking the line number. I don't know exactly when it stopped working. Is this controlled by a Preference?
0
votes
2answers
242 views

Dreamweaver Delete Space to Word, Not Word

There's a built in DW keyboard shortcut (Ctrl + Del) that deletes up to AND INCLUDING the first word to the right. I used to use the ColdFusion Studio app for coding and it would just remove the space ...
0
votes
1answer
826 views

Automatic text replacement in Ubuntu

So, I'm looking for a software native to gnome that provides automatic text replacement. Something similar to autohotkey would be great, though I really don't care about all that extra autohotkey ...
0
votes
2answers
113 views

Emacs check syntax of file before saving

How I can prevent Emacs from saving my buffer when it contains syntax errors ? It would by especially useful for editing source code. I'm writing some source code into the buffer, hit C-x C-s and ...
0
votes
1answer
2k views

How do I get vim not to include a trailing newline at the end of a file?

Emacs doesn't do it, but vim's my editor of choice. It's a problem when editing PHP and some other stuff. So, how do I get vim not to include a trailing newline at the end of a file? I must just be ...
0
votes
1answer
2k views

How to select only bold text

How can you select all of the bold text in a document? I would like to just extract bold text from numerous documents. Is there a script that could be run?
0
votes
1answer
27 views

Delimited sized columns in notepad++

I'm currently building string messages to send to an IBM server. Basically we have the definition of the fields, but when I build the message using notepad or Notepad++ sometimes I make mistakes ...
0
votes
0answers
11 views

Select text with CTRL+SHIFT+M plus one or more line of code in Sublime Text

This is the sample code: Class foo { function one() { // lines of code } function two() { // lines of code } } I know that hitting CTRL+SHIFT+M inside the curly braces of ...