Questions tagged [editing]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4 votes
0 answers
59 views

Implications of Code vs Input Initialization Cells in Package Files

When editing package files, I've noticed that there are really two options for how to format the cells, which has major implications for how they appear in the Mathematica front end. One is to have ...
Pillsy's user avatar
  • 18.3k
1 vote
0 answers
53 views

What is the quickest way (minimum number of manual steps) to let some highlighted text appear as say Courier 12 pt regular?

What is the quickest way (minimum number of manual steps) to let some highlighted text appear as say Courier 12 pt regular? 1.) In Mathematica notebooks, I use a different font in explanatory text ...
Adalbert Hanßen's user avatar
5 votes
0 answers
126 views

Characters and prompt are offset when typing in a text cell using MM13.1

I noticed on my system (Windows 10 and MM13.1) that when I create a text cell (ALT 7) the longer my sentence is the more offset the cursor appears from where I am. When using the left arrow to go back ...
Lou's user avatar
  • 3,812
0 votes
0 answers
43 views

how to delete a variable programmatically in a notebook from another notebook

how to delete a variable programmatically in a notebook from another notebook? c = b; I have already tried Remove[c] but ...
Mohammad Shahbazi's user avatar
1 vote
1 answer
85 views

Single-press TemplateBox deletion

One of the handy things about TemplateBox is that it can be used to define an alias for a more "natural symbol" (by having an empty list first argument ...
Ronald Monson's user avatar
11 votes
2 answers
514 views

Keep Mathematica 12.3 from auto-formatting double square brackets?

I just updated to Mathematica 12.3.1. Whenever I use the double square brackets used to specify Part, Mathematica now auto-formats them. While the readability is nice, when I go to edit the code, I ...
Damo's user avatar
  • 111
4 votes
2 answers
163 views

Having special characters render as you type

It used to be that if I typed == or -> these would automatically be rendered as \[Equal] ...
MannyC's user avatar
  • 810
3 votes
1 answer
106 views

Write commands in a texteditor as a low-level notebook expression

I want to write a notebook file by myself. I use a text editor (such as Vim) to do that, for the purpose of having full control of my code I am writing, and to really understand what is in my .nb file ...
tush's user avatar
  • 375
0 votes
0 answers
43 views

How can I use "find selection" in mathematica?

I want to use find selection functionality in Mathematica and I found some articles saying it could be accessed by Ctrl + E. ...
ten's user avatar
  • 113
5 votes
1 answer
150 views

How to enable WakaTime for the Mathematica front end?

WakaTime is a tool for logging one's coding activities, and now have amazing coverage for code editors. Although I write Wolfram in VS Code, I still spend a lot of time tweaking and testing in the ...
Gravifer's user avatar
  • 812
5 votes
0 answers
170 views

What is the black-background Mathematica code editor in the movie Arrival?

The heroine in the movie Arrival uses Mathematica to analyze the alien text. In a scene of the movie we can see the heroine is using an editor with black background, the code seems like Mathemaitca ...
Wei John's user avatar
0 votes
0 answers
78 views

detailed explanation of a sherical gyroid code and how to modify the code to obtain different pores sizes and numbers

***I have the code of a spherical gyroid below which I have used to print a 3D object sphere. i will need a detailed explanation of all the terms starting from a = 3 pi till mesh. moreover i printed ...
Selamo Basile's user avatar
12 votes
0 answers
336 views

Has the Undo command really been settled? On version 12.1 it only works sporadically. What are some reasons it drops steps?

Although Undo has been around since version 10 (before my time) I've noticed that sometimes it works just fine up to the moment of the last ...
Jules Manson's user avatar
  • 2,407
6 votes
1 answer
168 views

Selecting text inside quotation marks by clicking

We can select parts of code or text by repeated clicks like so: 1 2 3 4 5 But it seems like Mathematica skips one level. Between image 2 and 3 there should be an intermediate level of selected code ...
azerbajdzan's user avatar
  • 9,893
2 votes
1 answer
181 views

Dynamic updating and editing of matrix

I am trying to create a user interface for a demo project that uses matrix as an input. I provide user with a default matrix (as an example) for a start, but user can edit it or add extra row to it ...
vdm1990's user avatar
  • 147
3 votes
1 answer
136 views

An alternative to (%%…%) (k times) [closed]

Sometimes it may be useful to use (%%…%) (k times) to get the kth previous result in a notebook instead of setting a variable. However, if I want to get the 8th previous result, for example, I would ...
Caio's user avatar
  • 131
1 vote
1 answer
73 views

Editing the graph to become with animation

In the following code: p1=ParametricPlot3D[{ (3 + Cos[v]) Sin[u], (3 + Cos[v]) Cos[u], Sin[v]}, {u, 0, 2 Pi}, {v, 0, 2 Pi}] p2=ParametricPlot3D[{Cos[Sqrt[2] t](3 + Cos[t]), Sin[Sqrt[2] t] (...
user21210's user avatar
  • 161
2 votes
1 answer
203 views

Speed up/slow down audio file

I am importing an audiofile to Mathematica and want to play it back at double speed. The only functions I see are the advanced options of AudioPitchShift (which doesn't alter the duration but ...
DM037's user avatar
  • 51
1 vote
1 answer
53 views

Variable refactoring and multi-selection

In IDEs like PyCharm for Python, I can select a variable name or method name and it will highlight to show where all I have used it. Also its easy to refactor the names under a given text selection. ...
Rene Duchamp's user avatar
  • 1,419
3 votes
0 answers
92 views

Wolfram Workbench fails to open .wl file

I'm trying to open a .wl file with the Wolfram Workbench (Eclipse plug-in) and am getting the error message, "Failed to create the part's controls". If I expand the ...
Matt's user avatar
  • 433
1 vote
0 answers
63 views

How to automatically add indentation to selected block of code [duplicate]

While editing a package file .wl, I just realized I need to wrap a block of code in Module and other stuff. After doing that, I ...
QuantumDot's user avatar
  • 19.5k
5 votes
1 answer
87 views

Disable the "double-click to collapse cell group" feature in Mathematica?

I'm trying to figure out if there is a way to disable the feature of Mathematica whereby if you double click the brackets to the right of a formula + output, it collapses the output. I want to ...
user avatar
6 votes
0 answers
491 views

Why wouldn't undo work after delete?

I'm in 10.4, and it seems like after I paste undo works fine, but after I delete it does nothing. Any reason for this?
jamesson's user avatar
  • 465
1 vote
0 answers
144 views

Replace all tabs with whitespaces

does it exist a setting in the editor to replace all tab characters with a certain number of white spaces? Something like the following from Eclipse:
Dean's user avatar
  • 53
1 vote
0 answers
56 views

How to selectively delete a function together with its matching sets of brackets?

For example, suppose I want to retain only the content inside the argument of Distribute ...
Quasar Supernova's user avatar
0 votes
2 answers
166 views

Reading a tabulation of data with brackets and commas: OpenRead

While I can read a data file containing the one/multiple line(s) of 1.314 -4.32 6.44 342.3 using ...
MvP's user avatar
  • 265
6 votes
0 answers
457 views

Editing pdf files with Mathematica

As an example, consider this pdf file. Would it be possible to edit the pdf, such as removing a logo, the page numbering and even frames, and save the result as a pdf? I would like to keep the pdf ...
anderstood's user avatar
  • 14.2k
11 votes
1 answer
2k views

How can I use Vim key bindings in Mathematica Wolfram Notebook?

How can I use Vim key bindings in Mathematica Wolfram Notebook? I'm sorry I have not found suitable tags from the existing ones.
TahaMagdy's user avatar
  • 111
0 votes
0 answers
54 views

How to turn off new feature in Mathematica [duplicate]

Mathematica recently added a new feature where an "x" appears to the right of input that does not make sense. See video below. Notice that as I start typing an x appears to the right. This is ...
B flat's user avatar
  • 5,493
5 votes
1 answer
1k views

How to edit a downloaded cdf textbook example or prevent someone from editing my notebook?

I have downloaded from https://www.wolfram.com/cdf/uses-examples/textbooks.html the textbook example and I have opened it. I am trying to make some edits but I cannot. I opened the option inspector ...
Andrea G's user avatar
  • 739
7 votes
1 answer
455 views

Syntax Highlighting for WL files in Atom/Sublime?

What packages do people use for syntax highlighting in Atom, Sublime Text 3, etc?
M.R.'s user avatar
  • 31.2k
9 votes
0 answers
128 views

How to suppress the escape window?

Cross posted here If we first enter an empty string (""), and then paste something within the quotation marks, the following dialog box will pop up: I recorded a ...
yode's user avatar
  • 26.3k
17 votes
1 answer
1k views

How do I remove the little × that shows up in the frontend when typing?

Version 11.1 now shows a little grayed out × (a multiplication sign) when one is editing something, to warn them that the expression will be interpreted as the ...
Nasser's user avatar
  • 137k
1 vote
1 answer
42 views

Awkward selecting by keyboard

How can you modify text selection using [shift][right arrow]? The standard behaviour is awful: when I select too far and want to go back one step using [shift][left arrow] it extends the selection on ...
Zardos's user avatar
  • 31
4 votes
1 answer
116 views

Editing strings with exponents, potential bug

Bug introduced in 8.0. or earlier, persisting through 11.0.1. I know this site is not fond of screenshots, but this is the only way I could think of to communicate this behavior. When editing ...
Daniel W's user avatar
  • 3,406
5 votes
1 answer
125 views

Dynamic updating is triggered in the output cell when the input is edited

Bug introduced in 10.0 and persisting through 11.0.1 or later Starting from Mathematica 10, there's a new feature: when you begin editing your input cell, its output becomes faded. A side effect of ...
Ruslan's user avatar
  • 7,122
14 votes
2 answers
1k views

Evaluate expressions within Vim

I want to be able to type a quick Mathematica expression, such as 550/3. (e.g. common math), ...
Andrew's user avatar
  • 1,126
1 vote
1 answer
92 views

Working with WolframCloud

I'm using WolframCloud from my smartphone and I'm having trouble to select all the cells of my notebook to delete them. There is a command that selects all the cells in a notebook? I tried using the ...
LCarvalho's user avatar
  • 9,145
5 votes
1 answer
350 views

How to apply by-hand image selection to different images

Mathematica supports image selections by hand, by utilizing the selection tool. I used it to extract relevant data (hundreds of little squares). Now I have a second image of same size, where I want to ...
Anton Alice's user avatar
10 votes
2 answers
1k views

Split screen view in notebook interface?

Is there a way to get a split screen in the notebook interface? I want a movable horizontal bar in a window with two views into the same notebook, each of which is independently scrollable. An ...
G. Shults's user avatar
  • 413
1 vote
1 answer
331 views

NewLine Inconsistency

Copy and paste the following two lines into Mathematica. 1 \[Alpha] \[NewLine] 2 f[ 1 \[Alpha] \[NewLine] 2] The first posts ...
William's user avatar
  • 7,575
13 votes
2 answers
699 views

Automatic AutoIndent while editing a Package (.wl)

The author of this question is interested in personally handling the code indentation and having the package editor, built-in in Mathematica 2012, preserve the manually chosen indentation level from ...
unlikely's user avatar
  • 7,063
10 votes
2 answers
6k views

How to display line numbers in the Mathematica?

Is there such a thing in Mathematica; something like line numbers in Notepad++? Thanks.
Qaher's user avatar
  • 313
2 votes
0 answers
139 views

Can mathematica be configured to auto pair different parenthese?

In DrRacket, the editor can auto pair different parentheses, for example code like (let [(x 3 and whether press ) or ...
m00nlight's user avatar
  • 1,582
5 votes
1 answer
450 views

Selection bugs make Mathematica 10 unusable

I'm getting odd selection bugs in Mathematica (starting in 10.0.1.0, OS X 10.10 and still present in 10.3.1.0, OS X 10.11.2) that are making it impossible to use. For example if I simply click before ...
orome's user avatar
  • 12.8k
11 votes
1 answer
172 views

How to disable half-hiding output, when the corresponding input cell is modified

I think it has become less easy to compare the new output, now that the output font color turns gray as soon as something is modified in the input cell. Is there any solution?
Coolwater's user avatar
  • 19.9k
4 votes
1 answer
397 views

Table with some editable cells

I have a table: I want it to be editable only where the zeros appear. I read this post Generating an editable table that can be used as input because it's almost exactly what I want, but I couln't ...
Mantizaurio's user avatar
4 votes
2 answers
1k views

Multiple Mathematica notebooks in a tabbed window with line numbers

I have the following questions: Is there a way to open multiple mathematica notebooks in tab group rather that each mathematica notebook opened in separate window? Is there a way to display line ...
aark's user avatar
  • 169
5 votes
1 answer
166 views

How to apply by default the style to the Cell instead of the selection?

It's a bit tiresome repeating Ctrl+., or $\uparrow$, Shift+$\downarrow$ (in Mac), or grabbing the mouse to select the bracket every time one want to change the cell style. As style commands on empty ...
Fallible's user avatar
  • 783
2 votes
0 answers
91 views

Limiting scope of Front end "Replace All" in Find & Replace

The warning on find and replace isn't explicit and I only found out after an almost harmless global change that I really was replacing ALL, not just all instance in my selection (which is where most ...
Julian Moore's user avatar
  • 2,560