Community
    • Login
    1. Home
    2. Popular
    Log in to post
    • All Time
    • Day
    • Week
    • Month
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics

    • All categories
    • S

      dark theme preference on main website doesn't work as expected.

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      14
      1 Votes
      14 Posts
      604 Views
      PeterJonesP
      @shocked-gamer , I created Issue #18534. I did some more digging into the javascript, and played with a replica of the relevant HTML and JS. I found that when the page is reloaded via a REFRESH / F5, browsers Chrome and Edge will always treat the checkbox.click() in the DOMContentLoaded event as an instruction to checkmark the checkbox. However, Firefox seems to remember that the checkbox was already checkmarked, so when it sends that method, Firefox clears the checkmark, putting it back into light mode. In the Issue, I supplied a slight tweak in the code that will make it correctly set that checkbox to true by not using the .click() method, but instead checkbox.checked = true; . With that, my experiments showed that Chrome, Edge, and Firefox would all remember the Dark Mode state on REFRESH or exit and relaunch. So I think that’s enough. Please note: this is because Firefox interprets the initial state of the checkbox differently after REFRESH than Chrome/Edge do. So it’s modifying the javascript to overcome a difference in interpretation of the specs between the different browsers.
    • T

      What are your favorite Notepad++ features for everyday coding?

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      4
      0 Votes
      4 Posts
      121 Views
      PeterJonesP
      @T.I-Digital-Solutions said: I mainly use Notepad++ for working with HTML, checking page source, and making quick edits during SEO tasks, so I was curious about features that could make those jobs easier. With those specifics, then I’d say good plugins to try would be HTML Tag, Preview HTML, and XMLTools. UDL is not useful for HTML, because the HTML lexer that’s built into Notepad++ is better than anything that the simple User Defined Language system can handle. But if you also deal with the server configuration files (like .htaccess files), then the UDL Collection has a UDL available for Htaccess, for example.
    • Patrick DanileviciP

      Save as .md default

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · · markdown
      14
      0 Votes
      14 Posts
      13k Views
      MarkusBodenseeM
      @myfancytextgenerator said: One small caveat worth keeping in mind: this covers the default language of new documents, not the file-type list in the Save As dialogue — the langs.xml tweak described earlier in this thread is still the way to get a dedicated .md entry there. Sorry… but this is just not true. It is implemented even longer, since Aug 2024, than the latest update. See Issue #11096 and PR #15490
    • Keith CollyerK

      wireloom in markdown viewers

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      9
      0 Votes
      9 Posts
      892 Views
      rdipardoR
      @Keith-Collyer said: Following a comment chain, I ended up adding a request to the markdig library here: https://github.com/xoofx/markdig/issues/952 Just an update for anybody following this thread: the feature request to implement wireloom was rejected by Markdig, the rendering library used by MarkdownPanel; it’s still possible for the plugin to implement the feature independently — without needing the WebView2 runtime — by back-porting a static copy of the wireloom.js module to the obsolete JavaScript standard that Internet Explorer supports; a working example of such a workflow can be found here; in the meantime, Preview HTML can now render Markdown and wireloom in Internet Explorer (version 11 )¹˙: [image: 1792597807908-preview_html_v148_ie11.gif] ¹˙ For Windows 7 users, that means ensuring update KB2841134 is installed, and “View as IE11” has been selected on the plugin menu: [image: 1792597754475-preview_html_win7_ie11_mode.png]