Syntax highlighting
Full token-based highlighting for Swift, Python, JavaScript, TypeScript, Go, Rust, Markdown, JSON, YAML, SQL, Bash, and more — 20+ languages total.
v0.1.3 for macOS · Free
A focused text editor for developers and writers who want real editing power — without the overhead of a full IDE.
SHA-256: 4fc3e27ea00339715536e6663003baaba8cd8a39a33fbcaac4e6739bdc61beba
Parser.swift
// Token-based line parser
import Foundation
struct Token {
let kind: TokenKind
let range: Range<String.Index>
}
func tokenize(_ source: String)
-> [Token] {
var tokens: [Token] = []
// scan and emit tokens…
return tokens
}
Core features
Full token-based highlighting for Swift, Python, JavaScript, TypeScript, Go, Rust, Markdown, JSON, YAML, SQL, Bash, and more — 20+ languages total.
Option-click to place multiple cursors anywhere in the document. Type, delete, and navigate at all insertion points simultaneously.
Built-in live regex tester with inline match highlighting, named capture group display, and flags for case-insensitive, multiline, and dot-all modes.
Jump to any file in a project folder with ⌘P. Find and replace across the current file with a keyboard-first find bar — no modal clutter.
Open two files side by side in a single window. Compare revisions, keep reference material visible, or draft with notes alongside.
Gutter indicators mark added, modified, and deleted lines against the last committed state — no terminal required.
Tab-expanded snippets with placeholder navigation keep repetitive boilerplate fast and consistent across every file you edit.
Every tab, scroll position, and unsaved edit is preserved across restarts. Pick up exactly where you left off, even after a crash.
Full encoding detection (UTF-8, UTF-16, Latin-1) and line-ending awareness (LF, CRLF, CR) without silently corrupting documents.
Workflow
Drop a file, open a project directory, or start from a blank document. Scripr picks up the language and highlights instantly.
⌘P Quick Open gets you to any file. Tabs keep your active context visible. Split view puts two files in the same window when you need to compare.
Multi-cursor, find and replace, regex testing, and git indicators are all there when you need them — and out of the way when you don't.
FAQ
Developers, writers, and note-takers who want a fast, native editor for real work — without the full weight of an IDE like Xcode or VS Code.
Yes. Scripr is free to download and use. The macOS DMG is available directly from the releases page — no account, no subscription.
Swift, Python, JavaScript, TypeScript, Go, Rust, Ruby, Java, C, C++, PHP, HTML, CSS, JSON, YAML, TOML, Markdown, Bash, PowerShell, SQL, and XML.
Scripr sits between a plain text editor and a full IDE. It has real editing power (multi-cursor, syntax highlighting, project folders) without extensions or a plugin ecosystem to manage.
Yes. Open any directory to get a file tree. Use ⌘P Quick Open to jump to files instantly without navigating the sidebar by hand.
See the Help & Support Guide for keyboard shortcuts, feature documentation, and troubleshooting. Reach us on the support page.