Page 1 of 2
Syntaxhighlighter_XH
Posted: Fri Aug 14, 2015 9:46 am
by Maxim
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" исчезает.
Re: Syntaxhighlighter_XH
Posted: Fri Aug 14, 2015 2:13 pm
by cmb
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!
VBScript and PowerShell
Posted: Mon Aug 17, 2015 6:40 am
by Maxim
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).
Re: VBScript and PowerShell
Posted: Mon Aug 17, 2015 12:29 pm
by cmb
Thanks!
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.
Шаблон всё равно ломается
Posted: Mon Aug 17, 2015 1:06 pm
by Maxim
The template is still broken.
Шаблон всё равно ломается.
Re: Syntaxhighlighter_XH
Posted: Tue Aug 25, 2015 1:30 am
by cmb
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.
Без ";" шаблон всё равно ломается
Posted: Tue Aug 25, 2015 8:59 am
by Maxim
Without ";" the template is still broken.
Без ";" шаблон всё равно ломается.
Re: Syntaxhighlighter_XH
Posted: Tue Aug 25, 2015 9:30 am
by lck
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;
}
but
Posted: Tue Aug 25, 2015 10:57 am
by Maxim
Code: Select all
div.syntaxhighlighter {max-width: 650px}
Helped,
but the first 2 seconds the template is broken, and then everything works.
Помогло,
но первые 2 секунды шаблон сломан, а потом всё работает.
Re: Syntaxhighlighter_XH
Posted: Tue Aug 25, 2015 12:10 pm
by lck
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>
...