analitics

Pages

Tuesday, February 10, 2026

Python Qt6 : one simple markdown editor.

Today, I tested my simple Markdown editor. I used artificial intelligence.
This project is a custom Markdown editor built with PyQt6.
It provides a two‑panel interface where the user writes Markdown on the right side and sees a live HTML preview on the left side.
The goal is to offer a simple and efficient workflow similar to GitHub’s Markdown rendering.
Main Features
  • Two‑panel layout The left panel displays the rendered HTML preview, while the right panel contains the Markdown editor and formatting buttons.
  • Real‑time preview Every change in the editor updates the preview instantly. The preview uses multiple Markdown extensions to support tables, lists, code blocks, footnotes, and other GitHub‑style formatting.
  • Image support Images inserted through the editor are converted to local file URLs. This ensures that the preview panel can load them correctly, even when the image is stored outside the project folder.
  • Markdown extensions The editor enables a wide set of extensions, including:
    • tables
    • fenced code blocks
    • footnotes
    • definition lists
    • smart quotes
    • wiki links
    • admonitions
    • GitHub‑style lists
    These extensions allow the preview to closely match GitHub’s Markdown rendering.
  • Editing toolbar The editor includes quick‑insert buttons for bold, italic, lists, and images. These buttons modify only the Markdown text in the editor panel.
  • Zoom controls The preview panel includes buttons for resetting zoom to 100 percent, zooming in, and zooming out. This helps when working with long documents or detailed tables.
  • File operations The application supports creating, opening, and saving Markdown files. It also includes an option to export the rendered content as an HTML file.
  • Theme switching Users can switch between light and dark themes depending on their preference.
  • Drag and drop Markdown files can be opened by dragging them directly into the window.
  • Plugin system The editor includes a simple plugin mechanism that allows adding new features without modifying the core application.
  • Status bar The bottom bar displays the current file path, file size, and word count.

Monday, February 9, 2026

Python 3.13.0 : New Feature: Interactive History Search.

If you are using the new Python 3.13 REPL, you might have noticed a new prompt when pressing certain keys. This is the upgraded interactive shell that now supports built-in history searching.
What is f-search and r-search?
These features allow you to search through every command you have previously typed without using the arrow keys.
How to trigger it:
- Press Ctrl + R to initiate a Reverse Search. You will see (r-search ''). This looks through your history from newest to oldest.
- Press Ctrl + S to initiate a Forward Search. You will see (f-search ''). This looks through your history from oldest to newest.
How to use it:
1. Type the shortcut (Ctrl+R or Ctrl+S).
2. Start typing any part of a previous command (e.g., 'import' or 'def').
3. The shell will automatically complete the line with the best match.
4. Press Enter to run the command, or use the arrow keys to start editing the found line.
5. If you want to cancel the search, simply press Ctrl + G.
This feature makes the Python 3.13 terminal feel much more like a modern shell, saving time and reducing repetitive typing.
C:\Python313_64bit>python
Python 3.13.0 (tags/v3.13.0:60403a5, Oct  7 2024, 09:38:07) [MSC v.1941 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> import sys
(r-search `os') import os