def _get_language_registration_hook(cls, language_var: Var = _LANGUAGE) -> Var:
        """Get the hook to register the language.

        Args:
            language_var: The const/literal Var of the language module to import.
                For markdown, uses the default placeholder _LANGUAGE. For direct use,
                a LiteralStringVar should be passed via the language prop.

        Returns:
            The hook to register the language.
        """
        language_in_there = Var.create(typing.get_args(LiteralCodeLanguage)).contains(
            language_var
        )
        async_load = f"""
(async () => {{
    try {{
        const module = await import(`react-syntax-highlighter/dist/cjs/languages/prism/${{{language_var!s}}}`);
        SyntaxHighlighter.registerLanguage({language_var!s}, module.default);
    }} catch (error) {{
        console.error(`Language ${{{language_var!s}}} is not supported for code blocks inside of markdown: `, error);
    }}
}})();
"""
        return Var(
            f"""
 if ({language_var!s}) {{
    if (!{language_in_there!s}) {{
        console.warn(`Language \\`${{{language_var!s}}}\\` is not supported for code blocks inside of markdown.`);
        {language_var!s} = '';
    }} else {{
        {async_load!s}
    }}
  }}
"""
            if not isinstance(language_var, LiteralVar)
            else f"""
if ({language_var!s}) {{
    {async_load!s}
}}""",
            _var_data=VarData(
                imports={
                    cls.get_fields()["library"].default_value(): [
                        ImportVar(tag="PrismAsyncLight", alias="SyntaxHighlighter")
                    ]
                },
            ),
        )
Get the hook to register the language.

        Args:
            language_var: The const/literal Var of the language module to import.
                For markdown, uses the default placeholder _LANGUAGE. For direct use,
                a LiteralStringVar should be passed via the language prop.

        Returns:
            The hook to register the language.
        
reflex/components/datadisplay/code.py