Non-core contributed modules

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

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Trivial Trivial
  • Resolution: Duplicate
  • Affects Version/s: 1.9.4
  • Fix Version/s: None
  • Labels:
    None
  • Environment:
    Windows XP SP2
  • Database:
    Microsoft SQL
  • Difficulty:
    Moderate
  • Affected Branches:
    MOODLE_19_STABLE

Description

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

Issue Links

Activity

Hide
Anthony Borrow added a comment -

Johannes - I have not had a chance to review this with any detail but it strikes me that it may be related to MDL-20750. If it is, the prognosis is not good unless you want to switch to TinyMCE but I am not sure what the status is for TinyMCE in Moodle 1.9. I vaguely recall seeing something but have been involved in other projects. Feel free to ask around on the forums. Peace - Anthony

Show
Anthony Borrow added a comment - Johannes - I have not had a chance to review this with any detail but it strikes me that it may be related to MDL-20750. If it is, the prognosis is not good unless you want to switch to TinyMCE but I am not sure what the status is for TinyMCE in Moodle 1.9. I vaguely recall seeing something but have been involved in other projects. Feel free to ask around on the forums. Peace - Anthony
Hide
Anthony Borrow added a comment -

I am assuming these are essentially the same issue. If not, let me know. Peace - Anthony

Show
Anthony Borrow added a comment - I am assuming these are essentially the same issue. If not, let me know. Peace - Anthony
Hide
Johannes Stoll added a comment -

Yes Anthony,

I seems to me that is the same issue. I'm glad that my bug isn't based on a bug within GeSHi (I assume) which made a quite stable impression on me from the very beginning anyway whereas the HTML Editor did not ! I hope we get rid of this buggy think soon.

All I can say is: thank you for linking to the related bug - it revealed so much to me.

Do you know more on integrating TinyCME into a moodle version smaller than the planned version 2.0 ? This topic has been addressed by so many and is so overdue ! May be you can ask some you know responsible for....

Best regards from Germany,
Johannes

Show
Johannes Stoll added a comment - Yes Anthony, I seems to me that is the same issue. I'm glad that my bug isn't based on a bug within GeSHi (I assume) which made a quite stable impression on me from the very beginning anyway whereas the HTML Editor did not ! I hope we get rid of this buggy think soon. All I can say is: thank you for linking to the related bug - it revealed so much to me. Do you know more on integrating TinyCME into a moodle version smaller than the planned version 2.0 ? This topic has been addressed by so many and is so overdue ! May be you can ask some you know responsible for.... Best regards from Germany, Johannes
Hide
Anthony Borrow added a comment -

Johannes - I got caught up in things academic and am just now returning to this issue which I am resolving as a duplicate. Were you able to find information about using TinyMCE with Moodle 1.9. I would probably start by looking at http://moodle.org/mod/forum/discuss.php?d=107550 which Martin Langhoff had started some time ago. That would be the best place to chat with folks who are actively working with that modification. I have not read the entire thread (as many folks have participated and commented so it is pretty long) but if there is anything I can do to be supportive of those who may want a patch in Moodle CONTRIB just have them contact me and I will be happy to help them out. Best of luck! Peace - Anthony

Show
Anthony Borrow added a comment - Johannes - I got caught up in things academic and am just now returning to this issue which I am resolving as a duplicate. Were you able to find information about using TinyMCE with Moodle 1.9. I would probably start by looking at http://moodle.org/mod/forum/discuss.php?d=107550 which Martin Langhoff had started some time ago. That would be the best place to chat with folks who are actively working with that modification. I have not read the entire thread (as many folks have participated and commented so it is pretty long) but if there is anything I can do to be supportive of those who may want a patch in Moodle CONTRIB just have them contact me and I will be happy to help them out. Best of luck! Peace - Anthony
Hide
Anthony Borrow added a comment -

Closing all of my resolved issues. Peace - Anthony

Show
Anthony Borrow added a comment - Closing all of my resolved issues. Peace - Anthony

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: