[Question]A Custom Code Theme In Markdown. #4287
-
| QuestionIs there any way to add custom theme for code block in  Code sampleNoneError messageNone------------------------------------------------------
 | 
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            ndonkoHenri
          
      
      
        Nov 9, 2024 
      
    
    Replies: 2 comments 3 replies
-
| In the documentation, appears this: | 
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            -
| use  def main(page: ft.Page):
    page.scroll = "auto"
    page.add(
        ft.Markdown(
            YOUR_TEXT_HERE,
            selectable=True,
            extension_set=ft.MarkdownExtensionSet.GITHUB_WEB,
            code_theme=ft.MarkdownCodeTheme.ATOM_ONE_DARK,
            code_style_sheet=ft.MarkdownStyleSheet(
                code_text_style=ft.TextStyle(color=ft.colors.YELLOW, size=12),
            ),
            on_tap_link=lambda e: page.launch_url(e.data),
        )
    )
ft.app(main) | 
Beta Was this translation helpful? Give feedback.
                  
                    2 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
I created an issue to fix that: #4342