Re: Posting coding on a website
dan schreef op 21-10-2005 18:43:
> Hi,
>
> I would like to be able to show coding on a website without the website
> acting out the commands in the code. For example, I would like to be
> able to show some php code to tell a person how to do something.
> However, I do not know how to show the code and make the website not
> act on it. Can anyone help me in this matter?
>
You could change the extension of your php file to another extension,
e.g. .txt (or .phps, some webservers show the source code then).
You may have a look on the highlight_file() and highlight_string()
functions of PHP.
--
Met vriendelijke groeten,
Geert Wirken
.
Relevant Pages
- Re: Web Animation and Sound Advice Sought
... upon someone landing on my website, ... My blog program is a php program that makes use of a mysql database. ... linux (and the linux server supports all sorts of php). ... $500+ Premiere software -- at least on my first brief experimenting ... (misc.writing) - Re: Furthering my education in OOP - where/how can one learn professional skills?
... but I am not proud of the rather amateurish ... implement them in a website. ... is PHP the best language to use to learn and implement the full ... power of OOP? ... (comp.lang.php) - Re: Best (most Borland-like) PHP IDE+Debugger?
... existed before Borland quit trying to compete with M$'s VisualC. ... Is there anything like it for PHP? ... But it has no debugging capability. ... Manuel's ONLY answers to questions are to see something on his website - and he never identifies it as his website. ... (comp.lang.php) - Re: Securing PHP
... Does anyone here run a website of their own? ... hits with ads that you run through Google AdSense? ... What does any of this have to do with PHP? ... Yes I see a couple of spam posts get through to comp.lang.python every ... (comp.lang.php) - Re: Got Delphi for PHP - first impressions
... Having exactly Delphi and PHP as my two main developer platforms, ... Delphi for PHP sounded at first as a something sent from heaven. ... It looks more like normal Windows apps. ... full fledged websites, having the look and feel as a website. ... (borland.public.delphi.non-technical) |
|