What you are looking for are called Logic Hooks.
Those hooks exist inside each module and will be fired on different cases.
For listview / detail view you need process_record
hook.
Go and create a file custom/Extension/modules/Accounts/Ext/LogicHooks/ListViewHighlight.php
If you are using a custom module, change Accounts
for the name of the module and remember this function is executed for EACH record on the list.
Content will be:
<?php
$hook_array['process_record'][] = Array(1, 'Highlight account industry', 'custom/modules/Accounts/HighlightIndustryLogicHook.php','HighlightIndustryLogicHook', 'highlightIndustry');
That is for setting up the hook, the following file should contain the code executed custom/modules/Accounts/HighlightIndustryLogicHook.php
<?php
class HighlightIndustryLogicHook{
public function highlightIndustry(SugarBean $bean, $event, $arguments){
$colour = substr(md5($bean->industry),0,6);
$bean->industry = "<div style='border: solid 5px #$colour;'>".$bean->industry."</div>";
}
}
In this example, this hook will override the industry value and add in the styling we want.
Now, if you DON'T want to use SuiteCRM list view, let's say you want a totally customized view, then you should read this guide.
https://docs.suitecrm.com/developer/views/#_custom_module