Questions tagged [text-editing]
Text editing is the process of selecting and preparing text [files].
506
questions
0
votes
0
answers
23
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 ...
0
votes
1
answer
39
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
39
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 ...
1
vote
1
answer
47
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 ...
0
votes
1
answer
21
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 ...
3
votes
4
answers
128
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 ...
3
votes
3
answers
526
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 ...
0
votes
0
answers
386
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 ...
0
votes
0
answers
31
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 ...
0
votes
3
answers
722
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
48
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
93
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
1
answer
98
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').
...
1
vote
0
answers
141
views
Is it possible to delete selection using mouse in vscode?
Like we can select part of text and then copy/cut/paste using Edit menu or Right Click context menu. Is it possible to delete selected text similar way in visual studio code?
Please do not suggest ...
0
votes
1
answer
36
views
My word document have a line separation of half page. How can I solve it?
In the document:
https://docs.google.com/document/d/1Wnd1lCcLVwRTWA_dCjWlZfWzjqGc7_g_/edit?usp=sharing&ouid=115679852586790547345&rtpof=true&sd=true
I have a huge line space, how can I fix ...
0
votes
0
answers
17
views
Is it possible to manually edit the bookmarks in a PDF document? [duplicate]
I recently found in this answer that it's fairly simple to edit the code in a PDF document, using a text editor, to alter how page numbers are displayed in a viewer. This solved a key problem for me.
...
1
vote
3
answers
874
views
Excel: split cell in rows by new line
Is there a way, in Excel, to split cell in rows by new line, like in the picture
PS.
Emily suggested me to copy to Word, however, when I copy it, it copies me like this:
6 A B
7 "7A
7B&...
0
votes
0
answers
21
views
Convert English numbers into numbers from a different locale
I am looking for a tool or a way to load a text file which contains English numbers and convert them into non-English numbers. I know I can use Word to change the format of file but I do not want that....
1
vote
1
answer
363
views
Custom keyboard shortcut to paste a pre-defined text?
I am finding myself with a lot of need to frequently type one of several specific short strings of text, and i'm growing very tired of the repetitive motions needed to do each.
What I would like to be ...
0
votes
0
answers
124
views
Multi user co-editing in vscode
I would like to know if it's possible to co-edit a file in vs code.
if not, what editor would you recommend me ?
thank you in advance.
1
vote
1
answer
37
views
How can I, as a noob to advanced text editing, write a script to automate converion from one enum to another?
The title is pretty poor, sorry about that. I am using two assembler/disassembler libraries and both have separate register enums. The libraries are Zydis and Capstone. In capstone the register enum ...
0
votes
3
answers
51
views
Replacing double new-line in multiple files
I do a lot of text cleanup with (example) perl -p -i -e 's:old:new:g;' *.txt but when old is \n\n and new is \n</p><p>\n, nothing changes. Tried escaping the angle brackets, but that didn'...
1
vote
1
answer
354
views
How to copy first line of text file to start or end of all another lines?
I am currently editing down multiple large text files (maybe 500 different text files) , and need to copy first line of text files to start or end of all another lines
For example this is one of my ...
0
votes
2
answers
168
views
How to fold text files?
I am currently editing down multiple large text files (maybe 500 text list files) , and need to fold this files
For example this is one of my text files:
1966 Q3
Fort
COB
LGL
Asse
AP
BAS
Lis
46.81
11....
0
votes
1
answer
509
views
How can I delete everything before and after text that selected by regex? [Notepad++]
I am currently editing down multiple large text files , and need to delete everything before and after text that selected by this Regex ^NewPage.+?NewPage$
For example i have this text:
V.prototype.Jb=...
2
votes
0
answers
69
views
Is it possible to write the Lovecraftian Sigil of the Gateway in unicode?
It isn't technically copyrighted and doesn't seem to be subject to trademark, and is kind of a cultural symbol, so for all I know there's a hidden symbol assignment for it somewhere... but the Sigil ...
0
votes
0
answers
319
views
Awk regex: how to remove all punctuation except when in the middle of a word?
Following information gathered on this thread, I wanted to use this code to fill my needs, however the code provided wasn't working for more than one punctuation character (e.g. '...'). I thus wanted ...
0
votes
0
answers
41
views
Looking for a simple automated way or program to reformat a list of proxies
I have a long list of SOCKS5 proxies that I want to import into another program. Currently the way I have them formatted is:
(Socks5)serveraddress:port:username:password
The program I'm importing ...
-1
votes
2
answers
10k
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
0
answers
70
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
2
answers
619
views
sed replace every character in match with single character like █████ redaction
Is there a sed replace function (or other Regex) that will replace every character caught by the match pattern with a single character that is meant to overlay or REDACT the matches? For instance the ...
1
vote
2
answers
549
views
Add copy-append and cut-append to Notepad++
Is it possible to do a 'copy-append' or 'cut-append' operation in Notepad++?
(means, copy/cut current selection or line if nothing selected, and append it to the copy/paste buffer instead of replacing ...
0
votes
0
answers
341
views
what is the equivalent of ctrl+h (find and replace) in cmd command line
I need instructions specific to the command line (Windows 10) to modify a text file, by replacing a word with another word I thought of the for loop but I did not find a command to modify a file text?
...
0
votes
2
answers
1k
views
How to convert an excel file to a text file without corruption in columns?
I want to convert a bunch of data from excel to text file. But as you can see in the screenshot, numbers are not correctly in their columns.
I've tried copying and pasting data into notepad and saving ...
0
votes
1
answer
38
views
Excel to Text-editor Copying Time-saving method
I have an excel file with multiple columns and rows.
I wish to copy the contents of this excel file column-wise to a word file.
As the number of rows and columns are more than 100, I find it time-...
0
votes
1
answer
172
views
How to remove this codes/keys from lines?
Hello everyone i hope you all have a good day.
I want to know how to remove/delete the following codes/keys from lines.
Example List:
m-1407-m-00
64582e-2bd9-4b06-a9a1-78bfd42a7e6d
SimpleHere123
...
2
votes
2
answers
106
views
Find and delete near duplicate lines with certain punctuation
I have a text file with millions of lines. Some lines contain the same alphanumeric sequence, but differ in case and punctuation. I consider these lines duplicates. I want to remove any duplicate line ...
1
vote
1
answer
132
views
How to remove duplicates usernames before a splitter in lines?
I want to remove duplicated usernames in lines before the splitter : and keep only the first line of these usernames.
Lines Example:
zzzz:000000zl
zzzz:000000zl!
zzzz:000000zl1
zzzz:000000zl123
zzzz:...
2
votes
1
answer
251
views
Cannot use Ctrl+Backspace/Del when renaming file on Windows
The question regards Windows OS and I don't know about other OS.
Since I learned that Ctrl + Backspace or Ctrl + Delete could delete whole words, I have been using extensively.
But it works "...
0
votes
1
answer
468
views
Remove empty lines or other editing features in Visual Studio
In order to use column mode in Notepad++, you press the ALT button and start dragging.
In order to use column mode in Visual Studio, you press the ALT button and start dragging.
To my humble opinion, ...
0
votes
1
answer
20
views
How to get the proper output?
I am working with an algorithm that produces outputs like these:
...
2
3
0
& :instance & :|V| & :|A| & :T & :model & :rootLP & :maxFlowCuts & :maxFlowCutsTime & :...
0
votes
1
answer
921
views
Notepad++ How to copy the last x characters of every line to the end of the same line?
Example-
This:
Example/Images/1234567
Needs to become this:
Example/Images/12345671234567
1234567 is a random string of 7 alphanumeric characters on each line.
2
votes
2
answers
903
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 ...
2
votes
3
answers
7k
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 ...
2
votes
2
answers
10k
views
How can I perform an ISO-8859-1 to UTF-8 text file conversion while not changing any characters that are already valid UTF-8
Consider a text file that looks like this visually:
This’s ISO-8859-1
This’s UTF-8
Behind-the-scenes, the ’ curly quote character in the first line is encoded as ISO-8859-1, and the same ’ character ...
0
votes
3
answers
156
views
How can I delete everything from XXXX to the last line before an empty line in a text document?
Given a text document with multiple instances of the content:
XXXX
random number of lines with random text
other random text
more random text
random text
'blank line'
i want to delete everything ...
0
votes
1
answer
1k
views
How do I delete text between 2 strings?
I have tried the regex expression .a href.*?..a. and .a href[^:]++..a.
I want to replace .a href=.u.gogogo98. class=.3t5uN8xUmg0TOwRCOGQEcU rel=noopener nofollow ugc target=.blank..u.gogogo98..a. with ...
1
vote
1
answer
77
views
How do i put separator after each 5 string in 20 random strings?
Hello guys i want to know how do i put separators such as "-" or ":" after each 5 string
in 20 random letters&numbers string of many lines using regex?
So basically count 5 ...
-1
votes
2
answers
68
views
How to make this Regex work?
i want to know how to make this Regex work ^....*:....* +[|].*$
And ^....*:....* +[=].*$ And ^....*:....* +[-].*$
It works without using ^ for first-line and $ for end of line
Basically, i want to do ...
2
votes
1
answer
573
views
How to distinguish between hyphens and dashes in Adobe Acrobat?
When searching a document, Adobe Acrobat does not distinguish between hyphens and dashes. For example, when I try to search for em dashes, the results include hyphens, en dashes and em dashes.
This ...