Skip to main content
21 events
when toggle format what by license comment
Feb 21, 2023 at 6:38 history edited xzczd CC BY-SA 4.0
added 101 characters in body
Feb 21, 2023 at 6:33 comment added xzczd I take the liberty to use NotebookWrite instead of CellPrint according to the discussion in mathematica.stackexchange.com/q/269955/1871. Feel free to rollback if you don't like it :) .
Feb 21, 2023 at 6:30 history edited xzczd CC BY-SA 4.0
added 101 characters in body
Jun 26, 2022 at 2:57 comment added xzczd I take the liberty to add a rule """ -> "\"" for handling ", feel free to rollback if you don't like it :) .
Jun 26, 2022 at 2:57 history edited xzczd CC BY-SA 4.0
add a rule for handling "
Mar 9, 2021 at 8:52 comment added Gravifer Maybe this post could be sanitized and put into the resource function repo?
Jun 16, 2020 at 9:23 history edited CommunityBot
Commonmark migration
Jul 13, 2017 at 18:59 history edited LCarvalho CC BY-SA 3.0
edited body
Jul 13, 2017 at 18:52 history edited LCarvalho CC BY-SA 3.0
added 156 characters in body
Jan 4, 2017 at 12:50 comment added LCarvalho @R.M. If there was an animated gif to show how it works would be very good.
Jun 12, 2013 at 12:01 comment added rm -rf @Silvia I agree that one can implement workarounds to filter out the blockquote, but I'm against that because the issue is not the code here, but the incorrect use of formatting styles. Tomorrow, someone else might start using a different tag for some other unintended purpose and we can't be catching/tracking them all. I figured it was better to educate and reason with users to use only code blocks for code than to add exceptions . Re: Shortest, yes, I think they're equivalent and looks cleaner.
Jun 12, 2013 at 11:21 comment added Silvia I think you could first filter out blockquotes before extracting code blocks, so it doesn't get messed by those blockquotes with a codeblock in it, which are used by some user for formatting output. Also IMO Shortest[...] would be enough for html parsing instead of FreeStringQ[...] condition. Maybe something like StringCases[StringReplace[#,Shortest["<blockquote>"~~__~~"</blockquote>"]:>""],Shortest["<pre><code>"~~("\n"...)~~x__~~("\n"...)~~"</code></pre>"]:>x].
Feb 16, 2013 at 0:41 history edited rm -rf CC BY-SA 3.0
deleted 3291 characters in body
Feb 16, 2013 at 0:01 history edited rm -rf CC BY-SA 3.0
update to use v2.0
Sep 22, 2012 at 7:01 vote accept Yves Klett
Aug 26, 2012 at 6:39 comment added Sjoerd C. de Vries The call throttling problem can be circumvented if you use an API key. I've written about that before. I believe it was in my SO API answer that you were referring to in a comment above.
Aug 22, 2012 at 15:16 comment added rm -rf @Verde You could add a definition: importCode[] := importCode[ First@Cases[NotebookGet@ClipboardNotebook[], Cell[x_, ___] :> x, Infinity]] which will copy whatever is in the clipboard (no checks to see if it is a URL or not), but I don't think this is useful as the chances of you having forgotten and copied something else is high... pasting it as an argument shouldn't be hard and I would prefer explicit over clipboard copy :)
Aug 22, 2012 at 14:55 comment added Dr. belisarius Could it grab the URL from the clipboard?
Jul 17, 2012 at 22:29 history edited rm -rf CC BY-SA 3.0
fix for syntax highlighting
Mar 28, 2012 at 18:18 history edited rm -rf CC BY-SA 3.0
added 641 characters in body
Mar 25, 2012 at 6:41 history answered rm -rf CC BY-SA 3.0