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

learn more… | top users | synonyms

0
votes
1answer
152 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 ...
26
votes
3answers
9k 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
512 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
322 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
114 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
271 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
3k 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
69 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
72 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 ...
2
votes
1answer
703 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. ...
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 ...
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 ...
0
votes
1answer
916 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
387 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 ...
18
votes
3answers
2k 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
2answers
321 views

Efficiently stripe incoming one-word lines onto columns?

Consider a stream of one-word lines such as the stdout of $ echo foo bar baz quux xyxxy thud | tr ' ' '\n' foo bar baz quux xyxxy thud I say "one-word" to indicate there is no whitespace other than ...
1
vote
3answers
201 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 ...
3
votes
1answer
633 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
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. ...
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
1k 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 ...
1
vote
4answers
18k 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
102 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' ...
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 ...
0
votes
2answers
6k 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
7k 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
625 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
245 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
98 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
1k 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
4k 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
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
1answer
48 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
605 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
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 ...
0
votes
1answer
455 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
2k 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
2k 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
371 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 ...
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
1
vote
2answers
549 views

How can I modify/edit a message in a local folder of Thunderbird?

I have migrated from Outlook to Thunderbird. In Outlook I have many folders with notes. Notes migrated to Thunderbird as messages. Now I want to edit some of the notes with additional/changed info. ...
5
votes
1answer
5k views

Is it possible to view two files simultaneously in Geany?

I tend to be a simple text editor user, but when I want IDE-like features, I've been using Geany. One thing I find bothersome about it, though, is I can see only one file at a time. Sometimes I want ...
1
vote
1answer
193 views

Is there a XML editor similar to Inkscape built-in editor?

I have been looking for a "perfect" XML editor, and today I realized the one used in Inkscape is exactely the way I would want, because: It has multi-panel (tree, attribute-list, and value ...
1
vote
2answers
3k 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, ...
1
vote
1answer
474 views

Wrapping word configuration in mac

When i am using TextWrangler and double-click a word "game" in a sentence like "game.score", the word game is selected, but the both words and dot "game.score" is selected instead in some other editor ...
6
votes
4answers
3k views

How to delete each number at the beginning of a line in Notepad or Microsoft Word?

I have a list like this: 1 http:// 2 http:// 3 http:// 4 http:// 5 http:// I would like to remove 1,2,3,4,5 without doing this manually for each line. The only tool I am using is notepad in a bare ...