How to put Code in your blog/article
For programmers, who want to write about their codes. Its often the first…
July 08, 2019
I have a drupal module, where there is a file of extension .module, which is a php file. But, Visual Studio code doesn’t understand this as php language. I want to make it understand that it is a php file, and please highlight syntax.
Open settings json dialog box by pressing: “Control + Shift + P” (On windows), or “Cmd + Shift + P” (On mac). And type: settings json
You will be shown a json file in the editor. Search for files.associations. Note: The searched section might be there or not.
If its not there, simply add following:
i.e. put
"files.associations": {
"*.module": "php"
}
Or, if you have multiple extensions to put:
"files.associations": {
"*.module": "php",
"*.thor": "ruby"
}
Simply save settings file. And, no need to restart the editor.
For programmers, who want to write about their codes. Its often the first…
Introduction I was trying to download some youtube videos for my kids. As I have…
Bootstrap has a simple solution to have sticky blocks in your html. I’ve given a…
According to Microsoft, Therefore, they recently posted about a feature in beta…
This is regarding the timeit implementation in python. The basic requirement…
Goto your command terminal. Type: This will expose port: 27017 by default. You…
Introduction In this post we will see following: How to schedule a job on cron…
Introduction There are some cases, where I need another git repository while…
Introduction In this post, we will see how to fetch multiple credentials and…
Introduction I have an automation script, that I want to run on different…
Introduction I had to write a CICD system for one of our project. I had to…
Introduction Java log4j has many ways to initialize and append the desired…