Linuxdelta
LinuxDelta => Knowledgeroot => Topic started by: gptucci on January 22, 2012, 08:02:55 AM
-
Hi
I am using knowledgeroot as a technical database, and I have to say that the software is fantastic !
We have only a little issue: it is very difficult to edit code snippets (PHP and HTML). I know that the problem is not related to knowledgeroot but at the editors, but do you have some advice how to insert code snippets in the contents ?
Now we are using FCKeditor, because all the others don't work at all.
Tnx
-
Hi,
i also use fckeditor for codesnippets.
But it should be possible to use the other editors. They sould all create pre tags if you use preformatted as style.
It could be possible to use something like geshi:
http://qbnz.com/highlighter/
For code highlighting.
So did you have a problem to create the pre tags or to have some syntax highlighting?
regards,
Frank
-
Hi
Tnx for response.
If you try the next line (added in HTML), using ckeditor or tinymce, nothing works !
<pre><!--?php phpinfo() ?--></pre>
Only using FCKeditor works !
I will try geshi
Tnx
-
Hi
I want to try Geshi but... nothing....
The button does not appear !
I get the in apache2/error.log the error File not found for plugin.js.
Can you help me ?
Tnx
I'm not an expert in php/html/java
-
Hi,
i will try it this evening and will let you know if i found a solution.
Frank
-
Tnx for response and your kindness !
-
Hi,
so i have tested the editors.
With all, i could created text with style "preformated".
So you could create some custom css code to style this pre tags.
The solution with geshi is not so easy. I could try to create an extension in the future for geshi.
But to use that you need to modify the generated html code from the editors.
The extension could be work like the wordpress extension wp-syntax.
Frank
-
Hi
tnx for response.
I've tried to use CKEditor, and directly in HTML I have written
<pre>
<!--?php phpinfo() ?-->
</pre>
But does not work !
I'm sorry for the my stupid question: I have done a mistake ?
Tnx for all
-
Hi,
so i think i did not understand you.
What is your expected result for this?
What should happen?
Frank
-
Hi
Tnx
I want to use the system for code snippets.
If i write <!--?php phpinfo() ?--> I want to see this thext
<!--?php phpinfo() ?-->
in the middle of the explanatory text that I write about the use of phpinfo.
Example
.......................
To check that Php5 is installed and to verify the current running version create in /var/www/ a file named test.php, and insert this single line.
<!--?php phpinfo() ?-->
........................
But now when I write the upper and I do not use FCKeditor I see
.......................
To check that Php5 is installed and to verify the current running version create in /var/www/ a file named test.php, and insert this single line.
........................
I've tried to insert the line <!--?php phpinfo() ?--> in HTML too, using <pre><!--?php phpinfo() ?--></pre> but I do not see anything !
I must use FCKEditor (in wysiwyg transform this line in HTML like <p><!--?php phpinfo() ?--></p>) and all works fine !
Thank you for your patience
-
Hi,
ok i have tested it with ckeditor and tinymce on this page:
http://demo-dev.knowledgeroot.org/index.php?id=2015
Seems to work for me as expected.
Which knowledgeroot version are you using?
Which knowledgeroot extensions are active in your installation?
Which php version are you using?
Frank
-
Hi
In the you example I can see all correctly.
But when I try to enter in edit mode the line <!--?php phpinfo() ?--> disappear !!!
Is this correct ???
I'm using latest firefox, but I have tried with latest explorer too.
Is the problem related to the browser ??
-
Hi,
ok i see the problems ;)
I have tested tinymce and ckeditor on their homepages.
As default it should work.
I need to update the extensions to the newest versions and test again with knowledgeroot.
It could also be a problem with the extension libsecure.
But i need to test it with the newest versions of tinymce and ckeditor.
regards,
Frank
-
Tnx
I'm using Knowledgeroot version 1.0.3, and al thye extension are upgraded to the lastest version.
Tnx for your kindness !
-
Hi,
i have upgraded the extensions ckeditor and tinymce.
Could you try it with the newest versions with and without extension libsecure enabled.
regards,
Frank
ps: sorry for late reply
-
Hi
Tnx for response
I'm sorry but it does not work
If I use ckeditor, without libsecure, and enter the line in source I get:
<code><!--phpinfo()?--></code>
Perfect: all work fine ! But if I try to edit another time the same page, when I press the edit button the line trasform itself in:
<code><!--phpinfo()?--></code>
.....and disappear !
I have tried with
<pre><code><!--phpinfo()?--></code></pre>
but nothing to do
When I try to open another time in edit mode the software transform the line in
<pre><code><!--phpinfo()?--&></code></pre>
...and disappear !
Tnx
-
Hi,
i have also tested with ckeditor and tinymce.
The same problems here.
But this are bugs in ckeditor and tinymce.
So the only way to fix this problems is to open bug reports on both projects.
So, i am not sure how to help you now.
A solution could be to create code snippets with an extra extension as plaintext or something else.
Frank