View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 06560 | Bug reports | Data Entry (non public) | public | 2012-09-17 20:17 | 2012-09-18 08:27 |
| Reporter | Assigned To | c_schmitz | |||
| Priority | high | Severity | tweak | ||
| Status | closed | Resolution | no change required | ||
| Product Version | 1.92+ | ||||
| Summary | 06560: Question code within is parsed and changed | ||||
| Description | I am in need to input C/C++ source code in my surveys. I tried both the HTML editor in source mode and the simple textbox, but all the code I input between andtags is parsed and "corrected". For example I cannot write #include <iostream> because it is interpreted as a tag, so it is not displayed and the closing tag is also inserted. So I have to replace it with #include < iostream >, which is wrong. Same goes for special entities such as < or >. | ||||
| Steps To Reproduce | Enter the following in the editor
| ||||
| Tags | No tags attached. | ||||
| Bug heat | 4 | ||||
| Complete LimeSurvey version number (& build) | 120909 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | |||||
| Database type & version | MySQL 5.5.25a | ||||
| Server OS (if known) | Win 7 | ||||
| Webserver software & version (if known) | XAMPP | ||||
| PHP Version | 5.4.4 | ||||
| Git branch / Pull Request URL | |||||
|
I am talking about pre-formatted sections in HTML. Funny enough the pre tags seem to work here too, so they have been "cut out" from the subject and desription. |
|
|
I am not sure how this is a bug? Just insert it in HTML WYSIWYG editor mode (not in source) and it will be correctly parsed. |
|
|
I am sorry, but I have tried any editor configuration, both the HTML editor in source mode and no editor at all, and the problem persists. Non-source mode is a no go because I need the code to stand out. Source within pre tags is usually displayed using monospaced fonts, which is what I need, and it is also the only option available since the editor does not allow to change fonts (at least not on my configuration). I also apologize for the first reply that was quite harsh, hence the edit. |
|
|
Ok, found a temporary solution. Using the HTML editor 1) Add pre tags in source code mode Its annoying but I guess I can live with it. |
|
|
If you use the full-screen version of the editor (left most button in the toolbar) you have the option to select the style 'formatted' in the format box which will put (pre) tags as intended without the need to enter source code mode. |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2012-09-17 20:17 |
|
New Issue | |
| 2012-09-17 20:20 |
|
Note Added: 20716 | |
| 2012-09-17 22:42 | c_schmitz | Note Added: 20717 | |
| 2012-09-17 22:42 | c_schmitz | Assigned To | => c_schmitz |
| 2012-09-17 22:42 | c_schmitz | Status | new => feedback |
| 2012-09-17 23:32 | c_schmitz | Status | feedback => closed |
| 2012-09-17 23:32 | c_schmitz | Resolution | open => no change required |
| 2012-09-18 02:33 |
|
Note Added: 20718 | |
| 2012-09-18 02:33 |
|
Status | closed => feedback |
| 2012-09-18 02:33 |
|
Resolution | no change required => reopened |
| 2012-09-18 02:39 |
|
Note Edited: 20718 | |
| 2012-09-18 02:39 |
|
Note Edited: 20718 | |
| 2012-09-18 03:53 |
|
Note Edited: 20718 | |
| 2012-09-18 03:58 |
|
Note Added: 20719 | |
| 2012-09-18 03:58 |
|
Status | feedback => assigned |
| 2012-09-18 08:27 | c_schmitz | Note Added: 20720 | |
| 2012-09-18 08:27 | c_schmitz | Status | assigned => closed |
| 2012-09-18 08:27 | c_schmitz | Resolution | reopened => no change required |