{"id":18271261,"url":"https://github.com/honcheng/RTLabel","last_synced_at":"2025-04-05T01:31:16.198Z","repository":{"id":1457051,"uuid":"1691576","full_name":"honcheng/RTLabel","owner":"honcheng","description":"simple rich text display for iOS using html-like markups","archived":false,"fork":false,"pushed_at":"2017-09-19T00:58:11.000Z","size":928,"stargazers_count":1462,"open_issues_count":48,"forks_count":380,"subscribers_count":74,"default_branch":"master","last_synced_at":"2025-04-01T11:07:11.166Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://honcheng.com","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/honcheng.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}},"created_at":"2011-05-02T14:36:23.000Z","updated_at":"2025-03-04T09:17:22.000Z","dependencies_parsed_at":"2022-07-29T14:09:04.765Z","dependency_job_id":null,"html_url":"https://github.com/honcheng/RTLabel","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/honcheng%2FRTLabel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/honcheng%2FRTLabel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/honcheng%2FRTLabel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/honcheng%2FRTLabel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/honcheng","download_url":"https://codeload.github.com/honcheng/RTLabel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247276043,"owners_count":20912286,"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":[],"created_at":"2024-11-05T11:39:11.294Z","updated_at":"2025-04-05T01:31:11.190Z","avatar_url":"https://github.com/honcheng.png","language":"Objective-C","funding_links":[],"categories":["etc","OOM-Leaks-Crash"],"sub_categories":["Label"],"readme":"RTLabel \n=======\n\nRich text formatting based on HTML-like markups for iOS. \n\n\u003cimg src=\"https://github.com/honcheng/RTLabel/raw/master/screenshot.png\"/\u003e\n\nRTLabel works like UILabel, but supports html-like markups for rich text display. \nIt is based on Core Text, so it supports some of the stuff that Core Text supports\n\nFeatures\n--------\n\n* bold and italic style\n* color and size\n* stroke\n* indenting\n* kerning\n* line spacing\n* clickable links\n\nUsage\n-----\n\n1) Drag RTLabel.h and RTLabel.m into your project. Import CoreText framework\n\n    #import \"RTLabel.h\"\n\t\n2) Create RTLabel\n\t\n    NSString *sample_text = @\"\u003cb\u003ebold\u003c/b\u003e,\u003ci\u003eitalic\u003c/i\u003e and \u003cu\u003eunderlined\u003c/u\u003e text, and \u003cfont face='HelveticaNeue-CondensedBold' size=20 color='#CCFF00'\u003etext with custom font and color\u003c/font\u003e\";\n\t\n\tRTLabel *label = [[RTLabel alloc] initWithFrame:...];\n\t[self addSubview:label];\n\t[label setText:sample_text];\n\t\n3) Supports the following tags\n\t\n    \u003cb\u003eBold\u003c/b\u003e\n\t\u003ci\u003eItalic\u003c/i\u003e\n\t\u003cbi\u003eBold \u0026 Italic\u003c/bi\u003e\n\t\u003cu\u003eunderline\u003c/u\u003e, \u003cu color=red\u003eunderline with color\u003c/u\u003e\n\t\u003ca href='http://..'\u003elink\u003c/a\u003e\n\t\u003cuu\u003edouble underline\u003c/uu\u003e , \u003cuu color='#ccff00'\u003edouble underline with color\u003c/uu\u003e\n\t\u003cfont face='HelveticaNeue-CondensedBold' size=20 color='#CCFF00'\u003ecustom font\u003c/font\u003e\n\t\u003cfont face='HelveticaNeue-CondensedBold' size=20 color='#CCFF00' stroke=1\u003ecustom font with strokes\u003c/font\u003e\n\t\u003cfont face='HelveticaNeue-CondensedBold' size=20 color='#CCFF00' kern=35\u003ecustom font with kerning\u003c/font\u003e\n\t\u003cp align=justify\u003ealignment\u003c/p\u003e\n\t\u003cp indent=20\u003eindentation\u003c/p\u003e\n\nMinimum Requirements\n--------------------\n* ARC - this project uses ARC. If you are not using ARC in your project, add '-fobjc-arc' as a compiler flag for StyledPageControl.h and StyledPageControl.m\n* Xcode 4.4 and newer (auto-synthesis required)\n\nContact\n-------\n\n[twitter.com/honcheng](http://twitter.com/honcheng)  \n[honcheng.com](http://honcheng.com)\n\n![](http://www.cocoacontrols.com/analytics/honcheng/rtlabel.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoncheng%2FRTLabel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhoncheng%2FRTLabel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoncheng%2FRTLabel/lists"}