Inserting code in a FAQ

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
romainp
Posts: 25
Joined: Mon May 09, 2016 4:14 pm

Inserting code in a FAQ

Post by romainp »

Hi!
What prevent my company to use phpMyFaq is the faq that we can use code in the FAQ, meaning formated text as code (not even code type detection but put some text as "code")
Unless I have missed how to do that, do you think you can implement that in future version?
Thanks!
Thorsten
Posts: 15805
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Inserting code in a FAQ

Post by Thorsten »

Hi,

phpMyFAQ 4.1 (currently in the RC phase) includes a Code Snipped Plugin for the WYSIWYG editor. :-)

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Thorsten
Posts: 15805
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Inserting code in a FAQ

Post by Thorsten »

This is how it looks like:
Bildschirmfoto 2026-01-24 um 12.46.38.png
You do not have the required permissions to view the files attached to this post.
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
austinlau92
Posts: 1
Joined: Thu Jan 29, 2026 10:03 am

Re: Inserting code in a FAQ

Post by austinlau92 »

You can already format code in phpMyFAQ using the built-in editor’s preformatted text or HTML <pre><code> tags, and the developers have mentioned that improved code formatting is on the roadmap for future versions.
basketball stars
Justin975ht
Posts: 1
Joined: Fri May 15, 2026 7:51 am
Location: 405 Lexington Ave, New York, NY, United States
Contact:

Re: Inserting code in a FAQ

Post by Justin975ht »

Great suggestion Being able to mark parts of an FAQ answer as “code-style text” (even without auto detection) would definitely make technical documentation much clearer, especially for developers. fun games

Is your main use case showing configuration snippets, or more general inline technical terms inside answers?
josemaX
Posts: 4
Joined: Mon Sep 22, 2025 1:03 pm

Re: Inserting code in a FAQ

Post by josemaX »

I found this searching for missing "paragraph type" and found here the code snippet that works, but the other is removed or is a temp bug?

I'm running 4.1.5 installed today.

Thanks

Edit: Also noted the editor "window" not scrolls it contents but scrolls the full page making control dissapear by upside for long faq. Also, is this a bug to be solved?
Thorsten
Posts: 15805
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Inserting code in a FAQ

Post by Thorsten »

Hi,

what do you mean with "paragraph type"?

And can you explain the bug a little more in detail?

Thanks in advance!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
josemaX
Posts: 4
Joined: Mon Sep 22, 2025 1:03 pm

Re: Inserting code in a FAQ

Post by josemaX »

Thorsten wrote: Tue Jun 16, 2026 8:21 pm Hi,

what do you mean with "paragraph type"?

And can you explain the bug a little more in detail?
I don’t remember how it was called, a pulldown that let yo select styles: preformatted, code, head or something to selected text, this is not present in 4.1.4 or 4.1.5 at least.

Hope you understand what I mean, not english native speaker :-)

Thanks!
Thorsten
Posts: 15805
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Inserting code in a FAQ

Post by Thorsten »

Hi,

do you mean this?
Bildschirmfoto 2026-06-17 um 19.05.03.png
bye
Thorsten
You do not have the required permissions to view the files attached to this post.
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
josemaX
Posts: 4
Joined: Mon Sep 22, 2025 1:03 pm

Re: Inserting code in a FAQ

Post by josemaX »

Thorsten wrote: Wed Jun 17, 2026 6:05 pm Hi,

do you mean this?
Yes.

Thanks I "lost" it.

Best,
Post Reply