codeBlockIntentWithIdentity:languageHint:nestedInsideIntent:
Creates an code-block intent with the provided information.
Declaration
+ (NSPresentationIntent *) codeBlockIntentWithIdentity:(NSInteger) identity languageHint:(NSString *) languageHint nestedInsideIntent:(NSPresentationIntent *) parent;Parameters
- identity:
The unique identifier for the intent.
- languageHint:
The programming language for the code listing.
- parent:
The parent intent of the code block.
Return Value
A new intent with the kind set to NSPresentationIntentKindCodeBlock.
See Also
Creating a presentation intent
paragraphIntentWithIdentity:nestedInsideIntent:headerIntentWithIdentity:level:nestedInsideIntent:orderedListIntentWithIdentity:nestedInsideIntent:unorderedListIntentWithIdentity:nestedInsideIntent:listItemIntentWithIdentity:ordinal:nestedInsideIntent:blockQuoteIntentWithIdentity:nestedInsideIntent:thematicBreakIntentWithIdentity:nestedInsideIntent:tableIntentWithIdentity:columnCount:alignments:nestedInsideIntent:tableHeaderRowIntentWithIdentity:nestedInsideIntent:tableRowIntentWithIdentity:row:nestedInsideIntent:tableCellIntentWithIdentity:column:nestedInsideIntent: