Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Trivial
-
Resolution: Duplicate
-
Affects Version/s: 1.9.4
-
Fix Version/s: None
-
Component/s: Filter: {none of the above}
-
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
Attachments
Issue Links
| This issue duplicates: | ||||
| MDL-20750 | Problem with keeping the Indentation in Forums and "Online text" Assignments... |
|
|
|
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