Uploaded image for project: 'jboss.org'
  1. jboss.org
  2. ORG-934

Syntax highlighting for multi line code not working

    XMLWordPrintable

Details

    • Workaround Exists
    • Hide

      Use Firefox or paste text in this way:
      1. In RTE insert Highlighted block - one new empty highlighted line is inserted
      2. Paste content to this highlighted line

      Show
      Use Firefox or paste text in this way: 1. In RTE insert Highlighted block - one new empty highlighted line is inserted 2. Paste content to this highlighted line

    Description

      Pasting code from IDE and trying to syntax highlight it (i.e. Java) in editor is not working.

      For example, take this code:

      Cache<Object, String> ownerCache = getOwners(k(m), 1)[0];
      ownerCache.put(k(m), v(m));
      NotifyingFuture<String> f = ownerCache.putAsync(k(m), v(m, 1));
      assert f != null;
      assertEquals(v(m), f.get());

      Open a new article and paste it. If you try to select what's been pasted with keyboard, you'll encounter ORG-933.

      If you try to select it with mouse and then syntax highlight it, it's not working.

      To be able to actually highlight it, u need to remove carriage returns and convert it into a single line, the syntax highlight it and then enter carriage returns.

      Attachments

        Activity

          People

            lkrzyzan@redhat.com Libor Krzyžanek
            rh-ee-galder Galder Zamarreño
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: