topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Tuesday November 11, 2025, 6:22 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Recent Posts

Pages: prev1 2 3 4 5 [6] 7 8 9 10 11 ... 30next
126
Some code blocks need to be just a line or two.  Any way to  do this too?

Yes. Please try with:

<pre><code style="height: auto;">

Cheers! :Thmbsup:
127
Looks great!  Will be testing it next week, thanks for the help  :)

Glad you find it useful! Remember you can also add it to your style sheet if you want it to be applied to every "code" block in the page, in case you get to feature more than one :Thmbsup:

<style>
code {
    max-height: 40em;
    resize: vertical;
}
</style>

Cheers!
128
Hello again Phil! I got your last requirement covered:

Nice to let user drag height to what is best for them.
-OptimalDesigns (August 31, 2023, 03:03 PM)

You will need to add the resize: vertical; style to the code tag, like this:

<pre><code style="max-height:40em; resize: vertical;">

Screenshot from 2023-09-01 23-16-47_vertical-scroll.png

Anything else, just say it :Thmbsup:
Vic
129
A) If the "window" is in-page, you can use a floating div.

Vic, option 'A' should do it.  Phil

Super! Just posted right above about the "max-height" style :Thmbsup:

https://www.donationcoder.com/forum/index.php?topic=53683.msg452507#msg452507

(Exact edit to your HTML attached )
130
Is this your requirement?  :)

Screenshot from 2023-09-01 19-30-49_example-code.png

If so, just add the max-height style to the current code tag in your HTML page:

<pre><code style="max-height:40em;">
131
I'm trying to create a 'window' like we use to send msg.s from, but with my <pre><code> ... </code in it.  No, not highlighting it.  Here is a link that will show you what your highlighting did.  The article html code is attached.

Thanks for the clarification.

A) If the "window" is in-page, you can use a floating div.

B) If the "window" is separate from the page, you can use a popup on click.

Please specify your requirement! (A or B) I can provide the HTML for either (or both)  :Thmbsup:
132
I'm talking about a blank webpage ... need html code for the job.

I'm in for the job!  :Thmbsup:

So, if I understand you correctly, you're talking about a Syntax Highlighter, such as:

https://highlightjs.org



An easy setup is this:

1) First, you need to load the highlighter from CDN:

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/default.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js"></script>

<!-- and it's easy to individually load additional languages -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/languages/go.min.js"></script>

<script>hljs.highlightAll();</script>

2) Insert the code in the tags for automatic loading:

This will find and highlight code inside <pre><code> tags; it tries to detect the language automatically. If automatic detection does not work for you, you can specify the language in the class attribute:

<pre><code class="language-html">...</code></pre>



You can find a list of available programming languages to highlight here:

https://highlightjs.org/download



Nice to let user drag height to what is best for them.

So, you are able to insert the code (and language) on the page and only need the user to control the height of the highlighted code window?

(It is doable! Even if another highlighter may be suitable. 'Where there is a will there's a way' :))

Thanks.
133
Living Room / Re: Where is Mouser ?
« Last post by publicdomain on August 24, 2023, 07:29 PM »
Welcome back AMIGO! Doing what you love surely beats "working" hands down :Thmbsup:

Congrats on the win for doing it!  :-*

(You're truly a hero for the many folks around & this community does care about your well-being )
134
PublicDomainVic / Re: Single Dot in Graphics Window
« Last post by publicdomain on August 24, 2023, 09:47 AM »
Vic, a possible enhancement request, if you might have the time.

Totally possible! Some "PD coding time" is being refreshed :Thmbsup:
135
Please explain how to do that; what hotkeys?

Hi Nick! When you click/check the "Enable hotkeys" menu, it registers the following keyboard shortcuts:

  • SHIFT + A (Prev)
  • SHIFT + S (Next)
  • SHIFT + D (Play)
  • SHIFT + Q (First)
  • SHIFT + W (Last)

Feel free to try it if you want to trigger functionality by keyboard; some folks find it useful :Thmbsup:

Cheers!
🤗,
Vic
136
PublicDomainVic / Re: Single Dot in Graphics Window
« Last post by publicdomain on July 27, 2023, 11:12 AM »
Is the random pattern the same each and every time, or does it change each time?

Hi Nick! The default "seeding" for the C# language random generator code is used, so it should be dynamic :Thmbsup:
137
with Win11's stupid new smaller right-click context menu, this app is consigned to the "more options"

Registry edit @ https://www.winhelponline.com/blog/get-classic-full-context-menu-windows-11/

"You have to make sure to Log Off Windows and then Log On again and it will work. I just tried it. The key is logging OUT of Windows and then logging IN."
-D

 :Thmbsup:
138
The amount came from how much time it saved me, not sure how much time it took you to solve my problem
-OptimalDesigns (July 15, 2023, 05:55 PM)

Kudos on your generosity :-* I can also help you save time, from mini-tasks to whole-site revamps :)
139
I'm new to DC and besides an up to now unanswered "IDEA" I think this was my first reply to a question.

I see, please have a belated WELCOME TO DC then!  :Thmbsup:



I'm only now seeing your request @ IDEA: Tray-Tool to remember & restore open Explorer-windows (Reboot or Crash)

In my case, I have all the willingness to assist the world with public domain releases, up to devoting full-time to it  :-*

I'm soon to back to the "scene" as I finish my current contracts; if your request keeps unanswered by then, I'm willing to attend it to the best of my ability :)

Cheers & congrats on the DonationCredits! That's quite a welcoming on itself
140
It is up and working!  Thanks for all your help, Phil

Check your donation account for 180 'credits'
-OptimalDesigns (July 12, 2023, 11:42 AM)

Wow, thanks for supporting DonationCoders' work :Thmbsup:

You deserve a special badge for most-generous reward @OptimalDesigns  :-*

Kudos indeed!
141
PublicDomainVic / Re: Timed Key Repeat, With Variable Timing
« Last post by publicdomain on July 11, 2023, 03:18 PM »
Thanks for the refreshment and appreciation Nick.

Yes, it is understood the variable to add/subtract from is the one controlling the time in between key presses  :Thmbsup:

... what coding language is best for such an assignment?

There's some foundational C# code posted @ GitHub (as mentioned). It isn't necessarily the ultimate or best language, yet it is the one I'll be using for this implementation  :)

Cheers!
142
PublicDomainVic / Re: Timed Key Repeat, With Variable Timing
« Last post by publicdomain on July 09, 2023, 07:40 PM »
Hey! I'm currently hired & swamped yet chances are this timed&variable key will be our next PD release  :Thmbsup:

Slow and steady wins the race :D
143
N.A.N.Y. 2024 / Re: New Apps for the New Year 2024 section is open
« Last post by publicdomain on June 02, 2023, 05:25 AM »
The NANY 2024 (New Apps for the New Year) section is now open.

Great news! N.A.N.Y. is the heart & soul of the DonationCoder experience  :Thmbsup:

I'm certainly going to participate with a new app :-*

Thanks for keeping it up & running
144
PublicDomainVic / Re: Timed Key Repeat, With Variable Timing
« Last post by publicdomain on May 27, 2023, 06:57 AM »
Alright! Regarding the TKR program, we're starting with an advantage since there's already a previous similar PD release named "KeyLoop" in our repositories:

https://github.com/publicdomain/keyloop

(Loops a key with configurable simulated presses and delay)

Next step is to modify that code to fit this request :Thmbsup:
145
PublicDomainVic / Re: Timed Key Repeat, With Variable Timing
« Last post by publicdomain on May 25, 2023, 06:44 AM »
Hi Guys, I'm okay either way :)



As a matter of fact, there's some activity on the PM sphere between Nick and me, so, perhaps there shall be full disclosure regarding the threads appearing here on this section (?) i.e. "[For Vic]", or something along those lines, should they be directed specifically at me.

...PM's do impact public posting at times e.g. I opened the repo @ https://github.com/publicdomain/timed-key-repeat but didn't announce it as I'm telling Nick about an idea for stepped multiples of speed on keys 1-9, perhaps nitpicking over small details LoL



Hey! I aim to be a plus for this fine DC community; my life's motto is to focus on the productive&positive side hence I'm truly fine either way attending on the coding snacks space or here. No biggie from me :Thmbsup:
146
Post New Requests Here / Re: Create Song Playlist
« Last post by publicdomain on May 21, 2023, 08:13 PM »
Hey! This one seems like it's going to help many fellows  :Thmbsup:

nkPlaylist repo open @ https://github.com/p...licdomain/nkplaylist

"Create random playlist from keywords and folder for opening in a specific player."



So. I'm getting: indexed DB with tags support from all music files in folder for searching + limited random picking + launch generated playlist in a player set by the user.

On the way! :)

The difficulties are often in the details.

The largest problem, and likely insurmountable, lies in number of files in one's music library.

As that number becomes huge, creating even a file list to draw from becomes awful.

So, 'indexing' is thus the answer to this.  And accessing the index.

That's far more than reasonable for DonationCoder friends.

I presently use MediaMonkey, which creates an index.

But if one simply wants a fast random 25 files to quickly listen to for a bit, no easy way.  Sorry folks.
147
PublicDomainVic / Re: Single Dot in Graphics Window
« Last post by publicdomain on May 21, 2023, 01:28 AM »
Hi Nick! nkDot v0.1.0 is published!  :)


Please confirm it works for you & meets your requirements :Thmbsup:

Anything else, just "shout" --I'm around to assist

Cheers!
Vic
148
Announce Your Software/Service/Product / Re: DC coding spree service
« Last post by publicdomain on May 21, 2023, 12:59 AM »
Thanks to Deozaan for supporting toward the development of more DC releases  :-*

You're a star

149
nkDot

Configurable random dot in Graphics Window.





⬇️ Downloads:




Made for: nkormanik

Original thread: Single Dot in Graphics Window

Source code: nkDot @ GitHub

Targets Microsoft .NET framework v4.5

v0.1.0:

  • Dot color.
  • Dot size.
  • Dot redraw interval.
  • Running time.
  • Background color.
  • Location.
  • Size.
  • Maximized.
  • Always on top.

Day #141, Week #20 @ May 21, 2023

==========

Release supporters:

  • Jesse Reichler (A.K.A. Mouser from DonationCoder.com)
  • Max P.
  • Kathryn S.
  • Cranioscopical
  • Tomos
  • luvnbeast
  • nkormanik
  • Deozaan
  • Will you be our next supporter? :)
💗 Support:

One-time Paypal @ https://www.paypal.com/paypalme/victorvls
Our Patreon page @ www.patreon.com/publicdomain.
Email/Paypal: [email protected]

Thanks & keep on rocking! 👍
Vic
150
PublicDomainVic / Re: Single Dot in Graphics Window
« Last post by publicdomain on May 18, 2023, 08:02 AM »
In, say, an .ini file within program folder [...]

Hi Nick! We're going to go with idiomatic XML files (.NET) instead of .ini files. Thanks to the editor GUI, chances are you're hardly going to have to edit things manually, so it makes sense for both programs to pass properties/configuration state natively :)

nkDot Editor:

nkDotEditor_ALPHA02.png
Pages: prev1 2 3 4 5 [6] 7 8 9 10 11 ... 30next