Search this site
Embedded Files
The Awesome Script Site
  • Start
  • Chrome Extensions
    • Privacy Policy CookieCleanerPro
  • GAS user scripts
    • Annual wheel
    • Cell edit log tool
    • Password generator
    • Manage shared drive folder structure
    • File manager script
    • Freeze headers
    • Filename renamer
    • The ultimate start sheet
    • GMail label organiser
    • Contact organizer
    • Email attachment to Shared Drive
    • Folder Replicator Script
    • Password generator and credential sender
  • GAS admin scripts
    • Alias management
    • Report admin accounts
    • Chromebook report script
    • Group member handler
    • Group member reporter
    • Move suspended users to Suspended users OU
    • OU cleaner
    • OU Creator
    • Report empty groups
    • Transfer file ownership
    • Bulk password reset tool
  • JavaScripts based tools
    • Text&Code Edit+
    • Kretz Image Editor Pro
    • VeryBoard
    • Advanced Reg-Ex Tester
    • SecureZip Pro
    • EasyScreenCap
    • Secure Password Guide
    • PDF to Word Converter
    • Easy QR Code generator
    • On My Mind
    • PDF Merger
    • Simple Wav Editor
    • Advanced Color Picker
    • Multiformat and multi search tool
    • CSV File Splitter
    • File Zipper
    • PDF Splitter
    • Text Encryptor/Decryptor
    • Hex Converter
    • Image to PDF Converter
  • Python scripts
  • Nerdy stuff
    • Synths, Drum and Audio tools
      • Kretz FM Synthesizer
      • Kretzonizer 4.0
        • Kretzonizer demo files
      • Kretz Multi-Track Drum Machine v2.16 beta
      • Kretz Mono Synthetic Drum Machine
      • Kretz Audio Visualizer
      • Kretzonizer 1.0
      • Oscilloscope
    • Games
      • PimCraft
      • Splat!
      • 3D Space shooter
      • Snake 3D
      • Flight
      • Ducky Dash Chihuahua Chase
      • Pimtris
      • pIONg
      • The Sinus demo
      • The never ending Pong game
    • Other nerdy apps
      • Morse code generator
The Awesome Script Site
  • Start
  • Chrome Extensions
    • Privacy Policy CookieCleanerPro
  • GAS user scripts
    • Annual wheel
    • Cell edit log tool
    • Password generator
    • Manage shared drive folder structure
    • File manager script
    • Freeze headers
    • Filename renamer
    • The ultimate start sheet
    • GMail label organiser
    • Contact organizer
    • Email attachment to Shared Drive
    • Folder Replicator Script
    • Password generator and credential sender
  • GAS admin scripts
    • Alias management
    • Report admin accounts
    • Chromebook report script
    • Group member handler
    • Group member reporter
    • Move suspended users to Suspended users OU
    • OU cleaner
    • OU Creator
    • Report empty groups
    • Transfer file ownership
    • Bulk password reset tool
  • JavaScripts based tools
    • Text&Code Edit+
    • Kretz Image Editor Pro
    • VeryBoard
    • Advanced Reg-Ex Tester
    • SecureZip Pro
    • EasyScreenCap
    • Secure Password Guide
    • PDF to Word Converter
    • Easy QR Code generator
    • On My Mind
    • PDF Merger
    • Simple Wav Editor
    • Advanced Color Picker
    • Multiformat and multi search tool
    • CSV File Splitter
    • File Zipper
    • PDF Splitter
    • Text Encryptor/Decryptor
    • Hex Converter
    • Image to PDF Converter
  • Python scripts
  • Nerdy stuff
    • Synths, Drum and Audio tools
      • Kretz FM Synthesizer
      • Kretzonizer 4.0
        • Kretzonizer demo files
      • Kretz Multi-Track Drum Machine v2.16 beta
      • Kretz Mono Synthetic Drum Machine
      • Kretz Audio Visualizer
      • Kretzonizer 1.0
      • Oscilloscope
    • Games
      • PimCraft
      • Splat!
      • 3D Space shooter
      • Snake 3D
      • Flight
      • Ducky Dash Chihuahua Chase
      • Pimtris
      • pIONg
      • The Sinus demo
      • The never ending Pong game
    • Other nerdy apps
      • Morse code generator
  • More
    • Start
    • Chrome Extensions
      • Privacy Policy CookieCleanerPro
    • GAS user scripts
      • Annual wheel
      • Cell edit log tool
      • Password generator
      • Manage shared drive folder structure
      • File manager script
      • Freeze headers
      • Filename renamer
      • The ultimate start sheet
      • GMail label organiser
      • Contact organizer
      • Email attachment to Shared Drive
      • Folder Replicator Script
      • Password generator and credential sender
    • GAS admin scripts
      • Alias management
      • Report admin accounts
      • Chromebook report script
      • Group member handler
      • Group member reporter
      • Move suspended users to Suspended users OU
      • OU cleaner
      • OU Creator
      • Report empty groups
      • Transfer file ownership
      • Bulk password reset tool
    • JavaScripts based tools
      • Text&Code Edit+
      • Kretz Image Editor Pro
      • VeryBoard
      • Advanced Reg-Ex Tester
      • SecureZip Pro
      • EasyScreenCap
      • Secure Password Guide
      • PDF to Word Converter
      • Easy QR Code generator
      • On My Mind
      • PDF Merger
      • Simple Wav Editor
      • Advanced Color Picker
      • Multiformat and multi search tool
      • CSV File Splitter
      • File Zipper
      • PDF Splitter
      • Text Encryptor/Decryptor
      • Hex Converter
      • Image to PDF Converter
    • Python scripts
    • Nerdy stuff
      • Synths, Drum and Audio tools
        • Kretz FM Synthesizer
        • Kretzonizer 4.0
          • Kretzonizer demo files
        • Kretz Multi-Track Drum Machine v2.16 beta
        • Kretz Mono Synthetic Drum Machine
        • Kretz Audio Visualizer
        • Kretzonizer 1.0
        • Oscilloscope
      • Games
        • PimCraft
        • Splat!
        • 3D Space shooter
        • Snake 3D
        • Flight
        • Ducky Dash Chihuahua Chase
        • Pimtris
        • pIONg
        • The Sinus demo
        • The never ending Pong game
      • Other nerdy apps
        • Morse code generator

Text&Code Edit+

Text&Code Edit+ Application Documentation

1. Overview

Text&Code Edit+ is a browser-based, dual-mode text editor designed to bridge the gap between raw code editing and formatted document creation. It operates entirely client-side, using advanced DOM manipulation to handle file generation without external servers.

What to Expect

  • Dual-Engine Editing:

    • Code Engine: Powered by CodeMirror 5 for syntax highlighting, bracket matching, and indentation.

    • Document Engine: A WYSIWYG (What You See Is What You Get) editor for formatted text.

  • True File Generation: The app now includes a custom conversion engine that parses your visual document and translates it into valid Rich Text Format (RTF) syntax (not just HTML saved with an .rtf extension).

  • Intelligent Saving: The application automatically handles MIME types and file extensions based on the active mode.

What NOT to Expect

  • Code Execution: This is an editor, not an IDE. It will highlight Python or C++ syntax, but it cannot run scripts or compile binaries.

  • Complex RTF Features: The RTF generator handles standard formatting (Fonts, Sizes, Bold, Italic, Lists, Links). It does not currently support complex tables, embedded images, or custom color palettes in the exported file.

2. Supported Languages & Formats

The application supports specific file extensions and utilizes different saving strategies for each:

Document Creation (Visual Mode)

Mode

Extension

Features

Rich Text

.rtf

NEW: Exports genuine RTF syntax. Supports: Font tables, Unicode escaping, dynamic font-size mapping (px to pt), hyperlinks, and standard text styling (Bold/Italic/Underline).

Plain Text

.txt

Saves raw UTF-8 text with no formatting data.

Plain Text

.txt

Saves raw UTF-8 text with no formatting data.

Web Development

Language

Extension

Features

HTML

.html

Supports tag folding and live browser preview.

JavaScript

.js

Syntax highlighting and linting basics.

CSS

.css

Standard highlighting.

PHP

.php

Syntax highlighting only.

System, Scripting & Data

Category

Languages Included

Notes

System

C++, C#, Java, Go, Rust, Ruby

Standard syntax highlighting.

Scripting

Python, Shell, PowerShell, Lua

Indentation-sensitive support for Python.

Data

JSON, XML, SQL, YAML, CSV

JSON and XML support structure folding.

3. Interface Guide

A. The Toolbar

The toolbar is context-aware. It stays static for file operations but changes its lower half based on whether you are coding or writing a document.

  • File Operations: Open (Folder icon), Save (Disk icon). Note: The Save button auto-detects the extension.

  • Clipboard: Cut, Copy, Paste buttons are provided for touch users or restricted environments.

  • Preview (Eye Icon): Only appears when HTML is selected.

B. Visual Mode (Rich Text)

When you switch to Rich Text, the CodeMirror engine is hidden, and the HTML-based visual editor loads.

  • Styles: Dropdown for Headings (Title, H1-H3) and Paragraphs.

  • Formatting: Bold, Italic, Underline.

  • Alignment: Left, Center, Right, Justify.

  • Lists: Bullet points and Numbered lists.

  • Font Size: Specific point-size selection (6pt to 72pt).

  • Links: Insert clickable hyperlinks.

C. Code Mode

When in a coding language (e.g., Python, JS), the interface provides:

  • Line Numbers & Active Line Highlight.

  • Magic Wand: Auto-indents and formats the current code block.

  • Syntax Highlighting: Colors keywords based on the selected language.

4. Technical Specifications

For developers maintaining or extending the app, the following details the architecture changes in the latest update:

RTF Conversion Logic

Previously, the app saved HTML content into .rtf files. The new update implements a convertHtmlToRtf(rootNode) function that traverses the DOM tree to generate standard RTF markup.

  1. Traversal: The engine recursively walks the DOM nodes of the visual editor.

  2. Mapping:

    • Nodes: HTML Block elements (DIV, P, H1) are converted to \par.

    • Styles: CSS fontWeight: bold maps to \b, fontStyle: italic to \i.

    • Sizes: Computed CSS pixels are converted to RTF half-points (approx px * 1.5).

    • Unicode: Non-ASCII characters are escaped to \uN? format.

  3. Blob Generation: The resulting string is saved with the MIME type application/rtf.

Libraries Used

  • CodeMirror (v5.65.16): Core text editor engine.

  • Tailwind CSS: Utility-first styling.

  • Lucide Icons: SVG iconography.

5. Troubleshooting

  • "My text color didn't save in the RTF file":

    • The current RTF converter focuses on structure and font style (Bold/Italic/Size). It does not yet generate a Color Table (\colortbl), so text colors may default to black in some viewers (like WordPad), though the HTML preview will show them.

  • "Preview button is missing":

    • The live preview is exclusively available for the HTML mode. It is disabled for Markdown, PHP, and other languages to prevent security risks or rendering errors.

  • Copy/Paste Issues:

    • If the on-screen Paste button is unresponsive, it is likely blocked by browser security permissions. Please use the keyboard shortcut Ctrl+V / Cmd+V.


Report abuse
Page details
Page updated
Report abuse