A text editor is a program that allows for editing of plain text files.

learn more… | top users | synonyms (1)

1
vote
2answers
35 views

How do I delete all lines but the last one using unix ed editor from a bash script

I have the following bash file called "file" (the real one does something useful): ed db/seeds.rb <<EOF 1,$-1d a 123 456 . w q EOF When I run "bash file" it doesn't delete any lines. If I use ...
0
votes
2answers
33 views

ssh _from_ Linux _to_ Windows: Which editor to use on Windows machine? [on hold]

We have a situation where we have a SSH-server running on a Windows host which we then use an ssh client in e.g. an xterm (or another vt100 compatible client) to connect to, and then get a DOS prompt ...
0
votes
1answer
18 views

CTRL+V does not work in Firefox

Ctrl+v is not working in FireFox 29. I have included clipboard settings in about:config, but it still is not working. Ctrl+c and Ctrl+x are both working. How can I solve this issue?
0
votes
0answers
15 views

open file from Cloud9's terminal (bash) in its IDE

What command would open a file in the default editor of Cloud9's IDE from within its own terminal bash shell? I tried xdg-open and gnome-open but those opens in emacs.
-1
votes
2answers
67 views

WIN7 CMD how to create command to open text files in selected editor

Is there a way to create a command in Windows 7 command line to open some text file in selected text editor? E.g. pspad "text file location" that will open text file in PSPad.
1
vote
1answer
54 views

Need help to replace one tag with another

Anyone can help me on EmEditor Macro? id="131" restype="x-p" phase-name="pretrans"><source>Good morning</source><seg-source><mrk mtype="seg" ...
1
vote
1answer
32 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
13 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 ...
2
votes
4answers
282 views

Linux Text editors able to work with very, very long lines & fixed length records [closed]

I've got a fairly simple problem here: I have a piece of text which is one giant big line (~150,000 characters). No line breaks, and it's a fixed-length flat file (i.e. it was produced by a COBOL ...
0
votes
0answers
12 views

How to number subsections in Pages on Mac

I'm having an issue with Pages. I'm writing a document with several subsections. The problem is that when I'm using the style (ex: Subsection 2, Subsection 3...), I can't find how to add an index to ...
0
votes
1answer
30 views

Vim delete motions include under the cursor

If you delete backwards in vim, it doesn't delete the character under the cursor. What do you need to do to have it delete, say, back to the last space?
0
votes
1answer
37 views

How to add a prefix to every row of a particular column in a csv file via command line on linux

So basically i am trying to achieve the following.    File before editing.  column-1,   column-2,  column-3,  column-4,  column-5 Row-1-c1, ...
1
vote
1answer
16 views

How can I select text in a straight vertical column, as opposed to horizontal?

I'm trying to diff two text file logs and I'd like to remove the date/time from both files. This always appears in the same place on the left hand side of each line, as below: I was wondering is ...
0
votes
3answers
43 views

Vim Colorscheme

What do I change in vimrc to make the while and if/else/elseif in this screenshot a different color? EDIT----------------------- This is a custom colorscheme and I am wondering what I change in ...
1
vote
1answer
52 views

Vim command mode percent expansion

My typical day-to-day workflow in Vim involves having two vertical panes; production code on the left, and the tests on the right. I frequently switch languages (and test frameworks), so I like to ...
0
votes
1answer
56 views

vim editor full screen in putty

I am using putty to connect to my linux server and if I open any files with vim or vi editor the editor margins are getting limited, whereas the same full screen is coming if I open in XTERM. My ...
0
votes
2answers
19 views

Append text into a file while opened in an editor

Here is the scenario: A user creates a new file X.php let's say using nano. The user writes some content, saves the file (Stage S1) but does not exit the nano. He again make some changes and then exit ...
0
votes
2answers
55 views

Vim: How to append even lines to odd lines

I have the following lines. 1 4 2 10 3 20 4 35 5 56 ... ...(many more lines after this) And I want to change to the following in Vim. 1 4 2 10 3 20 4 35 5 56 ... ... How can I achieve this?
1
vote
1answer
30 views

Komodo Edit auto complete

I am just starting to use Komodo Edit. I have linked to a few CSS files but when I am editing an HTML file and then add a class to an element I would like the editor to guess what I am typing by ...
0
votes
1answer
24 views

Checkpoint code in text editor (like a micro version control)

When I'm editing code, I want to periodically checkpoint my code (ranging from every 10-20 minutes to a few hours). Consider it as a micro version control at local level & something that I discard ...
1
vote
0answers
23 views

Slickedit: How can I set the language of the currently open file if it has no extension?

I'm working on a file without an extension in Slickedit (over Linux). Because it has no extension, Slickedit doesn't identify what language the file is written in. Is there a way to manually define ...
0
votes
1answer
293 views

method to subtract text strings common in two files?

I have two text files, one with 100,000 strings and the other with 1,000 strings, which are already present in the larger file. I'd like to subtract those 1,000 strings, so that the larger file will ...
3
votes
1answer
109 views

Highlight all occurrences of a word in Github's Atom text editor

In Sublime Text, if you double-click a word in file, all occurrences of that word are highlighted on the page, giving at-a-glance orientation of how a variable or other text is used in the file. Is ...
0
votes
1answer
33 views

Reload minor mode in .dir-locals.el

In .dir-locals.el, I can only set variables to values, I can't call functions. However, after the following code is executed, I need to disable and then re-enable whitespace-mode: ((nil . ...
0
votes
0answers
17 views

WinMerge won't compare two files around 74 thousand lines

I was able to paste the first text file on the left panel, with 74013 lines. At the right side panel, there is no context menu with Paste option. Is there a way to compare those files in WinMerge? ...
-1
votes
2answers
52 views

How to read a 51gb log file?

Well, it seems something went horrible wrong and now I do have a log file with a size larger than 51gb. Are there any (linux) tools that can read/open files of that size? I want to read the log file. ...
0
votes
1answer
31 views

Don't show tabs in Emacs whitespace mode

Normally, I use spaces for indentation, but for a specific project I'm working on the convention is tabs for indentation. So I've made a .dir-locals.el file that looks like this: ((nil . ...
0
votes
0answers
27 views

Multiple files opened as a single tab?

I'm trying to have a single tab open with more than one file, such that when I run bulk replaces, searches, or other macros, and such that when I want to browse through my application, I won't have ...
-2
votes
1answer
59 views

Turn on/off HTML markup while coding?

A frequent problem I'm having when editing web pages is that HTML jargon can get in the way, when I need to focus on just the content for making corrections. Once markup is added to a piece of text, ...
0
votes
1answer
37 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 ...
2
votes
0answers
17 views

wrap for unspaced languages in emacs

Emacs has a nice wrapping mode called visual-line-mode that is pretty good at sensibly wrapping text. However, it depends almost completely on spaces, which causes the below failure in unspaced ...
0
votes
1answer
159 views

Better setting of EDITOR environment variable to use Sublime Text 2 as system editor?

I want to use Sublime Text 2 for editing Git commit messages. Right now I have the following in my bash rc file: export EDITOR="sublime -nw" This works well if Sublime is already running. But if ...
0
votes
0answers
11 views

“Document Text Embedding” feature for Unicode text editors

In Yudit text editor there is "Document Text Embedding" feature, which allows to change the default text embedding (left-to-right or right-to-left) for the entire document (and it is not saved on Save ...
0
votes
2answers
43 views

Extracting quotations from a movie / tv transcript in Notepad++

I have a transcript of a 3 hour documentary that is filled with quotes I'd like to share. The transcript is huge so going through it manually would take forever. So basically, I just want to remove ...
0
votes
1answer
41 views

EditPlus doesn't have find-file-by-name functionality?

A friend of mine has used EditPlus for over 5 years and says he never finds file by a name. Is there no such functionality in that editor? (I find this hard to believe!)
0
votes
1answer
30 views

The ed text editor and line feed

With ed can I add line feeds (\n)? I've tried: s/word/word\n/ But it it just gave me a plain "n" after word. With double backslash appeared "\n". With sed this works as expected, but with ed not. ...
0
votes
0answers
33 views

Disable type hints in Docblockr blocks

Is there a chance to disable autocompletion after @ sign where in Docblockr blocks ? I am currently playing with Symfony 2 and I use annotations so when I write @ORM\ it gets converted to one of the ...
0
votes
1answer
71 views

What are fast ways to switch between text styles (font, size, etc) in Microsoft Word or other word processing software?

Many times I need to switch back and forth between 2-3 different styles when writing a document. I dislike needing to manually click to change the style in the user interface and would like to use a ...
0
votes
1answer
36 views

How can I generate a large amount of standarized strings in a .txt file?

I'm in need of some large amount of strings generated in a .txt file. The format is number1:number2, number1 goes from 1030 up to 1130, number2 goes from 0 up to 15. Example: ...
0
votes
2answers
100 views

What's Sublime Text 2's equiverlant to vim's Ctrl-P?

Sublime Text is great but Ctrl-P (and Ctrl-N) in vim (inserting a word with same starting characters in insert mode) is such an essential feature that I just cannot live without it. Is this ...
0
votes
1answer
39 views

VIM replacement? [closed]

What I do: PHP (Laravel 4, Yii, Drupal 7, bare) C/++ (GTK+, Qt 4/5) Ruby (+Rails) Perl (rarely, but still) Python2/3 (sometimes + Django) JavaScript (Node.JS, jQuery, Angular.JS) HTML CSS (+SASS, ...
1
vote
1answer
919 views

Simplest way to get XML node count

I have some XML files for which I want to get the count of nodes. However, I don't want to go and start coding. I have checked some XML tools like Notepadd++ XML Plugin, Cygwin xmllint, XML Notepad ...
0
votes
1answer
36 views

Using vim for creating fixed width text?

I've got text in the form xxxx yyyyy xx yyyy xxxxxxxx yyyyy x y I'd like the second set in each line to begin at the same point ie xxxx yyyyy xx yyyy xxxxxxxx yyyyy x y I ...
0
votes
1answer
943 views

Change default text editor to Sublime Text in Linux Mint

I've installed Sublime Text 3 from the .deb found here: http://www.sublimetext.com/3 Now, how to set it as the default text editor in place of gedit in Mint 16?
3
votes
1answer
438 views

vim inside tmux: throws “E388” with <C-Left> in insert mode [duplicate]

I've read that in insert mode in vim, one can use <C-Left> and <C-Right> to move by words. This works for me, but only as far as I don't run vim inside tmux terminal splitter. When inside ...
0
votes
0answers
10 views

How do I work on a wiki draft with local save?

Editing a wiki article is usually done online but if I'd like to restart a browser then the draft is lost. How do I work on the draft with a local copy and ability to preview if I don't use web ...
2
votes
1answer
63 views

Are there any lite text editors in console mode on Windows? [closed]

I know a few: Renowned text editor: MS-DOS Editor Vim/Vi But, MS-DOS Editor is a 16-bit software which cannot be run in Win7 (64-bit), and Vim/Vi is not lite. Are there any lite text editors in ...
1
vote
0answers
47 views

Sublime Text 3: Move caret up/down between displayed lines

With soft-wrapping enabled, 1 text line could occupy multiple displayed lines -- depending on how wide the window is. By default Up/Down arrows move carets between actual lines. I was wondering ...
0
votes
0answers
45 views

How to make Sublime Text highlight “$this->” for PHP?

How do I make Sublime Text highlight $this-> for PHP files?
0
votes
1answer
40 views

TextMate-like bundle editor for Sublime Editor

I know that Sublime Text has packages and also a package manager you can use to install additional bundles. For example, I installed the Go bundle but I'd like to extend it by adding some custom ...