FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » can one make a php function or macro with arguments to generate HTML code?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: can one make a php function or macro with arguments to generate HTML code? [message #181780 is a reply to message #181777] Sat, 01 June 2013 14:16 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 6/1/2013 9:23 AM, steve nospam wrote:
> On Jun 1, 8:10 am, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>
>
>> As Luuk said, you can do it in PHP. But in reality, how much are you
>> going to save? You'll have to copy/paste the PHP code instead of the
>> HTML, and your code (which is basically static).
>>
>> Maybe a better solution would be to use an editor which support macros.
>>
>
>
> Good idea! why do the php processing each time, if it can be done
> once.
> I thought about this after posting the question, that now the server
> has to do this string replacement each time the page is called, which
> is silly actually.
>
> What do recommend for this "macro" part? I use notepad now
> and it does not have many features. do you one which is HTML/php/
> javascript
> friendly? so many editors and will take long time to try them all.
>

Editors are a very personal decision. What works for me may or may not
work for you, and will definitely not work for some others.

And since this has nothing to do with PHP, you are much better off
asking in an appropriate newsgroup such as alt.html. The people there
can better recommend editors which will suit your needs for html coding.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: UML
Next Topic: Best Online Shop
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Sep 20 13:43:05 GMT 2024

Total time taken to generate the page: 0.05307 seconds