> For the complete documentation index, see [llms.txt](https://pyzenity.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pyzenity.gitbook.io/docs/dialogs/text-information-dialog.md).

# Text Information Dialog

* [Zenity Manual](broken://pages/-M9x2rOIvf_sDlA1_zX8)

&#x20;Use the --text-info option to create a text information dialog.

&#x20;The text information dialog supports the following options: --filename=filename

Specifies a file that is loaded in the text information dialog.--editable

Allows the displayed text to be edited. The edited text is returned to standard output when the dialog is closed.

&#x20;The following example script shows how to create a text information dialog:

```
        #!/bin/sh

        FILE=`zenity --file-selection \
          --title="Select a File"`

        case $? in
                 0)
                        zenity --text-info \
                          --title=$FILE \
                          --filename=$FILE \
                          --editable 2>/tmp/tmp.txt;;
                 1)
                        echo "No file selected.";;
                -1)
                        echo "No file selected.";;
        esac
```

Figure 11 Text Information Dialog Example
