Dark Help for TC 11.03 - Updated February 21st 2024

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

User avatar
DRP535
Senior Member
Senior Member
Posts: 301
Joined: 2003-03-03, 11:25 UTC

Re: Dark Help for TC 11.02 - Updated November 9th 2023

Post by *DRP535 »

white wrote: 2023-11-22, 09:41 UTC
DRP535 wrote: 2023-11-22, 01:08 UTC Language Folder:
..
WCMD_ENG>CHM
That's the problem. Remove the file and the problem should be solved.
Thanks. Fixed
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Dark Help for TC 11.02 - Updated November 9th 2023

Post by *petermad »

white wrote: 2023-11-22, 09:41 UTC
DRP535 wrote: 2023-11-22, 01:08 UTC Language Folder:
..
WCMD_ENG>CHM
That's the problem. Remove the file and the problem should be solved.
Either remove it or copy totalcmd.chm to Language\wcmd_eng.chm and also copy totalcmdDark.chm to Language\Wcmd_engDark.chm

But it is definitely easier to delete Language\wcmd_eng.chm - then you don't have to remember to update it every time there is a new totalcmd.chm
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Dark Help for TC 11.03 - Updated February 21st 2024

Post by *petermad »

New version of the Dark Help for Total Commander 11.03 is now available - see first post for download.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Fla$her
Power Member
Power Member
Posts: 2318
Joined: 2020-01-18, 04:03 UTC

Re: Dark Help for TC 11.03 - Updated February 21st 2024

Post by *Fla$her »

2petermad
In the first post, it's worth noting that "externt CSS script" means color customization.
I still don't understand why you didn't want simplified formatting. Semicolons and text-decoration could be eliminated.
In any case, thank you for publishing an optional solution.
Overquoting is evil! 👎
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Dark Help for TC 11.03 - Updated February 21st 2024

Post by *petermad »

2Fla$her
Semicolons and text-decoration could be eliminated.
I have to change the .s and.p entries for each new version (the numbers are not always the same) - so having to remove the semicolons is extra work.
In case the user wants to change the text-decoration for the a: entries, it is easier when they are prefilled.

Feel free to retain your own version of the .css file.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Fla$her
Power Member
Power Member
Posts: 2318
Joined: 2020-01-18, 04:03 UTC

Re: Dark Help for TC 11.03 - Updated February 21st 2024

Post by *Fla$her »

petermad wrote: 2024-02-24, 14:01 UTCthe numbers are not always the same
Hmm, I didn't know.
so having to remove the semicolons is extra work.
It's not a problem. Replace_TotalcmdDark.css.js:

Code: Select all

file = 'TotalcmdDark.css'
with (WSH.CreateObject('Scripting.FileSystemObject')) {
   text = openTextFile(file).readAll().replace(/\;[^\s\}]* ?/g,' ')
   with(openTextFile(file,2)){write(text);close()}
}
And so it will be with the aligned design:

Code: Select all

var file = 'TotalcmdDark.css'

with (WSH.createObject('Scripting.FileSystemObject')) {
   with (openTextFile(file)) {
      f1 = readLine().replace(/(\S)\}/, '$1 }')
      f2 = openTextFile(file).readAll().replace(/\;[^\s\}]* ?/g,' ').replace(/(\S)\}/g, '$1 }')
   }
   with (openTextFile(file, 2)) {
      write(f1 + mass(/a\:[^\r\n]+/g) + mass(/\.[sp][^\r\n]+/g))
      close()
   }
}

function mass(filt) {
   var arr, n, s, i, max=0, text=''
   arr = f2.match(filt)
   for (n = 0; n < arr.length; ++n) {
      i = arr[n].indexOf('{'); if (i > max) max = i
   }
   for (n = 0; n < arr.length; ++n) {
      s = arr[n]; i = s.indexOf('{')
      if(i < max) s = s.replace("{", Array(max + 1 - i).join(' ') + '{')
      text = text + '\r\n' + s
   }
   return text
}
Feel free to retain your own version of the .css file.
You must understand that I'm not trying for myself. ;)
Overquoting is evil! 👎
Post Reply