- Make a mass replacement in *.html of the string
with this:
Code: Select all
<link href="ie.css" type="text/css" rel="stylesheet">
Or you can write it next, not the point.Code: Select all
<script language="javascript" src="external.js" type="text/javascript"></script>
- Throw into the chm root this external.js:
Code: Select all
var path = unescape(location.pathname), n = 0 if( path.indexOf('::') != -1 ) { if( path.charAt(0) == '@' ) { n = path.indexOf(':') + 1 } document.writeln('<link rel="stylesheet" href="file://' + path.substring(n, path.lastIndexOf('\\') + 1) + 'style.css" type="text/css">') }
- Place ie.css with TotalcmdDark.chm, call (including in .js) style.css or something else, for example, TotalcmdDark.css.
Dark Help for TC 11.51 - Updated February 19th 2025
Moderators: Hacker, petermad, Stefan2, white
Re: Dark Help for TC 11.02 - Updated November 9th 2023
Overquoting is evil! 👎
Re: Dark Help for TC 11.02 - Updated November 9th 2023
2Fla$her
Does it work in Windows 9x?
Does it work in Windows 9x?
Andrzej P. Wozniak
Polish subforum moderator
Polish subforum moderator
Re: Dark Help for TC 11.02 - Updated November 9th 2023
2Usher
In Win95, definitely not, there was no javascript back then. And in 98/Me it's necessary to look, I haven't used them for "100 years".
In Win95, definitely not, there was no javascript back then. And in 98/Me it's necessary to look, I haven't used them for "100 years".
Overquoting is evil! 👎
Re: Dark Help for TC 11.02 - Updated November 9th 2023
2Fla$her
It works, but having to change all the 213 .htm files each time there is a new help file is a bit much compared to the 6 files I currently have to change (apart from the 31 . gif files which just have to be overwritten).
I am also sure that anybody that can edit an external css file can also figure out to edit the internal ie.css instead.
Anyway - if I do choose to implement it, I would not replace <link...> with <script...></script> I would just add <script...></script> after <link...> - in that way it will also work if the external css file is missing (if more than 1 style is set for an element, it is the last one that is applied).
It works, but having to change all the 213 .htm files each time there is a new help file is a bit much compared to the 6 files I currently have to change (apart from the 31 . gif files which just have to be overwritten).
I am also sure that anybody that can edit an external css file can also figure out to edit the internal ie.css instead.
Anyway - if I do choose to implement it, I would not replace <link...> with <script...></script> I would just add <script...></script> after <link...> - in that way it will also work if the external css file is missing (if more than 1 style is set for an element, it is the last one that is applied).
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: Dark Help for TC 11.02 - Updated November 9th 2023
Why did you decide that? Users will quickly figure out where to enter the color html code into css. But they will have problems with how to edit chm. By adding external css, you will simplify the approach for everyone, because people will only need to edit their file once and not replace it when updating chm.petermad wrote: 2023-11-13, 17:58 UTC I am also sure that anybody that can edit an external css file can also figure out to edit the internal ie.css instead.
I agree, that's why I suggested it as an alternative.
Overquoting is evil! 👎
Re: Dark Help for TC 11.02 - Updated November 9th 2023
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: Dark Help for TC 11.02 - Updated November 9th 2023
2petermad
Well, sort of. It remains to figure out what to do with hsc6C4.hhc.
Well, sort of. It remains to figure out what to do with hsc6C4.hhc.
Overquoting is evil! 👎
Re: Dark Help for TC 11.02 - Updated November 9th 2023
Well first of all, it is not possible to set anything but the background color in hsc6C4.hhc. The colors of the list items cannot be set, you can see that discussed elsewhere in this forum, and on the net.Fla$her wrote: 2023-11-13, 20:55 UTC 2petermad
Well, sort of. It remains to figure out what to do with hsc6C4.hhc.
I tried running javascript in hsc6C4.hhc - but it is apparantly not supportet and neither is css.
I had hoped thet I could dynamically change the line that sets the background color:
Code: Select all
<param name="Background" value="0x202020">
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: Dark Help for TC 11.02 - Updated November 9th 2023
Background is the primary thing for TotalcmdDark2.chm, that's why it's important. And why did you change other htm colors if they have no effect?petermad wrote: 2023-11-13, 21:10 UTC Well first of all, it is not possible to set anything but the background color in hsc6C4.hhc.
And what did you do?petermad wrote: 2023-11-13, 21:10 UTC I had hoped thet I could dynamically change the line that sets the background color:
While I'm watching the article, I need to think about solutions.
In the meantime, please add /* comment */ to each line of TotalcmdDark.css.
By the way, the color for .s67 for some reason doesn't change. I look at the "Keyboard layout" page: 8 hotkeys from .p61 have changed color, the rest have not. :/
Last edited by Fla$her on 2023-11-14, 01:35 UTC, edited 1 time in total.
Overquoting is evil! 👎
Re: Dark Help for TC 11.02 - Updated November 9th 2023
I just tested a simple <script language="javascript" src="external.js" type="text/javascript">alert("hi")</script> - no alert, so no javascript support.And what did you do?
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: Dark Help for TC 11.02 - Updated November 9th 2023
Understood. See the addition below.
Overquoting is evil! 👎
Re: Dark Help for TC 11.02 - Updated November 9th 2023
That is not my doing, all those s and p classes are made by Ghislers HelpScribble program - I havent changed them, I have only changed the 5 first lines.By the way, the color for .s67 for some reason doesn't change. I look at the "Keyboard layout" page: 8 hotkeys from .p61 have changed color, the rest have not. :
There is nothing below that line ??See the addition below
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: Dark Help for TC 11.02 - Updated November 9th 2023
I know. I just wanted confirmation.That is not my doing
Are you talking about the first quote? As you can see.There is nothing below that line ??
Overquoting is evil! 👎
Re: Dark Help for TC 11.02 - Updated November 9th 2023
You wrote: " See the addition below" - my question is: below what?Are you talking about the first quote? As you can see.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: Dark Help for TC 11.02 - Updated November 9th 2023
At the bottom of the previous message.
I'm asking to format css in a slightly more readable form:
Code: Select all
body { background-color: #1F2B3D; color: #D0D1DB }
a:link { color: #A8C2FF }
a:visited { color: #CDB5FF }
a:active { color: #80FF00 }
a:hover { color: #80FF00 }
.s3 { color: #FF265A }
.s5 { color: #FF265A }
.s22 { color: #FF265A }
.s38 { color: #FF265A }
.s54 { color: #93FFAD }
.s55 { color: #A8C2FF }
.s67 { color: #FF265A }
.s72 { color: #FF265A }
.p11 { color: #FF265A }
.p13 { color: #FF265A }
.p33 { color: #FF265A }
.p61 { color: #FF265A }
.p70 { color: #FF265A }
Last edited by Fla$her on 2023-11-14, 04:11 UTC, edited 1 time in total.
Overquoting is evil! 👎