• Welcome to Simple Machines Community Forum. Please login or sign up.
December 05, 2021, 07:56:20 PM

News:

Wondering if this will always be free?  See why free is better.


cb|GeShi-mod

Started by codebirth, July 01, 2011, 10:39:45 AM

Previous topic - Next topic

codebirth

July 01, 2011, 10:39:45 AM Last Edit: April 20, 2013, 03:35:42 AM by codebirth
Link to Mod

cb|GeSHi-mod 1.2

cb|GeSHi-mod adds code syntax highlighting to your forum. Powered by GeSHi, the mod supports +200 different languages and is fully customizable for each of your themes.

Compatible with SMF 2.0 and later.

What's new in 1.2?

- GeSHi sources updated to 1.0.8.11 which includes some new languages
- Minor fix to avoid error notices in the logs when running on PHP 5.4




GNU General Public License v3.0

cb|GeSHi-mod - Syntax Highlighter mod for SMF powered by GeSHi
Copyright (C) 2012-2013, codebirth
Website: http://www.codebirth.com

Powered by GeSHi - http://qbnz.com/highlighter/


This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program.  If not, see <http://www.gnu.org/licenses/>




More info

Help about customization and usage
http://codebirth.com/index.php?topic=81.0

Feel free to try the mod in the Testing area of my forum and please let me know if you find any issue!

http://codebirth.com/

npiccoli

I hope one day GeShi will support the PAWN language. This is nice though, very helpful for my forum. Thanks!

acsieben

September 03, 2011, 09:44:05 AM #2 Last Edit: September 03, 2011, 09:47:31 AM by acseven
Hi,

I have several errors like the ones below, do you have any idea why?

Quotehttp://myforum.com/index.php?topic=2841.msg343698: Undefined offset: 1File: /myforum/Sources/geshi.php
Line: 3513

Quotehttp://myforum.com/index.php?topic=6523.msg720028: Constant GESHI_SEARCH already definedFile: /myforum/Sources/geshi/geshi.php
Line: 133

The second one varies a lot on the constant. I have 300 error entries for just one day after installation, with lots of different constants.

Thanks

codebirth

Sorry, I have no idea why you get those errors. Maybe you have other mods not compatible with this one? I don't know.

acsieben

Quote from: codebirth on September 11, 2011, 01:12:33 PM
Sorry, I have no idea why you get those errors. Maybe you have other mods not compatible with this one? I don't know.

Thanks for the reply.

No, I don't think so - this is almost a clean install of 2.0 ..

Roxor666

where i can find queries to install into database? can anybody post it here?

Apllicmz

When Update dont forget portuguese

<file name="$themedir/languages/Themes.portuguese_pt.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
$txt['geshi_code_container'] = 'GeSHi Code Container';
$txt['geshi_code_container_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#the-code-container" target="_blank">3.1 O Container C&oacute;digo</a>.';
$txt['geshi_line_numbers'] = 'N&uacute;meros de linha';
$txt['geshi_line_numbers_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#line-numbers" target="_blank">3.2 N&uacute;meros de Linha</a>.';
$txt['geshi_fancy_line_number'] = 'Fantasia n&uacute;meros de linha';
$txt['geshi_fancy_line_number_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#line-numbers" target="_blank">3.2 N&uacute;meros de Linha</a>.';
$txt['geshi_line_style'] = 'Line style';
$txt['geshi_line_style_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#styling-line-numbers" target="_blank">3.2.2 Styling N&uacute;meros de Linha</a>.';
$txt['geshi_line_style_fancy'] = 'Fancy line style';
$txt['geshi_line_style_fancy_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#styling-line-numbers" target="_blank">3.2.2 Styling N&uacute;meros de Linha</a>.';
$txt['geshi_highlight_lines_extra_style'] = 'Linhas em destaque style';
$txt['geshi_highlight_lines_extra_style_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#styles-for-highlighted-lines" target="_blank">3.15.2 Destaque para as Linhas de Styles</a>.';
$txt['geshi_enable_pre_header'] = 'Show header above GeSHi Code Container';
$txt['geshi_enable_pre_header_desc'] = '';
$txt['geshi_pre_header'] = 'Header above GeSHi Code Container';
$txt['geshi_pre_header_desc'] = 'Voc&ecirc; pode usar {CODE}, {TAG} and {LANGUAGE} keywords. Para refer&ecirc;ncia, consulte <a href="http://codebirth.com/index.php?topic=81.0" target="_blank">cb|GeSHi-mod help</a>.';
$txt['geshi_enable_header'] = 'Mostrar cabe&ccedil;alho dentro GeSHi C&oacute;digo Container';
$txt['geshi_enable_header_desc'] = '';
$txt['geshi_header'] = 'Header inside GeSHi Code Container';
$txt['geshi_header_desc'] = 'Voc&ecirc; pode usar <a href="http://qbnz.com/highlighter/geshi-doc.html#keyword-substitution" target="_blank">these keywords</a>. Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#setting-header-content" target="_blank">3.12.2 Conte&uacute;do Header defini&ccedil;&atilde;o</a>.';
$txt['geshi_enable_footer'] = 'Mostrar Rodap&eacute; dentro GeSHi C&oacute;digo Container';
$txt['geshi_enable_footer_desc'] = '';
$txt['geshi_footer'] = 'Rodap&eacute; dentro GeSHi C&oacute;digo Container';
$txt['geshi_footer_desc'] = 'Voc&ecirc; pode usar <a href="http://qbnz.com/highlighter/geshi-doc.html#keyword-substitution" target="_blank">these keywords</a>. Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#setting-footer-content" target="_blank">3.12.3 Setting Footer Content</a>.';
$txt['geshi_enable_language_selector'] = 'Mostrar o selector de l&iacute;nguas';
$txt['geshi_enable_language_selector_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://codebirth.com/index.php?topic=81.0" target="_blank">cb|GeSHi-mod help</a>.';
$txt['geshi_language_selector'] = 'L&iacute;nguas selecion&aacute;veis';
$txt['geshi_language_selector_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://codebirth.com/index.php?topic=81.0" target="_blank">cb|GeSHi-mod help</a>.';
]]></add>
        </operation>
    </file>
    <file name="$themedir/languages/Themes.portuguese_pt-utf8.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
$txt['geshi_code_container'] = 'GeSHi Code Container';
$txt['geshi_code_container_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#the-code-container" target="_blank">3.1 O Container C&oacute;digo</a>.';
$txt['geshi_line_numbers'] = 'N&uacute;meros de linha';
$txt['geshi_line_numbers_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#line-numbers" target="_blank">3.2 N&uacute;meros de Linha</a>.';
$txt['geshi_fancy_line_number'] = 'Fantasia n&uacute;meros de linha';
$txt['geshi_fancy_line_number_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#line-numbers" target="_blank">3.2 N&uacute;meros de Linha</a>.';
$txt['geshi_line_style'] = 'Line style';
$txt['geshi_line_style_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#styling-line-numbers" target="_blank">3.2.2 Styling N&uacute;meros de Linha</a>.';
$txt['geshi_line_style_fancy'] = 'Fancy line style';
$txt['geshi_line_style_fancy_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#styling-line-numbers" target="_blank">3.2.2 Styling N&uacute;meros de Linha</a>.';
$txt['geshi_highlight_lines_extra_style'] = 'Linhas em destaque style';
$txt['geshi_highlight_lines_extra_style_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#styles-for-highlighted-lines" target="_blank">3.15.2 Destaque para as Linhas de Styles</a>.';
$txt['geshi_enable_pre_header'] = 'Show header above GeSHi Code Container';
$txt['geshi_enable_pre_header_desc'] = '';
$txt['geshi_pre_header'] = 'Header above GeSHi Code Container';
$txt['geshi_pre_header_desc'] = 'Voc&ecirc; pode usar {CODE}, {TAG} and {LANGUAGE} keywords. Para refer&ecirc;ncia, consulte <a href="http://codebirth.com/index.php?topic=81.0" target="_blank">cb|GeSHi-mod help</a>.';
$txt['geshi_enable_header'] = 'Mostrar cabe&ccedil;alho dentro GeSHi C&oacute;digo Container';
$txt['geshi_enable_header_desc'] = '';
$txt['geshi_header'] = 'Header inside GeSHi Code Container';
$txt['geshi_header_desc'] = 'Voc&ecirc; pode usar <a href="http://qbnz.com/highlighter/geshi-doc.html#keyword-substitution" target="_blank">these keywords</a>. Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#setting-header-content" target="_blank">3.12.2 Conte&uacute;do Header defini&ccedil;&atilde;o</a>.';
$txt['geshi_enable_footer'] = 'Mostrar Rodap&eacute; dentro GeSHi C&oacute;digo Container';
$txt['geshi_enable_footer_desc'] = '';
$txt['geshi_footer'] = 'Rodap&eacute; dentro GeSHi C&oacute;digo Container';
$txt['geshi_footer_desc'] = 'Voc&ecirc; pode usar <a href="http://qbnz.com/highlighter/geshi-doc.html#keyword-substitution" target="_blank">these keywords</a>. Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#setting-footer-content" target="_blank">3.12.3 Setting Footer Content</a>.';
$txt['geshi_enable_language_selector'] = 'Mostrar o selector de l&iacute;nguas';
$txt['geshi_enable_language_selector_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://codebirth.com/index.php?topic=81.0" target="_blank">cb|GeSHi-mod help</a>.';
$txt['geshi_language_selector'] = 'L&iacute;nguas selecion&aacute;veis';
$txt['geshi_language_selector_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://codebirth.com/index.php?topic=81.0" target="_blank">cb|GeSHi-mod help</a>.';
]]></add>
        </operation>
    </file>
    <file name="$themedir/languages/Themes.portuguese_brazilian.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
$txt['geshi_code_container'] = 'GeSHi Code Container';
$txt['geshi_code_container_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#the-code-container" target="_blank">3.1 O Container C&oacute;digo</a>.';
$txt['geshi_line_numbers'] = 'N&uacute;meros de linha';
$txt['geshi_line_numbers_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#line-numbers" target="_blank">3.2 N&uacute;meros de Linha</a>.';
$txt['geshi_fancy_line_number'] = 'Fantasia n&uacute;meros de linha';
$txt['geshi_fancy_line_number_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#line-numbers" target="_blank">3.2 N&uacute;meros de Linha</a>.';
$txt['geshi_line_style'] = 'Line style';
$txt['geshi_line_style_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#styling-line-numbers" target="_blank">3.2.2 Styling N&uacute;meros de Linha</a>.';
$txt['geshi_line_style_fancy'] = 'Fancy line style';
$txt['geshi_line_style_fancy_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#styling-line-numbers" target="_blank">3.2.2 Styling N&uacute;meros de Linha</a>.';
$txt['geshi_highlight_lines_extra_style'] = 'Linhas em destaque style';
$txt['geshi_highlight_lines_extra_style_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#styles-for-highlighted-lines" target="_blank">3.15.2 Destaque para as Linhas de Styles</a>.';
$txt['geshi_enable_pre_header'] = 'Show header above GeSHi Code Container';
$txt['geshi_enable_pre_header_desc'] = '';
$txt['geshi_pre_header'] = 'Header above GeSHi Code Container';
$txt['geshi_pre_header_desc'] = 'Voc&ecirc; pode usar {CODE}, {TAG} and {LANGUAGE} keywords. Para refer&ecirc;ncia, consulte <a href="http://codebirth.com/index.php?topic=81.0" target="_blank">cb|GeSHi-mod help</a>.';
$txt['geshi_enable_header'] = 'Mostrar cabe&ccedil;alho dentro GeSHi C&oacute;digo Container';
$txt['geshi_enable_header_desc'] = '';
$txt['geshi_header'] = 'Header inside GeSHi Code Container';
$txt['geshi_header_desc'] = 'Voc&ecirc; pode usar <a href="http://qbnz.com/highlighter/geshi-doc.html#keyword-substitution" target="_blank">these keywords</a>. Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#setting-header-content" target="_blank">3.12.2 Conte&uacute;do Header defini&ccedil;&atilde;o</a>.';
$txt['geshi_enable_footer'] = 'Mostrar Rodap&eacute; dentro GeSHi C&oacute;digo Container';
$txt['geshi_enable_footer_desc'] = '';
$txt['geshi_footer'] = 'Rodap&eacute; dentro GeSHi C&oacute;digo Container';
$txt['geshi_footer_desc'] = 'Voc&ecirc; pode usar <a href="http://qbnz.com/highlighter/geshi-doc.html#keyword-substitution" target="_blank">these keywords</a>. Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#setting-footer-content" target="_blank">3.12.3 Setting Footer Content</a>.';
$txt['geshi_enable_language_selector'] = 'Mostrar o selector de l&iacute;nguas';
$txt['geshi_enable_language_selector_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://codebirth.com/index.php?topic=81.0" target="_blank">cb|GeSHi-mod help</a>.';
$txt['geshi_language_selector'] = 'L&iacute;nguas selecion&aacute;veis';
$txt['geshi_language_selector_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://codebirth.com/index.php?topic=81.0" target="_blank">cb|GeSHi-mod help</a>.';
]]></add>
        </operation>
    </file>
    <file name="$themedir/languages/Themes.portuguese_brazilian-utf8.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
$txt['geshi_code_container'] = 'GeSHi Code Container';
$txt['geshi_code_container_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#the-code-container" target="_blank">3.1 O Container C&oacute;digo</a>.';
$txt['geshi_line_numbers'] = 'N&uacute;meros de linha';
$txt['geshi_line_numbers_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#line-numbers" target="_blank">3.2 N&uacute;meros de Linha</a>.';
$txt['geshi_fancy_line_number'] = 'Fantasia n&uacute;meros de linha';
$txt['geshi_fancy_line_number_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#line-numbers" target="_blank">3.2 N&uacute;meros de Linha</a>.';
$txt['geshi_line_style'] = 'Line style';
$txt['geshi_line_style_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#styling-line-numbers" target="_blank">3.2.2 Styling N&uacute;meros de Linha</a>.';
$txt['geshi_line_style_fancy'] = 'Fancy line style';
$txt['geshi_line_style_fancy_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#styling-line-numbers" target="_blank">3.2.2 Styling N&uacute;meros de Linha</a>.';
$txt['geshi_highlight_lines_extra_style'] = 'Linhas em destaque style';
$txt['geshi_highlight_lines_extra_style_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#styles-for-highlighted-lines" target="_blank">3.15.2 Destaque para as Linhas de Styles</a>.';
$txt['geshi_enable_pre_header'] = 'Show header above GeSHi Code Container';
$txt['geshi_enable_pre_header_desc'] = '';
$txt['geshi_pre_header'] = 'Header above GeSHi Code Container';
$txt['geshi_pre_header_desc'] = 'Voc&ecirc; pode usar {CODE}, {TAG} and {LANGUAGE} keywords. Para refer&ecirc;ncia, consulte <a href="http://codebirth.com/index.php?topic=81.0" target="_blank">cb|GeSHi-mod help</a>.';
$txt['geshi_enable_header'] = 'Mostrar cabe&ccedil;alho dentro GeSHi C&oacute;digo Container';
$txt['geshi_enable_header_desc'] = '';
$txt['geshi_header'] = 'Header inside GeSHi Code Container';
$txt['geshi_header_desc'] = 'Voc&ecirc; pode usar <a href="http://qbnz.com/highlighter/geshi-doc.html#keyword-substitution" target="_blank">these keywords</a>. Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#setting-header-content" target="_blank">3.12.2 Conte&uacute;do Header defini&ccedil;&atilde;o</a>.';
$txt['geshi_enable_footer'] = 'Mostrar Rodap&eacute; dentro GeSHi C&oacute;digo Container';
$txt['geshi_enable_footer_desc'] = '';
$txt['geshi_footer'] = 'Rodap&eacute; dentro GeSHi C&oacute;digo Container';
$txt['geshi_footer_desc'] = 'Voc&ecirc; pode usar <a href="http://qbnz.com/highlighter/geshi-doc.html#keyword-substitution" target="_blank">these keywords</a>. Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#setting-footer-content" target="_blank">3.12.3 Setting Footer Content</a>.';
$txt['geshi_enable_language_selector'] = 'Mostrar o selector de l&iacute;nguas';
$txt['geshi_enable_language_selector_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://codebirth.com/index.php?topic=81.0" target="_blank">cb|GeSHi-mod help</a>.';
$txt['geshi_language_selector'] = 'L&iacute;nguas selecion&aacute;veis';
$txt['geshi_language_selector_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://codebirth.com/index.php?topic=81.0" target="_blank">cb|GeSHi-mod help</a>.';
]]></add>
        </operation>
    </file>




codebirth

Obrigado!

Quote from: Joomlamz on December 26, 2011, 07:45:55 AM
When Update dont forget portuguese

<file name="$themedir/languages/Themes.portuguese_pt.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
$txt['geshi_code_container'] = 'GeSHi Code Container';
$txt['geshi_code_container_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#the-code-container" target="_blank">3.1 O Container C&oacute;digo</a>.';
$txt['geshi_line_numbers'] = 'N&uacute;meros de linha';
$txt['geshi_line_numbers_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#line-numbers" target="_blank">3.2 N&uacute;meros de Linha</a>.';
$txt['geshi_fancy_line_number'] = 'Fantasia n&uacute;meros de linha';
$txt['geshi_fancy_line_number_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#line-numbers" target="_blank">3.2 N&uacute;meros de Linha</a>.';
$txt['geshi_line_style'] = 'Line style';
$txt['geshi_line_style_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#styling-line-numbers" target="_blank">3.2.2 Styling N&uacute;meros de Linha</a>.';
$txt['geshi_line_style_fancy'] = 'Fancy line style';
$txt['geshi_line_style_fancy_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#styling-line-numbers" target="_blank">3.2.2 Styling N&uacute;meros de Linha</a>.';
$txt['geshi_highlight_lines_extra_style'] = 'Linhas em destaque style';
$txt['geshi_highlight_lines_extra_style_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#styles-for-highlighted-lines" target="_blank">3.15.2 Destaque para as Linhas de Styles</a>.';
$txt['geshi_enable_pre_header'] = 'Show header above GeSHi Code Container';
$txt['geshi_enable_pre_header_desc'] = '';
$txt['geshi_pre_header'] = 'Header above GeSHi Code Container';
$txt['geshi_pre_header_desc'] = 'Voc&ecirc; pode usar {CODE}, {TAG} and {LANGUAGE} keywords. Para refer&ecirc;ncia, consulte <a href="http://codebirth.com/index.php?topic=81.0" target="_blank">cb|GeSHi-mod help</a>.';
$txt['geshi_enable_header'] = 'Mostrar cabe&ccedil;alho dentro GeSHi C&oacute;digo Container';
$txt['geshi_enable_header_desc'] = '';
$txt['geshi_header'] = 'Header inside GeSHi Code Container';
$txt['geshi_header_desc'] = 'Voc&ecirc; pode usar <a href="http://qbnz.com/highlighter/geshi-doc.html#keyword-substitution" target="_blank">these keywords</a>. Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#setting-header-content" target="_blank">3.12.2 Conte&uacute;do Header defini&ccedil;&atilde;o</a>.';
$txt['geshi_enable_footer'] = 'Mostrar Rodap&eacute; dentro GeSHi C&oacute;digo Container';
$txt['geshi_enable_footer_desc'] = '';
$txt['geshi_footer'] = 'Rodap&eacute; dentro GeSHi C&oacute;digo Container';
$txt['geshi_footer_desc'] = 'Voc&ecirc; pode usar <a href="http://qbnz.com/highlighter/geshi-doc.html#keyword-substitution" target="_blank">these keywords</a>. Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#setting-footer-content" target="_blank">3.12.3 Setting Footer Content</a>.';
$txt['geshi_enable_language_selector'] = 'Mostrar o selector de l&iacute;nguas';
$txt['geshi_enable_language_selector_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://codebirth.com/index.php?topic=81.0" target="_blank">cb|GeSHi-mod help</a>.';
$txt['geshi_language_selector'] = 'L&iacute;nguas selecion&aacute;veis';
$txt['geshi_language_selector_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://codebirth.com/index.php?topic=81.0" target="_blank">cb|GeSHi-mod help</a>.';
]]></add>
        </operation>
    </file>
    <file name="$themedir/languages/Themes.portuguese_pt-utf8.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
$txt['geshi_code_container'] = 'GeSHi Code Container';
$txt['geshi_code_container_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#the-code-container" target="_blank">3.1 O Container C&oacute;digo</a>.';
$txt['geshi_line_numbers'] = 'N&uacute;meros de linha';
$txt['geshi_line_numbers_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#line-numbers" target="_blank">3.2 N&uacute;meros de Linha</a>.';
$txt['geshi_fancy_line_number'] = 'Fantasia n&uacute;meros de linha';
$txt['geshi_fancy_line_number_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#line-numbers" target="_blank">3.2 N&uacute;meros de Linha</a>.';
$txt['geshi_line_style'] = 'Line style';
$txt['geshi_line_style_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#styling-line-numbers" target="_blank">3.2.2 Styling N&uacute;meros de Linha</a>.';
$txt['geshi_line_style_fancy'] = 'Fancy line style';
$txt['geshi_line_style_fancy_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#styling-line-numbers" target="_blank">3.2.2 Styling N&uacute;meros de Linha</a>.';
$txt['geshi_highlight_lines_extra_style'] = 'Linhas em destaque style';
$txt['geshi_highlight_lines_extra_style_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#styles-for-highlighted-lines" target="_blank">3.15.2 Destaque para as Linhas de Styles</a>.';
$txt['geshi_enable_pre_header'] = 'Show header above GeSHi Code Container';
$txt['geshi_enable_pre_header_desc'] = '';
$txt['geshi_pre_header'] = 'Header above GeSHi Code Container';
$txt['geshi_pre_header_desc'] = 'Voc&ecirc; pode usar {CODE}, {TAG} and {LANGUAGE} keywords. Para refer&ecirc;ncia, consulte <a href="http://codebirth.com/index.php?topic=81.0" target="_blank">cb|GeSHi-mod help</a>.';
$txt['geshi_enable_header'] = 'Mostrar cabe&ccedil;alho dentro GeSHi C&oacute;digo Container';
$txt['geshi_enable_header_desc'] = '';
$txt['geshi_header'] = 'Header inside GeSHi Code Container';
$txt['geshi_header_desc'] = 'Voc&ecirc; pode usar <a href="http://qbnz.com/highlighter/geshi-doc.html#keyword-substitution" target="_blank">these keywords</a>. Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#setting-header-content" target="_blank">3.12.2 Conte&uacute;do Header defini&ccedil;&atilde;o</a>.';
$txt['geshi_enable_footer'] = 'Mostrar Rodap&eacute; dentro GeSHi C&oacute;digo Container';
$txt['geshi_enable_footer_desc'] = '';
$txt['geshi_footer'] = 'Rodap&eacute; dentro GeSHi C&oacute;digo Container';
$txt['geshi_footer_desc'] = 'Voc&ecirc; pode usar <a href="http://qbnz.com/highlighter/geshi-doc.html#keyword-substitution" target="_blank">these keywords</a>. Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#setting-footer-content" target="_blank">3.12.3 Setting Footer Content</a>.';
$txt['geshi_enable_language_selector'] = 'Mostrar o selector de l&iacute;nguas';
$txt['geshi_enable_language_selector_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://codebirth.com/index.php?topic=81.0" target="_blank">cb|GeSHi-mod help</a>.';
$txt['geshi_language_selector'] = 'L&iacute;nguas selecion&aacute;veis';
$txt['geshi_language_selector_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://codebirth.com/index.php?topic=81.0" target="_blank">cb|GeSHi-mod help</a>.';
]]></add>
        </operation>
    </file>
    <file name="$themedir/languages/Themes.portuguese_brazilian.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
$txt['geshi_code_container'] = 'GeSHi Code Container';
$txt['geshi_code_container_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#the-code-container" target="_blank">3.1 O Container C&oacute;digo</a>.';
$txt['geshi_line_numbers'] = 'N&uacute;meros de linha';
$txt['geshi_line_numbers_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#line-numbers" target="_blank">3.2 N&uacute;meros de Linha</a>.';
$txt['geshi_fancy_line_number'] = 'Fantasia n&uacute;meros de linha';
$txt['geshi_fancy_line_number_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#line-numbers" target="_blank">3.2 N&uacute;meros de Linha</a>.';
$txt['geshi_line_style'] = 'Line style';
$txt['geshi_line_style_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#styling-line-numbers" target="_blank">3.2.2 Styling N&uacute;meros de Linha</a>.';
$txt['geshi_line_style_fancy'] = 'Fancy line style';
$txt['geshi_line_style_fancy_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#styling-line-numbers" target="_blank">3.2.2 Styling N&uacute;meros de Linha</a>.';
$txt['geshi_highlight_lines_extra_style'] = 'Linhas em destaque style';
$txt['geshi_highlight_lines_extra_style_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#styles-for-highlighted-lines" target="_blank">3.15.2 Destaque para as Linhas de Styles</a>.';
$txt['geshi_enable_pre_header'] = 'Show header above GeSHi Code Container';
$txt['geshi_enable_pre_header_desc'] = '';
$txt['geshi_pre_header'] = 'Header above GeSHi Code Container';
$txt['geshi_pre_header_desc'] = 'Voc&ecirc; pode usar {CODE}, {TAG} and {LANGUAGE} keywords. Para refer&ecirc;ncia, consulte <a href="http://codebirth.com/index.php?topic=81.0" target="_blank">cb|GeSHi-mod help</a>.';
$txt['geshi_enable_header'] = 'Mostrar cabe&ccedil;alho dentro GeSHi C&oacute;digo Container';
$txt['geshi_enable_header_desc'] = '';
$txt['geshi_header'] = 'Header inside GeSHi Code Container';
$txt['geshi_header_desc'] = 'Voc&ecirc; pode usar <a href="http://qbnz.com/highlighter/geshi-doc.html#keyword-substitution" target="_blank">these keywords</a>. Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#setting-header-content" target="_blank">3.12.2 Conte&uacute;do Header defini&ccedil;&atilde;o</a>.';
$txt['geshi_enable_footer'] = 'Mostrar Rodap&eacute; dentro GeSHi C&oacute;digo Container';
$txt['geshi_enable_footer_desc'] = '';
$txt['geshi_footer'] = 'Rodap&eacute; dentro GeSHi C&oacute;digo Container';
$txt['geshi_footer_desc'] = 'Voc&ecirc; pode usar <a href="http://qbnz.com/highlighter/geshi-doc.html#keyword-substitution" target="_blank">these keywords</a>. Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#setting-footer-content" target="_blank">3.12.3 Setting Footer Content</a>.';
$txt['geshi_enable_language_selector'] = 'Mostrar o selector de l&iacute;nguas';
$txt['geshi_enable_language_selector_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://codebirth.com/index.php?topic=81.0" target="_blank">cb|GeSHi-mod help</a>.';
$txt['geshi_language_selector'] = 'L&iacute;nguas selecion&aacute;veis';
$txt['geshi_language_selector_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://codebirth.com/index.php?topic=81.0" target="_blank">cb|GeSHi-mod help</a>.';
]]></add>
        </operation>
    </file>
    <file name="$themedir/languages/Themes.portuguese_brazilian-utf8.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
$txt['geshi_code_container'] = 'GeSHi Code Container';
$txt['geshi_code_container_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#the-code-container" target="_blank">3.1 O Container C&oacute;digo</a>.';
$txt['geshi_line_numbers'] = 'N&uacute;meros de linha';
$txt['geshi_line_numbers_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#line-numbers" target="_blank">3.2 N&uacute;meros de Linha</a>.';
$txt['geshi_fancy_line_number'] = 'Fantasia n&uacute;meros de linha';
$txt['geshi_fancy_line_number_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#line-numbers" target="_blank">3.2 N&uacute;meros de Linha</a>.';
$txt['geshi_line_style'] = 'Line style';
$txt['geshi_line_style_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#styling-line-numbers" target="_blank">3.2.2 Styling N&uacute;meros de Linha</a>.';
$txt['geshi_line_style_fancy'] = 'Fancy line style';
$txt['geshi_line_style_fancy_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#styling-line-numbers" target="_blank">3.2.2 Styling N&uacute;meros de Linha</a>.';
$txt['geshi_highlight_lines_extra_style'] = 'Linhas em destaque style';
$txt['geshi_highlight_lines_extra_style_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#styles-for-highlighted-lines" target="_blank">3.15.2 Destaque para as Linhas de Styles</a>.';
$txt['geshi_enable_pre_header'] = 'Show header above GeSHi Code Container';
$txt['geshi_enable_pre_header_desc'] = '';
$txt['geshi_pre_header'] = 'Header above GeSHi Code Container';
$txt['geshi_pre_header_desc'] = 'Voc&ecirc; pode usar {CODE}, {TAG} and {LANGUAGE} keywords. Para refer&ecirc;ncia, consulte <a href="http://codebirth.com/index.php?topic=81.0" target="_blank">cb|GeSHi-mod help</a>.';
$txt['geshi_enable_header'] = 'Mostrar cabe&ccedil;alho dentro GeSHi C&oacute;digo Container';
$txt['geshi_enable_header_desc'] = '';
$txt['geshi_header'] = 'Header inside GeSHi Code Container';
$txt['geshi_header_desc'] = 'Voc&ecirc; pode usar <a href="http://qbnz.com/highlighter/geshi-doc.html#keyword-substitution" target="_blank">these keywords</a>. Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#setting-header-content" target="_blank">3.12.2 Conte&uacute;do Header defini&ccedil;&atilde;o</a>.';
$txt['geshi_enable_footer'] = 'Mostrar Rodap&eacute; dentro GeSHi C&oacute;digo Container';
$txt['geshi_enable_footer_desc'] = '';
$txt['geshi_footer'] = 'Rodap&eacute; dentro GeSHi C&oacute;digo Container';
$txt['geshi_footer_desc'] = 'Voc&ecirc; pode usar <a href="http://qbnz.com/highlighter/geshi-doc.html#keyword-substitution" target="_blank">these keywords</a>. Para refer&ecirc;ncia, consulte <a href="http://qbnz.com/highlighter/geshi-doc.html#setting-footer-content" target="_blank">3.12.3 Setting Footer Content</a>.';
$txt['geshi_enable_language_selector'] = 'Mostrar o selector de l&iacute;nguas';
$txt['geshi_enable_language_selector_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://codebirth.com/index.php?topic=81.0" target="_blank">cb|GeSHi-mod help</a>.';
$txt['geshi_language_selector'] = 'L&iacute;nguas selecion&aacute;veis';
$txt['geshi_language_selector_desc'] = 'Para refer&ecirc;ncia, consulte <a href="http://codebirth.com/index.php?topic=81.0" target="_blank">cb|GeSHi-mod help</a>.';
]]></add>
        </operation>
    </file>


tranq

Hi, trying to install GeSHi mod.

  • patched the required files
  • downloaded the module, copied the entire directory Sources/ into the smf root directory

Now I am stuck at db_install.php.
QuoteThis file should not be able to execute standalone. You may have to run the following queries manually.
Ok, standalone executing gives me "Hacking attemp". What queries do I have to run? Where are they?
I dont have mods installed, its almost running on default options
???


codebirth

Hi,

Why don't you install the MOD in the usual way? I mean, uploading the package through the Package Manager of your Admin Center. That would mofify the files for you and run the needed queries. And most important, you'll have the option to uninstall the MOD.

tranq

Didn't know about that. thanks.

Hondo

Thank you for Geshi update
Here is a small change by me to add the Codeselector to Geshi:

Search in Subs.php:
$pre_header = "";
if ($settings[\'geshi_enable_pre_header\']) {
$pre_header = \'<div class="codeheader">\' . str_replace(array("{CODE}", "{TAG}", "{LANGUAGE}"), array($txt[\'code\'], strtoupper($lang), $geshi->get_language_name()), $settings[\'geshi_pre_header\']) . "</div>";
}


Replace
$pre_header = "";
if ($settings[\'geshi_enable_pre_header\']) {
$codeselector = $geshi->get_language_name() . \'&nbsp;&nbsp;<a href="javascript:void(0);" onclick="return smfSelectText(this);" class="codeoperation">\' . $txt[\'code_select\'] . \'</a>\';
$pre_header = \'<div class="codeheader">\' . str_replace(array("{CODE}", "{TAG}", "{LANGUAGE}"), array($txt[\'code\'], strtoupper($lang), $codeselector), $settings[\'geshi_pre_header\']) . "</div>";
}


Regards
Andreas

T3CHN0

could someone please post some screen shots
I would like to see that this mods does and looks like!

Thank You

alkisg

Hi, is anyone still using GeSHi?
I managed to update the code to run in SMF 2.0.18:
https://github.com/alkisg/smf-geshi

...it works, but PHP isn't my forte.
Has anyone made a better version?

Advertisement: