Home › Forum › Plugin e temi di WP › Evidenziare il codice…
-
AutorePost
-
-
23 Settembre 2008 alle 9:57 #7977Andrea BarghigianiPartecipante
Salve a tutti ragazzi, sto girovagando ormai da un paio di giorni per internet cercando di capire come funziona il plugin SyntaxHighlighter Plus….
Provo inutilmente ad utilizzare questo plugin come descritto nelle pagine di documentazione, ovvero [sourcecode language=’css’]…[/sourcecode] ma, a parte la creazione di questo codice
<pre class="syntax-highlight:xml">
nn riesco a vedere nessun tipo di personalizzazione...
Per meglio dire non mi viene creato il box per la presentazione del codice... ma soltanto mostrato il tag pre senza alcuna personalizzazione!
Sinceramente devo dire che sto utilizzando soltanto questo plugin anche perche' non sono riuscito a capire se serve anche il js di casa Google, per intenndersi la libreria Javascript SyntaxHighlighter, o meno...
Qualcuno di voi utilizza questo plugin??? Come ha fatto a farlo andare? Conoscete altri plugin che mostrano bene il codice su di un sito web???
Dopo questa lista di domande vi ringrazio per l'attenzione!`
-
23 Settembre 2008 alle 10:02 #58066SteveAglAmministratore del forum
Il plugin basta a se stesso… in uso sul nostro blog e funziona come descritto senza problemi… link ad un sito che mostri il problema è sempre cosa buona e giusta evitando ipotesi strane
-
23 Settembre 2008 alle 10:16 #58067Andrea BarghigianiPartecipante
Hai pienamente ragione!
Ecco qua un link al mio sito http://www.lifestyleweb.it/2008/09/23/prova-syntaxhighlighter-plus/ dove ho appena pubblicato un articolo di prova per farvi vedere dove risiede l’errore….
Non capisco, sinceramente ho scaricato il plugin, estratto nella cartella plugin e attivato tramite il pannello WordPress, ma nn trovo nessuna personalizzazione a livello di CSS…
C’e’ qualcosaltro che devo fare???
-
23 Settembre 2008 alle 11:20 #58070SteveAglAmministratore del forum
beh cerca di caricare un css:
http://www.lifestyleweb.it/wp-content/plugins/syntaxhighlighter-plus/shlfiles/SyntaxHighlighter.css
che non trova… in ogni caso noi usiamo questo:
http://wordpress.org/extend/plugins/syntaxhighlighter/
più aggiornato e certamente funzionante tu usi:
http://wordpress.org/extend/plugins/syntaxhighlighter-plus/ che è in beta essendo una versione 0.18
-
23 Settembre 2008 alle 14:29 #58071Andrea BarghigianiPartecipante
Ho provato ad utilizzare il plugin da te consigliato ma non ha modificato il comportamento della pagina.
Il file css viene caricato tramite questa riga:
<link type=”text/css” rel=”stylesheet” href=”http://www.lifestyleweb.it/wp-content/plugins/syntaxhighlighter/files/SyntaxHighlighter.css”></link>
Ma anche il codice xhtml che mi realizza questo plugin non e’ molto particolare non fa altro che racchiudere il codice in un elemento pre con un attributo name e uno class, ma la visualizzazione nn viene effettuata. Cosa strana visto che anche il file che cerca di caricare tramite il tag link e’ presente esattamente nella cartella in cui lo cerca!
<pre name=”code” class=”xhtml”>
Qui tutto il contenuto….
Non riesco a capirci molto, e voi? pensate che ci sia qualcosa che nn va?
-
23 Settembre 2008 alle 14:38 #58072Andrea BarghigianiPartecipante
Ma che succede non mi riesce scrivere il codice neanche qua e utilizzando il tag code???
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.