Questions tagged [edit]

to modify (a computer file) by, for example, deleting, inserting, moving, or copying text.

Edit can be done as part of coding or changing configuration files.

The tool which is used for editing is called an Editor. Common editors include vi, emacs etc.

3207 questions
7
votes
3 answers

win32 c++ detecting 'enter' in a edit control withot subclassing?

Basically I want an Enter to trigger a message I can catch when a edit control har focus and a user press enter. All solutions online seems to be about subclassing, but I was wondering if there was another way around it? For example, my button has…
KaiserJohaan
  • 9,028
  • 20
  • 112
  • 199
7
votes
2 answers

Content in textareas set to use nicEdit not updating to reflect user changes

Accept my apologize because of my low English level I use to load a page with jQuery and I use nicEdit in that page and I post datas to another page with jQuery. But it just send empty value instead of what user wrote in editor (if i define a…
Ahmad Badpey
  • 6,348
  • 16
  • 93
  • 159
7
votes
3 answers

Text editing - insert comments (#) in Ubuntu with gedit or other text editor

I am programming in a dedicated language called macro language. To comment I need to add # at the beginning of the line. What I want is, in order to spare time, to comment several lines of code at same time with gedit or other program (gedit is nice…
7
votes
3 answers

How can I tell python to edit another python file?

Right now, I have file.py and it prints the word "Hello" into text.txt. f = open("text.txt") f.write("Hello") f.close() I want to do the same thing, but I want to print the word "Hello" into a Python file. Say I wanted to do something like this: f…
Elle Nolan
  • 379
  • 5
  • 8
  • 22
7
votes
1 answer

Open a file for editing from code

How do you open a file for editing from C# code, i.e. equivalent to the user right-clicking on it and selecting 'Edit' instead of 'Open'? I've got Process.Start() for the equivalent of 'Open', but I specifically need the 'Edit' option in…
Flynn1179
  • 11,925
  • 6
  • 38
  • 74
7
votes
4 answers

iOS - how to implement crop image like default photo album?

The default crop function in iPhone photo album Does any one know how to implement this? I want to crop it before Use button is tapped.
Js Lim
  • 3,625
  • 6
  • 42
  • 80
7
votes
4 answers

How to remove a black background from PDF text before printing

I have a PDF with a black background and white/yellow text. How can I remove the black background before printing and invert the color of the text?
wgpubs
  • 8,131
  • 15
  • 62
  • 109
6
votes
5 answers

Win32 API: How to scroll down automatically a text inside EDIT control?

I have an EDIT control created like this: hwndEDIT_5 = CreateWindowEx ( 0, "EDIT", NULL, WS_VSCROLL | WS_BORDER | WS_VISIBLE | WS_CHILD | ES_MULTILINE | ES_READONLY, 135, 450, 555, 200, h2, ( HMENU ) ID_EDIT_CONSOLE, h1, NULL ); As you…
okt
  • 175
  • 1
  • 5
  • 9
6
votes
2 answers

How to use dropdown list in Datatable in Inline editing

I am using datatable 1.8 its amazing, I have recently read an article regarding inline editing of datatable column, Inline editing , in this article on clicking on edit hyperlink the datatable columns becomes text field but my requirement is that i…
zohaib siddiqui
  • 129
  • 1
  • 6
  • 18
6
votes
1 answer

How to hack on installed perl6 module source?

I'd like to be able to view and make changes to the source code of installed (via zef) perl6 modules. How can I do that? On my system, the module sources are under ~/.perl6/sources/ and there's also some kind of metadata file about the modules in…
cowbaymoo
  • 1,202
  • 5
  • 14
6
votes
3 answers

How to remove the first three characters from every row in a column in R

I have a large data set with a column of text, 20K rows. Would like to remove the first x number (e.g. 3) of characters at the beginning of each row in that specific column. Appreciate your assistance.
Shawn
  • 149
  • 1
  • 3
  • 9
6
votes
1 answer

git add -p (interactive patch) and edit mode gives a "corrupt patch at line XX" error

I'm addind my change to a commit with git add -p, now I'd like to use the manual hunk edit mode. I simply have this hunk: # Manual hunk edit mode -- see bottom for a quick guide @@ -46,6 +46,7 @@ function signIn(email, password) { } …
Simon
  • 6,025
  • 7
  • 46
  • 98
6
votes
4 answers

Error when open eclipse - MAC

I have installed eclipse on my iMac and when I try to open it, it gives me this error: Failed to find a Main Class in "/Applications/Eclipse.app/Contents/MacOS//../Eclipse/ plugins/org.eclipse.equinox.launcher_1.5.0.v20180512-1130.jar". On my…
6
votes
2 answers

MediaWiki: page editing allowed by creator only or with approval

I'm trying to restraint editing on the Wiki (using MediaWiki) that I'm creating as an internal project for my company. We would like to be able to let the page creators specify none or one of the two following options: Nobody besides the creator of…
Nils
  • 401
  • 2
  • 6
  • 16
6
votes
1 answer

jq json filter and keep original structure

I am really new to the command jq, and I am trying do some filtering to remove blocks of data that I don't want/need. Here is an example of my JSON structure: { "BackupCfg": [ { "type": "filesystem", "repository": "trunk", …