From: "Martin G. Skjæveland" <m.g.skjaeveland@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Specifying ATTR_HTML class for source blocks
Date: Thu, 3 Oct 2019 10:10:54 +0200 [thread overview]
Message-ID: <9acd809d-994f-5f4b-276d-f609dd4865c2@gmail.com> (raw)
Hi all,
I would like my source blocks to be exported to HTML as textareas with a
class attribute -- so I can later use this in my javascript code. I can
use ":textarea t" [1], but it seems that other attributes except width
and height are ignored:
#+ATTR_HTML: :textarea t :class testing
#+BEGIN_SRC n3
My code
#+END_SRC
gives
<textarea cols="80" rows="1">My code
</textarea>
and, testing without ":textarea",
#+ATTR_HTML: :class testing
#+BEGIN_SRC n3
My code
#+END_SRC
gives
<pre class="src src-n3">My code
</pre>
Preferably, I want the following html:
<textarea cols="80" rows="1" class="testing">My code
</textarea>
Is there a way to achieve this?
Thanks,
Martin
[1] https://orgmode.org/manual/Text-areas-in-HTML-export.html
reply other threads:[~2019-10-03 8:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9acd809d-994f-5f4b-276d-f609dd4865c2@gmail.com \
--to=m.g.skjaeveland@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).