Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-3883

Some Erlang files don't syntax highlight properly

    XMLWordPrintable

Details

    Description

      -module(foo).
      -define(STATE,State#state).
      Foo=1.
      

      Arguably it's bad Erlang practice but that's a topic of its own.
      To test whether it was smtg wrong with highlight.js I used this html file:

      <!DOCTYPE html>
      <head>
          <link rel="stylesheet" href="http://yandex.st/highlightjs/7.3/styles/default.min.css">
          <script src="http://yandex.st/highlightjs/7.3/highlight.min.js"></script>
          <script>hljs.initHighlightingOnLoad();</script>
      </head>
      <body>
          <pre>
          <code>
      -module(foo).
      -define(STATE,State#state).
      Foo=1.
          </code>
          </pre>
      </body>
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              f3c340dfc1de Alexandre Beaulne
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: