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

learn more… | top users | synonyms

1
vote
1answer
867 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
394 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
433 views

looking for an alternative to refile in orgmode for emacs

In emacs/orgmode there is something called refile. you select text, hit refile and you get a list of your outline headlines, select one and your text goes there. Can I achieve something like this in ...
2
votes
1answer
227 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 ...
2
votes
2answers
175 views

Delete until character is found

In my text editor, I would like to define a keyboard shortcut (say, CTRL-D) with "delete until character is found" functionality. For example, if the cursor is placed before the "H" of this text: ...
7
votes
3answers
10k views

Selecting range of lines in Notepad ++

How do I select specific range of lines in Notepad++ quickly? I have a text file that has over 1M of lines and I need to delete some fragments from it, but selecting lines manually just takes too much ...
-1
votes
2answers
262 views

Find and Replace using different keywords

Example. I want to find and replace using: Test1 Test2 Test3 Of course I have to input and click it 3 times in order for me to find and replace using those terms. How do I do it in one shot? Does ...
1
vote
1answer
130 views

Which editor can I use to create a nested hierarchy?

I'm using OpenOffice (don't have Microsoft Office). I'm designing an application and I want to create a hierarchy similar to what the image below shows. There can be several nested levels of ...
3
votes
3answers
251 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? ...
0
votes
1answer
135 views

Emacs c-mode can't recognize utf-8?

I need to read one C++ head file which has some Chinese and was encoded using utf-8. Emacs should recognize this encoding, but it turns out: Then, I changed it to text-mode, it works: I also ...
20
votes
3answers
6k views

Turn Off Parenthesis Matching in Sublime Text 2

I have questions about turn off parenthesis matching. Does anyone know how to turn off parenthesis matching? example: When I type a (, it will automatically add ), becomes (). It's pretty nice for ...
2
votes
2answers
387 views

trimming an XML file the dumb way

(see solution below) I have XML files which I parse with a Python script (I did not write it but it does the job perfectly). The problem is that the XML file is large (~ 1GB) and the parsing take ...
2
votes
1answer
2k views

Toggle between column selection and regular selection in Sublime Text 2

In Textmate, I can make a regular multiline selection using the keyboard and switch to column selection mode by pressing the alt (⌥) key. I have not found a similar way of doing this in Sublime Text ...
0
votes
1answer
261 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
3answers
111 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 ...
1
vote
1answer
260 views

Change data from columns to nested list

I need to move data from this format: node 1 node 12 node 121 node 1 node 12 node 122 node 1 node 13 To this one: node 1 node 12 node 121 node 122 node 13 Is there an ...
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 ...
2
votes
0answers
71 views

Swapping two values without using an intermediate one

In a given text file, generally speaking, if I want to swap two things, say the word apple with the word orange, and both exist in the document, then I first have to change one of them to something ...
1
vote
1answer
517 views

How can I avoid using the cursor keys in Notepad++?

I've started programming after an 8 year break. I'm using Notepad++ and I like it, but taking my hand away from the main keyboard to the cursor keys to get around the file is really slowing me down. ...
1
vote
2answers
159 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 ...
3
votes
1answer
2k 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 ...
0
votes
1answer
517 views

Different Font styles in Editplus

I would like to have keywords to be appear Bold and variable names,Comments and Strings should be in normal style. is that possible
1
vote
0answers
306 views

Unicode problems in Mini Lyrics

Shri guru granth sahib ji is epic granth for sikhs. I am working on the project for creating karaoke of guru granth sahib. I am using Mini Lyrics for this for synchronizing speech to text. But this ...
13
votes
3answers
1k views

Edit one file in two different buffers in emacs

I would like to open the file foo.bar twice (or more) in emacs, so I can edit two different parts of it simultaneously. Is it possible? Probably the better question is, how to do it? Is there a way to ...
1
vote
3answers
159 views

Edit a very large textfile [duplicate]

Possible Duplicate: Is there a text editor for very big files? I've a 3 gigabytes big log file and I have to edit just a few rows. With Notepad++, I can't edit the file at all. Does ...
4
votes
1answer
449 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 ...
4
votes
2answers
119 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. ...
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 ...
1
vote
1answer
657 views

Is it possible to type a floating “c” letter?

I have a close friend that has a Scottish surname "McGregor". However the "c" in the name needs to be aligned to the top of the "M". I have searched through alt codes but cannot spot it anywhere. Does ...
0
votes
4answers
9k 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 ...
1
vote
2answers
94 views

How can I use the vim editor to format the text like this?

I have a data.txt file, the data format is something like this: a|Êó• a|Êõ∞ a|Ôõ∏ a|Ôùã aa|Êòå aa|Êòç aaa|Êô∂ aamh|Êöò all I would like to do is convert the following text into this result: 'a' ...
0
votes
2answers
4k 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 ...
1
vote
2answers
5k views

Can't edit Microsoft Word template

I am trying to change an existing Microsoft Word template. It's the 28 line legal pleading template found here: ...
14
votes
5answers
575 views

Match and delete in Notepad++

I have the following text in Notepad++. 192.168.0.1 37 ms N/A 192.168.0.2 Dead N/S 192.168.0.3 ...
0
votes
2answers
187 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 ...
2
votes
1answer
1k views

Is it possible to change the default text cursor orientation from vertical to horizontal?

In almost any application or Windows component, the text cursor usually appears as a vertical black line -- in Notepad, browser address bar, the Run window. Is there a setting I can tweak in the ...
0
votes
1answer
87 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 ...
1
vote
1answer
721 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
2answers
2k views

Can you insert line breaks into a Rich Text Content Control

I have a rich text content control on a Word 2007 document which is auto-populated from a database query. The control just contains text but ideally I'd like to be able to insert a new line inside the ...
8
votes
6answers
1k 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
1answer
39 views

editing software for redundancy checking

I'm looking for an editing program that can check for redundancies (sentences, paragraphs, sections) within a document and between 2 documents. Does this exist? Any advice appreciated.
2
votes
3answers
466 views

How to reverse the order of multiline text sections separated by blank newlines/line breaks?

How to reverse the order of multiline text sections separated by blank newlines/line breaks... ..., with a simple command or application, preferably without programming? I don't want a sort, but a ...
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 ?
3
votes
3answers
117 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 ...
0
votes
1answer
343 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?
2
votes
1answer
985 views

How to add a new section to a numbered list in MS Word?

In Word how can I add a section into a numbered list? I have a large software requirements document that is organized using a numbered list, so I have a few paragraphs as 1, then maybe some ...
0
votes
2answers
1k views

Detect (from autohotkey) if a text input field is focused

I want to implement a series of hotkeys using Autohotkey (mostly to improve my effectiveness), but I want them to only be active when I'm typing text, and not when I'm navigating or playing. I know ...
0
votes
1answer
1k 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?
1
vote
2answers
318 views

How can I do a batch find replace?

I'm writing a piece of software which requires the creation of a number of nearly identical blocks of code that only vary in a few locations which need to be replaced by a unique value for each ...