Particle acceleration and synchrotron emission in blazar jets