53
votes
correctly sizing PNG images in markdown with pandoc for html/pdf/docx
Dimensions are converted to pixels for output in HTML-like formats. Use the --dpi option to specify the number of pixels per inch. The default is 96dpi.
Find the most common element in your pictures ...
53
votes
Why does my browser attempt to download pages from http://clhs.lisp.se instead of viewing them normally?
There is something wrong with the way that website and/or web sever is delivering web pages.
This is not a problem on your end but rather something odd on the server side; with either the website ...
48
votes
Accepted
How can I edit the HTML source code of an email in Outlook 2010 without any add-ins?
Here is the solution for Outlook 2010/2013, without any plug-in but with Notepad++:
Open Notepad++, create a new file and save it in a temporary folder with a .html extension.
Click on Run > Send ...
36
votes
How can I view the HTML of a Thunderbird e-mail?
If you're in mail composition mode, which it sounds like your are, forget the "view source" option people are telling you.
You want the HTML, not the raw email message with MIME formatting and ...
29
votes
Accepted
How long until an old website visitor sees new web design?
How long before a website visitor sees a new website design without force refresh?
Assumption: There are no cache settings in the HTML page
It depends on the browser cache settings.
Note:
The ...
25
votes
How to download a file from a URL?
Download File from URL
There are a couple ways to do this. As mentioned, using the developer tools could work (more likely it will give you the url to the file) and right-clicking the link will work. ...
22
votes
Accepted
How to send rich text to the clipboard from command line?
Linux
via this answer
cat text.html | xclip -t text/html
Mac
via this answer
cat text.html | textutil -stdin -format html -convert rtf -stdout | pbcopy
Windows
In older Windows, you can ...
21
votes
Is it possible to take a screenshot of a web page as an SVG image?
I wrote an open source browser extension that does exactly this. It works by traversing the DOM and converting elements to SVG elements, using the styles and coordinates computed by the browser. The ...
18
votes
How to configure the default app to open tel: links in MacOS X?
You can change this without an extra app via the preferences in FaceTime.
On the Setting tab change the last entry "Default for calls" to Skype.
At least this way works for Skype for Business.
14
votes
Accepted
Emptying HTML tags with sed
* is greedy, so <.*> matches everything from the first < to the last > in the line. Some tools understand *? as non-greedy analogue of *, but not sed.
In your case one can still go with ...
12
votes
Accepted
How to get Sublime Text 3 to automatically highlight CSHTML as HTML
You can install the HTML (C#) via Package Control, that extends HTML highlighting for C#-specific tags and logic blocks.
Historic Answer
Open any .cshtml file
In the main-menu, choose View > ...
11
votes
Transform linked images to embedded images
In Word 2010:
Click File > Info > Edit Links To Files (Edit Links is in the Related Documents section on the bottom right). This opens the Links dialog.
Select all the links in Links dialog, and ...
11
votes
Accepted
How to configure the default app to open tel: links in MacOS X?
You can change it using a utility called
RCDefaultApp - freeware - which installs as a Control Panel. It's old but still works right up to El Capitan [I've not tested on Sierra but see no real reason ...
11
votes
Accepted
How to show the whole file name while using .htaccess to list files in a directory?
Easy! Just use the Apache IndexOptions directive in addition to Options +Indexes in the .htaccess file.
In your case this would be simple enough to show the full names of files:
Options +Indexes
<...
11
votes
Accepted
Make pandoc ignore css style class
If you use pandoc -f html -t markdown_github-raw_html reduced.html -o res.md it solves the problem.
markdown_github reduces the set of outputs to ignore the CSS
-raw_html removes the raw_html ...
10
votes
Removing file / folder link after using "Save As..." then "Web Page, complete"
Based on Microsoft's documentation:
Another option which doesn't require registry modifications is simply to rename the HTML file or the folder.
When trying to rename the file/folder, the following ...
10
votes
Why does my browser attempt to download pages from http://clhs.lisp.se instead of viewing them normally?
This funny website return for your page an answer with the following headers:
HTTP/1.1 200 OK
Content-Type: application/octet-stream
Accept-Ranges: bytes
Content-Length: 8896
Date: Sat, 21 Sep 2019 ...
9
votes
How to download a file from a URL?
For Powershell, this example works great:
invoke-webrequest -uri http://files.animatedsuperheroes.com/themes/spiderman94.mp3 -outfile "c:\Spiderman94.mp3"
This was confirmed with Win10 x64 1607.
9
votes
Accepted
How to take a screenshot of an entire scroll element?
OK. I had an insight and could solve the problem, hehe.
I went to div properties and changed the 'height' in CSS to 500%. Voilà! Then I could use "Screenshot Node" feature on Firefox. It was not ...
9
votes
Windows deletes HTML files when I delete a folder
How do I delete the folder without deleting the HTML file?
Explorer
Rename the folder before deleting it. This includes:
Removing the _files portion of the name at the end of the folder.
Renaming ...
9
votes
Downloading blob image
You just need to create your own element using the image source of the image you want to download, so as a basic example:
var image = document.querySelector('img'); // Image you want to save
...
9
votes
How to get code block with syntax highlighting into LibreOffice Writer
Libreoffice extensions
There are several extensions that allow to highlight a code snippet.
You can search for them in extensions.libreoffice.org.
Among the others
code highlighter
code ...
9
votes
Emptying HTML tags with sed
Just rename all nodes to empty strings and delete all attributes using xmlstarlet:
xml ed -r '//*' '' -d '//@*'
This will add an XML header (<?xml version="1.0"?>) and leave a slash ...
9
votes
Accepted
How to save a Hugo site as HTML files?
I have run hugo server -D.
For clarity, hugo server -D will not create .html files. It only serves files on the fly (as you suggest in your original question).
To generate .html files in the public ...
8
votes
How to convert HTML to text?
You can install html2text (an advanced HTML-to-text converter) and the usage is straight forward:
$ html2text http://example.com/
$ cat file.html | html2text -o file.txt
Install by:
Linux: apt-get ...
8
votes
UTF-8 Angle brackets up and down?
You could use:
︿ / ︿ : ︿ aka «Vertical Left Angle Bracket», ref
﹀ / ﹀ : ﹀ aka «Vertical Right Angle Bracket» ref
Logical and and logical or ...
8
votes
How to take a screenshot of an entire scroll element?
From Chrome dev tools > Device Toolbar, you can focus the required element and click on Capture full size screenshot.
8
votes
Why does my browser attempt to download pages from http://clhs.lisp.se instead of viewing them normally?
You can try ModHeader. After install you visit the root of the site, click on the extension icon, then on the plus sign, response header and type Content-Type. Happy browsing of that site.
You can ...
7
votes
Command-line CSS selector tool
https://github.com/ericchiang/pup has a CSS-based query language that conforms closely to your example. In fact, with your input, the following command:
pup "body > div.content > table > ...
7
votes
Using bash to export a comma separated list to html
Your quoting is wrong, specifically the double double-quotes.
Let's break down what you have, the bits concatenated together
echo ""<tr onmouseover="this.style.backgroundColor='#ffff66';"";
the ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
html × 1075css × 104
google-chrome × 89
javascript × 87
firefox × 78
browser × 68
microsoft-word × 60
email × 57
pdf × 47
linux × 44
notepad++ × 41
php × 39
website × 37
conversion × 35
windows × 34
microsoft-excel × 32
internet-explorer × 31
macos × 29
images × 25
web × 25
microsoft-outlook × 24
regex × 24
vim × 21
windows-7 × 17
bash × 17