Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2575] APIDoc: Introduce language type for <code> sections in docgen.py

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:59:29.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.1 M01
ComponentsiOS
Labelsapidoc, defect, syntax
ReporterMarshall Culpepper
AssigneeMarshall Culpepper
Created2011-04-15T03:23:11.000+0000
Updated2011-04-17T01:59:29.000+0000

Description

The guess_lexer() function in pygments doesn't seem to guess the right language in all situations. It might be best to explicitly set each code section with a "type" attribute and just pass along to pygments.lexers.get_lexer_by_name

Comments

  1. Marshall Culpepper 2011-04-15

    (from [3bc0878ebc05c0fb427eda2b157d130f20569a98]) always use the javascript lexer for now, guess_lexer seems to get it wrong most of the time. let markdown escape XML in Service doc [#2575 state:resolved]
    https://github.com/appcelerator/titanium_mobile/commit/3bc0878ebc05c0fb427eda2b157d130f20569a98"> https://github.com/appcelerator/titanium_mobile/commit/3bc0878ebc05...

JSON Source