objective-c - ios app处理代码内容有没有好的高亮库?
PHP中文网
PHP中文网 2017-04-22 08:59:35
0
1
641

学习ios不久,我知道web页面中(通常在detail页面)通常遇到代码时我们需要使用高亮插件

现在的问题是我在做一个app的时候获取server端的content, 这些内容中有代码,所以我想问下ios是如何处理这种情况的,我看到sf的app代码做了格式化并加入灰色背景

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(1)
刘奇

Found an iOS markdown processing library: https://github.com/Uncodin/bypass

If you want to do it yourself, it is recommended to take a look at NSAttributedString Class Reference

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!