Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [WordPresss] Kolorowanie składni i numerowanie linii
Bryla
post
Post #1





Grupa: Zarejestrowani
Postów: 31
Pomógł: 0
Dołączył: 16.01.2010

Ostrzeżenie: (0%)
-----


Witam, ściągnąłem sobie plugin do Wordpressa: WP-GeSHi-Highlight. Kolorowanie składni działa. Niestety nie mogę dojść w jaki sposób włączyć numerowanie linii. Mógłby mi ktoś podpowiedzieć jak to zrobić? W pliku geshi.php znalazłem:
  1. // Line numbers - use with enable_line_numbers()
  2. /** Use no line numbers when building the result */
  3. define('GESHI_NO_LINE_NUMBERS', 0);
  4. /** Use normal line numbers when building the result */
  5. define('GESHI_NORMAL_LINE_NUMBERS', 1);
  6. /** Use fancy line numbers when building the result */
  7. define('GESHI_FANCY_LINE_NUMBERS', 2);

i zmieniłem na:
  1. // Line numbers - use with enable_line_numbers()
  2. /** Use no line numbers when building the result */
  3. define('GESHI_NO_LINE_NUMBERS', 0);
  4. /** Use normal line numbers when building the result */
  5. enable_line_numbers('GESHI_NORMAL_LINE_NUMBERS', 1);
  6. /** Use fancy line numbers when building the result */
  7. define('GESHI_FANCY_LINE_NUMBERS', 2);


ale dalej nie działa.

Z góry dzięki (IMG:style_emoticons/default/smile.gif)

Ten post edytował Bryla 17.01.2011, 11:34:09
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 26.12.2025 - 23:43