Home › Forum › Problemi Vari con WP › Spazio Lungo tipico della Programmazione
-
AutorePost
-
-
17 Marzo 2016 alle 22:53 #30720LuigiMdgPartecipante
Salve,
come faccio ad inserire quegli spazi lunghi tipici dei linguaggi di programmazione? Ho provato con ma non funziona
-
18 Marzo 2016 alle 8:17 #120143wollyAmministratore del forum
Non ho capito cosa vuoi ne come.
Cos’è lo spazio lungo della programmazione?
-
18 Marzo 2016 alle 18:18 #120148LuigiMdgPartecipante
Si, quello che in genere si fa con il TAB.. Sarebbe quello utilizzato per l’indentatura in HTML, PHP e in tutti i linguaggi di programmazione
-
18 Marzo 2016 alle 20:36 #120149wollyAmministratore del forum
ok, o è un tab o 4 spazi.
-
18 Marzo 2016 alle 22:07 #120151LuigiMdgPartecipante
ok, o è un tab o 4 spazi.
Ma che stai dicendo scusami?
-
19 Marzo 2016 alle 8:11 #120152wollyAmministratore del forum
La convenzione è che quello spazio lungo, come lo chiami tu, sia realizzato o con un tab o con 4 spazi.
Ogni IDE o editor di codice ti permette di configurare il tab come 4 spazi.
QUi trovi le convenzioni per quanto riguarda WordPress, che suggerisce di utilizzare tab e non spazi: https://make.wordpress.org/core/handbook/best-practices/coding-standards/php/
-
19 Marzo 2016 alle 14:13 #120157LuigiMdgPartecipante
La convenzione è che quello spazio lungo, come lo chiami tu, sia realizzato o con un tab o con 4 spazi.
Ogni IDE o editor di codice ti permette di configurare il tab come 4 spazi.
QUi trovi le convenzioni per quanto riguarda WordPress, che suggerisce di utilizzare tab e non spazi: https://make.wordpress.org/core/handbook/best-practices/coding-standards/php/
Ora si capisce, nel PHP so bene come si fa…
Ora che mi hai linkato i valori per mettere l’indentatura si capisce, prima potevi capirlo solo tu quel messaggio
-
19 Marzo 2016 alle 14:17 #120158wollyAmministratore del forum
Ora che mi hai linkato i valori per mettere l’indentatura si capisce, prima potevi capirlo solo tu quel messaggio
In realtà non c’è nulla da capire, o tab o 4 spazi.
In wp si preferisce il tab, la maggior parte degli sviluppatori preferiscono i 4 spazi.
Se sai il php, la tua domanda non ha alcun senso, è la base.
-
24 Marzo 2016 alle 21:15 #120197LuigiMdgPartecipante
Ora che mi hai linkato i valori per mettere l’indentatura si capisce, prima potevi capirlo solo tu quel messaggio
In realtà non c’è nulla da capire, o tab o 4 spazi.
In wp si preferisce il tab, la maggior parte degli sviluppatori preferiscono i 4 spazi.
Se sai il php, la tua domanda non ha alcun senso, è la base.
Il problema è che quando inserisco delle entity si blocca.. Tipo quando inserisco un codice simile a questo:
<html>
<head>
<title>Esecuzione Codice Online</title>
</head>
<body>
<?php
echo “<h1>Ciao PHP</h1>”;
?>
</body>
</html>
-
24 Marzo 2016 alle 21:34 #120198wollyAmministratore del forum
Io non vedo entity.
-
24 Marzo 2016 alle 21:39 #120199LuigiMdgPartecipante
Me le ha sostituite..
Comunque c’è qualcosa che fa bloccare il salvataggio della bozza e la pubblicazione quando inserisco del codice php… Sempre..
-
25 Marzo 2016 alle 7:46 #120200wollyAmministratore del forum
Dove?
-
25 Marzo 2016 alle 19:34 #120204TittiModeratore
@LuigiMdg – sei andato fuori topic. La questione del titolo è stata risposta, quindi chiudo.
Inoltre dalle tue poco chiare domande pareva parlassi di file PHP, invece ora salta fuori che stai cercando di scrivere codice nell’editor di WP.
Se è cosà¬, ti è già stato risposto nell’altro tuo topic aperto. Se non è cosà¬, apri un nuovo argomento con titolo adeguato spiegando meglio cosa vuoi ottenere.
Le prossime volte sforzati di essere comprensibile anche nel riportare il codice, seguendo il regolamento: se vuoi scrivere poche righe di codice nel forum, devi usare il tab Code (accertandoti che il secondo tag sia chiuso). Se invece le righe sono tante, come scritto nel box che hai visto quando hai aperto devi usare pastebin e riportare qui il link.
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.