# Why Can't Code Files Be Displayed Online (Only "View Raw File" Appears) ？

**URL:** <https://forum.gitea.com/t/why-cant-code-files-be-displayed-online-only-view-raw-file-appears/11668>\
**Category:** Gitea Usages\
**Created:** [September 4, 2025, 3:17am UTC](https://forum.gitea.com/t/why-cant-code-files-be-displayed-online-only-view-raw-file-appears/11668 "2025-09-04T03:17:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kate](https://avatars.discourse-cdn.com/v4/letter/k/f04885/32.png) [@kate](https://forum.gitea.com/u/kate)\
**Post date:** [September 4, 2025, 3:17am UTC](https://forum.gitea.com/t/why-cant-code-files-be-displayed-online-only-view-raw-file-appears/11668/1 "2025-09-04T03:17:19Z")

</div>

I uploaded a .c code file with a size of 8KB. However, on Gitea’s web interface, I cannot view the file’s specific code content or the diff comparison (difference comparison) content—only the “View Raw File” option is available. Has anyone encountered the same issue? If so, could you please tell me how to resolve it? Thanks lot

 ![Snipaste_2025-09-04_11-16-19](https://us1.discourse-cdn.com/flex020/uploads/gitea/original/2X/f/f204541fd7a232e71a96987ec3c4608dc8103ac7.png)

.
