Questions tagged [html]

HTML (HyperText Markup Language) is the principal markup language used for structuring web pages and formatting content. The most recent revision to the HTML specification is HTML5.

Filter by
Sorted by
Tagged with
1
vote
2answers
26 views

When opening “/tmp/foo.html”, don't prompt for Document Title

If I do "ctrl-x ctrl-f /tmp/foo.html" (where /tmp/foo.html doesn't exist), emacs prompts me for "Document Title:" How do I turn off this behavior (which I'm guessing is an html-mode hook of some sort)...
13
votes
1answer
359 views

Is there a plugin that does color HTML matching tags like rainbow delimiters?

I would like some plugin which colors html tags with a corresponding color based on which tag they match. For example <div> <p></p></div> <div> and </div> would ...
6
votes
1answer
476 views

How to make browse-url-of-buffer load the same html file in the same tab in Firefox?

When editing a html file (in an Emacs buffer in HTML mode), I often review the file in my default browser (Firefox) by C-c C-v (ie, running browse-url-of-buffer). But every time I run C-c C-v, Firefox ...
1
vote
1answer
280 views

Editing HTML structurally

Recently I've done a lot of work cleaning up some HTML files that were generated by LibreOffice. It made me really wish for a way to edit the document structure, à la paredit-mode. For example, for ...
7
votes
2answers
3k views

How prettify (newlines and indentation) an optimized HTML/JS file?

For example, I have the following bunch of characters (HTML): http://pastebin.com/pwTPp8wd I thought everyone stumbled it upon a processed file, especially when someone would speed up the processing ...
0
votes
1answer
168 views

Function to wrap html snippet in a div/span element in web-mode

I have a html snippet like this: <body> <ul> <li>jasmine</li> <li>cinthia</li> </ul> </body> How to wrap the ul element (after selection) ...
0
votes
0answers
30 views

How do I get a compact view html tags in emacs? [duplicate]

I an emacs newbie and I generally write a lot html code(~800 lines in one file). Now I want to a compact view to the completed tags. An example of this would be: <div class="col-md-4 col-sm-6">...
4
votes
0answers
333 views

How to save an eww buffer as an html file with all formatting preserved?

I would like to save an eww buffer as an html buffer with text formatting, hyperlinks, etc preserved. If I do C-x C-w, it saves only the raw text visible in the buffer. Here is my use case: I use the ...
2
votes
1answer
249 views

How can I generate the <abbr> HTML tag from org-mode?

I'm trying to migrate my current blogging platform (Pelican) where I wrote the posts using Markdown to a one based in org-mode (still considering how). One of the problems that I found is that I have ...
12
votes
1answer
2k views

Org mode - Parsing rich HTML directly when pasting?

Currently, for notetaking tools like Evernote and Quiver, I can directly copy HTML content from my favorite browser and then paste them into the app, with all the formatting + link preserved. However ...
2
votes
0answers
553 views

Extracting text from html in emacs?

Are there any packages to extract text from html in emacs? What I would like to try is to extract relevant text from browse web so that I can read papers and articles without the visual clutter of ...
2
votes
1answer
407 views

Org-mode: org-export-as-html is detected as XML, not HTML

I am exporting my org-mode file via org-export-as-html, but when I check the file type via file my/file.html, it is XML. I notice the first three lines in my HTML exported file is the following: <?...
2
votes
2answers
622 views

Encode non-html characters to html equivalent?

I must be overlooking something obvious, but I can't find a way to encode a string/region into HTML, for example "Hölle" to "H&ouml;lle". Is there anything in emacs or web-mode or any other plugin ...
11
votes
3answers
2k views

Format a HTML paper with Org-mode

Org-mode's default during HTML export is to put the author in the postamble at the bottom of the page. But I would like to export a paper like document with the author between the title and the ...
7
votes
3answers
881 views

How to add new markup to org-mode HTML export?

I would like to add a markup to org-mode, to simplify adding <audio> HTML tags. Like other inline markup: In Thai, /sabai dee mai/ is pronounced as [audio:assets/sabai.mp3] Which would export ...
0
votes
2answers
134 views

Finding the place where auto-fill-mode is getting enabled and disabling it

So, whenever I open a new buffer, auto-fill-mode is enabled. I have checked my configuration and have verified that I'm not enabling it in the init.el file. How do I find out from where it is getting ...
24
votes
1answer
3k views

Set the background of org-exported <code> blocks according to theme

I export org-mode files quite often, and almost all of them have code in them. When I do export code, it ends up coloring the text depending on my theme, however, I switch between a dark theme and a ...
11
votes
2answers
3k views

Built-in way of decoding HTML entities (i.e. &quot; or &#39;)

I recently ran into the problem of decoding html entities. I have the following two strings (Note how two methods of encoding are used, named and numbered). The old &quot;how to fold xml&quot;...
8
votes
1answer
752 views

Creating permalinks for sections in HTML exported from org-mode

By default when org-mode documents are exported to HTML, the section and sub-section links look like file:///path/to/export/location/doc.html#sec-1-1 The problem is that the above link won't point ...
26
votes
3answers
7k views

How to make Emacs render HTML without having to save the file?

If you have ever used JS Bin, you know that as you type your code (HTML, CSS, Javascript) on the right is updated to fit what you typed. I have found this to be one of the most useful tools for making ...
26
votes
2answers
5k views

New line in Title of an org-mode exported html document

I use org-mode to document stuff and usually export it to pdf (via latex) and html. If the \\ characters are at the end of a line, it forces a newline character when exporting to both pdf and html. ...
11
votes
4answers
88 views

How to convert a series of lines into a working HTML list?

Right now, this is a task I find a lot easier in something like gedit, because I can just replace "\n" (the line break) with "</li>\n<li>" and then I have a list. One of the few little ...