Sanye Hub

Code Reader — Tutorial

Use “Select folder”, “Select file”…

Code Reader: Open Files or Folders Locally with Tree and Highlight

Features

  • Two entry cards: select folder (tree) or select file (click / drop); title “Last” resumes the recent local file or folder when available.
  • Prefers File System Access handles so Last can reopen; falls back to directory upload or a normal file picker.
  • Folder mode: file tree (expand all / search), drag to resize, edge button to collapse/expand; action bar keeps only Back.
  • Syntax highlight for common code/text extensions (highlight.js—plain text first, then idle highlight); skip highlight on oversized files.

Use Cases

  • Browse a local repo or scripts without opening an IDE.

FAQ

What limitations should I know?

Nothing is uploaded to a server.

When might it fail?

Only common code/text extensions appear in the tree; dot-dirs and heavy dependency folders are skipped.

What else should I watch for?

Last needs browser permission to the previous handle; re-pick if denied or after switching browsers.

Any other important notes?

Files over 2MB are rejected; very long files may show plain text without highlight.