[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwrite-devel
Subject:    Re: PHP code validation
From:       Marc Serra <mserra () manxa ! com>
Date:       2024-02-14 7:22:13
Message-ID: CAD41RFY39uGzioSm28b1_iMf-1Ob2mHKs5chyLO1o7=r8VJCjQ () mail ! gmail ! com
[Download RAW message or body]

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@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@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@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.

[Attachment #3 (text/html)]

<div dir="ltr">Thank&#39;s for your words Milian,<div><br></div><div>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.  \
</div><div><br></div><div>I want something more advanced than nano and something more \
lightweight anb not proprietary  as VS Code.</div><div><br></div><div>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:</div><div><br></div><div>&lt;?php<br>if ( 2 == 2 )<br>{<br>  \
echo &quot;two&quot;;<br>}<br>?&gt;<br>&lt;div&gt;<br>hello<br>&lt;div&gt;<br>world<br>&lt;/div&gt;<br>&lt;/div&gt;<br></div><div><br></div><div>When \
I want ...</div><div><br></div><div>&lt;?php<br>if ( 2 == 2 )<br>{<br>      echo \
&quot;two&quot;;<br>}<br>?&gt;<br>&lt;div&gt;<br>      hello<br>      &lt;div&gt;<br> \
world<br>      &lt;/div&gt;<br>&lt;/div&gt;<br></div><div><br></div><div>But this is \
another topic ;-)</div><div><br></div><div>Thank&#39;s for all your help, but now \
I&#39;m keep using nano and VS Code.</div></div><br><div class="gmail_quote"><div \
dir="ltr" class="gmail_attr">Missatge de Milian Wolff &lt;<a \
href="mailto:mail@milianw.de">mail@milianw.de</a>&gt; del dia dt., 13 de febr. 2024 a \
les 20:05:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Dienstag, 13. \
Februar 2024 11:31:20 CET Marc Serra wrote:<br> &gt; Thank&#39;s KÃ¥re,<br>
&gt; <br>
&gt; I tested your idea and it works!<br>
&gt; <br>
&gt; I created a file with this three lines for each project:<br>
&gt; <br>
&gt; #!/bin/bash<br>
&gt; sshfs user@server.tld:/path/ ~/dev/path/<br>
&gt; kate ~/dev/path/<br>
&gt; <br>
&gt; Is this the best way to speed up the process of mount filesystem and open<br>
&gt; kate?<br>
&gt; <br>
&gt; When I logout or shutdown my laptop, all mounts are unmounted automatically.<br>
<br>
Since you are asking for &quot;the best way&quot;: The recommended way is definitely \
to <br> _not_ work directly on a remote machine, potentially even directly on the \
live <br> website. Develop (and test) locally, ideally using a VCS and then deploy \
<br> remotely eventually.<br>
<br>
Another alternative, though I don&#39;t know about the current state of PHP 8.1 <br>
language support: Use KDevelop and the kdev-php plugin. That will work even <br>
for SFTP projects (it used to in the past at least). It&#39;s still a really bad <br>
idea though.<br>
<br>
-- <br>
Milian Wolff<br>
<a href="mailto:mail@milianw.de" target="_blank">mail@milianw.de</a><br>
<a href="http://milianw.de" rel="noreferrer" \
target="_blank">http://milianw.de</a></blockquote></div>

<br>
<br>
 <table>  
  <tbody>
  <tr>
    <td scope="row" rowspan="3" \
style="padding-right:1em;padding-left:1em;border-right:1px solid #53565a"> <a \
href="https://www.manxa.com" target="_blank"><img \
src="https://www.manxa.com/logo_firma_correu_2021.jpg" style="width:100%"></a></td>  \
<td scope="row" rowspan="3" \
style="padding-right:1em;padding-left:1em;border-right:1px solid \
#53565a;font-family:Verdana;font-style:normal;font-size:9px"> Manxa 1876, \
S.L.<br>Ctra. Les Tries, 85.17800 Olot (Girona)<br><i>Tel. 972 27 45 30 <a \
style="color:#53565a;text-decoration:underline" href="https://www.manxa.com" \
target="_blank">www.manxa.com</a></i> </td>  <td scope="row" rowspan="3" \
style="padding-left:1em;font-family:Verdana;font-style:normal;font-size:9px"><a \
style="text-decoration:none" href="https://www.manxaindustrial.com" \
target="_blank"><img src="https://www.manxa.com/mes.gif" width="10" height="10"></a> \
<b><a style="color:#53565a" href="https://www.manxaindustrial.com" \
target="_blank">Manxa Industrial</a></b><br><a style="text-decoration:none" \
href="https://www.manxaferros.com" target="_blank"><img \
src="https://www.manxa.com/mes.gif" width="10" height="10"></a>  <b><a \
style="color:#53565a" href="https://www.manxaferros.com" target="_blank">Manxa \
Ferros</a></b><br><a style="text-decoration:none" \
href="https://www.manxabricolatge.com" target="_blank"><img \
src="https://www.manxa.com/mes.gif" width="10" height="10"></a>  <b><a \
style="color:#53565a" href="https://www.manxabricolatge.com" target="_blank">Manxa \
Ferreteria i Parament de la Llar</a></b></td>  </tr>
  </tbody>
</table>

<br>
<p style="margin:0cm 0cm 10pt"><font color="#808080" face="Verdana, sans-serif" \
size="1">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.</font><font face="Verdana, \
sans-serif" size="1" color="#008000"> Imprimeix aquest correu només si és \
necessari.</font></p><p style="margin:0cm 0cm 10pt"><font color="#808080" \
face="Verdana, sans-serif" size="1">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.</font><font \
face="Verdana, sans-serif" size="1" color="#008000"> Imprimir este correo solo si es \
necesario.</font></p><p style="margin:0cm 0cm 10pt"><font color="#808080" \
face="Verdana, sans-serif" size="1">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. </font><font face="Verdana, sans-serif" \
size="1" color="#008000">Print this email only if necessary.</font></p><p \
style="margin:0cm 0cm 10pt"><font color="#808080" face="Verdana, sans-serif" \
size="1">Le contenu de cet e-mail et de ses pièces jointes est strictement \
confidentiel. Dans le cas où vous n&#39;êtes pas le destinataire et avez reçu ce \
message par erreur, veuillez en informer l&#39;expéditeur et procéder à sa \
suppression, sans diffuser, stocker ou copier son contenu.</font><font face="Verdana, \
sans-serif" size="1" color="#008000"> Imprimez cet e-mail uniquement si \
nécessaire.</font></p>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic