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

Syntax highlighting for multi line code not working

XMLWordPrintable

    • 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

      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.

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

                Created:
                Updated:
                Resolved: