The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
1answer
31 views

CUSTOM_ID for HTML breaks “next line” in LaTeX

If in Org, I have **** Scancode :PROPERTIES: :CUSTOM_ID: input-types-scancode :END: Representing a Scancode is simple. the ID properly gets set in HTML: <ol class="org-ol"> <li><...
0
votes
0answers
36 views

org-mode: Remove loading message when exporting HTML and then converting to PDF

My goal is to export an HTML document and convert it to a PDF so I can have some of the advanced syntax highlighting and source code background coloring options in a PDF file. It seems to be working ...
0
votes
0answers
49 views

How to export trees to HTML table

Is there a built-in function/feature to export org headlines (not just properties drawers) and associated content into a HTML table? Can this be done with a custom css and if so, what might the ...
1
vote
1answer
28 views

Does `<meta charset=utf-8 />` obviate `-*- coding: utf-8 -*-` in an HTML file?

Is writing <meta charset=utf-8 /> in an HTML file (being edited by Emacs) sufficient, or do I also need to specify -*- coding: utf-8 -*- on the first line? In other words, do I have to write &...
0
votes
0answers
27 views

Wrap a block of html with one or multiple tags

Often my point is at a paragraph <p>The quick brown fox jumped over the fence</p> <br> Example and I want to wrap it like this <div class="row"> <div class="columns">...
0
votes
2answers
61 views

How to get current language at point?

How can i get current programming language at current cursor. For example, if my cursor is inside script tag, then it should return js or javascript and if it is inside style tag, then it should be ...
0
votes
0answers
49 views

web-mode didn't work properly under Emacs

I am using Emacs 25.3.1 under MS Windows 64-bit, Everything seems working fine except the web-mode. If I try to edit an HTML file there is no syntax highlighting, when mixing PHP and HTML only the PHP ...
1
vote
1answer
31 views

How write begin_export html blocks in an inline fashion?

A code which takes up several lines of screen realestate can be written as Inline code src_sh[:exports code]{echo -e "test"} foo source: https://stackoverflow.com/a/16193498 Is is possible to write ...
0
votes
0answers
15 views

hideshowvis text shown in Org mode source code

I am using in Org-mode to document inherited Java code. Here is shown an enum: However, when I export to HTML, the document is rendered like this: Which incorrectly shows a *hideshowvis* text. I ...
0
votes
1answer
28 views

How to disable commented date in org mode html export

When you export an org file to html, a date will appear in the html source though commented. Example, line 5 of https://imgur.com/a/BY4QSdt .
1
vote
1answer
30 views

Is it possible to disable wrapping of inline HTML with <p> tags?

If I have the following line in an org-mode file @@html:<section>@@ If I export to HTML, it becomes: <p> <section><br> </p> This applies the CSS I have for my <p ...
0
votes
0answers
13 views

Stop indentation from altering pre-formatted text

.preformatted { white-space: pre-wrap; } <div class="preformatted"> THIS TEXT IS PREFORMATTED <= no spaces there, before pasting this text in this code ; It should render ...
0
votes
0answers
22 views

browse-url doesn't get href from html formatted mails

I'm using notmuch (https://notmuchmail.org/notmuch-emacs/). When viewing the HTML part of a mail that has a link (using a href tag), I can right-click on it and select "Open Link in <browser>". ...
0
votes
1answer
140 views

Setting variable for org-mode html export?

I am trying to set org-html-link-org-files-as-html to nil for a single org-file (but have the value equal t for all other org files). This is a variable defined in ox-html. (defcustom org-html-link-...
0
votes
1answer
88 views

Definitive answer to org-mode export HTML versus LaTeX

I keep being stymied by the apparent incompatibility of HTML and LaTeX export. Here's what I have in my .org file header: #+LATEX_CLASS: article #+LATEX_CLASS_OPTIONS: [american] #+LATEX_HEADER: \...
0
votes
1answer
66 views

Cannot export org file into html. Error: make-htmlize-fstruct: Symbol’s function definition is void: record

For some reason I cannot export certain org-mode files to html. Org-files without headers work fine. However, if I have a file with #+TITLE: This is the title of my website #+HTML_HEAD: <link rel="...
0
votes
2answers
77 views

How to programmatically export org buffer to html ( mimic the org mode sequence `C-c C-e h o` )?

In brief: I would like to programmatically mimic the org mode sequence C-c C-e h o to export a buffer to HTML and open the web browser. My scenario: I have a written a shell-command (in my code ...
0
votes
0answers
24 views

Rmarkdown-like export of Leaflet for R webmap to html from org-mode

With RMarkdown it's easy to embed an interactive webmap. E.g.: --- title: Some title output: rmarkdown::html_document --- ```{r} library(leaflet) leaflet(width = "100%", height = "650px") %>%...
0
votes
0answers
71 views

How to change caption size in org-mode export to HTML

Say I have the following figure: #+ATTR_HTML: :title This Figure #+ATTR_HTML: :width 50% #+CAPTION: blah blah blah. [[./figure.png]] The resulting caption in the .html (generated from org-html-...
0
votes
0answers
30 views

Making one HTML web-page for each chapter of an Org document

I want to write some web-pages in the style of a book. Consider for instance the following org mode example * Introduction Some text * Chapter 1 ** Section 1 Some text ** Section 2 Some ...
0
votes
1answer
124 views

Make gnus display inline html images by default

How can I make gnus display inline images from html articles by default? A command exists to display them on a per-article basis: gnus-article-show-images however I would like this behavior ...
2
votes
1answer
33 views

Exporting help for multiple emacs lisp symbols into a single Texinfo file

I am looking for a way to produce HTML documentation for functions and variables defined in my .el files. One way I have seen suggested is by using texi2html tool. The challenge is to produce the ...
1
vote
0answers
167 views

exporting .svg images to .pdf in org-mode

I have a set of .svg images that I need to export to pdf by using org-mode. Even though I can see the images inside emacs, I cannot export them to .pdf. On the other hand, if I export my .org file to ...
0
votes
1answer
70 views

Emacs forces me to write HTML tags instead of PHP code

When I edit a PHP file, and when to type for example <?php I get the cursor moved to the lower buffer suggesting me to write an HTML tag instead: How to circumvent this issue?
2
votes
1answer
78 views

How to prevent Emacs from converting JavaScript symbols to HTML code?

When I insert a portion of JavaScript code within an HTML file, Emacs convert some basic JS symbols to their HTML code. For example when I type >, Emacs convert it automatically to &gt; which ...
0
votes
2answers
91 views

How to prevent losing indentation when editing JavaScript code within HTML files in Emacs?

When I edit JavaScript code which exists in an HTML file, I lose code indentation whenever I press Enter. first line of code: second line of code # Press Enter here Result after pressing Enter: ...
2
votes
1answer
73 views

eww/w3m search based on underlying page source

Is there a robust/general way in eww browser (or alternatively w3m in emacs) by which I can get the character position in a rendered page from a known character position in the page source? I'd like ...
1
vote
1answer
458 views

Live view an html document in emacs

Running emacs 25.2.2. Here is something (apparently) simple I want to do, but am unable to: I am editing an html document. I want to see the same document in the internal browser in a vertically ...
4
votes
2answers
258 views

How to put inline quotes in an org file for html export

I am exporting an org file with org-reveal. I would like to have the following html markup when exporting: <q cite="http://searchservervirtualization.techtarget.com/definition/Our-Favorite-...
0
votes
1answer
34 views

Convert HTML umlauts to corresponding characters

I have a list of strings containing german umlauts as their html representation, e.g. ü is &uuml; and so on. Is there an easy, maybe built-in, way to convert them within strings, i.e. "Pr&uuml;...
3
votes
0answers
52 views

dvisvgm baseline in org-mode HTML export

When using #+OPTIONS: tex:dvisvgm and exporting to HTML with org-mode, the baseline of the latex exported images does not match the baseline of the text (when using subscripts, for instance). Is there ...
1
vote
0answers
534 views

mu4e : display inline images in html emails

I'd like to display inline images in html email in mu4e. I tried to ask to the creator of mu4e, but he told me that it's out of the scope of mu4e to do that. However, I can display for example the ...
0
votes
1answer
203 views

Batch convert local HTML webpages to plain text

Here is my zsh code function eweb() { emacsclient -t --eval "(eww-open-file \"$1\")" "(save-buffer \"$2\")" } There are two parameters, the first is the local webpage filename, for example, ./1....
2
votes
1answer
398 views

Where is mhtml mode defined? And why am I getting it by default when I open HTML files?

Under some very special conditions (namely, performing one particular edit in one particular HTML file), my Emacs session will freeze completely, and starts consuming ~100% of the CPU. The only ...
0
votes
1answer
44 views

Tell Emacs to use always the same browser

In my experience xhtml-mode's browse-url-of-buffer command uses different browsers depending, I guess, on the different desktop environments (or on their absence sometimes). My question, how can I ...
2
votes
1answer
221 views

how can I control table column widths when exporting to html?

I would like to specify the width of each column in tables that are exported from an org mode file to html. In terms of html I can think of two possible solutions, (i) add class attributes to each ...
1
vote
0answers
293 views

How to configure org-html-export-as-html to export drawer to html?

So, right now, I am trying to build my website with Nikola static site generator. There is a nice orgmode plugin for it where I can write my content in orgmode and Nikola can then render it to html (...
3
votes
2answers
337 views

Emacs picking the wrong browser

I'm working under org-mode. When I click on a [http://example.com] link, it opens a tab in Firefox as expected. The .emacs config is: '(browse-url-browser-function (quote browse-url-firefox)) ...
0
votes
1answer
530 views

yaml frontmatter in org mode

When exporting and org file in emacs to either html or md for a jekyll-based web page, the yaml front matter gets twisted. As suggested here, I have attempted enclosing it in an html block in the ...
4
votes
0answers
581 views

orgmode image export side by side to both latex and html

In org export, I want to place two images side by side. I want them to be side by side in both LaTeX export and HTML export. In the example below, the first pair works for LaTeX and the second pair ...
3
votes
0answers
132 views

Is AsciiMath Possible in Org-mode?

I have been using Org-mode for largely everything including for maths text. Although I have gotten pretty good at writing LaTeX snippets, I have a lot of trouble reading it. I much prefer the syntax ...
0
votes
1answer
264 views

Code block evaluated when exporting, not when publishing

I have this basic org publishing project to test that code blocks evaluation is triggered by publishing in html (org-html-publish-to-html). While exporting through org-mode export dispatcher does ...
2
votes
0answers
90 views

How to export org subtree as nested <ul>/<ol> HTML list?

I have a section of an org-file where there are only headings with no content within them, each line is a (sub)heading. * heading 1 * heading 2 ** heading 2.1 ** heading 2.2 *** heading 2.2.1 * ...
3
votes
0answers
34 views

syncing html with w3m

How can I split Emacs to two buffers, one for html and the other for w3m so that when I save the html it refreshes the w3m buffer. Also, when I press E in the w3m buffer it takes me to the ...
0
votes
2answers
105 views

can I quickly clean up html files with emacs (prelude)

How do you clean up an html file? For example, this file has one too many empty line between the div tags. I would like cleanup to leave only one blank line there. <html> <body> &...
3
votes
0answers
42 views

Synchronised scrolling of HTML file and eww buffer

I am editing a HTML file. I have done C-x 3. Now, in the other split window, I want to open a browser, such as eww. And as I move in the HTML file, I want the browser window to show the ...
1
vote
1answer
183 views

org-mode inline html while exporting using ox-pandoc

I am not able to use inline html through macro in org-mode when exporting through ox-pandoc. For example if I use @@html:<span class="small">@@Small Text@@html:</span>@@ and export the ...
0
votes
2answers
154 views

Orgmode export html with fontawesome characters

I have an org document in which I inserted fontawesome characters (with the package fontawesome). When exporting to html, the characters are exported as is instead of being exported in html ...
1
vote
1answer
371 views

solution for html “intellisense” style completion for emacs like Atom or Brackets have

I've started taking an html course and I'm trying to figure out how to add functionality to emacs that exists in programs like atom or brackets. I've seen a few modes web-mode.el and nxhtml mentioned ...
1
vote
1answer
188 views

Syntax highlighting inside HTML5 <script> tags

I was curious if there was a way to get highlighting/indentation for any JavaScript that's inside of HTML5 tags? I don't frequently use JavaScript but for a class I'm in we're working with it. I ...