Third Party Plugins to CMSimple - how to install, use and create plugins
Moderator: Tata
-
cmb
- Posts: 14225
- Joined: Tue Jun 21, 2011 11:04 am
- Location: Bingen, RLP, DE
-
Contact:
Post
by cmb » Fri Aug 14, 2015 2:13 pm
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!
-
cmb
- Posts: 14225
- Joined: Tue Jun 21, 2011 11:04 am
- Location: Bingen, RLP, DE
-
Contact:
Post
by cmb » Mon Aug 17, 2015 12:29 pm
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.
-
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.
Шаблон всё равно ломается.
-
cmb
- Posts: 14225
- Joined: Tue Jun 21, 2011 11:04 am
- Location: Bingen, RLP, DE
-
Contact:
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.
-
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.
Без ";" шаблон всё равно ломается.
-
lck
- Posts: 2977
- Joined: Wed Mar 23, 2011 11:43 am
-
Contact:
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;
}
-
Maxim
- Posts: 121
- Joined: Thu Jun 13, 2013 6:52 am
- Location: Запорожье
-
Contact:
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 секунды шаблон сломан, а потом всё работает.
-
lck
- Posts: 2977
- Joined: Wed Mar 23, 2011 11:43 am
-
Contact:
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>
...