tuil
ReferencePackages@mwillbanks/tuil-codeAPI

detectCodeLanguage

function exported by @mwillbanks/tuil-code.

View rawEdit

function

Public function exported by @mwillbanks/tuil-code.

export function detectCodeLanguage(source: string, filename?: string): string;

Members

This declaration has no public members.

Parameters

MemberTypeRequiredDescriptionRelated types
sourcestringYesSupplies the source value as string.
filenamestringNoSupplies the filename value as string.

Returns

string — Returns a value that satisfies string.

Related types: —

Throws

No thrown errors are documented for this declaration.

No package-local related types.

Source

View the secondary source reference

Package

@mwillbanks/tuil-code

On this page