Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Inserting text or html into .notebook

I would like to insert the output of a web page into a notebook (essentially a text or html "screen capture"). No need for it to be "live", it is just there for reference.

Ideally it would appear much like it does on a web-browser. I want it to be non-evaluatable and I don't want the front end to be trying to format it as a very error ridden Mathematica expression

(EDIT to add: creating a cell and doing "Cell->Convert To->Text Display" is a good-enough way of getting text displayed without the front end reformatting things. I am wondering if this is the "right" way to do this or if there is a better way, especially if I'd like to have html formatting or graphics too)

like image 304
Daniel Chisholm Avatar asked Jun 20 '11 13:06

Daniel Chisholm


1 Answers

As far as I know Mathematica isn't able to render HTML pages. Using Import you can get all kinds of things out of html based sites and files. One option is to get a text based version of the site like this:

Import["http://reference.wolfram.com/mathematica/guide/Mathematica.html", "Plaintext"]
like image 133
Sjoerd C. de Vries Avatar answered Oct 14 '22 10:10

Sjoerd C. de Vries