Loper · Developers

Open .rs files on your Mac.

.rs

Rust source with keywords, types, macros, strings and lifetimes in color.

Loper is a free, minimal editor for macOS that opens Rust instantly and colors every part of the file, so you find the value you need at a glance and can fix it right there. No IDE, no project to load, no gray wall of text.

main.rs opened in Loper: Rust with color-coded Rust
Show the file as text
use std::fs;use std::path::Path; /// Counts the lines in a text file.fn count_lines(path: &Path) -> std::io::Result<usize> {    let text = fs::read_to_string(path)?;    Ok(text.lines().count())} fn main() {    let path = Path::new("A001.mhl");    match count_lines(path) {        Ok(lines) => println!("{} lines", lines),        Err(error) => eprintln!("cannot read: {error}"),    }}

How to open .rs files

  1. Download Loper (free, Apple silicon, signed and notarized) and move it to Applications.
  2. Double-click your .rs file, drag it onto the Loper window, or right-click it and choose Open With › Loper.
  3. Want every .rs file to open in Loper? Choose Loper › Make Loper the Default Editor….