home · story · engine · guide · about


MTXWEB

set up your site in 5 minutes.

mtxweb is a single-file php engine that turns mtx files into web pages.
no npm. no build step. no framework. just mtxweb.php + .htaccess + your content.


what you need


setup

step 1 — download

grab 3 files from the mtxweb repo:

step 2 — upload

upload all 3 files to your web root. thats it — the engine is installed.

step 3 — write your first page

create index.txt in the same folder:

;#mtx;.;#mn;.

;==== MY SITE ;.

hello world. this is my first mtx page.

;- it works ;.
;- no config needed ;.
;- just text ;.

the ;#mtx;.;#mn;. header on line 1 tells the engine this is an mtx file.

step 4 — visit your site

open yourdomain.com in a browser. your page renders.


file types

mtxweb resolves files in priority order:

priorityextensionlevelheader needed
1.mt.txtlvl2 (doc markup)no
2.ht.txtlvl3 (html-ish)no
3.tx.txtlvl1 (headings only)no
4.txtany (base parser)yes: ;#mtx;.;#mn;.

if about.mt.txt and about.txt both exist, the .mt.txt wins.


clean urls

mtxweb gives you clean urls automatically:

no config needed. the .htaccess routes everything to the engine.


styling

mtxweb ships with built-in css that covers all mtx elements.
if style.css exists next to the engine, it loads on top — your values win.

style.css uses css variables:

--mtx-bg           background color
--mtx-fg           text color
--mtx-accent       links, accents
--mtx-border       borders, dividers
--mtx-code-bg      code block background
--mtx-max-width    content width
--mtx-font         body font
--mtx-code-font    code font

dark mode works automatically via prefers-color-scheme.
override the variables in style.css to customize.


local development

test locally with php built-in server:

php -S localhost:8000 mtxweb.php

open localhost:8000 in your browser. done.


adding pages

just create more .txt files. every file becomes a page:

mysite/
  mtxweb.php
  .htaccess
  style.css
  index.txt        ->  yourdomain.com/
  about.mt.txt     ->  yourdomain.com/about
  story.mt.txt     ->  yourdomain.com/story
  guide.ht.txt     ->  yourdomain.com/guide
  404.txt          ->  yourdomain.com/anything-missing

no routing config. no database. no build step. just files.


home · story · engine · guide · about

github · ©2026 digiopsys. powered by mtxweb.