Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-1606

Indention doesn't work with (latest) GeSHi Filter provided here at moodle.org

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Trivial Trivial
    • None
    • 1.9.4
    • None
    • Windows XP SP2
    • Microsoft SQL
    • Moderate
    • MOODLE_19_STABLE

      When I use the GeShi filter offered here at moodle.org and write something like this into the textarea in text or also in html mode

      [code csharp linenumbers]
      public class TestClass
      {
      <placeholder for an indent mostly a div>private int i; // This line in indented to the right !! please notice that the presentation is crappy (I know)
      <--------another placeholder for anpther indent-----> // Notice that the placeholders are not meant to be HTML tags !! I hope you get the idea
      }
      [/code]

      Whether or not I <pre> the above in any way I get the following:

      public class TestClass
      {
      <actual html div tag for indention>private int i; // The <div>tags and all other html elements are visible but the C# code is perfectly highlighted !!!!!!!!!!!!
      <actual html div tag for indention>// Notice that these placeholders ARE meant to be REAL VISIBLE HTML TAGS
      }

      THIS WAS NOT EXPECTED !!

      There should be a perfectly highlighted little C# class with indention to the right (both commented lines)

      Was isn't the indention preserved in the final output within a e.g. Multiple-Choice question.
      I tried several hours now to get this done. I looked on moodle.org, GeSHi's home, Nigel's website (dev of GeSHi) for the solution but nothing.

      Writing <div> in html mode or formatting idention in text are the same mess.

      Or just point out the solution if there is any !

      Please help me ! Please !

      Sincerely yours,
      Johannes

        1. moodle_highlighted_but_wrong_output_geshi.jpg
          15 kB
          Johannes Stoll
        2. moodle_htmlmode_geshi.JPG
          50 kB
          Johannes Stoll
        3. moodle_textmode_geshi.JPG
          38 kB
          Johannes Stoll

            aborrow Anthony Borrow
            goblike Johannes Stoll (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.