{"id":107,"date":"2013-01-20T15:41:39","date_gmt":"2013-01-20T10:11:39","guid":{"rendered":"https:\/\/www.dhruvsoft.com\/blog\/?p=107"},"modified":"2024-07-26T09:50:03","modified_gmt":"2024-07-26T09:50:03","slug":"apex-and-visualforce-syntax-highlighting-in-notepad","status":"publish","type":"post","link":"https:\/\/www.dhruvsoft.com\/blog\/apex-and-visualforce-syntax-highlighting-in-notepad\/","title":{"rendered":"Apex and Visualforce syntax highlighting in Notepad++"},"content":{"rendered":"<p>If you prefer to <strong>write your Apex and Visualforce code outside Salesforce.com or Force.com<\/strong> IDE &#8211; you may find tough time in finding the right code editor. I have not come across any other code editor that supports programming languages Apex and Visualforce.<\/p>\n<p>Considering the fast growth of programmers working on Apex and Visualforce I am sure very soon we will have code editor programs supporting the Apex and Visualforce.<!--more--><\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_83 ez-toc-wrap-left-text counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.dhruvsoft.com\/blog\/apex-and-visualforce-syntax-highlighting-in-notepad\/#Using_Notepad_as_Apex_and_Visualforce_code_editor\" >Using Notepad ++ as Apex and Visualforce code editor<\/a><ul class='ez-toc-list-level-5' ><li class='ez-toc-heading-level-5'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.dhruvsoft.com\/blog\/apex-and-visualforce-syntax-highlighting-in-notepad\/#Turn_on_Java_to_view_Apex\" >Turn on Java to view Apex<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-5'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.dhruvsoft.com\/blog\/apex-and-visualforce-syntax-highlighting-in-notepad\/#Turn_on_HTML_to_view_Visualforce\" >Turn on HTML to view Visualforce<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-5'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.dhruvsoft.com\/blog\/apex-and-visualforce-syntax-highlighting-in-notepad\/#Apex_Class_in_Notepad\" >Apex Class in Notepad++<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-5'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.dhruvsoft.com\/blog\/apex-and-visualforce-syntax-highlighting-in-notepad\/#Apex_Trigger_in_Notepad\" >Apex Trigger in Notepad++<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-5'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.dhruvsoft.com\/blog\/apex-and-visualforce-syntax-highlighting-in-notepad\/#Visualforce_page_in_Notepad\" >Visualforce page in Notepad++<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h4><span class=\"ez-toc-section\" id=\"Using_Notepad_as_Apex_and_Visualforce_code_editor\"><\/span>Using Notepad ++ as Apex and Visualforce code editor<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>If you love working on Notepad++ you can use it for the Apex and Visualforce syntax highlighting.<\/p>\n<p>Just by copying and pasting it may not work as Notepad++ still does not recognizes Apex and Visualforce as a programming language. You will need to turn on Java and HTML as language to view Apex and Visualforce respectively.<\/p>\n<h5><span class=\"ez-toc-section\" id=\"Turn_on_Java_to_view_Apex\"><\/span>Turn on Java to view Apex<span class=\"ez-toc-section-end\"><\/span><\/h5>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-108\" src=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2013\/01\/turn-on-java.png\" alt=\"Turn on Java to view Apex in Notepad++\" width=\"364\" height=\"364\" srcset=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2013\/01\/turn-on-java.png 607w, https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2013\/01\/turn-on-java-150x150.png 150w, https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2013\/01\/turn-on-java-300x300.png 300w\" sizes=\"auto, (max-width: 364px) 100vw, 364px\" \/><\/p>\n<h5><span class=\"ez-toc-section\" id=\"Turn_on_HTML_to_view_Visualforce\"><\/span>Turn on HTML to view Visualforce<span class=\"ez-toc-section-end\"><\/span><\/h5>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-109\" src=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2013\/01\/turn-on-html.png\" alt=\"Turn on HTML to view Visualforce in Notepad++\" width=\"353\" height=\"362\" srcset=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2013\/01\/turn-on-html.png 588w, https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2013\/01\/turn-on-html-292x300.png 292w\" sizes=\"auto, (max-width: 353px) 100vw, 353px\" \/><\/p>\n<h5><span class=\"ez-toc-section\" id=\"Apex_Class_in_Notepad\"><\/span>Apex Class in Notepad++<span class=\"ez-toc-section-end\"><\/span><\/h5>\n<p>Here is how the Apex Class looks in Notepad++<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-110\" src=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2013\/01\/apex-class-in-notepad.png\" alt=\"View Apex Class in Notepad++\" width=\"653\" height=\"351\" srcset=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2013\/01\/apex-class-in-notepad.png 1360w, https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2013\/01\/apex-class-in-notepad-300x161.png 300w, https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2013\/01\/apex-class-in-notepad-1024x550.png 1024w\" sizes=\"auto, (max-width: 653px) 100vw, 653px\" \/><\/p>\n<h5><span class=\"ez-toc-section\" id=\"Apex_Trigger_in_Notepad\"><\/span>Apex Trigger in Notepad++<span class=\"ez-toc-section-end\"><\/span><\/h5>\n<p>Here is how an Apex trigger looks in Notepad++<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-111\" src=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2013\/01\/apx-trigger-in-notepad-1024x547.png\" alt=\"View Apex trigger in Notepad++\" width=\"680\" height=\"363\" srcset=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2013\/01\/apx-trigger-in-notepad-1024x547.png 1024w, https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2013\/01\/apx-trigger-in-notepad-300x160.png 300w, https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2013\/01\/apx-trigger-in-notepad.png 1360w\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" \/><\/p>\n<h5><span class=\"ez-toc-section\" id=\"Visualforce_page_in_Notepad\"><\/span>Visualforce page in Notepad++<span class=\"ez-toc-section-end\"><\/span><\/h5>\n<p>Here is how a Visualforce page looks in Notepad++<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-112\" src=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2013\/01\/html-in-notepad-1024x542.png\" alt=\"View Visualforce page in Notepad++\" width=\"680\" height=\"359\" srcset=\"https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2013\/01\/html-in-notepad-1024x542.png 1024w, https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2013\/01\/html-in-notepad-300x158.png 300w, https:\/\/www.dhruvsoft.com\/blog\/wp-content\/uploads\/2013\/01\/html-in-notepad.png 1360w\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" \/><\/p>\n<p>You can also create a User Defined Language file for Apex and VisualForce.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you prefer to write your Apex and Visualforce code outside Salesforce.com or Force.com IDE &#8211; you may find tough time in finding the right code editor. I have not come across any other code editor that supports programming languages Apex and Visualforce. Considering the fast growth of programmers working on Apex and Visualforce I [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[58,59],"tags":[88,87],"class_list":["post-107","post","type-post","status-publish","format-standard","hentry","category-apex","category-visualforce","tag-salesforce-development","tag-salesforce-programming","entry"],"_links":{"self":[{"href":"https:\/\/www.dhruvsoft.com\/blog\/wp-json\/wp\/v2\/posts\/107","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dhruvsoft.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dhruvsoft.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dhruvsoft.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dhruvsoft.com\/blog\/wp-json\/wp\/v2\/comments?post=107"}],"version-history":[{"count":0,"href":"https:\/\/www.dhruvsoft.com\/blog\/wp-json\/wp\/v2\/posts\/107\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dhruvsoft.com\/blog\/wp-json\/wp\/v2\/media?parent=107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dhruvsoft.com\/blog\/wp-json\/wp\/v2\/categories?post=107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dhruvsoft.com\/blog\/wp-json\/wp\/v2\/tags?post=107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}