What is the version of the following sentence with correct punctuation?

As Antonio Gramsci wrote in his prison diaries from 1932 All are intellectuals but not all have the function of the intellectual in society
As Antonio Gramsci wrote in his prison diaries from 1932: "All are intellectuals [...] but not all have the function of the intellectual in society".