Questions tagged [text-editing]

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

Filter by
Sorted by
Tagged with
2 votes
2 answers
22k views

Automatically add spaces between words in a Word document

I have a Word document about 200 pages. The text I pasted from a PDF lost it's spaces for some reason. How do I fix this?
0 votes
0 answers
9 views

Tools for comparing two texts without side-by-side view [closed]

There are good tools out there doing text comparison. vimdiff to begin with, diffchecker.com also provide similar interface. They both provide side-by-side view, with older version on the left and the ...
86 votes
4 answers
82k 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 ...
66 votes
10 answers
153k views

How can I edit a file if there is no vi, vim, joe, etc?

Is there a way to edit a file if there are no vi, vim, joe, mcedit? In another words is there a way to edit a file using just the shell commands?
5 votes
6 answers
9k 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? ...
1 vote
0 answers
191 views

How can I efficiently select a text prediction given by Windows' text suggestions feature?

I currently select a text prediction given by Windows' text suggestions feature via the mouse, or with the arrow key followed by ENTER. This is very inefficient. How can I efficiently (= by pressing ...
0 votes
1 answer
1k views

How to replace or look for italic text within quotation marks

As a text editor, I often come across cases where the author has double marked quotations by putting them in between quotation marks and in italics. In almost all cases it is preferred to use only one ...
2 votes
4 answers
7k views

How to clear content of a lot of text files fast under Windows?

I have a folder with logs. This folder contains a lot of log files. I cannot delete these files because server keeps it. But I can remove content of every file. It is very annoying to open each file ...
0 votes
4 answers
2k views

Which Notepad++ plugin sets the text's background color to orange?

I installed about two dozens of plugins in a new Notepad++ installation and the result is: I checked all plugins. None of them gives a hint to the background color. I also checked Settings → ...
2 votes
1 answer
211 views

How to sort lines in files by custom order?

How can we sort content within a large number of files based on the first word encountered on a line before a separator? In a custom sort order. I will explain this with examples. Say I have hundreds ...
14 votes
4 answers
4k views

What is a CUA editor?

A term I hear now and then is a "CUA" text editor. What is a CUA editor?
18 votes
6 answers
158k views

How Can I Type A Checkmark (✓) Via Alt Code?

Presently, every time I want to check something off I have to Google "checkmark", copy the symbol from a 3rd party website, paste it into a text editor to remove formatting, and then copy ...
0 votes
0 answers
432 views

How to switch writing direction from right to left in Mac apps?

Writing in right-to-left languages on Mac apps I need to write in a right-to-left language, on my Mac computer. On my Windows computer, I used to press Control (⌃) + Right Shift (⇧) to switch the ...
1 vote
1 answer
3k views

Extract rows with specific phrase at specific column from text file using batch file in Windows

I have a text file (epin.txt) having >2 millions of rows. Sample text: 182060045892569246925460002021 03560000000020000840000000000000ABDRGS00IN0000MMFADT265000 0917 P81 001 ...
2 votes
5 answers
5k views

Editing the same file from multiple computers

My friend and I need to view and edit the same file at the same time. We were using Google Docs, but the firewall is now blocking it. If we connected our computers with a network cable (no hub or ...
0 votes
2 answers
5k views

How to get text in table of contents aligned after numbers?

Is it possible to get a table of contents in Microsoft Word with an alignment like this picture? If so, how? (In the picture the alignment is not perfect because I did it by hand, inserting spaces ...
2 votes
4 answers
6k views

How to find and replace string data in text file

I'd like to be able to parse a text file which contains data such as: 2014-08-06 18:06:15 e:\shared\filename1.Shared orphan entry BM-100 2014-08-06 18:46:15 e:\shared\filename222.Shared orphan ...
8 votes
3 answers
23k views

Is there a way to make Nano support auto-complete and auto-bracket closing?

Does anyone know if there's a way to make nano support auto-complete and auto-bracket closing?
2 votes
1 answer
18k 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 ...
23 votes
8 answers
13k views

How can I justify plain text in Linux?

I'm composing a plain text (.txt) document that has left-and-right justified paragraphs. I manually add spaces, breaking words with hyphens if necessary, until the lines are uniform length. To use an ...
1 vote
1 answer
55 views

In Track Changes mode, Find is finding matches including in text which has been "deleted"

NB this is Word 2007. So hopefully the question is fairly self-explanatory. I'm editing a document with Track Changes on, but I'm hoping to do quite a lot of Find-and-Replace. However, these efforts ...
0 votes
1 answer
868 views

Overriding The Notepad++ File Size Limit

I had a text file I was working with in Notepad++, which I accidentally closed and now I can't open it again because it says "File is too big to be opened by Notepad++". I was editing it ...
0 votes
1 answer
149 views

How can I disable changing view to cursor upon typing in VS Code?

Typing while the cursor is not on screen causes the view to scroll back to the cursor, I could not find anything in VS Code's settings nor could I find any information online on how to change this ...
0 votes
0 answers
24 views

Photoshop Text Texture

I wanted to add this "spray effect" to the text but I can't figure out how I can apply it only on the text so the image is not dark. Basically I would like to know how I can use the layer &...
0 votes
0 answers
69 views

Mac OS: How to control which characters the cursor jumps to on 'Option' + '←/→'

In most operating systems, including Mac OS, pressing Option/Control + Left/Right Arrow Key permits to skip the cursor position from word to word. Strictly speaking, this command skips the cursor to ...
1 vote
1 answer
3k views

How to convert text to decimal in openoffice calc?

I have a column which contains: € 53,28 € 1.336,0 € 69,90 € 296,50 € 899,00 € 149,90 € 697,40 and so on. I want to sum the column up, but for openoffice it is text and not a decimal. What I did: ...
17 votes
5 answers
89k views

Is there any useful style of MS Word for code?

I need to use MS Word to make some documentation for Python code. Line number, or boxing around the code, or anything would be better than just use normal format. Is there any good/useful style/method ...
-1 votes
1 answer
115 views

Reader for .txt file

I want to read .txt files but not editing them. Not in the command line, so not more and similar utilities. I would like to open like if it were a .pdf file, but without converting to a PDF, so not ...
0 votes
1 answer
126 views

Removing Text Of A Certain Colour From A Long PDF

I am preparing for exams and have found some very good resources for myself but they have one issue. All the answers are written right under each question in red ink. I'd like to print these out and ...
100 votes
10 answers
498k views

How can I split a large file on Windows?

Is there a tool to split large text file (9 GB) into smaller files, so that I can open it and look through? Is there anything usable from the command line that comes with Windows (XP)? Or what's the ...
2 votes
5 answers
92k 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 ...
13 votes
6 answers
22k views

Randomly shuffle rows in a large text file

I have a text file of ~1GB with about 6k rows (each row is very long) and I need to randomly shuffle its rows. Is it possible? Possibly with awk?
3 votes
4 answers
242 views

How to remove all newlines from a file?

I have the command cat file.txt | gawk '{print $2}' > test which displays: 1 1 0 0 1 1 Afterwards: vi test :%s/\n// Which outputs: 110011 My question is I don't know how I could incorporate this ...
-1 votes
2 answers
15k views

How can I delete everything after the first space Notepad++?

I have a text looking like this name_123 name 2022-6-1 abc I want this name_123 How can I do that?
1 vote
1 answer
105 views

When using the Find and Replace window in Excel, the Ctrl-Backspace adds a weird character

Normally, inside a textbox, the shortcut Ctrl+Backspace deletes the previous word, but in the Excel Find and Replace window, it doesn't work and it inserts a character with a rectangular shape. Is ...
3 votes
3 answers
564 views

How do I delete every ocurrence of a word that is followed by another, without altering the whitespace?

Suppose my file looks like this: foo bar foo bar bar foo foo bar foo What I want to do is delete every foo that is followed by a bar (i.e. there is only whitespace between them), without ...
46 votes
14 answers
101k 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 ...
0 votes
1 answer
28 views

Why are there blanks when selecting multiple lines in a text file?

When selecting mutiple lines on an IDE / Notepad on Windows, there are blank characters at the end of each line. You can't move the cursor through them when using the arrow keys, they only appear ...
2 votes
2 answers
1k views

Change a keyboard layout for already typed text

I have 2 keyboard layouts (Russian and English) on my Windows laptop. It often happens that I start printing some symbols using the wrong layout. And typically what I do is delete already entered ...
130 votes
18 answers
54k views

Substitution in text file **without** regular expressions

I need to substitute some text inside a text file with a replacement. Usually I would do something like sed -i 's/text/replacement/g' path/to/the/file The problem is that both text and replacement ...
0 votes
0 answers
1k views

Combine multiple text file names AND contents into one file via terminal on Mac

I'd like to combine multiple text files, all ending in .txt, into the same document with the filename of each separating the contents of each. I've found ways to combine the contents, I've found ways ...
3 votes
3 answers
69k views

Can Notepad++ automatically split a text file into multiple files?

I have a text file that contains a massive amount of words that I would like to make into a number of different text files. Specifically I need to take every 100 words in this file and make a ...
4 votes
3 answers
9k views

Find and replace text in a file after match of pattern only for first occurrence using sed

Let's say I have the following input file: Server 'Test AB' option type 'ss' option port '1234' option timeout '60' Server 'Test CD' option type 'ss' option port '1234' option ...
9 votes
1 answer
7k views

MobaXterm is there a way to disable copy on select?

I am using SSH in MobaXterm, is there a way to prevent automatic "copy" when you select some text (e.g. in gedit), or with the mouse ?
0 votes
0 answers
38 views

How can i change this type of text color in windows?

I have installed a theme and it works great, but there is one thing, some texts are gray and I want to make them white. I checked a lot of websites on 'How to change windows color text' but I could ...
1 vote
2 answers
233 views

Track changes in Word 2016

In Microsoft Word 2016, is there a way to configure the Track Changes feature so that it highlights in color the portions of text that have changed, but only shows the edited version of the text? My ...
2 votes
1 answer
75 views

Copy text into Excel, Fixed Width, where data starts every 40 rows

I have data from a text file I want to import into Excel. The text data is grouped in blocks of 40 rows with headings. After about 12 rows the new set of data starts again with headings. There are ...
0 votes
1 answer
133 views

Text Selection: Change in double-click behavior

When double-clicking the beginning of an email like [email protected], I could easily get the local-part (i.e. 'foo'). However, now when I double-click it also includes the domain (i.e. 'foo@example'). ...
20 votes
4 answers
33k views

How to paste Excel data as fixed-width text?

If I copy data in Excel and paste it in a text file, I get tabs between cells. That's not good, I want spaces - and I want the columns to be aligned. How can I achieve this without a lot of effort (...
1 vote
1 answer
2k views

How to remove all the lines of text before a specific text and all those after another specific text in multiple files using notepad++ or TextCrawler?

I am working with a set of reports as txt files for a project. But these text files contain a few lines of unwanted text before and after the actual report.Required portion of every text file starts ...

1
2 3 4 5
11