Home / Function/ getCachedHighlightedFiles() — ui Function Reference

getCachedHighlightedFiles() — ui Function Reference

Architecture documentation for the getCachedHighlightedFiles() function in block-display.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  81d01447_1009_ca31_0b59_c3d7e733ef75["getCachedHighlightedFiles()"]
  794ed575_b54d_e225_c4f8_8572f3888b67["block-display.tsx"]
  81d01447_1009_ca31_0b59_c3d7e733ef75 -->|defined in| 794ed575_b54d_e225_c4f8_8572f3888b67
  9b309d8e_54e1_7a4f_9ad7_5faa0a96aefc["BlockDisplay()"]
  9b309d8e_54e1_7a4f_9ad7_5faa0a96aefc -->|calls| 81d01447_1009_ca31_0b59_c3d7e733ef75
  style 81d01447_1009_ca31_0b59_c3d7e733ef75 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

deprecated/www/components/block-display.tsx lines 44–51

  async (files: z.infer<typeof registryItemFileSchema>[]) => {
    return await Promise.all(
      files.map(async (file) => ({
        ...file,
        highlightedContent: await highlightCode(file.content ?? ""),
      }))
    )
  }

Subdomains

Called By

Frequently Asked Questions

What does getCachedHighlightedFiles() do?
getCachedHighlightedFiles() is a function in the ui codebase, defined in deprecated/www/components/block-display.tsx.
Where is getCachedHighlightedFiles() defined?
getCachedHighlightedFiles() is defined in deprecated/www/components/block-display.tsx at line 44.
What calls getCachedHighlightedFiles()?
getCachedHighlightedFiles() is called by 1 function(s): BlockDisplay.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free