PHP code validation

Marc Serra mserra at manxa.com
Wed Feb 14 07:22:13 GMT 2024


Thank's for your words Milian,

We got some large projects that use git. On another hand, we got couple of
projects  that we need to do a little and quick changes. Normally I
use nano via SSH on the server machine or VS Code with the remote ssh
plugin on my workstation.

I want something more advanced than nano and something more lightweight anb
not proprietary as VS Code.

I just taked a look at kdevelop. Working with SFTP works great, code
linting works well but code auto indentation not at all: in a php a file
with PHP and HTML code, I can indent PHP but no HTML, an example:

<?php
if ( 2 == 2 )
{
    echo "two";
}
?>
<div>
hello
<div>
world
</div>
</div>

When I want ...

<?php
if ( 2 == 2 )
{
    echo "two";
}
?>
<div>
    hello
    <div>
        world
    </div>
</div>

But this is another topic ;-)

Thank's for all your help, but now I'm keep using nano and VS Code.

Missatge de Milian Wolff <mail at milianw.de> del dia dt., 13 de febr. 2024 a
les 20:05:

> On Dienstag, 13. Februar 2024 11:31:20 CET Marc Serra wrote:
> > Thank's Kåre,
> >
> > I tested your idea and it works!
> >
> > I created a file with this three lines for each project:
> >
> > #!/bin/bash
> > sshfs user at server.tld:/path/ ~/dev/path/
> > kate ~/dev/path/
> >
> > Is this the best way to speed up the process of mount filesystem and open
> > kate?
> >
> > When I logout or shutdown my laptop, all mounts are unmounted
> automatically.
>
> Since you are asking for "the best way": The recommended way is definitely
> to
> _not_ work directly on a remote machine, potentially even directly on the
> live
> website. Develop (and test) locally, ideally using a VCS and then deploy
> remotely eventually.
>
> Another alternative, though I don't know about the current state of PHP
> 8.1
> language support: Use KDevelop and the kdev-php plugin. That will work
> even
> for SFTP projects (it used to in the past at least). It's still a really
> bad
> idea though.
>
> --
> Milian Wolff
> mail at milianw.de
> http://milianw.de

-- 


   
  
  
      <https://www.manxa.com>

     Manxa 1876, S.L.
Ctra. Les 
Tries, 85.17800 Olot (Girona)
*Tel. 972 27 45 30 www.manxa.com 
<https://www.manxa.com>* 

     <https://www.manxaindustrial.com> *Manxa 
Industrial <https://www.manxaindustrial.com>*
 
<https://www.manxaferros.com>  *Manxa Ferros <https://www.manxaferros.com>*
 <https://www.manxabricolatge.com>  *Manxa Ferreteria i Parament de la Llar 
<https://www.manxabricolatge.com>*

  

  



-- 


El contingut d’aquest correu electrònic i els seus annexos és 
estrictament confidencial. En el cas que no siguis el destinatari i hagis 
rebut aquest missatge per error, preguem que ho comuniquis al remitent i 
procedeixis a la seva eliminació, sense difondre, emmagatzemar o copiar el 
seu contingut. Imprimeix aquest correu només si és necessari.

El contenido 
de este correo electrónico y sus anexos es estrictamente confidencial. En 
el caso de que no seas el destinatario y hayas recibido este mensaje por 
error, rogamos lo comuniques al remitente y procedas a su eliminación, sin 
difundir, almacenar o copiar su contenido. Imprimir este correo solo si es 
necesario.

The content of this email and its attachments is strictly 
confidential. If you are not the recipient and you have received this 
message by mistake, please notify the sender and proceed to its 
elimination, without spreading, storing or copying its content. Print this 
email only if necessary.

Le contenu de cet e-mail et de ses pièces jointes 
est strictement confidentiel. Dans le cas où vous n'êtes pas le 
destinataire et avez reçu ce message par erreur, veuillez en informer 
l'expéditeur et procéder à sa suppression, sans diffuser, stocker ou copier 
son contenu. Imprimez cet e-mail uniquement si nécessaire.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20240214/a61ad3b1/attachment.htm>


More information about the KWrite-Devel mailing list