开发者

Bidirectionality in html

开发者 https://www.devze.com 2023-01-17 00:40 出处:网络
Using Sphinx, I\'m editing pylearn documentation content at https://bitbucket.org/omidraha/pylearn/.

Using Sphinx, I'm editing pylearn documentation content at https://bitbucket.org/omidraha/pylearn/.

All paragraphs are Right-to-Left (because of Persian language) and code samples between text, rendered incorrectly.

Generally I'm looking for a w开发者_C百科ay to apply bi-directionality algorithms of unicode or microsoft on a web page.

Is there a way to set css style of codes, to be LTR inside of a RTL paragraph? if not, how could I modify sphinx source to do seperate code samples, for example in a frame or something like that?


If you want to specify the direction in which the test is displayed, use the "dir" attribute. See: http://reference.sitepoint.com/html/core-attributes/dir

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号