Difference between code and verbatim in Org-mode?
Does anybody know the intended difference between ~code~
and =verbatim=
markup in Org-mode? Exporting to HTML in both cases yields <code>
tags. Thanks in advance!
emacs org-mode
add a comment |
Does anybody know the intended difference between ~code~
and =verbatim=
markup in Org-mode? Exporting to HTML in both cases yields <code>
tags. Thanks in advance!
emacs org-mode
add a comment |
Does anybody know the intended difference between ~code~
and =verbatim=
markup in Org-mode? Exporting to HTML in both cases yields <code>
tags. Thanks in advance!
emacs org-mode
Does anybody know the intended difference between ~code~
and =verbatim=
markup in Org-mode? Exporting to HTML in both cases yields <code>
tags. Thanks in advance!
emacs org-mode
emacs org-mode
edited Nov 14 '18 at 21:12
Langston
623321
623321
asked Sep 24 '13 at 21:02
ezequiel-garzonezequiel-garzon
1,26941628
1,26941628
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
In Org 8.0 (ox-* exporters) there are a few differences.
In LaTeX
- Code comes out as `verbsepcontentsep where sep is found as an appropriate delimiter.
- Verbatim comes out as textttcontent with certain characters escaped/protected.
In HTML and ODT
Code and Verbatim are treated identically
In TeXInfo
The same behaviour is followed as in LaTeX.
1
If you want to make code and verbatim different in html output, you can modifyorg-html-text-markup-alist
.
– amitp
Apr 20 '14 at 1:08
This is outdated.
– Clément
Aug 6 '16 at 19:35
add a comment |
Same for LaTeX...
Though, as they are fontified differently in your buffer, you can use them for different semantics.
Personally, I use "code" for var/func names, commands to be typed, etc; and "verbatim" for paths or file names.
I would have loved to have the same number of markups as there are in TeX Info, but that's not the case...
Thanks for your reply!
– ezequiel-garzon
Sep 24 '13 at 22:40
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f18991981%2fdifference-between-code-and-verbatim-in-org-mode%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
In Org 8.0 (ox-* exporters) there are a few differences.
In LaTeX
- Code comes out as `verbsepcontentsep where sep is found as an appropriate delimiter.
- Verbatim comes out as textttcontent with certain characters escaped/protected.
In HTML and ODT
Code and Verbatim are treated identically
In TeXInfo
The same behaviour is followed as in LaTeX.
1
If you want to make code and verbatim different in html output, you can modifyorg-html-text-markup-alist
.
– amitp
Apr 20 '14 at 1:08
This is outdated.
– Clément
Aug 6 '16 at 19:35
add a comment |
In Org 8.0 (ox-* exporters) there are a few differences.
In LaTeX
- Code comes out as `verbsepcontentsep where sep is found as an appropriate delimiter.
- Verbatim comes out as textttcontent with certain characters escaped/protected.
In HTML and ODT
Code and Verbatim are treated identically
In TeXInfo
The same behaviour is followed as in LaTeX.
1
If you want to make code and verbatim different in html output, you can modifyorg-html-text-markup-alist
.
– amitp
Apr 20 '14 at 1:08
This is outdated.
– Clément
Aug 6 '16 at 19:35
add a comment |
In Org 8.0 (ox-* exporters) there are a few differences.
In LaTeX
- Code comes out as `verbsepcontentsep where sep is found as an appropriate delimiter.
- Verbatim comes out as textttcontent with certain characters escaped/protected.
In HTML and ODT
Code and Verbatim are treated identically
In TeXInfo
The same behaviour is followed as in LaTeX.
In Org 8.0 (ox-* exporters) there are a few differences.
In LaTeX
- Code comes out as `verbsepcontentsep where sep is found as an appropriate delimiter.
- Verbatim comes out as textttcontent with certain characters escaped/protected.
In HTML and ODT
Code and Verbatim are treated identically
In TeXInfo
The same behaviour is followed as in LaTeX.
answered Sep 25 '13 at 18:35
Jonathan Leech-PepinJonathan Leech-Pepin
6,13112040
6,13112040
1
If you want to make code and verbatim different in html output, you can modifyorg-html-text-markup-alist
.
– amitp
Apr 20 '14 at 1:08
This is outdated.
– Clément
Aug 6 '16 at 19:35
add a comment |
1
If you want to make code and verbatim different in html output, you can modifyorg-html-text-markup-alist
.
– amitp
Apr 20 '14 at 1:08
This is outdated.
– Clément
Aug 6 '16 at 19:35
1
1
If you want to make code and verbatim different in html output, you can modify
org-html-text-markup-alist
.– amitp
Apr 20 '14 at 1:08
If you want to make code and verbatim different in html output, you can modify
org-html-text-markup-alist
.– amitp
Apr 20 '14 at 1:08
This is outdated.
– Clément
Aug 6 '16 at 19:35
This is outdated.
– Clément
Aug 6 '16 at 19:35
add a comment |
Same for LaTeX...
Though, as they are fontified differently in your buffer, you can use them for different semantics.
Personally, I use "code" for var/func names, commands to be typed, etc; and "verbatim" for paths or file names.
I would have loved to have the same number of markups as there are in TeX Info, but that's not the case...
Thanks for your reply!
– ezequiel-garzon
Sep 24 '13 at 22:40
add a comment |
Same for LaTeX...
Though, as they are fontified differently in your buffer, you can use them for different semantics.
Personally, I use "code" for var/func names, commands to be typed, etc; and "verbatim" for paths or file names.
I would have loved to have the same number of markups as there are in TeX Info, but that's not the case...
Thanks for your reply!
– ezequiel-garzon
Sep 24 '13 at 22:40
add a comment |
Same for LaTeX...
Though, as they are fontified differently in your buffer, you can use them for different semantics.
Personally, I use "code" for var/func names, commands to be typed, etc; and "verbatim" for paths or file names.
I would have loved to have the same number of markups as there are in TeX Info, but that's not the case...
Same for LaTeX...
Though, as they are fontified differently in your buffer, you can use them for different semantics.
Personally, I use "code" for var/func names, commands to be typed, etc; and "verbatim" for paths or file names.
I would have loved to have the same number of markups as there are in TeX Info, but that's not the case...
answered Sep 24 '13 at 21:30
fniessenfniessen
3,3991113
3,3991113
Thanks for your reply!
– ezequiel-garzon
Sep 24 '13 at 22:40
add a comment |
Thanks for your reply!
– ezequiel-garzon
Sep 24 '13 at 22:40
Thanks for your reply!
– ezequiel-garzon
Sep 24 '13 at 22:40
Thanks for your reply!
– ezequiel-garzon
Sep 24 '13 at 22:40
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f18991981%2fdifference-between-code-and-verbatim-in-org-mode%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown