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
8
votes
7 answers

DataGridView: Change Edit Control size while editing

in the DataGridView I want the cell size to expand according to the string length when I edit the cell. Excel does the same. In the DataGridView, when entering edit mode, a DataGridViewTextBoxEditingControl is placed at the cell position. I tried to…
Timo F
8
votes
1 answer

Best Way to Update/Edit an Array Element in SwiftUI

I have an array of identifiable Training elements. Each Training element only has two properties, name and isRequired. What is the most straight-forward (Swiftyiest) way to update the existing values of an array element to new edited values... the…
Clay_F
  • 561
  • 1
  • 6
  • 17
8
votes
1 answer

How do you edit an existing Tensorboard Training Loss summary?

I've trained my network and generated some training/validation losses which I saved via the following code example (example of training loss only, validation is perfectly equivalent): valid_summary_writer =…
AlexP
  • 351
  • 2
  • 14
8
votes
8 answers

Multi-line Editing in Visual Studio

How can I achieve multi-line editing in Visual Studio? For example in Sublime Text I could make it by CTRL + Mouse left button.
8
votes
1 answer

Javafx fxml file TextArea line break and tab in text

How to edit text in the TextArea in `.fxml file as such I can use line breaks and tabs. The Textarea is predefined and can not be edited. Images to support FXML File The View
Sevi
  • 605
  • 1
  • 6
  • 13
8
votes
2 answers

Passing file directly to nano fails with sighup or sigterm

was want to search for a specific file on my server and directly edit it within nano. i tried it like this, but it wont work find -name file.php | xargs nano $1 the file is found, but it wont work like that Received SIGHUP or SIGTERM how to do…
easteregg
  • 509
  • 4
  • 9
8
votes
3 answers

modify existing contents of file in c

int main() { FILE *ft; char ch; ft=fopen("abc.txt","r+"); if(ft==NULL) { printf("can not open target file\n"); exit(1); } while(1) { ch=fgetc(ft); if(ch==EOF) { …
zee
  • 188
  • 2
  • 2
  • 9
8
votes
4 answers

How to insert code in multiple lines in a multiple lines code?

I'm doing some cut and paste from a lot of different data sources. I'm trying to insert code in multiple lines in a multiple line code so that for the first line of the pasted code go between two specific points of the original code and the same for…
G M
  • 20,759
  • 10
  • 81
  • 84
8
votes
2 answers

Edit a file name in Dropbox API

How to edit file or folder name using dropbox api? I was using this reference: https://www.dropbox.com/developers/core/docs Is there anything else? Is it even possible?
user990635
  • 3,979
  • 13
  • 45
  • 66
7
votes
3 answers

Edit .htaccess with PHP

I have a .htaccess that maps a domain to a folder. RewriteEngine On RewriteBase / # redirect mapped domain ReWriteCond %{HTTP_HOST} joshblease.uk.to ReWriteCond %{REQUEST_URI} !gme-index/ ReWriteRule ^(.*)$ gme-index/$1 [L] Is there any way to…
Blease
  • 1,380
  • 4
  • 38
  • 64
7
votes
1 answer

WinAPI edit control doesn't display newlines

Well, that's only half true. Newlines work fine for the most part, but when I load a file into it, none of the newlines are shown. Copying the text and pasting it into Notepad++ with view all characters turned on shows that the carriage return and…
ConsciousCode
  • 563
  • 4
  • 18
7
votes
5 answers

OSStatus error - 12780 when invoking insertTimeRange:ofTrack:atTime:error: of AVMutableCompositionTrack for the second time

First of all I have to say that I love this forum, it helped me so many time. I have a problem and I couldn't find an answer to it anywhere so this is my first question here. My problem is this: I have a video represented by AVPlayerItem, the user…
Sahar
  • 71
  • 1
  • 2
7
votes
1 answer

Rails 3 - best_in_place editing

Hopefully a simple answer; I am using the gem best_in_place and it works great. I'm trying to figure out how to create a drop down menu using: :type => :select, :collection => [] What I want to be able to do is pass in a list of names that have…
FattRyan
  • 906
  • 2
  • 12
  • 26
7
votes
3 answers

Modifying array of key value in JSON jq

In case, I have an original json look like the following: { "taskDefinition": { "containerDefinitions": [ { "name": "web", "image": "my-image", "environment": [ { "name": "DB_HOST", …
zdk
  • 1,528
  • 11
  • 17
7
votes
2 answers

Append JSON Objects using jq

I've below JSON structure { "a": "aVal", "x": { "x1": "x1Val", "x2": "x2Val" } "y": { "y1": "y1Val" } } I want to add "x3": "x3Val","x4": "x4Val" to x. So the output should be { ... "x": { …
theapache64
  • 10,926
  • 9
  • 65
  • 108