{"id":16527724,"url":"https://github.com/benoitzugmeyer/enhancedtextarea","last_synced_at":"2025-08-01T17:33:51.955Z","repository":{"id":66068166,"uuid":"13892743","full_name":"BenoitZugmeyer/EnhancedTextarea","owner":"BenoitZugmeyer","description":null,"archived":false,"fork":false,"pushed_at":"2013-10-27T00:09:19.000Z","size":104,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-04T22:39:05.247Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BenoitZugmeyer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-10-26T23:22:02.000Z","updated_at":"2018-12-14T10:01:14.000Z","dependencies_parsed_at":"2023-02-19T22:00:29.555Z","dependency_job_id":null,"html_url":"https://github.com/BenoitZugmeyer/EnhancedTextarea","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BenoitZugmeyer/EnhancedTextarea","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenoitZugmeyer%2FEnhancedTextarea","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenoitZugmeyer%2FEnhancedTextarea/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenoitZugmeyer%2FEnhancedTextarea/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenoitZugmeyer%2FEnhancedTextarea/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BenoitZugmeyer","download_url":"https://codeload.github.com/BenoitZugmeyer/EnhancedTextarea/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenoitZugmeyer%2FEnhancedTextarea/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268266498,"owners_count":24222658,"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","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-10-11T17:36:34.001Z","updated_at":"2025-08-01T17:33:51.917Z","avatar_url":"https://github.com/BenoitZugmeyer.png","language":"JavaScript","readme":"EnhancedTextarea\n================\n\nEnhancedTextarea is a small project aimed to enhance a textarea. No color\nhighlighting or complex indentation here: just the minimal set of features\nneeded to ease the edition of native textarea. A balanced solution between the\nplain textarea and the hacky thousands-lines-of-code code editor.\n\nFeatures\n--------\n\n* No dependency, slim, fast, easily customizable.\n* \\\u003creturn\\\u003e inserts a new line, keeping the indentation of the current line.\n* \\\u003ctab\\\u003e inserts or completes a level of indentation.\n* \\\u003cbackspace\\\u003e removes at most one level of indentation next to the caret.\n* \\\u003cshift-tab\\\u003e unindents the line.\n* Selection + \\\u003ctab\\\u003e indents all the lines of the selection.\n* Selection + \\\u003cshift-tab\\\u003e unindents all the lines of the selection.\n\nUsage\n-----\n\n```javascript\n// Get the textarea (you could use jQuery('.my-textarea')[0] or whatever)\nvar textarea = document.querySelector('.my-textarea');\n\n// Create the instance\nvar et = new EnhancedTextarea(textarea, {\n  indentChar: ' ',  // you could set it to '\\t' if you want\n  indentLevel: 4    // 4 spaces\n});\n\n// (Optional) Use .detach to remove the enhancements, and .attach to readd them.\nif (the_user_doesnt_want_enhancements) {\n  et.detach();\n} else {\n  et.attach();\n}\n```\n\nNotes\n-----\n\n* Only tested on Chromium (Google Chrome) and Firefox. Won't work on Internet Explorer \u003c 10 for now.\n* There is a known bug in Chromium: when you press return at the bottom of the textarea, the scroll won't follow. As it is a tiny problem, and the solution is non-trivial (and hacky), this will be fixed later.\n* I'm open to suggestions.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenoitzugmeyer%2Fenhancedtextarea","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenoitzugmeyer%2Fenhancedtextarea","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenoitzugmeyer%2Fenhancedtextarea/lists"}