Code Button
Moderator: Thorsten
Code Button
Hallo,
möchte mir eine Wissensdatenbank aufbauen hauptsächlich für meine Programmierung. Nun fehlt mir der Code Button bzw Tag. Kann mir jemand bitte helfen? habe die 2 und 2.5er Version bereits versucht, aber überall fehlt er. danke
möchte mir eine Wissensdatenbank aufbauen hauptsächlich für meine Programmierung. Nun fehlt mir der Code Button bzw Tag. Kann mir jemand bitte helfen? habe die 2 und 2.5er Version bereits versucht, aber überall fehlt er. danke
Re: Code Button
Hi,
du kannst übergangsweise auch <code> per Hand einfügen. Der Button soll in die 2.5 wieder rein, dauert aber noch etwas.
bye
Thorsten
du kannst übergangsweise auch <code> per Hand einfügen. Der Button soll in die 2.5 wieder rein, dauert aber noch etwas.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Code Button
Hmm...funktioniert so nicht. siehe screen. oder mache ich etwas falsch?! =)
You do not have the required permissions to view the files attached to this post.
Re: Code Button
Hi,
bist du in den HTML-Modus gewechselt?
bye
Thorsten
bist du in den HTML-Modus gewechselt?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Code Button
Nein, wenn ich über EDIT HTML Source mache sieht es sogar noch schlimmer aus. Keine Absätze..alles imgrunde in eine Zeile.Thorsten wrote:Hi,
bist du in den HTML-Modus gewechselt?
bye
Thorsten
Re: Code Button
Hi,
dann musst du erstmal leider "preformatted" nehmen. Sorry!
bye
Thorsten
dann musst du erstmal leider "preformatted" nehmen. Sorry!
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Code Button
I have tried both of these in the new RC
Neither work and are simply eaten and disappear.
Please, pretty please, can we have a way to embed code I seriously would like to swap back from using a wiki but I need to be able to show code samples.
Thanks!
Larry
Code: Select all
<code php>
<?php
$if( a == b
{
xxx;
}
</code>
<pre>
<?php
$if( a == b
{
xxx;
}
</pre>
Please, pretty please, can we have a way to embed code I seriously would like to swap back from using a wiki but I need to be able to show code samples.
Thanks!
Larry
Re: Code Button
Hi Larry,
I'll work on it.
bye
Thorsten
I'll work on it.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Code Button
I will donate US$25 (is that ok?) to have a way to embed code
I really love phpMyFAQ this has been my only real grouch.
Thanks guys!
Larry
Ended up as Eu 25 as I didn't want to do the conversions in my head 8)

Thanks guys!
Larry
Ended up as Eu 25 as I didn't want to do the conversions in my head 8)
Re: Code Button
Hi,
thank you very much. I'll work on that today to bring that feature back.
bye
Thorsten
thank you very much. I'll work on that today to bring that feature back.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Code Button
Hi,
phpMyFAQ 2.5.0 final will support syntax highlighting for several programming languages like PHP, Perl, Python, Ruby, Java, C++ and SQL.
bye
Thorsten
phpMyFAQ 2.5.0 final will support syntax highlighting for several programming languages like PHP, Perl, Python, Ruby, Java, C++ and SQL.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Code Button
Testing the one in svn...
Parsed code block
which in html source is...
Would say that pre hasn't been added to allowable tags 
Larry
Parsed code block
Code: Select all
<p>Hello</p> <p> </p> <pre class="brush: php;fontsize: 100; first-line: 1;">function normalizePath($path){ if (substr(PHP_OS, 0, 3) == 'WIN'){ $path = preg_replace('|^[A-Za-z]:|', '', $path); $path = str_replace("\\", '/', $path); } return $path; } </pre>
Code: Select all
<p><p>Hello</p>
<p> </p>
<pre class="brush: php;fontsize: 100; first-line: 1;">function normalizePath($path){
if (substr(PHP_OS, 0, 3) == 'WIN'){
$path = preg_replace('|^[A-Za-z]:|', '', $path);
$path = str_replace("\\", '/', $path);
}
return $path;
}
</pre></p>

Larry
Re: Code Button
Hi Larry,
I don't understand your quote...
bye
Thorsten
I don't understand your quote...

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Code Button
I added code with the button, and that's how it mangles. Just try adding a code block.