Syntaxhighlighter_XH

Third Party Plugins to CMSimple - how to install, use and create plugins

Moderator: Tata

Maxim
Posts: 121
Joined: Thu Jun 13, 2013 6:52 am
Location: Запорожье
Contact:

Syntaxhighlighter_XH

Post by Maxim » Fri Aug 14, 2015 9:46 am

If the parameters are such pre:

Code: Select all

<pre class="brush: applescript; fontsize: 100; first-line: 1; toolbar: false; ">
Syntaxhighlighter_XH - breaking the pattern: http://foxpro.maxim.zp.ua/programmy/ser ... vista.html

If you add "Syntaxhighlighter_XH" to "tinyMCE" - "tinyMCE" disappears.

Если параметры pre такие:

Code: Select all

<pre class="brush: applescript; fontsize: 100; first-line: 1; toolbar: false; ">
Syntaxhighlighter_XH - ломает шаблон: http://foxpro.maxim.zp.ua/programmy/ser ... vista.html

Если добавляю "Syntaxhighlighter_XH" к "tinyMCE" - "tinyMCE" исчезает.
Simple Hosting
Бедная, бросаемая бурею, безутешная!

cmb
Posts: 13274
Joined: Tue Jun 21, 2011 11:04 am
Location: Mü-Sa, RLP, DE
Contact:

Re: Syntaxhighlighter_XH

Post by cmb » Fri Aug 14, 2015 2:13 pm

Maxim wrote:Если параметры pre такие:

Code: Select all

<pre class="brush: applescript; fontsize: 100; first-line: 1; toolbar: false; ">
Syntaxhighlighter_XH - ломает шаблон: http://foxpro.maxim.zp.ua/programmy/ser ... vista.html
The code is not AppleScript, but rather VBScript and PowerShell, so use:

Code: Select all

<pre class="brush: vb; fontsize: 100; first-line: 1; toolbar: false; ">
resp.

Code: Select all

<pre class="brush: powershell; fontsize: 100; first-line: 1; toolbar: false; ">
(There is something wrong with the PowerShell brush; I'll have to investigate. I have made a workaround for your domain.)
Maxim wrote:Если добавляю "Syntaxhighlighter_XH" к "tinyMCE" - "tinyMCE" исчезает.
The language files (ru.js and ru_dlg.js) have been missing in plugins/tinymce/tiny_mce/plugins/syntaxhl/langs/, see http://3-magi.net/demo/presentation/plu ... imitations. A Russian translation would be welcome! :)
Christoph M. Becker – Plugins for CMSimple_XH

Maxim
Posts: 121
Joined: Thu Jun 13, 2013 6:52 am
Location: Запорожье
Contact:

VBScript and PowerShell

Post by Maxim » Mon Aug 17, 2015 6:40 am

Files "ru.js and ru_dlg.js" translated (syntaxhighlighter-xh-1alpha1-ru-js55d17e2b08066.zip): http://foxpro.maxim.zp.ua/saytostroenie ... ghter.html
The template is still broken (http://foxpro.maxim.zp.ua/saytostroenie ... ghter.html - syntaxhighlighter-xh-1alpha155d180aea871c.png).

Файлы "ru.js" и "ru_dlg.js" перевёл (syntaxhighlighter-xh-1alpha1-ru-js55d17e2b08066.zip): http://foxpro.maxim.zp.ua/saytostroenie ... ghter.html
Шаблон всё равно ломается (http://foxpro.maxim.zp.ua/saytostroenie ... ghter.html - syntaxhighlighter-xh-1alpha155d180aea871c.png).
Last edited by Maxim on Wed Jan 20, 2016 6:37 am, edited 1 time in total.
Simple Hosting
Бедная, бросаемая бурею, безутешная!

cmb
Posts: 13274
Joined: Tue Jun 21, 2011 11:04 am
Location: Mü-Sa, RLP, DE
Contact:

Re: VBScript and PowerShell

Post by cmb » Mon Aug 17, 2015 12:29 pm

Maxim wrote:Файлы "ru.js" и "ru_dlg.js" перевёл. Временно положил здесь: http://maxim.zp.ua/users/2/files.html (syntaxhighlighter-xh-1alpha1-ru-js55d17e2b08066.zip).
Thanks!
Maxim wrote:Шаблон всё равно ломается (http://maxim.zp.ua/users/2/files.html - syntaxhighlighter-xh-1alpha155d180aea871c.png).
Add the following to plugins/syntaxhighlighter/css/stylesheet.css:

Code: Select all

div.syntaxhighlighter {width: 70%; !important}
However, there are more issues in this regard on http://foxpro.maxim.zp.ua/programmy/ser ... vista.html. It seems that is an issue with the nested tables in template.htm.
Christoph M. Becker – Plugins for CMSimple_XH

Maxim
Posts: 121
Joined: Thu Jun 13, 2013 6:52 am
Location: Запорожье
Contact:

Шаблон всё равно ломается

Post by Maxim » Mon Aug 17, 2015 1:06 pm

The template is still broken.
Шаблон всё равно ломается.
Simple Hosting
Бедная, бросаемая бурею, безутешная!

cmb
Posts: 13274
Joined: Tue Jun 21, 2011 11:04 am
Location: Mü-Sa, RLP, DE
Contact:

Re: Syntaxhighlighter_XH

Post by cmb » Tue Aug 25, 2015 1:30 am

Maxim wrote:Шаблон всё равно ломается.
Of course it should be:

Code: Select all

div.syntaxhighlighter {width: 70% !important}
However, that will not fix the main problem: for whatever reason the table layout is broken. :?
Christoph M. Becker – Plugins for CMSimple_XH

Maxim
Posts: 121
Joined: Thu Jun 13, 2013 6:52 am
Location: Запорожье
Contact:

Без ";" шаблон всё равно ломается

Post by Maxim » Tue Aug 25, 2015 8:59 am

Without ";" the template is still broken.
Без ";" шаблон всё равно ломается.
Simple Hosting
Бедная, бросаемая бурею, безутешная!

lck
Posts: 1861
Joined: Wed Mar 23, 2011 11:43 am
Contact:

Re: Syntaxhighlighter_XH

Post by lck » Tue Aug 25, 2015 9:30 am

Maxim wrote:Without ";" the template is still broken.
Без ";" шаблон всё равно ломается.
cmb wrote:Of course it should be:

Code: Select all

div.syntaxhighlighter {width: 70% !important}
Change it to:

Code: Select all

div.syntaxhighlighter {
  max-width: 650px;
}
„Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig!“   👉 Ludwig's XH-Templates for MultiPage & OnePage

Maxim
Posts: 121
Joined: Thu Jun 13, 2013 6:52 am
Location: Запорожье
Contact:

but

Post by Maxim » Tue Aug 25, 2015 10:57 am

Code: Select all

div.syntaxhighlighter {max-width: 650px}
Helped, but the first 2 seconds the template is broken, and then everything works.
Помогло, но первые 2 секунды шаблон сломан, а потом всё работает.
Simple Hosting
Бедная, бросаемая бурею, безутешная!

lck
Posts: 1861
Joined: Wed Mar 23, 2011 11:43 am
Contact:

Re: Syntaxhighlighter_XH

Post by lck » Tue Aug 25, 2015 12:10 pm

Its hard to say, without the template. Maybe this is a solution.
Give your content td a fixed width of 711px ( 991px-(64px+216px) )

In your template.htm line ~104:

Code: Select all

<td align="left" valign="top">
            <table border="0" width="93%" cellspacing="0">
                <tr>
                    ...
change to:

Code: Select all

<td align="left" valign="top" style="width: 711px;">
            <table border="0" width="93%" cellspacing="0">
                <tr>
                    ...
„Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig!“   👉 Ludwig's XH-Templates for MultiPage & OnePage

Post Reply