GSoC/GCI Archive
Google Code-in 2012 Haiku

StyledEdit - doesn't handle "be:line" in RefsReceived.( ticket #4794)

completed by: Vlad Slepukhin

mentors: Richie Nyhus, Humdinger, Diver, Siarzhuk Zharski

The goal of this task is the implementing correct solution to fix issue described in Haiku Trac as ticket #4794. This is a coding task, for this task you will need to have a Haiku build environment setup, and be able to compile either Haiku or standalone StyledEdit project to fix the problem and check if your solution works. The basic knowledge of GIT SCM is also needed.


  • Install Haiku either on real hardware or in Virtual Machine (BTW, I can assist installing VirtualBox so it is obviously recommended by me);
  • Take familiar with the problem you should fix;
  • Get either the Haiku source tree or standalone StyledEdit project sources build it and find solution to fix the problem;
  • Note that fix should include both "be:line" support and "be:selection_offset" and "be:selection_length" as described in comments;
  • "Support" means writing corresponding attributes to file during saving, restoring them on opening file and applying the line position and selection in the StyleEdit text view;
  • After completing this task, please provide us with the git-formatted patch implementing your fix.


Haiku Alpha A4.1 (required developer tools are included)

Ticket "[StyledEdit] doesn't handle "be:line" in RefsReceived"

Standalone StyledEdit project at

Getting and building Haiku sources:

Varios Haiku development resources:

Haiku Coding Guidelines:

Good luck!