Difference between code and verbatim in Org-mode?










16















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!










share|improve this question




























    16















    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!










    share|improve this question


























      16












      16








      16


      2






      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!










      share|improve this question
















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 14 '18 at 21:12









      Langston

      623321




      623321










      asked Sep 24 '13 at 21:02









      ezequiel-garzonezequiel-garzon

      1,26941628




      1,26941628






















          2 Answers
          2






          active

          oldest

          votes


















          5














          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.






          share|improve this answer


















          • 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











          • This is outdated.

            – Clément
            Aug 6 '16 at 19:35


















          8














          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...






          share|improve this answer























          • Thanks for your reply!

            – ezequiel-garzon
            Sep 24 '13 at 22:40










          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
          );



          );













          draft saved

          draft discarded


















          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









          5














          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.






          share|improve this answer


















          • 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











          • This is outdated.

            – Clément
            Aug 6 '16 at 19:35















          5














          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.






          share|improve this answer


















          • 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











          • This is outdated.

            – Clément
            Aug 6 '16 at 19:35













          5












          5








          5







          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.






          share|improve this answer













          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.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          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 modify org-html-text-markup-alist.

            – amitp
            Apr 20 '14 at 1:08











          • This is outdated.

            – Clément
            Aug 6 '16 at 19:35












          • 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











          • 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













          8














          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...






          share|improve this answer























          • Thanks for your reply!

            – ezequiel-garzon
            Sep 24 '13 at 22:40















          8














          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...






          share|improve this answer























          • Thanks for your reply!

            – ezequiel-garzon
            Sep 24 '13 at 22:40













          8












          8








          8







          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...






          share|improve this answer













          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...







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Sep 24 '13 at 21:30









          fniessenfniessen

          3,3991113




          3,3991113












          • 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





          Thanks for your reply!

          – ezequiel-garzon
          Sep 24 '13 at 22:40

















          draft saved

          draft discarded
















































          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          How to how show current date and time by default on contact form 7 in WordPress without taking input from user in datetimepicker

          Syphilis

          Darth Vader #20