Linked Questions

60 votes
5 answers

How to join two Style[]d strings

Does anyone know whether it is possible to combine\join two styled strings? That is, while the following code works fine: omega = "text"; omega<>omega ...
iav's user avatar
  • 2,016
26 votes
3 answers

Comparing Mathematica expressions like diff

I am looking for a way to compare (or "diff") two Mathematica expressions, similarly to how to diff utility can compare two text files and report the differences. Has anyone already written such a ...
Szabolcs's user avatar
  • 235k
22 votes
3 answers

How to effectively diff a notebook?

How to effectively diff a notebook with another version of it? This is usually needed/encountered in revision control, but can be generally useful. What i currently do is disable notebook history, ...
user13253's user avatar
  • 8,666
19 votes
3 answers

Highlighting pattern strings in a large text

I would like to apply Style to strings that are matched, for example, with one or more specified patterns or regular expressions, a string or a list of both, ...
Jonathan Prieto-Cubides's user avatar
3 votes
2 answers

Highlighting or coloring certain words / substrings appearing in a larger string

I have one longer string, longString, and a set $S$ of shorter strings {ss1,ss2,ss3,...}. I'd like to print out ...
Bob2Alice's user avatar
  • 127
2 votes
2 answers

How to pad Background size in Style calls

When highlighting text using Style and Background, as in ...
alancalvitti's user avatar
  • 15.1k
2 votes
1 answer

Combine a pure function, a replacement rule and Map

I've imported an Excel with 2 columns (Address and Final Address) which are both urls. ...
Revious's user avatar
  • 540
1 vote
2 answers

Colorize letters in the given string [duplicate]

How can I colorize letters in the given string? For instance: string = "jaonvtaqhsy" How to colorize 3 letters in the middle of ...
vito's user avatar
  • 8,958
1 vote
1 answer

Check if two cells are identifcal

Is it possible to check whether two cells in a Mathematica notebook have exactly the same code? I'm comparing two bits of code that might be the same, but rather than eye-checking, I wonder if there ...
sam wolfe's user avatar
  • 4,863
5 votes
0 answers

Visually identifying differences between two Mathematica functions

Context Let us assume we have two functions defined in Mathematica. I am interested in spotting the differences in the code for the two functions. Example ...
chris's user avatar
  • 23k