Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

[Bitbucket Server] Is there a way to display MS Word files and specific line on screen?

Hi,

When you open a code file, if you add the "#<Line Number>" at the end of the url, the file is displayed on the screen and the given line highlighted. Is there a way to do that for MS Word files and other types?

Thank you!

1 answer

1 vote

Hello Mario and welcome to the Community!

Word files are stored in a way that is similar to EXE and DLL files. Meaning that this type of file is a binary file. These types of files are not able to be previewed within the Bitbucket UI. If your file was a text(txt) document, then you would be able to see a preview allowing you to insert a #NUMBER within the URL.

Something to be aware of with Binary files is the recommendation when storing multiple binary files:

Have a lot of binaries such as images or sounds?

Keep in mind Bitbucket Cloud is a code hosting service not a file sharing service. If a lot of your files are extremely large or if your files are binaries or executables, you should understand Git or Mercurial will not work well with them. You'll find that even locally your repository is barely usable.

For binary or executable storage, we recommend you look into file hosting services  such as DropBox, rsync, rsnapshot, rdiff-backup, and so forth. Still not sure what to do? Review this post on stack overflow for more ideas.

Source document: What kind of limits do you have on repository/file size?

In short, Microsoft Word (doc/docx) files are binary files and not able to be previewed within Bitbucket.

I hope this helps to clarify file previewing within Bitbucket.

Regards,
Stephen Sifers

Thanks for the answer. I'm looking to version a word document, would bitbucket work in this manner, even if it's not meant to do this? (does bitbucket still version the binary files?)

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,804 views 0 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you