{"id":26895871,"url":"https://github.com/mittelmark/thtmlview","last_synced_at":"2025-05-12T20:17:42.717Z","repository":{"id":141948937,"uuid":"469642504","full_name":"mittelmark/thtmlview","owner":"mittelmark","description":"A simple standalone viewer and a Tcl/Tk widget to display basic HTML and Markdown files","archived":false,"fork":false,"pushed_at":"2024-12-22T11:45:46.000Z","size":759,"stargazers_count":5,"open_issues_count":3,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T02:58:51.767Z","etag":null,"topics":["html","markdown","tcl","tcl-tk","tk","widget"],"latest_commit_sha":null,"homepage":"","language":"Tcl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mittelmark.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-14T08:27:42.000Z","updated_at":"2024-12-22T11:45:50.000Z","dependencies_parsed_at":"2024-12-22T11:32:46.235Z","dependency_job_id":"b06c8b93-5537-47fd-88ed-0a15d7175d98","html_url":"https://github.com/mittelmark/thtmlview","commit_stats":null,"previous_names":["mittelmark/thtmlview"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mittelmark%2Fthtmlview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mittelmark%2Fthtmlview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mittelmark%2Fthtmlview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mittelmark%2Fthtmlview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mittelmark","download_url":"https://codeload.github.com/mittelmark/thtmlview/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253815024,"owners_count":21968563,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["html","markdown","tcl","tcl-tk","tk","widget"],"created_at":"2025-04-01T02:58:55.309Z","updated_at":"2025-05-12T20:17:42.691Z","avatar_url":"https://github.com/mittelmark.png","language":"Tcl","funding_links":[],"categories":[],"sub_categories":[],"readme":"## thtmlview\n\n### Description\n\nThe `thtmlview` package provides a pure Tcl/Tk widget to display basic HTML and\nMarkdown files. An installation of the Tcllib package *snit* is required. To\ndisplay Markdown files the Tcllib *Markdown* package has to be installed as\nwell. The package *TkImg* is required to support the display of JPEG images.\n\nThis widget is not a web browser. It will not work with http(s) addresses and\nonly relative filenames for images and links should be used. The widget supports\nbase64 encoded images embedded directly into HTML pages.\n\n* [Manual](http://htmlpreview.github.io/?https://github.com/mittelmark/thtmlview/blob/master/thtmlview/thtmlview.html)\n\nBackground: _thtmlview_ It is a fork of my other widget _shtmlview_ which you find on [https://github.com/tcltk/tklib](https://github.com/tcltk/tklib).\nI would like to place the changes from _thtmlview_ to _shtmlview_, but as I do not use fossil the usual fork and merge approaches will not work. \nSo I decided to rename my widgets from _shtmlview_ to _thtmlview_ to make it distinguishable\nfrom the tcllib widget. Sorry for this fork, but I really need to use and extend the widget\nfor my purposes in my own software which might be not the way tklib is supporting.\n\n\n### Standalone Application\n\nThe file `thtmlview.tcl` is not only a Tcl package but also a standalone\napplication for the direct viewing of Markdown and HTML files.\n\nTo display a HTML file invoke it as\n\n```\ntclsh thtmlview.tcl filename.html\n```\n\nThe image below is a screen shot from when the standalone application was used\nto browse the Tcl/Tk core documentation:\n\n![Tcl manual tkcmd](img/thtmlview-tkcmd.png)\n\nInvoke `tclsh thtmlview.tcl --help` in your terminal to see the embedded\ndocumentation explaining more options.\n\n### See also\n\n* [Wikipage on Tclers Wiki](https://wiki.tcl-lang.org/page/thtmlview)\n* [tkhtml(1)](https://github.com/wjoye/tkhtml1)\n* [tkhtml3](http://tkhtml.tcl.tk/index.html)\n\n### TODO's\n\n* [x] svg file and inline data support using svgconvert [https://github.com/mittelmark/svgconvert/](https://github.com/mittelmark/svgconvert/) !\n* [x] more investigations into the existing css functionality, keept it or throw it a away  (thrown away, we should keep it minimal)\n* [x] removal of forms part (thrown away - no chance to implement a web browser)\n* [x] edit/view mode using Ctrl-Shift-e to switch between view and edit mode to directly edit and save for instance a Markdown document\n* [ ] help megawidget with TOC and index search such as dgHelpBrowser (new megawidget)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmittelmark%2Fthtmlview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmittelmark%2Fthtmlview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmittelmark%2Fthtmlview/lists"}