Message Boards Message Boards

5
|
7528 Views
|
4 Replies
|
14 Total Likes
View groups...
Share
Share this post:

Avoid code wiggleing when navigating through it (Linux)?

Nowadays, Mathematica highlights per default the enclosed function you are in by colouring the braces as well as the head. Unfortunately, since version 11.0 this seems to have a font problem. What happens is that the green background highlighting slightly changes the width of the font (at least it seems so). When you now browse through your code and the enclosing function changes because you move the cursor inside a different function, several lines are slightly shifted. Let me give an example where you need to pay attention how several lines wiggle when I move the cursor:

enter image description here

This might be a minor annoyance but believe me, it drives you crazy when you edit a large portion of code. I tried to fix it by changing the style of the highlighting but I had no success. I reset Mathematica with mathematica -cleanstart but that didn't change a thing.

It is probably my own fault since I didn't report it in the pre-release but this issue seemed so obvious to me that I thought it will definitely be fixed in the release. Now, we already have 11.1.1 out and the bug still persists. Is it only me or do other Linux users have the same problem?

I'm on XUbuntu 16.04 with the latest Mathematica. Any thoughts?

Edit

I have filed a bug-report [CASE:3884553]

POSTED BY: Patrick Scheibe
4 Replies

You can turn off the highlighting effect entirely by evaluating the following:

CurrentValue[
  $FrontEnd, {CodeAssistOptions, 
   "DynamicHighlighting"}] = False

This will be fixed for the next major release, but that's not going to be for, probably, another couple of months, so hopefully that workaround will do for the mean time.

POSTED BY: John Fultz

Hey John, yes I know. Unfortunately, I'm losing the highlighting of matching braces as well then. So I guess I try to live with it for the time being.

POSTED BY: Patrick Scheibe

Using Kubuntu 16.04 and 11.1.0 for Linux x86 (64-bit) (March 13, 2017) I do not see this effect. Maybe it has to do with Xubuntu.

POSTED BY: Henrik Schachner

I see the same wiggle problem on Ubuntu 17.04 with M11.1.1.

M11.0.1 was behaving normally.

I did not install the x.y.0 versions on Linux, so I cannot comment on those.

POSTED BY: Szabolcs Horvát
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract