code_preview module

מנהל תצוגה מקדימה של קוד Code Preview Manager

class code_preview.CodePreviewManager[מקור]

Bases: object

מנהל תצוגה מקדימה של קוד

__init__()[מקור]
Return type:

None

create_preview(code, file_name, programming_language)[מקור]

יוצר תצוגה מקדימה של קוד

Return type:

Dict[str, Any]

פרמטרים:
  • code (str)

  • file_name (str)

  • programming_language (str)

format_preview_message(file_name, preview_info)[מקור]

יוצר הודעה מעוצבת לתצוגה מקדימה

Return type:

str

פרמטרים:
create_quick_info(file_data)[מקור]

יוצר מידע מהיר על קובץ ללא תצוגת קוד

Return type:

str

פרמטרים:

file_data (Dict)